Repository navigation
fix(harness-ops): apply the Claude Code 2.1.325 sandbox and mid-turn handoffs - #17615
Conversation
…handoffs Items 2, 3 and 5 of #16035, and the host evidence for item 17. - behavior-probes record 8: sandboxed Bash follows the normal permission flow unless sandbox.autoAllowBashIfSandboxed is true. The two auto-mode sandbox cases set it, and a default-mode pair measures the default. A 2.1.329 live run passed all four. - observability items: a user_prompt event marked delivery.mode mid_turn belongs to the running turn, so the turn count leaves it out. The test fixture gains a mid-turn event that keeps item A at 2 turns. - docs/upstream/claude-code.md: Corrected rows for 325-096/097 and 325-060, and a Probes row for the inventory drift note, not settled. Refs: #16035 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
Refs: #16035 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
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. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: no security issues foundThis pull request does three things:
What I checked:
There are no manifest lines and no uncovered rules. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read all 17 files on the to-read list. The two copies listed in What the PR changes (Refs #16035, items 2, 3, 5, plus a record for 17):
Loosened checks: none.
Loosened-check verdict: fail (default; the prompt had no Closing issue: the PR context has no Not independently verified: the live probe runs, the OTEL store counts (156 of 8741 events), the No manifest or Verifier dropped 0 of 0 candidates. |
Post-merge mutation testingKilled 0, survived 3, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Refs: #16035
Summary
Part 2 of the Claude Code 2.1.325 handoffs. It delivers the host-run items that
#17591 left: items 2 and 3
(sandbox probe record and fixtures) and item 5 (observability turn count). It records the host
evidence for item 17 (inventory native-drift note), which stays open. The read marker in
docs/upstream/claude-code.mddoes not move: see Remaining.Fix
the normal permission flow unless
sandbox.autoAllowBashIfSandboxedis true. The two auto-modesandbox cases set it in their
settings.json, the remedy the handoff names. A pass in auto modecannot tell an auto-allow from a classifier allow, so a new default-mode pair measures the
default:
default-mode-write-denied(sandbox only, expect deny) with its controldefault-mode-write-autoallow-runs(auto-allow on, expect ran). The pair is there becauserecords.mdholds that "a record whose case cannot be rerun is a memory, not a record", and thecorrected claim is about the default.
/harness-ops:observability itemsstops counting a message sentmid-turn as a turn.
item-rollup.sqlreadsdelivery.modeand leavesmid_turnrows out of theturn count; a prompt with no
delivery.modestill counts.item-rollup.shhelp,SKILL.mdandthe eval expectation say so, and the test fixture gains a mid-turn event that leaves item A at 2
turns.
reports
degraded, notbroken. The lane's note carried no CLI version, so the lane's ownextraction read nothing, and that cause is still open. The same drift key recurs in
#17555 (2.1.329), where a
host run also finds the built-in tools lane broken.
docs/upstream/claude-code.md: two Corrected rows (325-096/097 behavior-probes, 325-060observability) and one Probes row (inventory). The 325-060 docs-lag row stays, because the
monitoring-usage page still names no
delivery.mode.Verification
passed (
run --live --area sandbox). The four cases passed from a copy whose settings, prompts andexpected outcomes match this commit byte for byte (
run --live --cases <copy>, 4 runs, oneattempt each); only claim and tag text was reworded afterwards. In default mode, sandbox alone was
denied as needing approval and auto-allow on ran. The network case still fails inside the sandbox
with a
sandbox_violationsnote, not a permission denial. 2.1.325 itself is no longer installedon the host that ran these.
probe.py validate87 cases, 0 problems;run --dry-run --area sandbox4 pass;probe.test.sh102 tests OK.user_promptevents withdelivery.modemid_turnappear on every release from 2.1.325 to 2.1.329, 156 of 8741 events.Each one shares its
(session.id, prompt.id)with an ordinary prompt event, and ordinary promptscarry no
delivery.mode. Droppingmid_turnrows and counting distinct prompt keys both give8585 turns.
item-rollup.test.sh: 33 cases, 0 failed (duckdb branch ran). With the filter removed, the newfixture fails 2 cases: item A counts 3 turns.
inventory.py --self-checkexits 3 (degraded) on CLI 2.1.328. With--binary2.1.329 it also exits 3, with the
builtin_toolslane broken: theEditcanary is absent.scripts/check-affected.sh: 19 passed, 1 skipped.Related
This PR names items 2, 3, 5 and 17.
the same inventory drift key.
which gate the read marker.
Remaining
text. The engine change to
audit_skill_visibility.pywaits on the owner's design decision.built-in tools lane go with
#17555.
docs/upstream/claude-code.mdlines 19-22): not moved. The rows for items 7, 8(the engine change) and 17 are not final, and
#15693 is still open.
🤖 Generated with Claude Code