Repository navigation
Description
Runtime revision and environment
Docs on origin/main fe5d03f0. Found in a coherence audit of the docs edited by the ~40 PRs merged on 2026-09-29 (hermetic runs and seeds, --local-review, tests/audit.json, expectJson). Docs and descriptor strings only.
Minimal reproduction
Each finding cites origin/main file:line, the statement, and what the code does.
-
AI-AUTHORING says
expectJsondoes not exist, then tells the reader to use it.docs/AI-AUTHORING.md:252-266: "A case has these keys and no others", followed by a table ofpath, status, method, headers, body, expectHeaders, expectBody, then "There is nojsonorexpectJsonkey: … assert a JSON answer with its exact text inexpectBody."- The same page at
:299-303says to "Assert a JSON body that carries generated ids withexpectJsonpointers".llms.txt:116-118andstarters/default/AGENTS.md:62say the same. - Code:
schemas/requests.schema.jsoncase properties arebody, expectBody, expectHeaders, expectJson, expectSignals, headers, method, path, status, plus thesteps/capture/restartshapes. The table is also missingexpectSignalsand thestepsfixture form. This file is installed (package.jsonfiles) and is the first pagedocs searchcovers, so agents read it.
-
The hermetic-run lists leave out a local review, but the code makes it hermetic too.
- Code:
packages/core/src/cli.ts:410passeshermetic: hermeticHostCommands.includes(command) || localReview !== undefined. Sovalidateandroutesunder--local-reviewwith no pin getHostContext.hermetic === trueand a temporarydata.docs/READINESS.md:441-445and the RIM card (docs/RUNTIME-IMPLEMENTATION.md:99) say this correctly. docs/EXTENSIONS.md:908-918(### Hermetic runs and test seeds, the extension-author contract) lists only "urlcode test,urlcode audit,urlcode benchmarkand the MCP server'srun_tests" and documentshermeticas "true for test, audit, benchmark and MCP run_tests". An extension author following it would not expecthermetic: trueduring avalidaterun. The source doc comment it mirrors,packages/core/src/extensions.ts:586-597(HostContext.data/hermetic), says the same, and putsvalidateandrouteson<site>/datawithout qualification.- The same omission appears in
packages/store/README.md:165-166,packages/auth/README.md:89anddocs/STORE.md:1842-1845("urlcode test,auditandbenchmark… use a fresh database").
- Code:
-
Pages disagree on which npm scripts pass
--local-review.initwrites it on four:validate,test,routes,audit(packages/core/src/context.ts:163-165).- Four, as in the code:
docs/TOOLING.md:110-111,docs/EXTENSIONS.md:1853-1854,docs/LOCAL-DEVELOPMENT.md:137-138,starters/default/README.md:43-44. - Three (no
routes):llms.txt:34,docs/AI-AUTHORING.md:52,docs/FRAMEWORK.md:310, and the code blocks atdocs/EXTENSIONS.md:1857-1859andstarters/default/AGENTS.md:56-58(generated frompackages/core/src/agents-guide.ts:96-98). docs/LOCAL-DEVELOPMENT.md:64-66says a site has "npm scripts for its owndev,serve,validate,testanddoctorcommands; both pass--project app --host-file host.mjs". The site has noserveordoctornpm script (it hasstart,routesandaudit), and the Makefile'svalidate,test,routesandauditalso add--local-review(starters/default/Makefile).
- Four, as in the code:
-
The published extension "Fast checks" are refused on a fresh site.
packages/store/README.md:543andpackages/mcp/README.md:493giveurlcode validate --project . --host-file <host.mjs> --origin <origin>and the matchingtest.packages/audit/README.md:207gives thevalidateform.packages/auth/README.md:217givesurlcode validate --local --project app --host-file host.mjs --origin <origin>.- These are generated from
fastChecksinpackages/store/src/authoring.ts:29,packages/mcp/src/mcp.ts:251,packages/audit/src/audit.ts:22andpackages/auth/src/auth.ts:63, and served byget_extensions. None passes--local-reviewor a pin.docs/TOOLING.md:167-168saysvalidate(with or without--local) andtest"still need the reviewed pin", and the CLI refuses withrevision-pin-required. Every other check command the runtime emits now ends in--local-review(context.ts:224-227, MCP in-process run_tests and get_context's suggested commands lack the local review (follow-up to #940) #964). The four packages also use two different project paths (.andapp).
-
FRAMEWORK's third-run findings read as still open, but most are fixed.
docs/FRAMEWORK.md:597-605lists [Gap]: npm run validate needs urlcode-auth migrate on a fresh site, though test and audit are hermetic #954 (validate needsurlcode-auth migrate), [Gap]: Each added route means hand-editing --expect-routes in package.json, AGENTS.md and the workflow #955 (hand-edited--expect-routes) and [Bug]: audit's gated-route-uncovered note fires when only a refusal case covers one method of a signed-in route #959.:634-641lists [Bug]: store-booking and store-credits recipes predate interval length/step, create.members, the directory and hermetic tests #956, [Gap]: No approval recipe; plan-feature lists booking and credits recipes for an approval goal #957 and [Bug]: pack-addons packs unbuilt add-ons, and the install error says 'has no ./extension entry' #960 as "the remaining findings". [Gap]: npm run validate needs urlcode-auth migrate on a fresh site, though test and audit are hermetic #954, [Gap]: Each added route means hand-editing --expect-routes in package.json, AGENTS.md and the workflow #955, [Bug]: openapi refuses --local-review with a serve/dev message, though it needs no pin #958, [Bug]: audit's gated-route-uncovered note fires when only a refusal case covers one method of a signed-in route #959 and [Bug]: pack-addons packs unbuilt add-ons, and the install error says 'has no ./extension entry' #960 are closed. Only [Bug]: store-booking and store-credits recipes predate interval length/step, create.members, the directory and hermetic tests #956 and [Gap]: No approval recipe; plan-feature lists booking and credits recipes for an approval goal #957 are open.- The same section marks fixed items "Since fixed" (
:550-557) and "Both are declarations now" (:628-632), so readers will take the unmarked items as still open.llms-full.txtcarries this text too.
-
The local-review rule is restated on about ten pages, which is how items 3 and 4 drifted.
- The full rule (pin to the current revision, no grants,
http://localhost, throwaway data, read-only commands ignore the flag,serve/devrefuse it, operator pin wins, MCP runners pass it) is written out indocs/EXTENSIONS.md:1848-1916(the authoritative section),docs/TOOLING.md:109-117and:174-184and:1376-1383and:1404-1410,llms.txt:34-39,docs/AI-AUTHORING.md:52-56and:694-699,docs/FRAMEWORK.md:309-313,docs/READINESS.md:441-445,docs/LOCAL-DEVELOPMENT.md:137-140,starters/default/README.md:42-51andstarters/default/AGENTS.md:62. - Per CONTRIBUTING's "link to authoritative facts rather than copying them", most of these could be one sentence plus the
#the-local-review-looplink.
- The full rule (pin to the current revision, no grants,
Relevant output
What I verified: items 1-4 against the cited source and schema lines. Item 5 against the GitHub issue states on 2026-09-29.
Not verified: I did not run the refusal in item 4. The conclusion comes from docs/TOOLING.md:167-168 and the pin check in cli.ts/operator-host.ts. Whether urlcode validate --project app without --host-file (auth's first fast check) passes on an auth site depends on the non---local path, which I did not trace.
Activity
fix(docs): CLI and local-review docs match the code; extension fast c…