Skip to content

0.1.2 W3: the Amp harness row on the local driver (amp) #2529

Done

Description

@jparker2006

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 (the T-… 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 login account (amp account list), or AMP_API_KEY set 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 on adapters/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, and Live check: #<n>, the live ticket that this one blocks;
  • optional test_row.py for 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

Acceptance criteria

  • python3 -I adapters/local/test_harnesses.py fails on an empty amp row first (red, saved in evidence/), 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.json takes one of two forms: an effort object mapping each effort value to the CLI's exact flag or setting (through an {effort} placeholder or a fixed env value), 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 this next: 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

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    on Nov 23, 2026
  3. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    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.

  4. added 2 commits that reference this issue on Nov 23, 2026
  5. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    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):

    • Nothing local escapes stop. A background subagent is not a local process: the thread runs on Amp's servers (the CLI calls it a thread actor), and the local amp process 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.
    • The server-side subagent does keep running: Streaming JSON says "Background subagents keep running when the Amp process that started them exits", and a later threads continue lists them in init.subagents.
    • No Amp command stops it. amp threads has archive, delete, label, rename, share and others, but no stop or cancel, and no source says amp threads archive ends 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.
    • Separate fix: the census start amp -x <p> --stream-json archives the thread it creates, and the CLI refuses to continue an archived thread. The row adds --no-archive-after-execute, so wake works.

    Options

    1. Ship the row as it is. Stop ends everything local, which is what 0.1.2 W3 live: live check: the Amp row passes 5 of 5 (amp) #2550's ps check measures. The README says plainly that a server-side subagent can outlive stop and shows up at the next continue.
    2. Hold the row for 0.1.2 row commands: declarative precheck and stop fields for local harness rows (after HR1) #2538 and add amp threads archive {session} as its stop. No source says this stops the subagent, so the claim would rest only on the live check.
    3. Hold user story 2 for Amp until Amp documents a way to cancel a thread or subagent.

    My pick: 1. It is what the sources support. #2550's live run can also record whether the next amp threads continue lists a leftover subagent.

  6. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    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

  7. added 4 commits that reference this issue on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions