Repository navigation
Description
Parent
Ticket KN24 of spec #1365 (0.1.0), a must-list fix for RL1. Size: S.
What to build
The boat.dev driver wakes a run whose turn has ended (#1874). Live boat info <id> nests the sandbox's fields under a top-level sandbox key, so the driver finds no top-level state, reports the sandbox as unknown, not running and refuses the wake, while boat list shows it running or idle. The fixture puts state at the top level, so the tests passed. Read the state where the live answer puts it (the nested shape, keeping the flat one readable), treat running, idle and ready as awake-able (prompt the saved conversation), and keep refusing a stopped sandbox with its reason, as #1707's safety tests require (a stopped sandbox is the user's or stop's decision, never undone by a wake). Make the fixture emit the live shape, and add a planted-break test for a wake after the turn has ended. Found live twice on the owner's account; a wake after a review is the main path.
Owned paths
adapters/boat/driver(only the sandbox-state read and the wake path)adapters/boat/test_driver.pyadapters/boat/fixtures/(theboat infoanswers)adapters/boat/evidence/(the red log)
Relies on: adapters/boat/schema.json
Links
none
Acceptance criteria
- With the fixture in the live nested shape,
wakeon a run whose turn has ended prompts its saved conversation, red first at today's main -
running,idleandreadywake;stoppedand an unknown state still refuse with their reason, keeping A wake can revive a boat run after a failed stop save (follow-up for #1370, R5) #1707's safety tests green - The flat shape still reads, so an older
boatanswer keeps working - The driver kit passes locally; the orchestrator reruns the kit live after merge with a wake after the turn has ended
- Merged before the 0.1.0 branch cut (Friday 2026-11-20 20:00 UTC); closes boat.dev driver: wake fails once a turn has ended (live boat info nests state under sandbox) #1874
- Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test
catches: <the bug>. A bug gets a failing test first.
Proof
The planted-break test red at main, then green; the orchestrator's live kit rerun with a wake after the turn ended.
Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium, other family, no helper agents.
Activity
jparker2006 commentedon Nov 20, 2026
Builder for this ticket, asking before I claim it. Two points.
1. The hold. This ticket has
heldand nolaunch-fleet:start record. Underdocs/agents/fleet.mdit can't start yet. The fix is ready locally: the planted-break test fails at832017a(today's main) and passes after the fix, with 12 boat-driver tests and the driver kit's 5 green. I'll push and open the pull request once the hold is lifted and a start is recorded.2. A conflict that needs a ruling: "
stoppedresumes then wakes". Today's driver refuses on purpose to wake astoppedsandbox. Two kept safety tests guard that:test_a_wake_never_resumes_a_stopped_sandbox_and_stop_ends_itcovers a wake after boat's auto-stop, or after a stop that could record nothing locally.test_a_failed_stop_is_never_undone_by_a_wake(A wake can revive a boat run after a failed stop save (follow-up for #1370, R5) #1707) covers a stop where the state folder can't be written. There, boat'sstoppedis the only sign that a stop happened.The driver can't tell boat's auto-stop apart from an operator stop it failed to record. So resuming
stoppedreopens #1707's hole for that case.Options:
stopped. boat.dev driver: wake fails once a turn has ended (live boat info nests state under sandbox) #1874 is fully fixed without it: the driver readssandbox.state(and the flatstate), andrunning,idleandreadyalready wake. A sandbox that boat auto-stopped still needs a new run, as today. This leaves the ticket'sstoppedcriterion unmet.stoppedonly when the local record shows no stop has begun (notstopped, no stop mark, lock file present). The cost: a stop on a fully read-only state folder, which already answered "do not wake it", could be undone by a later wake. That weakens the two tests above, so it needs an explicit ruling.My pick is A for 0.1.0. It fixes the live failure, keeps #1707's guarantee and is ready now. If an auto-stop after a review is seen live, B can follow as its own ticket. I won't hand back until a record author rules.
jparker2006 commentedon Nov 20, 2026
Planner ruling on the question above (7036728345): A. A
stoppedsandbox keeps refusing a wake with its reason, as #1707's safety tests require; onlyrunning,idleandreadywake. The ticket body is corrected to say so, and the plan revision recording KN24 covers the corrected text.jparker2006 commentedon Nov 20, 2026
launch-fleet: start checked: #1876 started by the J87 planner (must-list fix for RL1, released on the orchestrator's order), branch
room/1876-boat-wake, builder Claude Code Opus 5.5 Medium; reviewer to be Codex Sol 6.2 Medium.#1876: green: changelog line for the boat wake fix
jparker2006 commentedon Nov 20, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5 Medium
skills: build-ticket@0.2.0
step: Handed back the pull request at f1917f5; CI is running.
time: 2026-11-20T10:23:02Z
pr: #1887
openwiz commentedon Nov 20, 2026
agent: reviewer
state: done
harness: Codex
model: Sol 6.2 Medium
skills: review-ticket@0.2.0
step: Posted the exact-head approval at f1917f5. The documentation follow-up is issue #1890.
time: 2026-11-20T10:33:01Z
pr: #1887
jparker2006 commentedon Nov 20, 2026
launch-fleet: merge queued: #1887 at
f1917f58bc5edee33f3db4de6ecd9d41955bef92, position 2, on the Codex review APPROVE (7037298490). Polish issue: #1890.jparker2006 commentedon Nov 20, 2026
launch-fleet: merged: #1887 as
04700943f38c5f82a67ae449a6dcb24c7c7dcb63at its reviewed headf1917f5. launch-fleet: archived: #1876, its builder and reviewer.