Repository navigation
feat(mcp): authoring runners review an edited extension site locally (#940) - #962
Merged
Merged
Conversation
…940) run_validate, run_test and run_audit always pass --local-review to their CLI child. With no operator pin reaching the child (no forwarded --policy, no PROJECT_SHA256) the run is pinned to the current revision for that run only, reads no policy (no grant) and defaults the origin to http://localhost, so an agent's edit is checked without a new pin. The CLI applies the same #932 rule, so an operator pin always wins and serving never accepts the flag. No tool argument shapes the command line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 20:06
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nerate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nerate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nerate references 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 #940
Design
run_validate,run_testandrun_auditnow always pass a fixed--local-reviewto their CLI child. No tool argument was added.Why not a
localReview: booleanargument:falsebranch would only ever producerevision-pin-requiredafter an edit (the pin goes stale on the first edit), so there is nothing for the agent to decide.Boundary (unchanged, enforced by the CLI):
--policynorPROJECT_SHA256reaches the child: the run is pinned to the current revision for that run only, reads no policy (no binding or egress grant) and defaults the origin tohttp://localhost; stderr carries alocal_reviewevent.serve/devstill refuse the flag. The in-processrun_testshas no such mode and still needs the pin.The three tool descriptions state this exactly. Tool count is unchanged.
Changes
packages/core/src/mcp-authoring.ts: runner args and tool descriptions.test/extensions.test.ts: spawnsurlcode mcp --allow-authoring --host-fileagainst a composeHost site, edits the project, and asserts all three runners pass with alocal_reviewevent at the new revision; with a stalePROJECT_SHA256all three refuse with a pin mismatch and nolocal_review. Confirmed the test fails without the change.scripts/package-audit.ts: core unpacked budget 3997 -> 4000 KiB (measured 1034337 packed / 4092005 unpacked, 528 entries on Node 26; packed keeps ~3 KiB over Node 24's +800 bytes).Evidence
npm run verify: green.npm run test:package: green.Unverified (from the issue): whether any MCP client relied on the previous refusal as a signal.
🤖 Generated with Claude Code