Purpose (fix): a member waiting on the owner reads offline on martha ls, not a state that says it waits #142

Closed
opened 2026-11-24 10:01:41 +00:00 by pluto · 1 comment
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 (macula-io/martha#102, main f085cc10, engine 1.60.0 at 12574353), an engine member that had asked the owner for two tool calls and was waiting on the answer read:

$ martha ls
Pluto  offline  /home/rl/work/martha-pilot-ws  since 2026-11-24T09:55:09.590Z  deepseek-flash
Neptunus  running  /home/rl/work/martha-pilot-ws  since 2026-11-24T09:55:13.780Z  claude-opus-5-5
$ martha answer
Pluto  permission:call_00_uL2OtsLdRQO05F5bd6fl8568@20261124_1  shell: shell · ls -la /home/rl/work/martha-pilot-ws
Pluto  permission:call_01_Te6UpfjDmqLp96bnctFK4722@20261124_1  tree: tree · /home/rl/work/martha-pilot-ws

The member was alive and holding two asks the owner could answer; its launch's engine process had not exited. offline is the reader's word for a row that has gone quiet (src/show_dashboard_beat/show_dashboard_beat.ts:28-31), and needs-you is one of the states a writer records (:24), so a member whose own launcher is holding a question for the owner is exactly the case that should read needs-you.

What it costs. An owner scanning ls sees an engine member that looks broken at the one moment it is asking for attention, and the asks underneath are only found by running martha answer.

Done when. A member holding an answered-nothing ask for the owner reads as waiting on the owner on martha ls (and goes back to its own state once answered), with a test whose mutant drops the waiting state and dies.

Refs macula-io/martha#102, macula-io/martha#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 (macula-io/martha#102, main `f085cc10`, engine 1.60.0 at `12574353`), an engine member that had asked the owner for two tool calls and was waiting on the answer read: ``` $ martha ls Pluto offline /home/rl/work/martha-pilot-ws since 2026-11-24T09:55:09.590Z deepseek-flash Neptunus running /home/rl/work/martha-pilot-ws since 2026-11-24T09:55:13.780Z claude-opus-5-5 $ martha answer Pluto permission:call_00_uL2OtsLdRQO05F5bd6fl8568@20261124_1 shell: shell · ls -la /home/rl/work/martha-pilot-ws Pluto permission:call_01_Te6UpfjDmqLp96bnctFK4722@20261124_1 tree: tree · /home/rl/work/martha-pilot-ws ``` The member was alive and holding two asks the owner could answer; its launch's engine process had not exited. `offline` is the reader's word for a row that has gone quiet (`src/show_dashboard_beat/show_dashboard_beat.ts:28-31`), and `needs-you` is one of the states a writer records (`:24`), so a member whose own launcher is holding a question for the owner is exactly the case that should read `needs-you`. **What it costs.** An owner scanning `ls` sees an engine member that looks broken at the one moment it is asking for attention, and the asks underneath are only found by running `martha answer`. **Done when.** A member holding an answered-nothing ask for the owner reads as waiting on the owner on `martha ls` (and goes back to its own state once answered), with a test whose mutant drops the waiting state and dies. Refs macula-io/martha#102, macula-io/martha#141.
Author
Member

Purpose met: yes. On main 951f20be (PR 146) a member holding an ask the owner has not answered reads needs-you on martha ls, and the line goes back to its own state once the ask is answered.

Before, on 5a2b91b9, the pilot's engine member holding one unanswered ask read

$ 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

31 s after the ask, while its row still held permission for shell and its launcher process ran.

After, from PR 146's bin/martha on the same workspace, the same one ask:

12:14:11 Pluto  needs-you  /home/rl/work/martha-pilot-ws  since 2026-11-24T12:13:46.483Z  deepseek-flash
12:14:18 Pluto  needs-you  ...
12:14:25 Pluto  needs-you  ...
12:14:31 Pluto  needs-you  ...
12:14:38 Pluto  needs-you  ...
12:14:45 Pluto  needs-you  ...
12:14:51 Pluto  needs-you  ...
12:14:58 Pluto  needs-you  ...
$ martha answer -> Pluto  permission:call_00_GJ3TiKubmn4g4lv1rFJz2828@20261124_1  shell: shell · echo PILOT-TOOL   (still waiting)
$ martha answer Pluto '<key>' allow -> ... answered allow
$ martha ls -> Pluto  offline  ...   (its own state, the row's quiet word)
$ martha answer -> Nothing waits on you: no Goose member has an ask open.

72 s of needs-you, well past the 30 s offline time, while the ask waited; then its own state once answered.

What the code says: the crew's row carries whether it holds an unanswered dialog (asks), and martha ls reads needs-you above the quiet word only while the kernel still names that member's own launch — a question left on a dead member's row reads stopped. The test pins those three cases, and its mutant fails by name.

One line on what this does not fix: after an answer an engine member's row is quiet again until something writes it, because an engine member's launch did not beat its row. That is #147, filed from this work and fixed separately.

Refs #102, #141.

Purpose met: yes. On main `951f20be` (PR 146) a member holding an ask the owner has not answered reads `needs-you` on `martha ls`, and the line goes back to its own state once the ask is answered. Before, on `5a2b91b9`, the pilot's engine member holding one unanswered ask read ``` $ 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 ``` 31 s after the ask, while its row still held `permission for shell` and its launcher process ran. After, from PR 146's `bin/martha` on the same workspace, the same one ask: ``` 12:14:11 Pluto needs-you /home/rl/work/martha-pilot-ws since 2026-11-24T12:13:46.483Z deepseek-flash 12:14:18 Pluto needs-you ... 12:14:25 Pluto needs-you ... 12:14:31 Pluto needs-you ... 12:14:38 Pluto needs-you ... 12:14:45 Pluto needs-you ... 12:14:51 Pluto needs-you ... 12:14:58 Pluto needs-you ... $ martha answer -> Pluto permission:call_00_GJ3TiKubmn4g4lv1rFJz2828@20261124_1 shell: shell · echo PILOT-TOOL (still waiting) $ martha answer Pluto '<key>' allow -> ... answered allow $ martha ls -> Pluto offline ... (its own state, the row's quiet word) $ martha answer -> Nothing waits on you: no Goose member has an ask open. ``` 72 s of `needs-you`, well past the 30 s offline time, while the ask waited; then its own state once answered. What the code says: the crew's row carries whether it holds an unanswered dialog (`asks`), and `martha ls` reads `needs-you` above the quiet word only while the kernel still names that member's own launch — a question left on a dead member's row reads `stopped`. The test pins those three cases, and its mutant fails by name. One line on what this does not fix: after an answer an engine member's row is quiet again until something writes it, because an engine member's launch did not beat its row. That is #147, filed from this work and fixed separately. Refs #102, #141.
pluto closed this issue 2026-11-24 12:39:15 +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/martha#142
No description provided.