feat: agent-readable surface for docs.affitor.com - #76
Conversation
Constraint: Preserve every rendered body and existing routing. Confidence: high
Constraint: Preserve source bodies, URLs, routing and integration names. Confidence: high
Constraint: Keep source-derived section descriptions and all crawler access. Confidence: high
Constraint: Assert twins, sitemap, llms freshness and robots without changing rendered bodies. Confidence: high Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI saw a 1ms changelog mtime drift between next build and the post-build check. Compare twin updated to the sitemap date from the same build instead. Confidence: high Co-authored-by: Cursor <cursoragent@cursor.com>
Build checkout mtimes were advertising every page as modified at deploy time. Blog and changelog now use source dates; docs omit updated/lastmod/dateModified; guard rejects mtime regressions. Confidence: high Co-authored-by: Cursor <cursoragent@cursor.com>
CoS verification (cos-affitor)Not an independent approval. cos-affitor wrote the brief this PR implements and supervised the build, so this is
Found and fixed in review round 1: every date came from file mtime, so on Vercel all 77 pages claimed they Guard proven red by cos-affitor (separately from the builder's own proofs): planted Known debt, not in this PR: docs pages have no real modification date; git-history dates need a full clone at build. |
Summary
src/lib/agent-md.ts) with unchanged twin bodies; twins gainid/type/url/updatedfrontmatter./llms.txtregenerated on every build (prebuild), plus/llms-full.txt, sitemap (HTML +.mdtwins), robots Allow blocks for AI bots, and TechArticle JSON-LD +data-page-idon docs HTML.scripts/check-agent-surface.mjs+.github/workflows/agent-surface.yml) asserts twin inventory, sitemap parity, freshness, and robots.Routing, page URLs,
content/, the blog proxy, and crawler analytics are unchanged. Based onmain. Do not merge automatically — CoS review first.Test plan
npm ci&&npm run build&&node scripts/check-agent-surface.mjs(green: 77 pages, 156 sitemap URLs, 2166 llms.txt bytes)public/llms.txt→ FAIL → restore → PASS/llms.txt,/llms-full.txt,/index.md,/getting-started/how-it-works.md,/sitemap.xml,/robots.txtMade with Cursor