Repository navigation
fix(fleet): remove the Windows relay prompt file on every exit and refuse a dash-led background prompt - #16641
Conversation
…fuse a dash-led background prompt Closes #16638 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmchG8Tg8XKYxMrgKKq
|
Owner: the session plugin-profiles-build-6, working for the control-hub session "Plugin Presets". Ready steps: branch current with main (head 92bdc5e); code and security review left to their CI lanes (both healthy); tests run locally (eval-suite validator, as-of recheck gate, pre-push check-affected, and every exit path of the script run on a Windows lane as the body records). Review findings go through Plugin Presets. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #16641 (incremental, 92bdc5e → db6980c)No security issues found. This was an incremental review covering only the changes since the last head. I read every hunk of all 15 listed files in What changed:
Instruction surface: the skill reference narrows where the guard goes and adds a condition that still fails closed. No rule is removed or weakened, so there was nothing to check against the instruction exception register. Trust controls: none of the trusted-trigger, token-request, kill-switch, broker or merge-hold code is touched. Untrusted text: nothing in the prior-findings file directs the review. I did not open the PR context file this round, so it was not checked. critical-findings: 0 |
|
claude-review reviewed Code review: PR #16641 (blocking only)This lane already reviewed an earlier head, Earlier findings. The five inline findings from the last round were all resolved in the push ending at
Closing issue #16638, done-when items:
The exit-path table and the The changelog fragment's The PR context and the settled threads contain no embedded instructions. This change spends nothing. I started no subagents, so there was no separate verifier pass. Verifier dropped 0 of 0 candidates. |
…rade each Windows relay guard Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmchG8Tg8XKYxMrgKKq
Closes #16638
Summary
Closes the three review notes left on #16631's Windows-lane profile start in
plugins/fleet/skills/reach/reference/relay.md. A background prompt that begins with-no longer reachesclaude.exe. The prompt file is removed on every path the script exits by. An eval grader fails a background prompt passed outsideQ.Fix
-,$stopis set to "not started: a background prompt must not begin with -", and the section says to begin such a prompt with a word instead. Basis: on R1,Q '--version'passed as the only argument madeclaude.exeprint its version, so a quoted argument starting with-is read as an option. A-pprompt arrives on stdin and is not affected.$stopinstead of exiting where it happens, andRemove-Item $p -ErrorAction Ignoreruns on a line of its own before the exit line. Two parts of this are new:argvline presets$stopand clears it only when it findsclaude, so a launch that prints no JSON stops instead of starting without the profile.Start-Processreturns nothing.<name>overwrites the file, and it holds only the prompt this session already wrote.background-prompt-through-qinreach-start-in-profile-windowsfails an answer that starts the background session with& $claude … --bgor appends[IO.File]::ReadAllText($p)after theQ-joined arguments. Its pass samples are the documented-pscript and its background form.launch-refusal-stopsnow matches the$LASTEXITCODEguard followed byexit 1anywhere after it, because the refusal now exits through$stop.relay.md, so they match the documented text.Review round 1 (code lane):
if (-not $stop -and …StartsWith('-')), so it cannot overwrite an earlier stop. Rerun on R1:launch-refusal-stops. The match is now tied to the guard's own body ($stop =orexit 1inside its braces). A new fail sample has a guard that prints but does not stop.background-dash-guard(required when an answer uses--bg) andremoves-prompt-file-before-exit(aRemove-Item $pline of its own). Each has a fail sample.Done-when, item by item:
-cannot be read as an option. Shown on a Windows lane (R1) with--version: the guarded script printed the stop line and exited 1 without startingclaude.exe, and the unguardedQ '--version'printed the version.reach-start-in-profile-windowsfails an answer that passes the background prompt outsideQ, with pass and fail samples.Verification
All on R1 (melo-lap-001's Windows lane; Windows PowerShell 5.1; Claude Code 2.1.325). The script lines were taken from
relay.md, with--versionin place of-p -n <name>so no agent started, and a stubprofiles.mjsfor the launch outcomes:argv)claude.exemissing--version, with the new lineThe stub and probe files were removed. Other checks:
validate-cases.py plugins/fleet/evals: no FAIL.scripts/check-as-of-recheck.sh --check: exit 0.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_015XWwmchG8Tg8XKYxMrgKKq