Six role texts that name only the roles a crew declares (#164, PR A) #166
Loading…
Reference in a new issue
No description provided.
Delete branch "venus/164-role-texts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (product): every role a crew declares gets a shipped role text that matches how it works, and no member ever speaks of a role its crew does not declare. This is PR A of #164's design (issuecomment-4172, plus the r=1 change in 4173). PR B, the starter crew and the getting-started rewrite, follows once this lands. Refs #164.
Who a line goes to is filled in (
the_crews_roles.ts):{{hands_off_to}}: HANDOFF, BLOCKED{{verdict_to}}: VERDICT{{asks_to}}: questions, decisions, push asksBlocks.
[[if <role>]]…[[end]]and[[if no <role>]]…[[end]]are kept or dropped bymode.roles. An unknown role, a stray[[end]], a nested block or an unclosed block is refused asCrewTextRefusednaming the file and line. A text with no mark is returned untouched. The practice is numbered after its blocks are read, so a dropped rule leaves no empty number.Texts. New:
roles/dispatcher.md,architect.mdandsecurity.md. Rewritten:supervisor.md,builder.md,reviewer.md,modes/solo.md,modes/team.mdandpractice.md. They describe the other members by what they do, and they hold no crew-only words. With no Supervisor, a member's work comes from the owner's first prompt or terminal, and the practice drops the same-day brief rule. The progress rule offerssupervisoras awaiting_onvalue only when there is one.docs/the-declaration.mdgains "What each role is told".Test (
the_crews_roles.node-test.ts): eight shapes, solo and team × with or without a Supervisor × with or without a dispatcher, with architect and security each declared in half of them. In every member's composed section:[[/{{mark is left;The expected parties are written in the test, not asked of
whoEachLineGoesTo.Mutants, each applied, run and restored; each fails the test:
{{hands_off_to}}: fail 2.[[if no …]]blocks always kept: fail 1.{{verdict_to}}resolving like{{hands_off_to}}: fail 1.Other changes.
BUILDER,REVIEWERandSECURITYstay module-private. The tree spells those words as literals in about 300 places, so exporting them made check:restated-values judge each one.Local checks. Composer tests 26/26. The test files of the composer's users (a_crews_tools, heed_the_crew_tools, the package contract, launch, start_a_member, approve, declare_crew, init, architecture): 721 tests, 720 pass, 0 fail. tsc and eslint are clean. These pass on the range: check:restated-values, check:private, check:base-tests (459 files, every title kept), check:no-import-cycle and check:marthas-names.
Martha ships a role text for supervisor, dispatcher, architect, security, builder and reviewer. Who a line goes to is filled in from the declared roles: {{hands_off_to}} (a HANDOFF or a BLOCKED: the dispatcher, else the Supervisor, else the owner), {{verdict_to}} (the dispatcher, else back to the member who handed the work off) and {{asks_to}} (the Supervisor, else the owner). A sentence that holds only for some crews sits in an [[if <role>]] or [[if no <role>]] block, kept or dropped by mode.roles; an unknown role, a stray [[end]], a nested or unclosed block is refused by file and line. The mode texts say where a member's work comes from with no Supervisor, the practice drops the same-day brief rule then, and the progress rule names supervisor as a waiting_on only when there is one. A test composes every member of eight shapes (solo and team, with and without a Supervisor and a dispatcher) and finds no undeclared role, no brief without a Supervisor, and each line routed to the one who takes it.Mars's r=1 FAIL: any [[…]] was read as a block, so a crew's conventions holding a shell test or a wiki link would stop it starting. Now only [[if <role>]], [[if no <role>]] and [[end]] are marks, and everything else is text. Trailing spaces and blank lines are tidied only where a dropped block stood, so hard breaks and code stay as written. {{verdict_to}} without a dispatcher is the member who built the work: with a Supervisor routing, the one who handed the work to the reviewer is not its builder. A {{…}} Martha does not fill is refused even inside a dropped block.