Repository navigation
Closed as not planned
Closed as not planned
Copy link
Milestone
Description
Parent
Ticket W3-RS of spec #2520 (0.1.2): the optional row stop command on the local driver's harness-row contract. Size: M.
What to build
The spec's "row stop command" decision, on top of HR1 (#2431). Branch from #2431's approved head as a draft pull request that names that commit; merge after #2431.
- Contract,
adapters/local/harness-row.md: an optionalstopfield, a list of argument lists whose only placeholder is{session}(as a whole argument). Every other field and rule stays as HR1 sets it. - Driver,
adapters/local/driver: on stop, for a row withstop, run each argument list with the saved session id and a fixed time limit, before the process-tree kill. Their output goes only to the run's log. A failed or timed-out stop command is noted in the answer as fixed words and never skips the tree kill. With no saved session id, skip the commands and still kill the tree. Rows withoutstop, and claude and codex, are unchanged. - Fake library,
adapters/local/fixtures/fake_cli.py: a backend stand-in whose session lives outside the turn's process tree and ends only when the fake's stop command is called. - Runner,
adapters/local/test_harnesses.py: for a row withstop, also require that the fake backend's session has ended after stop. - Planted rows under
adapters/local/fixtures/rows/: a good row withstop; one whose stop uses a placeholder other than{session}(contract failure); one whose stop command fails (the tree is still killed and the answer says so); one with a backend session thatstopdoesn't end (runner failure).
Owned paths
adapters/local/harness-row.mdadapters/local/driveradapters/local/test_harnesses.pyadapters/local/fixtures/fake_cli.pyadapters/local/fixtures/rows/adapters/local/evidence/(shared: this ticket's red and green files only)
Relies on: kernel/driver.v1.md, kernel/driver-kit/kit.py
Links
- 0.1.2 HR1: the harness-row contract, the local driver's row loader and the kit check for rows #2431 real: the harness-row contract, row loader and runner this ticket extends, in the same files
Acceptance criteria
- The runner fails on each new planted row with its named reason (red, saved in
evidence/), and the good stop row passes all five kit checks plus the backend-session check -
adapters/local/test_driver.pyand every existing planted row give the same results as on 0.1.2 HR1: the harness-row contract, the local driver's row loader and the kit check for rows #2431's head - A failing stop command never prevents the process-tree kill
Proof
P2 (row stop): the runner on the planted stop rows, red first, and test_driver.py green.
Metadata
Metadata
Assignees
Labels
No labels
Activity
jparker2006 commentedon Nov 22, 2026
Closed as a duplicate: the row
stopfield is built in #2538 (row commands), whose needs for it are listed there. The Sculptor row (#2540) now waits on #2538.