Skip to content

Document --expect-routes counting rule; report declared vs generated counts - #298

Merged
jimhoyd merged 1 commit into
mainfrom
docs/expect-routes-counting-rule-290
Sep 20, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
docs/expect-routes-counting-rule-290

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Refs #290 (does not close it).

Reproduced: with site.robots configured, the audit inventory includes the generated /robots.txt route, so --expect-routes must equal declared + generated. All five site keys (robots, sitemap, favicon, securityTxt, llms) generate routes.

Change: --expect-routes semantics unchanged (still compares counts.configured, so countMatches is backwards compatible). Added additive counts.declared and counts.generated to the audit report, documented the rule in docs/READINESS.md, regenerated llms-full.txt, added a test.

Open decision: whether the flag should count only declared routes. Not changed, since that alters the gate's meaning and would break existing CI values. verify-deployment --expect-routes uses the same rule (documented, no split reported).

🤖 Generated with Claude Code

@jimhoyd
jimhoyd merged commit e243823 into main Sep 20, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the docs/expect-routes-counting-rule-290 branch September 20, 2026 15:05
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