Skip to content

MCP in-process run_tests and get_context's suggested commands lack the local review (follow-up to #940) #964

Closed

Description

@jimhoyd

Follow-up to #940 (PR #962). Observed in the PR's own report and docs; not reproduced separately.

  • In-process run_tests has no local review. run_validate, run_test and run_audit now pass --local-review to their CLI child, but the MCP server's in-process run_tests (hermetic since feat(core,auth,store,audit)!: hermetic test runs with declared seeds; expectJson; resolved captures in failures (#930) #947) still needs a revision pin, so an agent editing an extension site gets a pin refusal from that one tool after every edit. Expected: the same rule as the CLI runners. With no operator pin, pin to the current revision for that run only, read no policy (no grants), use a loopback origin and report a local_review event. An operator pin always wins.
  • get_context suggests commands without --local-review. The CLI commands it recommends for validate/test/audit on an extension site fail with revision-pin-required after an edit, although the generated npm scripts and the MCP runners pass the flag.

Boundary to keep: serving (serve, dev) never accepts local review; a stale operator pin still refuses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions