Every declared role gets a shipped text, members name only declared roles, and the starter crew has a Supervisor #164

Closed
opened 2026-11-25 03:53:10 +00:00 by venus · 4 comments
Member

Purpose (product): a solo crew's members speak to the stranger who runs them, not of a "Supervisor" that a solo crew does not have. It is the first thing a new user reads from Martha.

Found in martha#149 run 2 (issuecomment-4146). A stranger followed https://macula.io/martha (docs v0.4.2): getting-started's "A team across your workspace" declaration ("mode": { "name": "solo", "roles": ["builder", "reviewer"] }), then martha up --prompt "say hello", and signed in. The first answers:

builder: ● Hello! I'm builder on this crew — ready to pick up a work package once the Supervisor's brief comes through.

builder (the same turn sent again): ● Hello again! I'm still waiting on a brief from the Supervisor before I start any work.

reviewer: ● Hello, stranger! I'm reviewer, this crew's reviewer. Once the Supervisor sends me a handoff, I'll review the commit range it names and send my verdict back to the Supervisor.

The crew declares no Supervisor, and no brief exists. getting-started says the opposite of what the members say: "You carry the change between them … so you type the hand-off to the reviewer yourself."

Where the text comes from. hand_a_member_its_crew_text.ts:216-217 gives each member the role text texts/roles/<role>.md and the mode text texts/modes/<mode name>.md; a file in the crew's own .martha/ comes first, then the shipped one. A solo crew with no texts of its own gets the shipped ones, and every one of them assumes a Supervisor:

  • src/hand_a_member_its_crew_text/texts/roles/builder.md:1: "The Supervisor coordinates; the reviewer reviews. Take the work the Supervisor's brief names, and ask the Supervisor when unsure." Line 5: "hand it off to the Supervisor by direct message".
  • texts/roles/reviewer.md:1: "The Supervisor sends you each handoff." Line 5: "Reply to the Supervisor by direct message".
  • Both role texts, line 3: "Questions, decisions and push asks go to your crew's Supervisor, never to {{owner}}."
  • texts/modes/solo.md:1: "Your brief is a file the Supervisor writes for you; your start prompt tells you where it is."

These are the team crew's texts. In solo mode the owner is the one a member works for and hands off to.

No fix in this issue; Mars places it. Refs #149.

Purpose (product): a solo crew's members speak to the stranger who runs them, not of a "Supervisor" that a solo crew does not have. It is the first thing a new user reads from Martha. Found in martha#149 run 2 (issuecomment-4146). A stranger followed https://macula.io/martha (docs v0.4.2): getting-started's "A team across your workspace" declaration (`"mode": { "name": "solo", "roles": ["builder", "reviewer"] }`), then `martha up --prompt "say hello"`, and signed in. The first answers: > builder: ● Hello! I'm builder on this crew — ready to pick up a work package once the Supervisor's brief comes through. > builder (the same turn sent again): ● Hello again! I'm still waiting on a brief from the Supervisor before I start any work. > reviewer: ● Hello, stranger! I'm reviewer, this crew's reviewer. Once the Supervisor sends me a handoff, I'll review the commit range it names and send my verdict back to the Supervisor. The crew declares no Supervisor, and no brief exists. getting-started says the opposite of what the members say: "You carry the change between them … so you type the hand-off to the reviewer yourself." **Where the text comes from.** `hand_a_member_its_crew_text.ts:216-217` gives each member the role text `texts/roles/<role>.md` and the mode text `texts/modes/<mode name>.md`; a file in the crew's own `.martha/` comes first, then the shipped one. A solo crew with no texts of its own gets the shipped ones, and every one of them assumes a Supervisor: - `src/hand_a_member_its_crew_text/texts/roles/builder.md:1`: "The Supervisor coordinates; the reviewer reviews. Take the work the Supervisor's brief names, and ask the Supervisor when unsure." Line 5: "hand it off to the Supervisor by direct message". - `texts/roles/reviewer.md:1`: "The Supervisor sends you each handoff." Line 5: "Reply to the Supervisor by direct message". - Both role texts, line 3: "Questions, decisions and push asks go to your crew's Supervisor, never to {{owner}}." - `texts/modes/solo.md:1`: "Your brief is a file the Supervisor writes for you; your start prompt tells you where it is." These are the team crew's texts. In solo mode the owner is the one a member works for and hands off to. No fix in this issue; Mars places it. Refs #149.
Owner

Rescoped by Raf, DECIDED 2026-11-25 "Yes, rescope it (Recommended)", after he asked "why wouldn't a solo-operator crew not have a Supervisor member?" and "what about the other roles we have defined in martha.json?? I feel the issue/brief is outdated".

Purpose (product): every role a crew declares gets a shipped role text that matches how it actually works, no member ever speaks of a role its crew does not declare, and a stranger's first crew has a Supervisor.

Done when:

  1. Martha ships a role text for each of the six roles the owner's crew runs: supervisor, dispatcher, architect, security, builder, reviewer, drawn from how this crew works today.
  2. The composed text names only roles the crew declares: with no dispatcher, hand-offs go to the Supervisor; with no Supervisor, they go to the owner. A test checks the composed text for each shape (solo and team, with and without supervisor/dispatcher).
  3. The first-run starter crew is supervisor + builder + reviewer; other roles are added in martha.json when wanted.
  4. docs/getting-started.md is rewritten to match and re-walked by a stranger at the next release.

Order: Venus writes the role texts as a short design first (one review read), then builds. After PR 163 lands.

Rescoped by Raf, DECIDED 2026-11-25 "Yes, rescope it (Recommended)", after he asked "why wouldn't a solo-operator crew not have a Supervisor member?" and "what about the other roles we have defined in martha.json?? I feel the issue/brief is outdated". **Purpose (product):** every role a crew declares gets a shipped role text that matches how it actually works, no member ever speaks of a role its crew does not declare, and a stranger's first crew has a Supervisor. **Done when:** 1. Martha ships a role text for each of the six roles the owner's crew runs: supervisor, dispatcher, architect, security, builder, reviewer, drawn from how this crew works today. 2. The composed text names only roles the crew declares: with no dispatcher, hand-offs go to the Supervisor; with no Supervisor, they go to the owner. A test checks the composed text for each shape (solo and team, with and without supervisor/dispatcher). 3. The first-run starter crew is supervisor + builder + reviewer; other roles are added in martha.json when wanted. 4. docs/getting-started.md is rewritten to match and re-walked by a stranger at the next release. Order: Venus writes the role texts as a short design first (one review read), then builds. After PR 163 lands.
supervisor changed title from A solo crew's members talk of a Supervisor and a brief on their first turn: the shipped role and solo texts assume a team to Every declared role gets a shipped text, members name only declared roles, and the starter crew has a Supervisor 2026-11-25 03:57:44 +00:00
Author
Member

Design: six role texts that name only the declared roles (#164, rescoped: comment 4157)

Purpose (product): every role a crew declares gets a shipped role text that matches how it works, no member ever speaks of a role its crew does not declare, and a stranger's first crew has a Supervisor.

What is there today

  • src/hand_a_member_its_crew_text/texts/ ships roles/{supervisor,builder,reviewer}.md, modes/{solo,team}.md and practice.md. A member's text is its role text + its mode text + practice + the conventions, with {{owner}}, {{handoff}}, {{verdict}} and the rest filled in. A file under the crew's own .martha/ wins over the shipped one.
  • Each text names the Supervisor unconditionally. builder.md: "hand it off to the Supervisor". modes/solo.md and team.md: "Your brief is a file the Supervisor writes". practice.md: "A reviewer hands the verdict to the builder".
  • dispatcher, architect and security have no shipped text, so a crew that declares one must write its own.

1. Who a line goes to is filled in, not written

Two new placeholders, resolved from the roles mode.roles declares:

placeholder dispatcher declared no dispatcher, Supervisor declared neither
{{hands_off_to}}: where a HANDOFF, a VERDICT and a BLOCKED go the dispatcher the Supervisor {{owner}}
{{asks_to}}: questions, decisions, push asks the Supervisor the Supervisor {{owner}}

Every routing sentence in the six texts uses them, so "the Supervisor" is never written in a builder, reviewer, architect or security text.

2. A sentence that only holds for some crews sits in a block

[[if <role>]] … [[end]] and [[if no <role>]] … [[end]] around whole sentences, where <role> is one of the six. The composer keeps or drops each block by mode.roles. An unknown role, or an unclosed or nested block, is refused by file and line, the way an unknown {{…}} is refused today, so a typo never reaches a member as text. Examples:

  • supervisor.md: "Route reviews: send each handoff to the reviewer…" sits in [[if no dispatcher]], so with a dispatcher that duty is the dispatcher's alone.
  • modes/*.md: "Your brief is a file the Supervisor writes" sits in [[if supervisor]]. [[if no supervisor]] says instead: "Your work comes from {{owner}}: the first prompt you are started with, or what {{owner}} types in your terminal."
  • practice.md: the line on verdicts going by direct message names {{hands_off_to}}, not "the builder".

3. The six texts, from how this crew works today (no crew-only words: no planet names, no forge, no Raf)

  • supervisor: coordinates for {{owner}} and does none of the members' work. Turns {{owner}}'s requests into work packages, each with a brief, appended to on the same day and marked DECIDED or IDEA. Rules on scope. Alone puts asks to {{owner}}: one yes/no per change, holding the range, the checks, what follows and the way back. Unblocks; never polices routine choices. [[if no dispatcher]] routes HANDOFF→reviewer and VERDICT→builder. Never pushes or tags without {{owner}}'s yes on the exact range.
  • dispatcher (new): routes the crew's traffic so the Supervisor can rule. Takes every HANDOFF, VERDICT and BLOCKED; sends a handoff to a reviewer who did not build it, and a verdict back to its builder; brings asks and rulings to the Supervisor; keeps a package moving and never decides scope.
  • architect (new): designs before code. Turns a work package into a short design (the parts, the seams, the order of the work) as a document handed off for one review read, and keeps the architecture pictures and decision records true to the code. Builds no feature; reviews designs. [[if security]] brings anything that touches trust, keys or input from outside to the security member first.
  • security (new): threat model before code. For a change that touches trust boundaries, keys, secrets or outside input, writes the threat model (who attacks, through what, what it costs the user) before the build; reviews such changes and FAILs only for harm an outside attacker can cause or real harm to a user. A what-if about a trusted member is one line of note, not a FAIL.
  • builder: one package at a time, in the area its brief names. Tests what it changes, claims only what it ran, and hands off to {{hands_off_to}} with {{handoff}}, or {{doc_handoff}} for a design. Asks go to {{asks_to}}.
  • reviewer: reviews exactly the range handed over and never what it built. Verdict to {{hands_off_to}} with {{verdict}}, required changes ranked, most severe first. A small required change may be fixed on the builder's branch and named in the verdict. The bar never drops to end a round.

4. The test: every shape, both modes

For mode ∈ {solo, team} × Supervisor ∈ {declared, not} × dispatcher ∈ {declared, not}, with builder and reviewer always declared and architect and security each declared in half the shapes: compose every member's text and check that

  • no role the crew does not declare is named (whole-word, either case, all six role names, plus "brief" when no Supervisor is declared);
  • every routing sentence names the right one: dispatcher, else Supervisor, else the owner's name.
    Mutants, each run once and named in the handoff: (a) put the old "Your brief is a file the Supervisor writes" back in modes/solo.md unguarded; (b) write "the Supervisor" for {{hands_off_to}} in builder.md; (c) make [[if no dispatcher]] keep its block always. Each fails the test.

5. The starter crew and the docs

martha init declares supervisor + builder + reviewer, still solo mode (no mesh). getting-started is rewritten to match: who the Supervisor is, that the owner talks to it, how a handoff moves. docs/the-declaration.md lists the six shipped texts and the two blocks. A stranger re-walks getting-started at the next release.

Size and split

Two PRs, I recommend:

  • PR A: the blocks and the two placeholders in the composer, the six texts, the shape test and its three mutants, the-declaration.md. About 6–8 hours.
  • PR B: the starter crew in martha init with its test, and the getting-started rewrite. About 2–3 hours. It goes after A lands, because getting-started quotes A's texts.
    Together about 10 hours, over two review rounds at most.
## Design: six role texts that name only the declared roles (#164, rescoped: comment 4157) Purpose (product): every role a crew declares gets a shipped role text that matches how it works, no member ever speaks of a role its crew does not declare, and a stranger's first crew has a Supervisor. ### What is there today - `src/hand_a_member_its_crew_text/texts/` ships `roles/{supervisor,builder,reviewer}.md`, `modes/{solo,team}.md` and `practice.md`. A member's text is its role text + its mode text + practice + the conventions, with `{{owner}}`, `{{handoff}}`, `{{verdict}}` and the rest filled in. A file under the crew's own `.martha/` wins over the shipped one. - Each text names the Supervisor unconditionally. builder.md: "hand it off to the Supervisor". modes/solo.md and team.md: "Your brief is a file the Supervisor writes". practice.md: "A reviewer hands the verdict to the builder". - `dispatcher`, `architect` and `security` have no shipped text, so a crew that declares one must write its own. ### 1. Who a line goes to is filled in, not written Two new placeholders, resolved from the roles `mode.roles` declares: | placeholder | dispatcher declared | no dispatcher, Supervisor declared | neither | |---|---|---|---| | `{{hands_off_to}}`: where a HANDOFF, a VERDICT and a BLOCKED go | the dispatcher | the Supervisor | `{{owner}}` | | `{{asks_to}}`: questions, decisions, push asks | the Supervisor | the Supervisor | `{{owner}}` | Every routing sentence in the six texts uses them, so "the Supervisor" is never written in a builder, reviewer, architect or security text. ### 2. A sentence that only holds for some crews sits in a block `[[if <role>]] … [[end]]` and `[[if no <role>]] … [[end]]` around whole sentences, where `<role>` is one of the six. The composer keeps or drops each block by `mode.roles`. An unknown role, or an unclosed or nested block, is refused by file and line, the way an unknown `{{…}}` is refused today, so a typo never reaches a member as text. Examples: - supervisor.md: "Route reviews: send each handoff to the reviewer…" sits in `[[if no dispatcher]]`, so with a dispatcher that duty is the dispatcher's alone. - modes/*.md: "Your brief is a file the Supervisor writes" sits in `[[if supervisor]]`. `[[if no supervisor]]` says instead: "Your work comes from {{owner}}: the first prompt you are started with, or what {{owner}} types in your terminal." - practice.md: the line on verdicts going by direct message names `{{hands_off_to}}`, not "the builder". ### 3. The six texts, from how this crew works today (no crew-only words: no planet names, no forge, no Raf) - **supervisor**: coordinates for {{owner}} and does none of the members' work. Turns {{owner}}'s requests into work packages, each with a brief, appended to on the same day and marked DECIDED or IDEA. Rules on scope. Alone puts asks to {{owner}}: one yes/no per change, holding the range, the checks, what follows and the way back. Unblocks; never polices routine choices. `[[if no dispatcher]]` routes HANDOFF→reviewer and VERDICT→builder. Never pushes or tags without {{owner}}'s yes on the exact range. - **dispatcher** (new): routes the crew's traffic so the Supervisor can rule. Takes every HANDOFF, VERDICT and BLOCKED; sends a handoff to a reviewer who did not build it, and a verdict back to its builder; brings asks and rulings to the Supervisor; keeps a package moving and never decides scope. - **architect** (new): designs before code. Turns a work package into a short design (the parts, the seams, the order of the work) as a document handed off for one review read, and keeps the architecture pictures and decision records true to the code. Builds no feature; reviews designs. `[[if security]]` brings anything that touches trust, keys or input from outside to the security member first. - **security** (new): threat model before code. For a change that touches trust boundaries, keys, secrets or outside input, writes the threat model (who attacks, through what, what it costs the user) before the build; reviews such changes and FAILs only for harm an outside attacker can cause or real harm to a user. A what-if about a trusted member is one line of note, not a FAIL. - **builder**: one package at a time, in the area its brief names. Tests what it changes, claims only what it ran, and hands off to {{hands_off_to}} with `{{handoff}}`, or `{{doc_handoff}}` for a design. Asks go to {{asks_to}}. - **reviewer**: reviews exactly the range handed over and never what it built. Verdict to {{hands_off_to}} with `{{verdict}}`, required changes ranked, most severe first. A small required change may be fixed on the builder's branch and named in the verdict. The bar never drops to end a round. ### 4. The test: every shape, both modes For mode ∈ {solo, team} × Supervisor ∈ {declared, not} × dispatcher ∈ {declared, not}, with builder and reviewer always declared and architect and security each declared in half the shapes: compose every member's text and check that - no role the crew does not declare is named (whole-word, either case, all six role names, plus "brief" when no Supervisor is declared); - every routing sentence names the right one: dispatcher, else Supervisor, else the owner's name. Mutants, each run once and named in the handoff: (a) put the old "Your brief is a file the Supervisor writes" back in modes/solo.md unguarded; (b) write "the Supervisor" for `{{hands_off_to}}` in builder.md; (c) make `[[if no dispatcher]]` keep its block always. Each fails the test. ### 5. The starter crew and the docs `martha init` declares supervisor + builder + reviewer, still solo mode (no mesh). getting-started is rewritten to match: who the Supervisor is, that the owner talks to it, how a handoff moves. `docs/the-declaration.md` lists the six shipped texts and the two blocks. A stranger re-walks getting-started at the next release. ### Size and split Two PRs, I recommend: - **PR A:** the blocks and the two placeholders in the composer, the six texts, the shape test and its three mutants, the-declaration.md. About 6–8 hours. - **PR B:** the starter crew in `martha init` with its test, and the getting-started rewrite. About 2–3 hours. It goes after A lands, because getting-started quotes A's texts. Together about 10 hours, over two review rounds at most.
Author
Member

Design #164: the change required by r=1 (Mars PASS with one required change)

A verdict goes to the builder, not up. Three placeholders replace the table's two:

placeholder dispatcher declared no dispatcher, Supervisor declared neither
{{hands_off_to}}: HANDOFF and BLOCKED the dispatcher the Supervisor {{owner}}
{{verdict_to}}: VERDICT the dispatcher the builder who handed it off the builder who handed it off
{{asks_to}}: questions, decisions, push asks the Supervisor the Supervisor {{owner}}

reviewer.md and practice.md use {{verdict_to}}. The shape test checks the verdict line in every shape, and a fourth mutant makes {{verdict_to}} resolve like {{hands_off_to}}; the test must fail on it.

The "brief" ban in shapes with no Supervisor reads only the shipped role and mode texts as composed, not the conventions or a crew's own files. A word like "brief" used in another sense there cannot make the test flaky.

The build is PR A as designed.

## Design #164: the change required by r=1 (Mars PASS with one required change) **A verdict goes to the builder, not up.** Three placeholders replace the table's two: | placeholder | dispatcher declared | no dispatcher, Supervisor declared | neither | |---|---|---|---| | `{{hands_off_to}}`: HANDOFF and BLOCKED | the dispatcher | the Supervisor | `{{owner}}` | | `{{verdict_to}}`: VERDICT | the dispatcher | the builder who handed it off | the builder who handed it off | | `{{asks_to}}`: questions, decisions, push asks | the Supervisor | the Supervisor | `{{owner}}` | reviewer.md and practice.md use `{{verdict_to}}`. The shape test checks the verdict line in every shape, and a fourth mutant makes `{{verdict_to}}` resolve like `{{hands_off_to}}`; the test must fail on it. **The "brief" ban** in shapes with no Supervisor reads only the shipped role and mode texts as composed, not the conventions or a crew's own files. A word like "brief" used in another sense there cannot make the test flaky. The build is PR A as designed.
Author
Member

Closing. Purpose (product): every role a crew declares gets a shipped role text matching how it works, no member speaks of a role its crew lacks, and a stranger's first crew has a Supervisor. MET.

  • PR A, #166 (landed at main d1e6684e). It shipped texts for all six roles: supervisor, builder, reviewer, dispatcher, architect and security. The [[if <role>]] / [[if no <role>]] blocks and the {{hands_off_to}}, {{verdict_to}} and {{asks_to}} routing come from the roles a crew declares. The shape test covers 8 crew shapes, and mutants a–g each fail it.
  • PR B, #172 (landed at main c373344a). martha init now declares builder, reviewer and supervisor. The solo table is unchanged, so the supervisor acts as the owner's session. A crew that names the solo mode keeps only the roles its members hold. The solo and team texts tell the Supervisor its own work comes from the owner, and a test pins that for init's crew and for a team; the old sentences fail it. getting-started walks a crew of three. The clean-install proof gives the supervisor its own turn and is green in run 4299.

One thing is still owed, as the design planned: a stranger re-walks getting-started at the next release. The new step 3 and step 4 text comes from the code; no stranger has run it yet.

Closing. **Purpose (product): every role a crew declares gets a shipped role text matching how it works, no member speaks of a role its crew lacks, and a stranger's first crew has a Supervisor. MET.** - **PR A, #166** (landed at main d1e6684e). It shipped texts for all six roles: supervisor, builder, reviewer, dispatcher, architect and security. The `[[if <role>]]` / `[[if no <role>]]` blocks and the `{{hands_off_to}}`, `{{verdict_to}}` and `{{asks_to}}` routing come from the roles a crew declares. The shape test covers 8 crew shapes, and mutants a–g each fail it. - **PR B, #172** (landed at main c373344a). `martha init` now declares builder, reviewer and supervisor. The solo table is unchanged, so the supervisor acts as the owner's session. A crew that names the solo mode keeps only the roles its members hold. The solo and team texts tell the Supervisor its own work comes from the owner, and a test pins that for init's crew and for a team; the old sentences fail it. getting-started walks a crew of three. The clean-install proof gives the supervisor its own turn and is green in run 4299. One thing is still owed, as the design planned: a stranger re-walks getting-started at the next release. The new step 3 and step 4 text comes from the code; no stranger has run it yet.
venus closed this issue 2026-11-25 09:03:08 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
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#164
No description provided.