Repository navigation
refactor(mcp): one fixture-execution core behind run_tests and run_test (#1095) - #1113
Merged
Merged
Conversation
…e test/run_test (#1095) The local-review rule, its local_review event, the host revision pin, the hermetic per-run host and the CLI's failure-event filter now live in fixture-run.ts. urlcode test (which run_test spawns) and the in-process run_tests both use it, so a fix like #778/#964 lands once. Each tool keeps its name, input schema, result contract, environment, timeout and host lifetime. docs/TOOLING.md says when to use which. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 30, 2026 21:36
…ner-1095 # Conflicts: # docs/RUNTIME-IMPLEMENTATION.md
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 #1095. Items 1 and 3 are in #1103 and #1107; this is item 2.
What changed
packages/core/src/fixture-run.tsis the shared fixture-execution core:localReviewFor: the no-operator-pin 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/MCP run_validate/run_test/run_audit cannot review an edited extension site without a pin (follow-up to #932) #940/MCP in-process run_tests and get_context's suggested commands lack the local review (follow-up to #940) #964).localReviewEvent: thelocal_reviewevent.hostRevision: which revision the operator host loads under.runHermeticFixtures: the per-run hermetic host plusrunProjectTests.reportedWithoutVerbose: which per-case events the CLI prints.urlcode test(which MCPrun_testspawns) and MCPrun_testsboth use it. A fix to review, pin or fixture outcome now lands once.run_tests: in-process, returnstotal/failed/localReview/events.run_test: still spawns the CLI with a minimal env, 2-minute SIGTERM/SIGKILL deadline and 32 KiB bounded output (mcp-authoring.tsis untouched).run_testsloads a host per call inside the server.run_testspasses no hostpluginsand no--alias-origin, whileurlcode testdoes.docs/TOOLING.mdhas a new "run_testsorrun_test?" note.RIM-EXT-HERMETIC-001source map lists the new module.Lines
cli.ts/mcp.ts, 18 changed or added there.Tests
test/fixture-run.test.tsruns one failing and one passing fixture through both tools in one session. It asserts:{total:2,failed:1}run_tests' events under the shared filter (the same failing case)local_revieweventnpm run typecheck,npm run verifyandnpm run test:packagepass locally (macOS). No independent security review.🤖 Generated with Claude Code