lazymartha#6 package 2: the crew screen — engine members as children over ACP #7

Closed
opened 2026-12-02 09:28:58 +00:00 by titan · 1 comment
Member

Raf, 2026-12-02, in martha-ai/lazymartha#6: "the UX is not great at all. How difficult would it be to port martha-engine into lazymartha, get rid of the dependency on kitty/tmux and make lazymartha into a one-stop TUI?"

DECIDED 2026-12-02 "Yes, build it (Recommended)"; DECIDED 2026-12-02 "Real CLI in a pane (Recommended)"; DECIDED 2026-12-02 "Whole room (Recommended)".

Purpose (feature): package 2 of the design on #6 (comment 8053): lazymartha's crew screen starts one martha start <member> --acp per martha-engine member and draws each member's turn, its tool calls and its own prompt line in a pane, with one permission queue for the whole crew; a restart resumes each member's session with session/load.

Refs #6

Package 1 (martha serves ACP upward) has not landed yet. Built against the engine's own ACP, as the spike was: lazymartha sees the same ACP either way, and the agent command is one seam (--agent, default martha start {member} --acp).

Done when

  1. lazymartha crew --root <root> finds the crew's places with martha where, reads the declaration it names, and starts one child per martha-engine member the declaration does not park. (The roster cannot be the only source: a solo crew has none.)
  2. Each member's pane shows its stream, its tool calls (title and status) and its own prompt line; Enter sends the typed turn to the selected member, and a member with a turn running refuses a second one in one line.
  3. One permission queue for the whole crew, oldest first, naming each ask's member and kind; ctrl+a allows once and ctrl+r rejects once the oldest ask, and it leaves the queue as soon as it is answered.
  4. A restart asks for each member's kept session with session/load, and starts a new one with session/new when there is none.
  5. go test ./... and go vet ./... pass, and no test reaches outside the box: the tests drive a fake ACP agent child of their own.
Raf, 2026-12-02, in martha-ai/lazymartha#6: "the UX is not great at all. How difficult would it be to port martha-engine into lazymartha, get rid of the dependency on kitty/tmux and make lazymartha into a one-stop TUI?" DECIDED 2026-12-02 "Yes, build it (Recommended)"; DECIDED 2026-12-02 "Real CLI in a pane (Recommended)"; DECIDED 2026-12-02 "Whole room (Recommended)". Purpose (feature): package 2 of the design on #6 (comment 8053): lazymartha's crew screen starts one `martha start <member> --acp` per martha-engine member and draws each member's turn, its tool calls and its own prompt line in a pane, with one permission queue for the whole crew; a restart resumes each member's session with `session/load`. Refs #6 Package 1 (martha serves ACP upward) has not landed yet. Built against the engine's own ACP, as the spike was: lazymartha sees the same ACP either way, and the agent command is one seam (`--agent`, default `martha start {member} --acp`). ## Done when 1. `lazymartha crew --root <root>` finds the crew's places with `martha where`, reads the declaration it names, and starts one child per martha-engine member the declaration does not park. (The roster cannot be the only source: a solo crew has none.) 2. Each member's pane shows its stream, its tool calls (title and status) and its own prompt line; Enter sends the typed turn to the selected member, and a member with a turn running refuses a second one in one line. 3. One permission queue for the whole crew, oldest first, naming each ask's member and kind; ctrl+a allows once and ctrl+r rejects once the oldest ask, and it leaves the queue as soon as it is answered. 4. A restart asks for each member's kept session with `session/load`, and starts a new one with `session/new` when there is none. 5. `go test ./...` and `go vet ./...` pass, and no test reaches outside the box: the tests drive a fake ACP agent child of their own.
Author
Member

Read back, 2026-12-02 (Titan): landed on main at 5d669d0d6ec4d733199d09c394a36fb71ba37c16, read with git fetch origin main + git merge-base --is-ancestor in my own worktree; PR 8 closed by Terra.

  • HANDOFF martha-ai/lazymartha#7 50c6663..5d669d0 r=2 ci=6779 — PASS (Jupiter), the pull-request run 6779 green on the tip itself.
  • Round 1's three findings are fixed and each carries a test proved red without its fix: an ask not answered that way is kept and takes the other answer next (its member no longer waits forever); an agent still running after its closed input is stopped through the process its connection started, injected as a seam; a key the screen has no word for types nothing.
  • Main's own push run 6787 was still queued when this was written; Terra watches it.
  • Recorded, not blocking (Jupiter): nothing tests that acp.Start wires its stop to the child's own process, since the test injects the seam.
  • Gate on the landed tip: go vet ./..., go test ./... (-race, twice), gofmt clean; no test reaches outside the box.

Purpose met: lazymartha crew --root <root> draws a declared crew's martha-engine members over ACP, one permission queue, session/load on restart. Package 1 (Martha serving ACP upward) remains; until it lands --agent names the engine itself, and lazymartha sees the same ACP either way.

Read back, 2026-12-02 (Titan): landed on `main` at `5d669d0d6ec4d733199d09c394a36fb71ba37c16`, read with `git fetch origin main` + `git merge-base --is-ancestor` in my own worktree; PR 8 closed by Terra. - `HANDOFF martha-ai/lazymartha#7 50c6663..5d669d0 r=2 ci=6779` — PASS (Jupiter), the pull-request run 6779 green on the tip itself. - Round 1's three findings are fixed and each carries a test proved red without its fix: an ask not answered that way is kept and takes the other answer next (its member no longer waits forever); an agent still running after its closed input is stopped through the process its connection started, injected as a seam; a key the screen has no word for types nothing. - Main's own push run 6787 was still queued when this was written; Terra watches it. - Recorded, not blocking (Jupiter): nothing tests that `acp.Start` wires its `stop` to the child's own process, since the test injects the seam. - Gate on the landed tip: `go vet ./...`, `go test ./...` (`-race`, twice), `gofmt` clean; no test reaches outside the box. Purpose met: `lazymartha crew --root <root>` draws a declared crew's martha-engine members over ACP, one permission queue, `session/load` on restart. Package 1 (Martha serving ACP upward) remains; until it lands `--agent` names the engine itself, and lazymartha sees the same ACP either way.
titan closed this issue 2026-12-02 10:11:26 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/lazymartha#7
No description provided.