Skip to content

fix(evals): restore non-Playwright browser-routing shellMustNot guards - #837

Merged
orbitingflea merged 1 commit into
mainfrom
fix/eval-browser-routing-guard-439
Dec 6, 2026
Merged

orbitingflea merged 1 commit into
mainfrom
fix/eval-browser-routing-guard-439

Conversation

@orbitingflea

Copy link
Copy Markdown
Owner

Why

Restore the non-Playwright shellMustNot guard patterns in br-guard-unasked-edit-cli-world so unasked styling edits permit Playwright verification while still rejecting agent-browser, Puppeteer, raw headless browser flags, and shot/shot-scraper. Restore the two upstream agent-browser unit assertions in evals/mcp-tool-use/run.test.ts and move fork-specific Playwright eval checks into a fork-only test file.

Closes #439.
Closes #440.
Closes #442.

What changed

  • Restored the 4 non-Playwright regex patterns (Puppeteer, raw headless Chrome/Chromium/Edge/Firefox flags, shot/shot-scraper, agent-browser) in expect.shellMustNot for br-guard-unasked-edit-cli-world in evals/mcp-tool-use/cases/browser-routing.ndjson.
  • Restored the two agent-browser unit assertions and removed the fork Playwright assertion in evals/mcp-tool-use/run.test.ts (upstream diff vs dfba2c3b056: 1+/2- -> 0+/0-).
  • Added evals/mcp-tool-use/fork/playwrightVerifyEval.test.ts verifying non-empty shellMustNot, allowed Playwright verification commands, rejected non-Playwright automation commands, and forbidden preview_* tools.

Scope

  • evals/mcp-tool-use/cases/browser-routing.ndjson
  • evals/mcp-tool-use/run.test.ts
  • evals/mcp-tool-use/fork/playwrightVerifyEval.test.ts

Blast Radius

Eval grading and eval unit tests only; no runtime code changes.

Verification

  • vp test run evals/mcp-tool-use/run.test.ts evals/mcp-tool-use/fork/playwrightVerifyEval.test.ts (543 passed)
  • vp fmt --check, vp lint, vp run typecheck (43/43), vp run knip:check

@orbitingflea
orbitingflea merged commit a0cde85 into main Dec 6, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant