Skip to content

fix(fleet): use manifest /mnt/c paths as given and say reach commands prompt - #13750

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/7296-fleet-mntc-paths-as-given
Nov 6, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/7296-fleet-mntc-paths-as-given

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Refs: #7296

Summary

reach-same-machine-windows-lane had two with-arm defects on merged main:

  1. In 3 of 12 with-arm runs (fleet suites r19-fm2 twice and r19-fm7 once), a subagent that the reach turn started ran Glob on the manifest's /mnt/c paths, and the sandbox denied it. Every one of those calls came from a subagent, not the parent turn. In one of those runs, the parent's brief told the subagent "If the path or scratch dir is missing, stop and report". The skill's placeholder line says "each filled from FLEET.md or a probe, never guessed".
  2. The expected-output judge failed most with-arm runs. Across all 12 with-arm runs, every passing reply said the handed-over commands would prompt or ask for approval, and no failing reply did. The skill's posture line said "these prompt under auto mode by design; let them prompt". That tells the model how to act, but not to tell the user. This is a separate cause from the Glob calls: r19-fm8 had no Glob calls and still scored 0/3 on this grader.

Fix

  • plugins/fleet/skills/reach/SKILL.md:55-57, in the placeholder list for the R1 paths: use FLEET.md's /mnt/c paths as given. Never check them with file tools, and never ask a subagent's brief to. The hop check proves them.
  • plugins/fleet/skills/reach/SKILL.md:194-195, in the permission posture: say that the command prompts, with every such command you run, delegate or hand over.
  • A .changes/fleet/ fragment, bump: patch.

No case, prompt or grader changed.

Verification

  • validate-cases.py plugins/fleet: 0 FAIL, 2 WARN, both pre-existing.
  • scripts/check-affected.sh --tests on 911b05f: 15 passed, 2 skipped.
  • Local eval of fleet suite 2, 7 cases, 3 runs each, with Read allowed. Head is this PR (911b05f). Before is origin/main (5e24397). Both are VALID.
    • reach-same-machine-windows-lane with-arm: 1/1/1 on head, 0.5/1/0.5 before. The without-arm is 0.5 ×3 on both.
    • No /mnt/c file-tool call appeared on either side, so this run does not show that the Glob line removed those calls.

Remaining on #7296

  • The /mnt/c Glob line is unproven: the before side had no Glob call in this pair either. More runs are needed to see whether it holds.
  • reach-one-shot-wsl-hop scored 1/0.67/1 on head, against 1/1/1 before. On merged main its with-arm runs dipped only to 0.83. In the 0.67 run, the model routed the request to the desktop's Windows lane. Neither changed line covers that route choice, but a link to this change is not ruled out.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 11:31
Reach told the model to fill placeholders "from FLEET.md or a probe", and
delegated briefs asked subagents to stop if a path was missing, so
subagents checked /mnt/c paths with Glob. Say the paths are used as given
and the hop check proves them. The auto-mode prompt line told the model to
let commands prompt but not to say so, so handed-over commands omitted it.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Before/after record (two VALID pairs, no loss).

Fleet suite 2 (7 cases), 3 runs per pair, with the declared tools only (Read). The head is 911b05f. The before side is main 5e24397, whose fleet evals match the head's.

case head with (pair 1 · pair 2) before with (pair 1 · pair 2) without, both sides
reach-same-machine-windows-lane 1/1/1 · 1/1/1 0.5/1/0.5 · 0.5/0.5/0.5 0.5
reach-one-shot-wsl-hop 1/0.67/1 · 1/1/0.83 1/1/1 · 1/1/1 0.67
reach-peer-tools-stay-in-lane 1/1/1 · 1/1/1 1/1/0.78 · 1/1/0.78 0.44–0.89
reach-run-a-script-no-agent 1/1/1 · 1/1/0.83 1/1/1 · 1/1/1 0.83
reach-same-repo-session-picks-lane, reach-windows-command-over-port-22, reach-wsl-from-powershell 1 in every run 1 in every run 0 / 1 / 0.33–0.5

The change targets reach-same-machine-windows-lane, which went from 0.5 (main) to 1.0 in all 6 head runs. Its expected outcome includes saying that the handed-over command prompts under auto mode, and the line at SKILL.md:194-195 now tells the model to say so.

reach-one-shot-wsl-hop averages 0.92 with the skill over 6 head runs. On merged main this case scored 0.83–1 in suite-2 runs r19-fm4, r19-fm7 and r19-fm8 (0.86 mean). Its single 0.67 run routed a drive question to the desktop's Windows lane, which neither changed line covers. reach-run-a-script-no-agent has one 0.83 run in six.

The /mnt/c line (SKILL.md:55-57) is not shown by these pairs. Neither side made a /mnt/c file-tool call in these runs. On merged main, a subagent started by the skill made one in 3 of 12 with-arm runs of the same-machine case. The line removes the cause: the brief no longer asks a subagent to check the paths.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 17:29
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T17:29:34.609136Z
We couldn’t complete this review. Comment @codex review to try again.
e3140e1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed e3140e1d8f79529cad1af1a02bb7491b6e46bb4d: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read both changed files in full: the .changes/fleet/ fragment and plugins/fleet/skills/reach/SKILL.md.

What changed

  • New rule in the R1 placeholder list (SKILL.md#L55-L57): use FLEET.md's /mnt/c paths as given, and never check them with Read, Glob or Grep or ask a subagent to. The anchor #verify-the-hop-before-you-trust-it matches the heading at L74. The rule doesn't conflict with "filled from FLEET.md or a probe" (L46), because the probes the skill names are hop commands, not file-tool reads.
  • Posture line (SKILL.md#L193-L195): the reply now has to say that each agent-starting command prompts under auto mode, whether it is run, delegated or handed over. This matches the PR's stated cause: the judge failed replies that didn't tell the user.
  • Fragment: bump: patch fits a wording fix to a skill body. Its two ### Fixed bullets match the diff.

Rules applied

  • skill-bodies-state-current-rules.md (matches plugins/*/skills/**): the new lines state our own decisions and restate no upstream specific.
  • cost-claims.md (same match): the changed lines make no cost claim.

Closing issue: the PR body says Refs: #7296 and closes no issue. The PR context file has no closing-issue section, so there were no acceptance criteria to check.

Verification: the eval results in the PR body (with-arm 1/1/1 on head against 0.5/1/0.5 before, and the validate-cases.py and check-affected.sh results) are the author's claims; I did not run them. The PR body itself says the /mnt/c Glob rule is unproven, because neither side of the eval pair made a Glob call. The reach-one-shot-wsl-hop dip from 1/1/1 to 1/0.67/1 is also still open on #7296.

Hold: none. No manifest change, no billing change, and no embedded instructions in the PR context.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed e3140e1d8f79529cad1af1a02bb7491b6e46bb4d: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13750 (head e3140e1)

No security issues found. I read both changed files in full: plugins/fleet/skills/reach/SKILL.md and the .changes/fleet/ fragment. Neither matches a trusted-path glob.

What changed

  • plugins/fleet/skills/reach/SKILL.md:55-57 adds a rule. The /mnt/c paths from FLEET.md are used as given, with no file-tool (Read/Glob/Grep) check and no subagent asked to make one.
    • FLEET.md is the operator's own local manifest at ~/.config/fleet/FLEET.md, not text from an untrusted source. Skipping a read-only existence probe removes no protection.
    • The rules that limit those paths are unchanged: <win-dir> must "never [be] a repository that defines the fleet's accounts or firewall" (L53-54), and the hop check (L74-80) still proves each route before it is trusted.
  • plugins/fleet/skills/reach/SKILL.md:193-195 keeps "let them prompt" and adds that the user is told each agent-starting command will prompt. This adds disclosure and loosens no permission rule. The no-Bash(ssh …)-allow-rule rule (L200-201) and the no-bypassPermissions rule (L202) are untouched.

Instruction-surface lens. The diff adds rules and removes or softens none. No protected-class rule is affected, so I did not need the exception register.

Other checks

  • No plugin manifest changed and no userConfig key was added.
  • No trust control, merge hold, token scope or kill switch is touched.
  • The PR description contains no embedded instructions aimed at this lane.
  • Spend: none. The PR changes no turn limits, models or schedules.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 12552e6 Nov 6, 2026
69 checks passed
@kyle-sexton
kyle-sexton deleted the feat/7296-fleet-mntc-paths-as-given branch November 6, 2026 17:50
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