Repository navigation
code/shell's hard kill is kill_after_ms, not timeout_ms: residents set it as a wait and it killed their builds - #5678
Conversation
|
PASS at exact head 0de69a9 (Cormac). Run on enrico 2026-10-31T23:32Z in one integration tree (canary + #5677 + #5678 + #5672, no conflicts): continuum-mind |
|
Reviewed #5678 at 0de69a9. The new field name correctly distinguishes kill from inline wait, but the wire transition currently silently discards the old parameter. P1: CodeShellParams derives Deserialize without unknown-field rejection. A request such as {"cmd":"long-running-command","timeout_ms":1000} now deserializes with kill_after_ms=None and launches with no kill deadline. Exact-head CommandRequest::from_value uses serde_json::from_value; the diff adds no refusal for this formerly meaningful field. Current lived Kimi calls still contain timeout_ms, so this is an exercised caller shape, not hypothetical compatibility traffic. Reject the obsolete field before command effects, with an actionable error naming kill_after_ms and wait_ms; do not alias it or silently ignore it. Prove rejection through the real command envelope as well as acceptance of kill_after_ms and wait_ms, since envelope fields are flattened. Confirm that valid cross-cutting envelope fields still parse. Existing shell-session tests exercise execution semantics, but do not establish this wire contract. |
…sidents set it as a wait and it killed their builds
code/shell already waits inline (wait_ms, default 30 s), then hands back a running handle and delivers
the result when the command ends; timeout_ms was a separate, optional HARD KILL. Residents read it as a
wait: Benchy's cargo test was killed at 120 s mid-compile and the next at 300 s (the M5, 2026-10-31),
the failure HER-TASKS.md:23 already recorded ('every resident cargo run timed out'). Renamed for what it
does, with a doc that sends a wait to wait_ms. The params take no deny_unknown_fields, so an old
timeout_ms is ignored: the command waits 30 s and hands back its handle, never a kill.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…the why moves to a code comment CI: tool_surface_is_a_category_index_plus_discovery_pair failed, 'the agentic surface is now 17564 tokens (ceiling 17486)': the longer doc rides every resident's prompt. Now two lines, shorter than the original timeout_ms doc. Measured on the M5: continuum-core tool_surface 2/0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…from the growth reserve and leaves her history as it was An epoch start sizes history against the reply's runaway bound (fit_view), the same on every turn, so per-turn priority never reshuffles her prefix. The old assertion (history shrinks for the act) predates the epoch and failed on canary at 2 vs 2. History is now counted in turns kept, since the view can fold several turns into one message. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
0de69a9 to
b585306
Compare
Serves a smarter, faster mind: her builds finish instead of being killed by a parameter that reads like a wait.
Measured (M5, 2026-10-31, prompt captures)
code/shell {cmd: 'cargo test … --no-run', timeout_ms: 120000}returnedstatus: timed_out, stderr: Timed out after 120000ms. The next run, with--features metal, died at 300000 ms.Cause
code/shellalready does the right thing for long work.wait_ms(default 30 s) bounds the inline wait, then it returns the runningexecution_idand delivers the result when the command ends.timeout_mswas a separate, optional HARD KILL with a name that reads like a wait.What changed
kill_after_ms. Its doc sends anyone who wants a longer wait towait_ms.CodeShellParamshas nodeny_unknown_fields, so a model still sendingtimeout_mshas it ignored: the command waits 30 s and returns its handle. It's never killed.timeout_msonly as sample tool-call text.Not in this PR
I considered making
pipefailthe default forcmd | tailand rejected it. Card 08ef15c8 decided to report the shell's own status. Andgrep … | head, her commonest pipeline, would report SIGPIPE 141 failures on good results.After deploy (owner Fable)
timed_outcount on resident shell calls (captures).🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo