Repository navigation
fix(sandbox): hand Pi its instructions on the command line - #5495
Open
yannickmonney wants to merge 1 commit into
Open
yannickmonney wants to merge 1 commit into
yannickmonney wants to merge 1 commit into
Conversation
The Pi wrapper staged the platform's instructions in Pi's config dir for Pi to discover there. It now stages them outside that dir and names the file with --append-system-prompt, so the append Pi uses is exactly the platform's. The text stays off argv, and a resumed turn reads the current exec's instructions. Observed with the pinned Pi 1.0.1 against a loopback model, on a fresh turn and a resumed one whose instructions changed. The wrapper test checks the file the command line names, and the image check asserts the exec's instructions in every model request.
yannickmonney
enabled auto-merge (squash)
November 23, 2026 08:03
auto-merge was automatically disabled
November 23, 2026 10:34
Pull request was closed
yannickmonney
enabled auto-merge (squash)
November 23, 2026 10:34
yannickmonney
disabled auto-merge
November 25, 2026 02:24
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Pi wrapper stages the platform's instructions outside Pi's config dir and names the file with
--append-system-prompt, so the append Pi uses is exactly the platform's. The text stays off argv, and a resumed turn reads the current exec's instructions. The harness comments, the sandbox runtime README and the wrapper's automation row now describe it.How it was verified
harness-wrapper-exec.test.tschecks the file the command line names, on a fresh and a resumed turn, and that no flag is passed when a turn carries no instructions. The first two cases fail against the previous wrapper.process-reaper.test.ts, which passes alone and on the rerun), the platform's harness tests, typecheck and lint of both workspaces, oxfmt, ruff, opengrep andlint:manual.