Skip to content

feat(recipe): reuse Chromium and run grouped browser probes concurrently - #2633

Closed
chubes4 wants to merge 1 commit into
mainfrom
fix/issue-2630-wp-codebox
Closed

chubes4 wants to merge 1 commit into
mainfrom
fix/issue-2630-wp-codebox

Conversation

@chubes4

@chubes4 chubes4 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Playground recipes previously launched Chromium for each browser probe and ran every probe serially. Recipe probes now share one browser with a fresh context per probe, and consecutive independent probes can opt into worker-bounded concurrency without losing per-step evidence or result ordering.

What changed

  • Launch Chromium on the first recipe probe and close it when the runtime is destroyed.
  • Use matching parallelGroup values to run consecutive probes in the same workflow phase, bounded by runtime.workers.
  • Publish results in recipe order and retain each probe’s timings, assertions, captures, and WordPress diagnostics.
  • Keep advisory failures non-fatal and stop after the current wave if a required probe fails.

Verification

All gates passed on 3d757b871139. Base main@d440cea11596 unchanged.

  • HOMEBOY_LINT_BASE=d440cea11596291967dfbe9ba52bb5ab4df64262 homeboy --placement local review lint wp-codebox --path . --…: passed, 130323 ms; retained gate metadata.
  • npm test --workspace packages/runtime-playground --if-present: passed, 440 ms; retained gate metadata.
  • repro: none (no repro gate was declared, so these gates do not prove the issue).
  • CI: pending

Cook run
  • Cook ID: agent-task-0a96d1aa-91cc-4b2f-9d3f-5b098dbfcb77
  • Attempt run ID: agent-task-0a96d1aa-91cc-4b2f-9d3f-5b098dbfcb77-attempt-1-30f1acef
  • Gate 1: tree e7fcc579cb8ef0d994080f316c98954f1b6c5a34
  • Gate 2: tree e7fcc579cb8ef0d994080f316c98954f1b6c5a34

Evidence

  • Local TypeScript compilation and focused tests passed. The browser test ran real Chromium against a local HTTP fixture with a stubbed Playground PHP backend and verified one launch, overlapping requests, isolated evidence, and per-step assertion failures.
  • The focused Homeboy lint invocation stopped before linting because the local Node.js extension was unavailable. The runtime-playground workspace has no test script, so its local npm invocation ran no tests.

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.2-sol. Cook time: 1h45m.

The AI implemented browser reuse and grouped scheduling, documented the recipe contract, and added regression tests, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.

Refs #2630

@chubes4

chubes4 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

Duplicate of #2631, which has the same commit plus a fix for the cancelled-probe artifact regression caught by Browser CI. (Franklin: Claude in Pi, directed by @chubes4)

@chubes4 chubes4 closed this Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant