Skip to content

0.1.2 W3-RS: an optional stop command for harness rows on the local driver #2524

Closed as not planned

Description

@jparker2006

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 optional stop field, 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 with stop, 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 without stop, 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 with stop, also require that the fake backend's session has ended after stop.
  • Planted rows under adapters/local/fixtures/rows/: a good row with stop; 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 that stop doesn't end (runner failure).

Owned paths

  • adapters/local/harness-row.md
  • adapters/local/driver
  • adapters/local/test_harnesses.py
  • adapters/local/fixtures/fake_cli.py
  • adapters/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

Acceptance criteria

Proof

P2 (row stop): the runner on the planted stop rows, red first, and test_driver.py green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions