Phase 5 part 3: build pages from a site's own sections

Sites → New pages: the AI composes a landing, product, alternative,
comparison or blog page as the site's own sections, from the profile and
optionally a product, competitor, buying signal or SEO brief. Code checks
every section type, warns on unknown fields and missing pages, tags a
signal's links with its campaign and finds experience claims. Pages are
edited here, pushed to their own branch with a preview, and opened as pull
requests after the claims are confirmed. Schema 22.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 14:12:57 -07:00
co-authored by Claude Opus 5.5
parent 233c6ac630
commit 11b80b6461
15 changed files with 1737 additions and 1 deletions
+4
View File
@@ -17,6 +17,7 @@ import (
"supermarket/internal/profile"
"supermarket/internal/secrets"
"supermarket/internal/seo"
"supermarket/internal/sites"
)
var googleFields = []secretField{
@@ -248,6 +249,9 @@ func (s *Server) RunSEO(ctx context.Context) {
if err := seo.RecoverBriefs(s.DB); err != nil {
s.Log.Error("seo: recovering briefs", "err", err)
}
if err := sites.RecoverPages(s.DB); err != nil {
s.Log.Error("sites: recovering pages", "err", err)
}
tick := time.NewTicker(30 * time.Minute)
defer tick.Stop()
for {