Repository navigation
Description
Parent
Ticket W3-amp of spec #2520 (0.1.2): Amp as a harness row on the local driver. Size: M.
What to build
The amp row, under the harness-row contract adapters/local/harness-row.md (#2431), in its own folder adapters/local/harnesses/amp/. Branch from #2431's approved head as a draft pull request that names that commit. Merge after #2431, and after this row's live check.
From the drivers census (private), to confirm against primary sources:
- Program:
amp - Start:
amp -x "<p>" --stream-json(theT-…thread id is in the stream) - Wake:
amp threads continue <T-id> -x "<msg>" --stream-json - Stop: kill the process tree (the driver's own stop)
- Login: the saved
amp loginaccount (amp account list), orAMP_API_KEYset by the user
The census check to resolve: Amp's docs say background subagents keep running when the Amp process that started them exits. Prove whether the driver's process-tree kill ends them. The fake starts a background subagent outside the turn's process group, and the runner must find it ended after stop. If the real CLI's subagents escape the tree, say so and ask: the row may then need the stop field from #2520's row-stop ticket (amp threads archive {session}). Resolve it from the primary sources below: the CLI's own docs, source and --help at a named version. Then write the answer and its links in the README. Run no live test and sign in to nothing: the live run is the person's ticket. If the check fails in a way the row contract can't express, stop and ask on this ticket.
Sources: execute mode, threads, streaming JSON.
The folder:
row.json;fake: built onadapters/local/fixtures/fake_cli.py. It accepts only the documented command lines and exits 2 on anything else;README.md: it opens with where the login lives, then gives the commands, the modes, the resolved check with links, andLive check: #<n>, the live ticket that this one blocks;- optional
test_row.pyfor this CLI's own rules; evidence/with red and green.
Owned paths
adapters/local/harnesses/amp/(new)
Relies on: adapters/local/harness-row.md, adapters/local/fixtures/fake_cli.py, adapters/local/test_harnesses.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, the driver's row loader and the runner that this row must pass
Acceptance criteria
-
python3 -I adapters/local/test_harnesses.pyfails on an emptyamprow first (red, saved inevidence/), then passes: the five kit checks, wake reaching the same session id, and the env and stop checks - The fake exits 2 on a command line the real CLI's docs don't allow, and the row's argument lists match the cited docs at a named version
- The README resolves the census check with primary-source links, and says where the login lives. The driver never reads or passes a login
- Effort (J318):
row.jsontakes one of two forms: aneffortobject mapping each effort value to the CLI's exact flag or setting (through an{effort}placeholder or a fixedenvvalue), cited to the CLI's docs; or"effort": "none: <why, with the source>", said the same way in the README. The runner proves a claimed effort reaches the fake CLI's argv or env, and that a no-effort row refuses a start that carries an effort with a D3 error and starts nothing. The effort start field comes from driver v1's change (0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471). A row with"effort": "none: …"refuses with exactly thisnext:this host can't set effort: remove the effort for this harness in your Models table or Roster to run it at the host's default - The pull request changes nothing outside
adapters/local/harnesses/amp/ - Merge gate: merges only after its live check records 5 of 5 at this pull request's approved head
Proof
P1 (the amp row): the runner's red then green on fixtures.
Activity
jparker2006 commentedon Nov 23, 2026
launch-fleet: started at 2026-11-23T02:50:55Z, record delayed by GitHub's write pacing
Started by hand by the spec #2520 lead. Checks: open; labelled ready-for-agent only; no claim, builder, branch or pull request; blocker HR1 #2431 has an approved head (PR #2608, APPROVE at 3f486e0), which this row stacks on as a draft that merges after it; nothing else that can run at the same time owns this row's folder; plan approval 7088047278 (revision 1) is current. Builder: Claude Code Opus 5.5, medium.
#2529: WIP: README resolves the census check from Amp's docs and source
#2529: green: amp row passes the runner and test_row.py; README resol…
jparker2006 commentedon Nov 23, 2026
Builder question on the census check (row pushed on
room/2529-amp-row, green on fixtures; draft PR to follow).What I found (Amp CLI
0.0.1795392057-g03d1fb, its docs and--help, read as text; nothing installed or run):ampprocess is its executor ("The thread's executor is not connected; start it and retry."). The subagent's file and shell work runs through that executor, which the driver's process-tree kill ends. The fake double-forks its subagent out of the turn's process group and the runner finds it ended after stop.threads continuelists them ininit.subagents.amp threadshas archive, delete, label, rename, share and others, but no stop or cancel, and no source saysamp threads archiveends a running subagent. So the stop field from 0.1.2 row commands: declarative precheck and stop fields for local harness rows (after HR1) #2538 (amp threads archive {session}) has no source behind it.amp -x <p> --stream-jsonarchives the thread it creates, and the CLI refuses to continue an archived thread. The row adds--no-archive-after-execute, so wake works.Options
pscheck measures. The README says plainly that a server-side subagent can outlive stop and shows up at the next continue.amp threads archive {session}as its stop. No source says this stops the subagent, so the claim would rest only on the live check.My pick: 1. It is what the sources support. #2550's live run can also record whether the next
amp threads continuelists a leftover subagent.jparker2006 commentedon Nov 23, 2026
agent: builder
state: working
harness: Claude Code
model: claude-opus-5-5
skills: build-ticket@0.2.2
step: Applying the lead's ruling on the census check to the amp row in #2767.
time: 2026-11-23T03:03:55Z
#2529: the fake archives a thread started without --no-archive-after-…
#2529: README states near the top that stop can't end an Amp backgrou…
#2529: green: amp row with the archive test and the lead's ruling
#2529: its changelog line (product change)