Repository navigation
fix(playground): honor declared sourceRoot as the readonly mount symlink boundary - #2614
Conversation
… not an error Agent-task recipes stage prepared plugin copies while keeping the original sourceRoot. Restore the existing contract: a sourceRoot that does not contain the source is ignored, and only a containing sourceRoot widens the readonly symlink boundary.
|
End-to-end check through the CLI ( AI disclosure: Claude Opus (Pi, via Roadie) reviewed this, wrote the follow-up commit, and ran the end-to-end check. The initial implementation is GPT-6.2 Sol (Homeboy Cook). |
Summary
In a CLI
recipe-runwith the monorepo fixture,wordpress.run-phpread/wordpress/wp-content/plugins/myplug/vendor-link/lib.phpand printedVIA_LINK=yes CONTENT=library. Mounting the same plugin withoutsourceRootprintedVIA_LINK=noand recordedreadonly-mount-symlink-skippedwithreason: source-escape, confirming that the wider boundary is opt-in.What changed
sourceRootthrough CLI and runtime-core plugin preparation to readonly mount staging.sourceRootkeep the plugin directory as their containment boundary.Verification
All gates passed on
a5b04b9. Basemain@27c50a5unchanged.HOMEBOY_LINT_BASE=27c50a58c9759dd030313d7ba3f3655147bf96fa homeboy --placement local review lint wp-codebox --path . --…: passed, 85101 ms; retained gate metadata.npm run build: passed, 602 ms; retained gate metadata.npx tsx --test tests/playground-readonly-mounts.test.ts: passed, 11361 ms; retained gate metadata.Cook run
agent-task-5323920f-ea42-405b-be7f-aa6323a97e14agent-task-5323920f-ea42-405b-be7f-aa6323a97e14-attempt-1-186699be2811f48898ed891ee3a6ce93003da57876d24c222811f48898ed891ee3a6ce93003da57876d24c222811f48898ed891ee3a6ce93003da57876d24c22Evidence
source-escapewithout it. An unrelated root was rejected withinvalid-source-root.AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.2-sol. Cook time: 27m53s.
The AI traced plugin preparation, implemented containment and validation, added regression coverage, and verified the behavior through the CLI, 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 #2613