lazymartha#7: the crew screen — engine members as children over ACP #8

Closed
titan wants to merge 0 commits from titan/6 into main
Member

Package 2 of the design on #6 (comment 8053): lazymartha crew --root <root> draws a declared crew's martha-engine members, one child process each speaking ACP on its stdio, with one permission queue for the whole crew. No kitty, no tmux.

  • internal/acp — the ACP client: one agent child, the agent's requests answered through a handler, its session/updates streamed, a call that fails by name when the agent ends, and an answer found whichever spelling of an id the agent echoes back.
  • internal/crew — the places read from martha where, the members and their hosts read from the declaration (a member is drawn here when its declaration gives it the engine's host and the owner has not parked it), the live members (the kept session asked for back with session/load, a new one with session/new, one turn at a time, one queue of asks answered oldest first and only ever once or never), and the pure model the keys drive.
  • cmd/lazymartha crew — the wiring, the agent seam (--agent, default martha start {member} --acp), and the child's standard error read into its own pane, so Martha's own refusal is read where the member is.

Package 1 (Martha serving ACP upward) has not landed, so the default agent command does not yet answer; --agent names the engine itself meanwhile and lazymartha sees the same ACP either way.

Proved by hand against the real engine (martha-engine 1.60.0, one member, a stand-in model on 127.0.0.1): [a] allow once ran the shell and its real answer came back through the turn; [r] reject once failed the tool and the model was told the owner declined. go test ./... and go vet ./... are the gate: no test reaches outside the box.

Refs #7

Package 2 of the design on #6 (comment 8053): `lazymartha crew --root <root>` draws a declared crew's martha-engine members, one child process each speaking ACP on its stdio, with one permission queue for the whole crew. No kitty, no tmux. - `internal/acp` — the ACP client: one agent child, the agent's requests answered through a handler, its `session/update`s streamed, a call that fails by name when the agent ends, and an answer found whichever spelling of an id the agent echoes back. - `internal/crew` — the places read from `martha where`, the members and their hosts read from the declaration (a member is drawn here when its declaration gives it the engine's host and the owner has not parked it), the live members (the kept session asked for back with `session/load`, a new one with `session/new`, one turn at a time, one queue of asks answered oldest first and only ever once or never), and the pure model the keys drive. - `cmd/lazymartha crew` — the wiring, the agent seam (`--agent`, default `martha start {member} --acp`), and the child's standard error read into its own pane, so Martha's own refusal is read where the member is. Package 1 (Martha serving ACP upward) has not landed, so the default agent command does not yet answer; `--agent` names the engine itself meanwhile and lazymartha sees the same ACP either way. Proved by hand against the real engine (martha-engine 1.60.0, one member, a stand-in model on 127.0.0.1): `[a] allow once` ran the shell and its real answer came back through the turn; `[r] reject once` failed the tool and the model was told the owner declined. `go test ./...` and `go vet ./...` are the gate: no test reaches outside the box. Refs #7
lazymartha#7: the crew screen — engine members as children over ACP
All checks were successful
test / test (pull_request) Successful in 23s
e5ab31d490
Package 2 of the design on lazymartha#6 (comment 8053): `lazymartha crew --root
<root>` draws a declared crew's martha-engine members, one child process each
speaking ACP on its stdio.

- internal/acp: the ACP client — one agent child, its requests answered through a
  handler, its session/updates streamed, a call that fails by name when the agent
  ends, and an answer found whichever spelling of an id the agent echoes back.
- internal/crew: the places read from `martha where`, the members and their hosts
  read from the declaration, the live members (session/load on restart, session/new
  otherwise, one turn at a time, one queue of asks answered oldest first with
  allow-once or reject-once only), and the pure model the keys drive.
- cmd/lazymartha crew: the wiring, the agent seam (--agent, default `martha start
  {member} --acp`), and the child's stderr read into its own pane.

No test reaches outside the box: the crew's tests drive scripted agents over pipes
and one stand-in child, and the engine was proved by hand against 1.60.0.
lazymartha#7 r2: fold Jupiter's three findings
All checks were successful
test / test (pull_request) Successful in 22s
test / test (push) Successful in 23s
5d669d0d6e
- DW3: an ask whose options do not hold the answer the owner chose is kept, in the
  crew and on the screen, so the owner can answer it another way instead of leaving
  its member waiting forever; an answered ask leaves the queue when the crew says
  it is gone (AskGone, which Live now sends, and no longer only a test).
- An agent still running after its closed input is stopped after the wait, through
  the process this connection started itself, injected as a seam so no test kills.
- A key the screen has no word for (arrows it does not read, PgUp, ctrl+d) is not
  typed into the turn as its own name.
Member

Landed on main as 5d669d0d6e (fast-forward from 50c66633). Closing.

Landed on main as 5d669d0d6ec4d733199d09c394a36fb71ba37c16 (fast-forward from 50c66633). Closing.
terra closed this pull request 2026-12-02 10:10:27 +00:00
All checks were successful
test / test (pull_request) Successful in 22s
test / test (push) Successful in 23s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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!8
No description provided.