Repository navigation
feat(mcp): in-process run_tests and get_context's commands use the local review (#964) - #983
Merged
Merged
Conversation
…cal review (#964) - run_tests: with neither the server's --policy nor PROJECT_SHA256, pin that one run to the project's current revision, read no policy, default the origin to http://localhost, and return localReview plus a local_review event. An operator pin always wins; a stale one still refuses. - get_context (whole-project, --task redirects and bootstrap): the validate, test, audit and routes commands end with --local-review, matching the generated npm scripts. Serving commands never carry it. - The local_review note is shared (localReviewNote) between the CLI and MCP. - Docs: TOOLING, EXTENSIONS local review loop, AI-AUTHORING, llms. - Package budget raised for the added prose and code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 22:05
…ate 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 #964
What changed
In-process
run_testsfollows the CLI runners' local-review rule (Local edit loop needs a new revision pin on every edit; plan-feature false positive on 'team' and no scheduling/credits recipes #932, feat(mcp): authoring runners review an edited extension site locally (#940) #962). If the server has no--policyandPROJECT_SHA256is unset, each call:http://localhost;localReview: {revision, origin}field and alocal_reviewevent. The event uses the same note as the CLI, which is now shared aslocalReviewNoteincli-command-metadata.ts.An operator pin always wins. A stale
--policyorPROJECT_SHA256still refuses withExtension revision pin mismatch, and the refusal carries no local-review event.get_context: the validate, test, audit and routes commands now end with--local-review, the same as the generated npm scripts. This covers the whole-project context,--task redirectsandbootstrap: true(validate and test). A singlelocalReviewFlagincontext.tsfeeds all of them andprojectScripts(). The serving commands (start,dev) never carry the flag.Tool descriptions: updated for
run_testsandget_context. Tool schemas and counts are unchanged, so the agent-facts counts don't change.Docs: TOOLING (context commands, inspection without a pin, the MCP runner section), EXTENSIONS local review loop, AI-AUTHORING,
llms.txt, and the regeneratedllms-full.txt.Package budget: 1049077 packed / 4136907 unpacked bytes on Node 26. The packed budget goes to 1029 KiB and unpacked to 4043 KiB, which leaves room for Node 24's roughly 800 extra bytes plus about 3 KiB.
Tests
test/extensions.test.ts: the MCP run_validate/run_test/run_audit cannot review an edited extension site without a pin (follow-up to #932) #940 MCP subtest now also callsrun_testsafter an edit. With no pin it passes and reportslocalReviewand alocal_reviewevent at the new revision. With a stalePROJECT_SHA256it refuses, and with a stale--policygiven to the server it also refuses.--local-review. The bootstrap test also asserts thatstartdoes not carry it.npm run verifyandnpm run test:packagepass locally (macOS, Node 26).Left as is
prerequisitesstill lists--originwhen a project declares extensions and no origin was given. That advice is still true for serving, but a local-review check no longer needs the origin.🤖 Generated with Claude Code