Skip to content

perf(playground): skip staging for disposable ZIP plugin mounts - #2632

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-2629-wp-codebox
Dec 4, 2026
Merged

chubes4 merged 1 commit into
mainfrom
fix/issue-2629-wp-codebox

Conversation

@chubes4

@chubes4 chubes4 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Playground no longer copies safe, run-owned ZIP plugin extractions into readonly staging. ZIP plugins still activate and load, while caller-owned plugin directories remain isolated from runtime writes.

What changed

  • Mount run-owned ZIP extractions containing only regular files and directories directly, with zero staged bytes.
  • Keep readonly staging for caller-owned sources and ZIPs containing symlinks.
  • Keep directly mounted extractions alive through runtime teardown, including on failure.
  • Add recipe-run coverage for plugin activation, staging metrics, source isolation, and extraction cleanup.

Verification

All gates passed on 0396d6a56f18. Base main@d440cea11596 unchanged.

  • HOMEBOY_LINT_BASE=d440cea11596291967dfbe9ba52bb5ab4df64262 homeboy --placement local review lint wp-codebox --path . --…: passed, 121753 ms; retained gate metadata.
  • npm test --workspace packages/runtime-playground --if-present: passed, 2039 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-754e03ab-c857-4f54-a3f4-d3e01de2b715
  • Attempt run ID: agent-task-754e03ab-c857-4f54-a3f4-d3e01de2b715-attempt-1-f22a1fe2
  • Gate 1: tree f636b865394eea5ccff8e17e96b47963c810ceeb
  • Gate 2: tree f636b865394eea5ccff8e17e96b47963c810ceeb

Evidence

  • Local TypeScript build, focused lint, ZIP preparation checks, and readonly mount tests passed. The readonly mount test used a locally seeded WordPress archive after the direct fetch timed out.
  • Local recipe-run integration passed: both plugins activated and loaded, the ZIP mount staged zero bytes, the directory mount staged its contents without changing the host source, and the extraction was removed after the run.
  • The runtime-playground workspace declares no test script, so its conditional npm invocation ran no tests. Full gate verification is left to Homeboy.

AI disclosure

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

AI traced source ownership and runtime teardown, implemented the staging bypass, 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 #2629

@chubes4
chubes4 marked this pull request as ready for review December 4, 2026 00:13
@chubes4
chubes4 merged commit 55fbc5d into main Dec 4, 2026
4 of 5 checks passed
chubes4 added a commit to Extra-Chill/homeboy that referenced this pull request Dec 4, 2026
Pins WP Codebox
[v0.36.0](https://github.com/Automattic/wp-codebox/releases/tag/v0.36.0),
which speeds up the recipe startup and probe phases of rig gates:

- Automattic/wp-codebox#2632: zip-extracted extra plugins are mounted
directly instead of being staged as readonly copies first (measured at
16.7 s for 399 MB on the extrachill-network gate).
- Automattic/wp-codebox#2631: recipe browser probes share one Chromium,
and an opt-in `parallelGroup` runs probes concurrently, bounded by
`runtime.workers`.

Verified: `wp-codebox-doctor-smoke.sh` passes.

AI disclosure: Claude (Anthropic) in the Pi coding agent (Franklin),
directed by @chubes4. AI made the version bump.
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