martha room: the owner reads the whole crew room and says a line in it (#364, part 1) #365

Manually merged
terra merged 0 commits from saturnus/364-room-follow into main 2026-12-02 12:17:37 +00:00
Member

Purpose (feature): the owner follows the whole crew room from outside any member and says a line in it (#364, DECIDED 2026-12-02 "Whole room").

This PR is the gate-side part. The martha room --follow command wiring and refusal 4 (martha room refused inside a member) come after #361 (PR 363) lands, because they share its files (run_the_martha_command.ts, refuse_an_owner_act_from_inside_a_member.ts). Agreed with the dispatcher.

What changes

  • crew_channel.ts: readTheRoom gives every message with whether it is the owner's line. appendTheOwnersLine writes it with the mark by_owner. appendToTheChannel now keeps only a message's four fields, so no member send can carry the mark.
  • follow_the_crew_room: followTheRoom prints each message once as a JSON line, then what lands while it waits. sayAsTheOwner takes {to, text} through the same addressing a member's send uses.
  • The mesh-room gate is not used. Why is in #364: the crew's own talk never passes through a mesh room.
  • Drawn in architecture (the crew's rows box, and its README row).

Harm each change could do, and what holds it

  • The owner's read shows text a member wrote. It reaches a person as a JSON string, never a model.
  • A row read as the owner's would carry the owner's authority. Only appendTheOwnersLine sets the mark, and the channel's own append strips it from any other caller.

Refusals, each tested; mutants, each killed (7/7)

  1. A member is handed only rows addressed to it or to the crew, the owner's lines included (M6, M3).
  2. A member's send never carries the mark, even under the owner's name, and even when an object carrying it is handed in (M1).
  3. The owner's line to a stranger, or one with no text or not a JSON object, writes nothing (M4, M5).
  • Also killed: the owner's line left unmarked (M2), and a follow printing a message twice (M7).

Proof: the whole npm test in its own namespace at this tip: 5967 tests, 5929 pass, 0 fail, 38 skipped. npm run verify passes, with the private and posted-text checks.

Refs #364

Purpose (feature): the owner follows the whole crew room from outside any member and says a line in it (#364, DECIDED 2026-12-02 "Whole room"). This PR is the gate-side part. The `martha room --follow` command wiring and refusal 4 (`martha room` refused inside a member) come after #361 (PR 363) lands, because they share its files (run_the_martha_command.ts, refuse_an_owner_act_from_inside_a_member.ts). Agreed with the dispatcher. **What changes** - crew_channel.ts: `readTheRoom` gives every message with whether it is the owner's line. `appendTheOwnersLine` writes it with the mark `by_owner`. `appendToTheChannel` now keeps only a message's four fields, so no member send can carry the mark. - follow_the_crew_room: `followTheRoom` prints each message once as a JSON line, then what lands while it waits. `sayAsTheOwner` takes `{to, text}` through the same addressing a member's send uses. - The mesh-room gate is not used. Why is in #364: the crew's own talk never passes through a mesh room. - Drawn in architecture (the crew's rows box, and its README row). **Harm each change could do, and what holds it** - The owner's read shows text a member wrote. It reaches a person as a JSON string, never a model. - A row read as the owner's would carry the owner's authority. Only appendTheOwnersLine sets the mark, and the channel's own append strips it from any other caller. **Refusals, each tested; mutants, each killed (7/7)** 1. A member is handed only rows addressed to it or to the crew, the owner's lines included (M6, M3). 2. A member's send never carries the mark, even under the owner's name, and even when an object carrying it is handed in (M1). 3. The owner's line to a stranger, or one with no text or not a JSON object, writes nothing (M4, M5). - Also killed: the owner's line left unmarked (M2), and a follow printing a message twice (M7). **Proof:** the whole `npm test` in its own namespace at this tip: 5967 tests, 5929 pass, 0 fail, 38 skipped. `npm run verify` passes, with the private and posted-text checks. Refs #364
The crew room is the crew's channel: readTheRoom gives the owner every message, and
appendTheOwnersLine writes the owner's line with a mark only it sets. appendToTheChannel
now keeps a message's four fields alone, so no member's send can carry the mark, even
from a member declared under the owner's name. follow_the_crew_room prints the room as
JSON lines and takes the owner's line through the addressing a member's send uses.
The mesh-room gate is not used: the crew's own talk never passes through a mesh room.
DECIDED 2026-12-02 "Whole room".

Refs martha-ai/martha#364
terra manually merged commit 28b8909b99 into main 2026-12-02 12:17:37 +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!365
No description provided.