Repository navigation
Trial-3 CLI friction: hermetic local review, one committed route count, pin-free --local-review, method-level coverage notes - #970
Merged
Conversation
… route count, pin-free --local-review, method-level coverage notes - #954: validate and routes under --local-review with no operator pin activate extensions on a fresh temporary data directory, like test and audit. The pinned validate still checks the site's data/ that serve uses. - #955: the audit reads the expected route count from the project's committed tests/audit.json when --expect-routes is absent. init writes it; the npm script, AGENTS.md and the workflow carry no count; extensions add|remove move that one file. The report gains expectedRoutesFrom. - #958: explain, context, plan-feature, review, report and openapi accept --local-review and ignore it; other refusals name the command. - #959: coverageNotes adds method-without-success for uncovered methods of a route whose other methods are covered, listing the refusal-only cases; gated-route-uncovered fires only when no method of the gated route is covered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 20:49
…erate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes four CLI findings from the third agent workflow trial (tracking issue #961).
Fixes #954
Fixes #955
Fixes #958
Fixes #959
Design
#954: validate needed
urlcode-auth migrate. Rule: a local review never touches the site's data. Whenvalidateorroutesruns with--local-reviewand no operator pin, the extensions activate on a fresh temporary data directory, with no seed. This is howtestandauditalready run (RIM-EXT-HERMETIC-001). The generatednpm run validatetherefore needs no migration or secret. The serving checks are unchanged: with--policy,URLCODE_POLICYorPROJECT_SHA256,validateactivates on<site>/dataexactly asservewill, so a missing migration or secret still surfaces before serving.test:proofstill asserts that. The RIM card, READINESS and the local review loop state the split.#955:
--expect-routesin three files. The count is now committed once, in the project'stests/audit.jsonas{"expectRoutes": N}.urlcode auditreads the file when--expect-routesis absent, and the flag still overrides it. The report'sexpectedRoutesFromsays which source applied.invalid-audit-expectation.initwrites the file with0(it is in the starter). The generated npm script, AGENTS.md and the starter workflow carry no count.extensions add|removemove that one file and name it.tests/, outside the project revision, so changing the count needs no new pin.expect-routesinput still overrides the file. When the input is empty, the audit reads the file.contextomits the flag when the file exists.The audit still catches an unexpected route-count change: the value is reviewed and committed, never derived from the YAML.
#958:
openapi --local-reviewrefused.explain,context,plan-feature,review,reportandopenapineed no pin. They now accept the flag and ignore it, so the flag the check scripts pass works on every check.serveanddevstill refuse it: "<cmd>does not take --local-review: serving always needs the reviewed revision pin". Every other command refuses it and names itself and the commands that accept it.#959: misleading
gated-route-uncovered. A new note,method-without-success, covers a route that some case reached (another of its methods is covered). It lists the uncovered{route, method}pairs, and incasesthe fixture cases that sent those methods only an asserted refusal (status 400 or more).gated-route-uncoverednow fires only when no method of the gated route is covered.Evidence
npm run verifyandnpm run test:packagepass locally (macOS, Node 26).test/extensions.test.ts: pin-free acceptance, refusals naming the command, and hermetic local review vs. the pinned validate, using a stand-in extension that refuses unset site data.test/readiness.test.ts: the committed count, the flag override and malformed files.test/addons.test.ts: the one file moves.test/authenticated-fixtures.test.ts: the refusal-only PATCH case.packages/store/test/recipes.test.ts: the configured database is never created by the local-review loop.Limitations
validate --local-reviewwas not run against a real auth site with an unmigrated database.validateno longer surfaces a missing migration. That now happens at the pinnedvalidate,devorstart, and the auth scaffold note says so.🤖 Generated with Claude Code