lazymartha#7: the crew screen — engine members as children over ACP #8
Loading…
Reference in a new issue
No description provided.
Delete branch "titan/6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, itssession/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 frommartha 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 withsession/load, a new one withsession/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, defaultmartha 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;
--agentnames 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 onceran the shell and its real answer came back through the turn;[r] reject oncefailed the tool and the model was told the owner declined.go test ./...andgo vet ./...are the gate: no test reaches outside the box.Refs #7
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.Landed on main as
5d669d0d6e(fast-forward from50c66633). Closing.Pull request closed