Phase 5 part 5: check the live site after a merge

Merged Sites pages are checked on the live site until they answer with
their own words and title; removed ones until they're gone. The SEO loop,
the page, the signal's page and Sites → Publishing check (or Check now);
two hours without the page points at the deploy hook. Pages going live or
away go to IndexNow. Sites → Publishing lists what's waiting, open pull
requests and recent merges. Schema 24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 14:28:42 -07:00
co-authored by Claude Opus 5.5
parent 062fcf2e59
commit e2a72d5ef9
18 changed files with 746 additions and 63 deletions
+3 -1
View File
@@ -131,7 +131,9 @@ func SubmitIndexNow(ctx context.Context, d *db.DB, site, key string, pages []str
func NewlyLive(d *db.DB, site string, now time.Time) ([]string, error) {
since := now.AddDate(0, 0, -14).UTC().Format(time.RFC3339)
rows, err := d.Query(`SELECT page FROM seo_changes WHERE site = ? AND status = 'live' AND live_at >= ?
UNION SELECT page FROM seo_briefs WHERE site = ? AND status = 'live' AND live_at >= ? AND page != ''`, site, since, site, since)
UNION SELECT page FROM seo_briefs WHERE site = ? AND status = 'live' AND live_at >= ? AND page != ''
UNION SELECT rtrim(site, '/') || path FROM site_pages WHERE site = ? AND (live_at >= ? OR gone_at >= ?)`,
site, since, site, since, site, since, since)
if err != nil {
return nil, err
}