Skip to content

docs(agents): say where the route-coverage gate actually runs - #726

Merged
blove merged 1 commit into
mainfrom
docs/agents-lastmod-gate-wording
Sep 18, 2026
Merged

blove merged 1 commit into
mainfrom
docs/agents-lastmod-gate-wording

Conversation

@blove

@blove blove commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #713, fixing wording I wrote there.

The problem

The rule read:

pnpm --dir apps/web seo:lastmod:routes fails the PR until you do.

That sends the next reader to grep .github/workflows/ for seo:lastmod:routes, find nothing, and conclude the documented gate does not exist. The reviewer on #713 nearly filed it as a defect for exactly that reason, and they had more context than most readers will. #713 made the script name more prominent than before, so the wording got worse, not better.

The fix

The gate is a test, not a CI step. It names the test and where to read it:

That gate is a test, not a CI step: the web suite's route-coverage case (covers every route the site renders, in apps/web/app/seo/generate-lastmod.test.ts) reds source-validate until you regenerate, and pnpm --dir apps/web seo:lastmod:routes reproduces it locally.

Wording from the #680 session, which found it.

Verification

  • Confirmed it("covers every route the site renders") exists at apps/web/app/seo/generate-lastmod.test.ts:76 on main, so the citation is accurate rather than plausible.
  • Root pnpm lint passes. That is the check that covers scripts/ and reddened chore(web): regenerate the SEO lastmod manifest on main, not in PRs #713; running it before pushing is the lesson from that failure.
  • scripts/check-docs.mjs passes.

No manifest regeneration: AGENTS.md is not one of the manifest's sources, and per the rule this PR is editing, ordinary content edits no longer regenerate it anyway.

One note for whoever reviews

check-docs first failed for me with errors.mdx lists codes not in the registry: B4_E1008. That is not a breakage on main. The generator reads the sdk's built output, and my packages/sdk/dist predated #722. A rebuild clears it. Flagging because it presents as a repo-wide docs failure and would send someone chasing a phantom.

🤖 Generated with Claude Code

The rule said "pnpm --dir apps/web seo:lastmod:routes fails the PR",
which sends the reader to grep .github/workflows for that script, find
nothing, and conclude the gate is imaginary. A reviewer with more
context than most nearly filed it as a defect for exactly that reason.

The gate is a test, not a CI step: the web suite's route-coverage case
reds source-validate, and the script reproduces it locally. Name the
test and its file so the reader can go read it.

Wording from the #680 session, which found it.

Co-Authored-By: Claude Opus 5 <[email protected]>
@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
b4-run Ready Ready Preview Sep 18, 2026 1:31am UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@blove
blove merged commit 2f6a14c into main Sep 18, 2026
30 of 31 checks passed
@blove
blove deleted the docs/agents-lastmod-gate-wording branch September 18, 2026 02:50

This branch was successfully deployed

1 active and 1 inactive deployments
vercel-preview — 94ecc472 Deployed Sep 18, 2026 by blove via vercel-native #2066
Preview — 94ecc472 Deployed Sep 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant