lazymartha#6 package 4: the crew strip, the room pane and the editor tab (#13 folded in) #14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Purpose (feature): the one-stop TUI's remaining panes — every member's dashboard row as a strip, the crew room, and the martha.json editor as a tab — with #13 folded in, so no key the owner types can hold the screen.
Placed by Mars 2026-12-02 (Supervisor ruling): "martha-ai/lazymartha#6 package 4, with lazymartha#13 folded in (same Update loop). Order: (1) the crew strip and the editor tab first; (2) then wire the room pane to
martha room --followfrom 4a ... Wire it to the JSON-lines shape 4a actually lands, not a guess; read it on martha main once it lands. Package 4 lands after 4a."Two more Supervisor rulings, 2026-12-02:
martha declare --from <file>, which checks it and writes the declaration. On refusal, show martha's stderr in the tab and keep the owner's edits, the way --message works today. That command doesn't exist yet: Hygiea builds it in martha now and will tell you the exact command line and exit codes. Package 4 lands after it."--prompt <text>flag onlazymartha crew: send as the first turn to the members today's tmux path would reach, with the same meaning as martha#134. Ceres's martha#367 will forwardmartha up --promptto it."Done when
<online>/<members> online · <waiting> waiting · <needs> need you, and one line per member<name>: <state> · <task> <step>/<of> · <holds> · waits on <who> for <what> · needs you: <needs>, with the spend the row carries. A row quiet past the crew's offline time readsoffline. These are the wordsmartha crewdraws (marthasee_the_crew,draw_the_crew_strip), ported, never invented here.f10) runs one child--room(martha room --followby default) and draws what it prints, as Saturnus fixed it for martha#364 part 2 (branchsaturnus/364-room-command). Each line is told apart by its key: a message (position,from,to,text,sent_at,by_owner) is drawn oldest first with the sender;{"sent":n}is an acknowledgement and draws nothing (the line comes back as a message markedby_owner);{"refused":"..."}is shown where the room is. A line typed there goes to the child's stdin as{"to":"crew","text":...}. A whole-command refusal (stdout silent, one line on stderr, non-zero exit) says why where the room would be drawn, and the child is not restarted. The command's keys may be added to, never renamed or dropped.f11): its schema is read frommartha schema, so the tab hard-codes no field and no path and refuses a schema major it does not know in one line, as the handshake refuses today. Every key goes to the editor while the tab is open, and the crew's keys come back when it closes. A save writes the proposal to a temp file in the crew's own state directory and runsmartha declare --from <file>, which checks it and writes the declaration (Supervisor's ruling above). Lazymartha writes no declaration and validates none. A refusal is shown in the tab, with the owner's edits kept, as--messagekeeps them today.--prompt <text>is the first turn for every member the screen starts, with martha#134's meaning: an engine member is sent it once its session opens (over ACP, since--acptakes no other word), and a Claude Code member's own start is handed--prompt <text>.go vet ./..., gofmt and the wholego test ./...pass; no test reaches an outside service.Files
internal/crew/rows.go— the row as the strip reads it: holds, task, progress, waits and spend beside the state and needs it already readsinternal/crew/strip.go(new) — the strip's header and member lines, ported fromsee_the_crewinternal/crew/model.go,internal/crew/view.go,internal/crew/events.go— the strip above the panes; the room and the editor as views over the pane areainternal/crew/live.go— every drawn member's row watched; the room child and the handed first promptinternal/room/room.go(new) —martha room --followas a child: its admitted lines, the owner's lineinternal/terminal/terminal.go— one writer per terminal over a bounded queue (#13)internal/editor/editor.go— a save that keeps the tab running, and a declaration marked savedcmd/lazymartha/crew.go— the keys, the flags, and the wiringRefs #6, #13, martha-ai/martha#134, martha-ai/martha#364
Landed: main is
876f0fb9, the tip Mercurius passed at r=4 (PR 15, fast-forward onto main).CI: run 6972 green on that exact tip; main push run 7020 green on the same commit.
Reviews along the way: r=1 FAIL, r=2 FAIL, r=3 PASS with Mercurius's inline fix at
33d2bfe, r=4 PASS (diff-only) on the settle fix.What landed: the crew strip in martha's own words, the room pane (f10) on
martha room --follow, the editor tab (f11) saving throughmartha declare --from,--promptwith a Claude Code member's first turn typed into its own terminal once its composer settles, and #13's key queue folded in.Package 4 of the design on #6 (comment 8053). The v0.1.2 tag is Raf's through Supervisor; Ceres pins it in martha#367.