martha#142: a member waiting on the owner reads needs-you on martha ls, not offline #146

Manually merged
terra merged 1 commit from pluto/142-needs-you-when-waiting into main 2026-11-24 12:38:36 +00:00
Member

Purpose (fix): martha ls tells the owner a member is waiting on them, so an owner watching a crew sees a question to answer rather than a member that looks dead.

What happens. On the pilot (main 5a2b91b9), an engine member that had asked the owner for a tool call and was waiting on the answer read offline 31 s after the ask, while martha answer still listed it and its row still held the dialog:

$ martha ls
Pluto  offline  /home/rl/work/martha-pilot-ws  since 2026-11-24T12:08:37.505Z  deepseek-flash
$ martha answer
Pluto  permission:call_00_E1TrXhPa8rnbmFgLcEK04898@20261124_1  shell: shell · echo PILOT-TOOL
$ cat row/Pluto.json   (its .dialogs)
[{"key": "permission:call_00_E1TrXhPa8rnbmFgLcEK04898", "kind": "permission", "reads": "permission for shell"}]

A dialog is not a beat, so the row of a member waiting on the owner goes quiet like a dead one, and ls said the quiet word.

What changes. The crew's row now carries asks: whether it holds a dialog nobody has answered. martha ls says needs-you for a member that holds one, and only while the kernel still names that member's own launch, so a question left on the row of a member that died reads stopped. An answered question closes the dialog and the line reads exactly as before it, its own state or offline.

Proof. stop_and_restart_a_member.node-test.ts 18/18 with the new test: the same quiet row reads offline with no question and needs-you with one, and stopped when the pid names another process. Its mutant, the asks branch dropped from stateOf, fails that test by name. The row's consumers are unchanged: see_the_crew 12/12, draw_the_crew_strip 6/6, see_who_is_free 12/12, title_a_members_tab 5/5, a_week_of_the_ledger 13/13, nudge_an_idle_crew 7/7. Typecheck and eslint clean; check:restated-values, check:no-import-cycle, check:marthas-names and check:private clean.

Refs macula-io/martha#102, #141.

Purpose (fix): `martha ls` tells the owner a member is waiting on them, so an owner watching a crew sees a question to answer rather than a member that looks dead. What happens. On the pilot (main `5a2b91b9`), an engine member that had asked the owner for a tool call and was waiting on the answer read `offline` 31 s after the ask, while `martha answer` still listed it and its row still held the dialog: ``` $ martha ls Pluto offline /home/rl/work/martha-pilot-ws since 2026-11-24T12:08:37.505Z deepseek-flash $ martha answer Pluto permission:call_00_E1TrXhPa8rnbmFgLcEK04898@20261124_1 shell: shell · echo PILOT-TOOL $ cat row/Pluto.json (its .dialogs) [{"key": "permission:call_00_E1TrXhPa8rnbmFgLcEK04898", "kind": "permission", "reads": "permission for shell"}] ``` A dialog is not a beat, so the row of a member waiting on the owner goes quiet like a dead one, and `ls` said the quiet word. What changes. The crew's row now carries `asks`: whether it holds a dialog nobody has answered. `martha ls` says `needs-you` for a member that holds one, and only while the kernel still names that member's own launch, so a question left on the row of a member that died reads `stopped`. An answered question closes the dialog and the line reads exactly as before it, its own state or `offline`. Proof. `stop_and_restart_a_member.node-test.ts` 18/18 with the new test: the same quiet row reads `offline` with no question and `needs-you` with one, and `stopped` when the pid names another process. Its mutant, the `asks` branch dropped from `stateOf`, fails that test by name. The row's consumers are unchanged: `see_the_crew` 12/12, `draw_the_crew_strip` 6/6, `see_who_is_free` 12/12, `title_a_members_tab` 5/5, `a_week_of_the_ledger` 13/13, `nudge_an_idle_crew` 7/7. Typecheck and eslint clean; `check:restated-values`, `check:no-import-cycle`, `check:marthas-names` and `check:private` clean. Refs macula-io/martha#102, #141.
martha#142: a running member holding an unanswered question reads needs-you on martha ls
All checks were successful
dependency advisories / node in . (pull_request) Successful in 14s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 14s
dependency advisories / node in installer (pull_request) Successful in 15s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 5s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / Martha's names are its own (pull_request) Successful in 32s
CI / structural floor (pull_request) Successful in 34s
CI / no import cycle (pull_request) Successful in 30s
CI / the host drift check bites (pull_request) Successful in 1m10s
CI / the engine drift check bites (pull_request) Successful in 31s
CI / the posted text check bites (pull_request) Successful in 13s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 34s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / no literal restates a defined value (pull_request) Successful in 58s
CI / every check runs in a job (pull_request) Successful in 15s
CI / installer (pull_request) Successful in 3m47s
CI / every job has a timeout (pull_request) Successful in 14s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 16s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 42s
CI / the relay loads in the recorded host (pull_request) Successful in 14m48s
CI / the clean-install proof removes its container (pull_request) Successful in 16m14s
CI / gate coverage (pull_request) Successful in 16m28s
624d906d27
An engine member waiting for the owner went quiet on its row (a dialog is not a
beat), so the line read offline at the one moment it was asking for attention.
The crew's row now carries whether it holds a dialog nobody has answered, and
ls says needs-you for a member whose own launch the kernel still names.
terra manually merged commit 951f20beab into main 2026-11-24 12:38:36 +00:00
Sign in to join this conversation.
No reviewers
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/martha!146
No description provided.