You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Gap]: Each added route means hand-editing --expect-routes in package.json, AGENTS.md and the workflow #955
From the third agent workflow trial. It happened on all three fresh sites.
What you were trying to do
Make npm run audit ready after adding routes to a fresh site.
Where it broke down
extensions add now moves the route count (#910), but every route the author adds needs --expect-routes hand-edited in three generated files: package.json (the audit script), AGENTS.md (the evidence commands) and .github/workflows/urlcode.yml (expect-routes:). Until then the audit fails:
$ npm run audit
{"elapsedMs":596.2,"ready":false,"notReadyReasons":["route-count-mismatch"],"counts":{"configured":3,"declared":3,…},"expectedRoutes":1,"countMatches":false,"checks":32,"passed":32,"failed":0,…}
The trial fixed it with:
sed -i '''s/--expect-routes 1/--expect-routes 3/' package.json AGENTS.md
sed -i '''s/expect-routes: 1 /expect-routes: 3 /' .github/workflows/urlcode.yml
Each of the three sites (2, 3 and 5 routes) needed this once. Keeping the count deliberate is intended (#290, #481). The friction is that three copies must agree, and nothing but a failed audit says which ones exist.
Expected, one of:
one source for the count, which the npm script, AGENTS.md and the workflow read;
or a command that sets it after review (for example urlcode audit --update-expected-routes) and names the files it changed, as extensions add does.
Code or YAML you had to write by hand
The two sed lines above.
What you could not verify
Whether the GitHub workflow copy is still wanted when package.json already carries it; the workflow was not run.
Runtime revision and environment
main f850492a (0.6.5), packed install, macOS, Node 26.10.0.
Activity
fix(core): trial-3 CLI friction: hermetic local review, one committed…