Repository navigation
Actionable missing context: env fallback, one runnable command; plan_feature list queries (#834) - #905
Merged
Conversation
… list-query plan (#834) - The CLI reads an absent --origin/--policy from URLCODE_ORIGIN/URLCODE_POLICY, so the generated npm scripts (unchanged: no variable syntax is portable across npm's sh and cmd shells) run with operator context from the environment; the MCP server forwards the resolved values to its runners. - The origin and revision-pin refusals carry codes (origin-required, revision-pin-required) and the CLI answers them with one complete command: the actual invocation plus explicit placeholders for exactly what is missing, also in the error's command field. Nothing creates or repins a policy. - plan_feature maps list/filter/sort/paginate vocabulary to the store-crud recipe, store filterable/sortable, route query parameters and a declarative list-query outline (auth too for owner lists); the tag fallback now needs two shared tags, so a single generic word such as "status" no longer selects health-page. - Packed acceptance test: an auth site's npm run validate names one command without context and passes with it; MCP run_validate passes with it. - Docs: TOOLING operator-context section and planner vocabulary, AI-AUTHORING, starter README, llms-full. Package budget raised for main's existing overage plus this change (measurements in package-audit.ts). Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 12:45
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.
Closes the remaining #834 gaps found by the audit.
1. Missing context gives one runnable command
--originis absent the CLI readsURLCODE_ORIGIN; if--policyis absent it readsURLCODE_POLICY, on the commands that accept it. A flag always wins. The MCP server uses the same fallbacks and forwards them to its runners.URLCODE_ORIGIN=… URLCODE_POLICY=… npm run validateworks.origin-required, and a missing revision pinrevision-pin-required. The message rebuilds the actual invocation with<https://your.site>/<operator/policy.json>placeholders for only what's missing, after "Run:", and it is also returned as acommandfield.2. Acceptance test
In
test/addons.integration.ts, a packed site runsextensions add auth(the same asinit --with auth, split so the core is the packed build):npm run validatewith no context → one command with both placeholders;URLCODE_POLICY→ one command naming only--origin;urlcode mcp --allow-authoringwith the same env →run_validateexits 0.3. plan_feature list queries
store-crudrecipe with theparameterscapability, and outlinefilterable,sortableandlimit/cursor. Owner vocabulary adds auth.health-page.Evidence (macOS, Node 26)
npm test1175,npm run verifyandtest:packagepass.Limits:
🤖 Generated with Claude Code