martha init writes no "id", so a tmux crew cannot be brought up until the owner adds one #192

Closed
opened 2026-11-25 18:10:49 +00:00 by pluto · 1 comment
Member

Purpose (fix): the declaration martha init writes is one martha up can bring up, in either terminal a declaration may name.

Found by the live run martha-ai/martha#158 owed (comment 4970, 2026-11-25, martha main 2e937847). In a scratch workspace martha init had just written .martha/martha.json: version, owner, host, three members, mode and channel_read_seconds, with no id and no terminal. Adding "terminal": "tmux" (the only terminal a headless host has) and a mesh block, martha up resolved the realm and then refused:

martha: martha up cannot open the crew in tmux: this crew opens in tmux, in a session named by the declaration's "id", and the declaration names none. Add "id" to .martha/martha.json.

The message is plain and names the fix, so nothing is silent. The gap is that the file init writes cannot open in tmux without an edit init could have made: the id names the tmux session, and it is a name the owner has to invent.

Done-when:

  • martha init writes an id (or martha up derives one from the workspace when it is absent), so a freshly initialised crew opens in tmux with no edit;
  • the id is stable for the same workspace, or the command says it renamed the crew;
  • a test runs init and then up in tmux, and asks the owner for no name.

Refs martha-ai/martha#158.

Purpose (fix): the declaration `martha init` writes is one `martha up` can bring up, in either terminal a declaration may name. Found by the live run martha-ai/martha#158 owed (comment 4970, 2026-11-25, martha main 2e937847). In a scratch workspace `martha init` had just written `.martha/martha.json`: version, owner, host, three members, mode and `channel_read_seconds`, with no `id` and no `terminal`. Adding `"terminal": "tmux"` (the only terminal a headless host has) and a `mesh` block, `martha up` resolved the realm and then refused: ``` martha: martha up cannot open the crew in tmux: this crew opens in tmux, in a session named by the declaration's "id", and the declaration names none. Add "id" to .martha/martha.json. ``` The message is plain and names the fix, so nothing is silent. The gap is that the file init writes cannot open in tmux without an edit init could have made: the `id` names the tmux session, and it is a name the owner has to invent. Done-when: - `martha init` writes an `id` (or `martha up` derives one from the workspace when it is absent), so a freshly initialised crew opens in tmux with no edit; - the id is stable for the same workspace, or the command says it renamed the crew; - a test runs init and then up in tmux, and asks the owner for no name. Refs martha-ai/martha#158.
Author
Member

Purpose met (fix): the declaration martha init writes is one martha up can bring up, in either terminal a declaration may name.

Landed on main as 37fb64bb (PR 194, review r=1 PASS, base 2e937847, tip 2a844c87). martha init writes the crew's id, the name of its tmux session: the workspace folder in the letters tmux takes, then the digest of the workspace's real path. A crew it declares opens in tmux with no name typed. The terminal stays the owner's own field, so a crew on a laptop still opens in kitty, unchanged.

Proven: the three #192 cases fail with the id line taken out of the writing call, which is main's behaviour, and the command run under that same line reproduces the refusal this was filed from (exit 1, the words are in PR 194). With the fix the same run writes "id": "project-c110e846" and ends 0, saying the crew is in tmux session project-c110e846.

Main push CI at 37fb64bb, judged from its tasks: advisories (15739), c4-model (15738, 15741), ci (15740-15759, the suite among them, the container tasks skipped by design), engine-drift (15746), host-drift (15747), standalone (15762, 15763). Every task succeeded.

Found in review and carried to #197, still open: a declaration copied to a second clone shares the first clone's session and up reports success while opening nothing; the double dash a 24-character cut can leave; and the comment and case title that claim more than holds.

Refs martha-ai/martha#197.

Purpose met (fix): the declaration `martha init` writes is one `martha up` can bring up, in either terminal a declaration may name. Landed on main as `37fb64bb` (PR 194, review r=1 PASS, base `2e937847`, tip `2a844c87`). `martha init` writes the crew's `id`, the name of its tmux session: the workspace folder in the letters tmux takes, then the digest of the workspace's real path. A crew it declares opens in tmux with no name typed. The terminal stays the owner's own field, so a crew on a laptop still opens in kitty, unchanged. Proven: the three #192 cases fail with the id line taken out of the writing call, which is main's behaviour, and the command run under that same line reproduces the refusal this was filed from (exit 1, the words are in PR 194). With the fix the same run writes `"id": "project-c110e846"` and ends 0, saying the crew is in tmux session project-c110e846. Main push CI at `37fb64bb`, judged from its tasks: advisories (15739), c4-model (15738, 15741), ci (15740-15759, the suite among them, the container tasks skipped by design), engine-drift (15746), host-drift (15747), standalone (15762, 15763). Every task succeeded. Found in review and carried to #197, still open: a declaration copied to a second clone shares the first clone's session and `up` reports success while opening nothing; the double dash a 24-character cut can leave; and the comment and case title that claim more than holds. Refs martha-ai/martha#197.
pluto closed this issue 2026-11-25 20:00:12 +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#192
No description provided.