Repository navigation
fix(docs): CLI and local-review docs match the code; extension fast checks run without a pin (#994) - #1007
Merged
Conversation
…hecks run without a pin (#994) - The store, mcp, audit and auth fastChecks (and the create-extension template) printed commands a fresh site refuses with revision-pin-required. They are now the site's own npm script commands with --local-review; the generated "Schema-valid is not activatable" note names npm run validate. generate-extension-reference --check and a test hold every fast check to one the CLI accepts without a pin. - AI-AUTHORING lists expectJson, expectSignals and the steps form instead of denying expectJson. - The hermetic-run contract (EXTENSIONS.md, HostContext doc comment, store and auth READMEs, STORE.md) includes a --local-review validate or routes. - Pages and the generated AGENTS.md name all four check scripts; LOCAL-DEVELOPMENT no longer names npm scripts that do not exist. - FRAMEWORK's third-run findings are marked fixed, with their PRs. - The local-review rule is restated once, in EXTENSIONS.md "The local review loop"; other pages link to it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ference, as a shipped page must Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 #994
Each finding was checked again on current main before it was fixed.
The bug users hit: extension fast checks were refused
On a fresh site, the "Fast checks" printed in the store, mcp, audit and auth READMEs (and served by
get_extensions) could not run. I confirmed this on a store site built from the store's own example, before the fix:urlcode validate --project . --host-file host.mjs --origin …fails withHost file must be outside the application project.--project appfails withrevision-pin-required.Fix. The
fastChecksinpackages/store/src/authoring.ts,packages/mcp/src/mcp.ts,packages/audit/src/audit.ts,packages/auth/src/auth.tsand thecreate-extensiontemplate now use the site's own npm script commands:urlcode validate --local --project app --host-file host.mjs --local-reviewurlcode test --project app --host-file host.mjs --local-review(for the packages that also had a test check)Auth keeps its host-free
urlcode validate --project app. It activates nothing, so it needs no pin. The generated "Schema-valid is not activatable" note in each README anddocs/EXTENSION-REFERENCE.mdgave the same broken command. They now namenpm run validate. The descriptors and READMEs were regenerated (npm run build:addons).Guard. A new
fastCheckProblemsinscripts/generate-extension-reference.tsrejects a fast check that:urlcodecommand, or contains a placeholderserve,devorbenchmark--local-reviewscriptgenerate-extension-reference.ts --check(part ofcheck:docs) applies it to every extension.test/extension-reference.test.tscovers the first-party checks and the refusals, andtest/create-extension.test.tscovers the template.Evidence. On the store site, with no
PROJECT_SHA256orURLCODE_POLICYset:validateprintedlocal_review, then{"event":"valid","routes":1}.testpassed aGET /api/todosfixture ({"total":1,"failed":0}).data/in the site.Docs that contradicted the code
AI-AUTHORING.md said there was no
expectJsonkey. Its case table now listsexpectJsonandexpectSignals, and describes thestepsform (capture,{"restart": true}).Hermetic runs. A
--local-reviewvalidateorrouteswith no operator pin also runs on throwaway data (cli.tspasseshermetic: … || localReview !== undefined). Updated:EXTENSIONS.md"Hermetic runs and test seeds"HostContext.data/hermeticdoc comment inpackages/core/src/extensions.tsSTORE.mdThe auth README now says that only
testandauditwrite the seed. The EXTENSIONS.md andextensions.tsedits match the wording fix(core): hermetic runs enforce the data handover and clean up their directories (#976, #977) #987 uses for the same lines.Script lists. Every page and the generated
AGENTS.md(agents-guide.ts) now name all four check scripts, includingroutes.LOCAL-DEVELOPMENT.mdno longer namesserveanddoctornpm scripts: they are Makefile targets.FRAMEWORK.md third run. [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 and [Bug]: audit's gated-route-uncovered note fires when only a refusal case covers one method of a signed-in route #959 are marked fixed in Trial-3 CLI friction: hermetic local review, one committed route count, pin-free --local-review, method-level coverage notes #970, [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 in Store recipes: store-approval; booking and credits on slot grids, create.members and a unique-handle directory (#956, #957) #992, and [Bug]: pack-addons packs unbuilt add-ons, and the install error says 'has no ./extension entry' #960 in fix(scripts): pack-addons refuses unbuilt add-ons (#960) #969.
One home for the local-review rule. EXTENSIONS.md "The local review loop" is now the only full statement. Its code block gained
npm run routes. The restatements in these files became one sentence plus a link:TOOLING.md(3 places)AI-AUTHORING.md(2)llms.txtFRAMEWORK.mdLOCAL-DEVELOPMENT.mdstarters/default/README.mdThe installed
AGENTS.mdkeeps its short summary, because a site has no local copy of EXTENSIONS.md.Merges
I merged
origin/mainafter #998 landed, with no conflicts. #987 and #996 are still open. #987 changes the same EXTENSIONS.md andextensions.tslines, so whichever PR merges second may need a small manual merge.Checks
npm run verifypasses (macOS, Node 26). An earlier run caught two problems, both fixed:npm run test:packagepasses. Core packs to 1059169 bytes (4183428 unpacked, 537 files), within the budgets.Limitations
initwrites. I did not run them against real sites.expectJsonkey", so this kind of prose contradiction can still recur.🤖 Generated with Claude Code