@axiomantic/garden 0.2.29 → 0.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SKILL.md CHANGED
@@ -194,8 +194,8 @@ When an operator initiates a fresh project or requests multi-agent coordination
194
194
  Because the coding harness is auto-detected from the session environment (`ANTIGRAVITY_APP_DIR` $\to$ Antigravity IDE, `CLAUDE_CODE` $\to$ Claude Code CLI, `OPENCODE_SESSION_ID` $\to$ OpenCode, `CODEX_SESSION_ID` $\to$ ChatGPT Desktop / Codex, `PI_SESSION_ID` $\to$ Pi), the orchestrator invokes `ask_question` to conduct a streamlined **Single-Question Intake Interview**:
195
195
 
196
196
  1. **Single Question: Execution Mode & Swarm Shape in <Detected Harness>**:
197
- - *Option 1 (Recommended)*: Multi-Agent Swarm: Balanced Triad in <Detected Harness> (Systems Architect `@<project>-architect`, Adversarial Auditor `@<project>-auditor`, DevEx Lead `@<project>-implementer`).
198
- - *Option 2*: Multi-Agent Swarm: Focused Duo in <Detected Harness> (Implementation Lead `@<project>-implementer`, Adversarial Auditor `@<project>-auditor`).
197
+ - *Option 1 (Recommended)*: Multi-Agent Swarm: Balanced Triad in <Detected Harness> (Systems Architect `@architect`, Adversarial Auditor `@auditor`, DevEx Lead `@implementer`; unique listener codenames allocated via `rhizo name <project>`).
198
+ - *Option 2*: Multi-Agent Swarm: Focused Duo in <Detected Harness> (Implementation Lead `@implementer`, Adversarial Auditor `@auditor`; unique listener codenames allocated via `rhizo name <project>`).
199
199
  - *Option 3 (Deprioritized)*: Single-Agent Inline (Execute sequentially within current chat session; strongly discouraged for code edits to preserve orchestrator context for governance).
200
200
  - *Option 4*: Custom Swarm (Operator specifies custom roles or cross-harness distribution).
201
201
 
@@ -382,8 +382,8 @@ Zero Theatrical Dialogue: Every dialectical assertion must be substantiated with
382
382
  <CRITICAL>
383
383
  Worker Autonomous Execution Invariant (GVR-017):
384
384
  Swarm workers are sovereign, autonomous implementers, not passive chatbots.
385
- When 'rhizo listen' delivers an incoming task and exits, workers MUST NOT wait for an operator prompt or ask "Shall I begin?".
386
- They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work, submit the strand for independent audit ('vine submit'), report results, and re-arm the single-shot listener before concluding their turn. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
385
+ When a directive is delivered (unblocking 'rhizo listen' in CLI harnesses, or streamed directly via the Multiplexed Router in Antigravity, OpenCode, and Pi), workers MUST NOT wait for an operator prompt or ask "Shall I begin?".
386
+ They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work, submit the strand for independent audit ('vine submit'), report results, and re-arm their single-shot listener (CLI harnesses) or resume listening via the Multiplexed Router before concluding their turn. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
387
387
  </CRITICAL>
388
388
 
389
389
  <CRITICAL>
@@ -442,7 +442,7 @@ Context compaction purges detailed operational invariants, ceremony rules, and p
442
442
  <!-- END_SWARM_RUNTIME_STATE -->
443
443
 
444
444
  3. **Resurrected Agent Invariant**:
445
- Upon waking from compaction, the agent MUST immediately read the required skills, re-arm its single-shot listener (`rhizo listen <agent>`), check `implementation_plan.md`, and resume work under full ceremony discipline.
445
+ Upon waking from compaction, the agent MUST immediately read the required skills, verify its listener or session registration (`rhizo listen <agent>` in CLI harnesses or `rhizo open <agent>` in Multiplexed Router harnesses), check `implementation_plan.md`, and resume work under full ceremony discipline.
446
446
  </CRITICAL>
447
447
 
448
448
  ---
@@ -455,7 +455,7 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
455
455
  - **Escalate Immediately**: Prompt the operator via `ask_question` with the diagnostic status.
456
456
  - **Actionable Remediation**: Offer options to (1) re-arm the listener in the worker's terminal session (`rhizo listen <worker>`), (2) reboot the agent harness, or (3) reassign the task via `rhizo reroute <worker> <new_worker>`.
457
457
  3. **Orchestrator Self-Audit Watchdog (ONLY for OpenAI Codex / ChatGPT)**:
458
- - **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively receives incoming messages via the continuous background ear (`--agy-ear`) and `agentapi send-message`.
458
+ - **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively receives incoming messages via the host Multiplexed Router Service (`rhizo router`) and session registry (`agentapi send-message`).
459
459
  - **Codex / ChatGPT Watchdog Only**: In OpenAI Codex Desktop / CLI where background processes cannot reactively wake the harness, arm a scheduled watchdog timer or cron job with stepped backoff (15m $\rightarrow$ 30m $\rightarrow$ 60m $\rightarrow$ 120m $\rightarrow$ Stand Down at check 4).
460
460
  - **Reset Invariant**: Resets immediately to base 15m (streak 0) on any listener failure, unread inbox backlog, outbound task dispatch (`rhizo send`/`enqueue`), worker reply, or user chat prompt.
461
461
  - When the timer fires in Codex, execute the short check: `rhizo watchdog check --agent <orchestrator> --json` and follow `next_action` (`SCHEDULE_TIMER` or `STAND_DOWN`).
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiomantic/garden",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
5
5
  "main": "bin/run.js",
6
6
  "bin": {
@@ -37,7 +37,7 @@ graph TD
37
37
 
38
38
  <CRITICAL>
39
39
  Mandatory Independent Auditor Role (Key 3 Invariant):
40
- Swarm rosters MUST ALWAYS include a dedicated, independent Adversarial Auditor (@<project>-auditor).
40
+ Swarm rosters MUST ALWAYS include a dedicated, independent Adversarial Auditor (routable via `@auditor` capability tag, with unique listener codename allocated via `rhizo name <project>`).
41
41
  Workers who write code are strictly prohibited from auditing or ratifying their own deliverables. Vine's Key 3 gate mechanically rejects self-auditing (ExitGateAuditViolation = 6). The Adversarial Auditor must run in a dedicated, independent session to inspect submitted strands, enforce the Five Pillars, and execute 'vine audit approve --auditor <name>'.
42
42
  </CRITICAL>
43
43
 
@@ -137,42 +137,50 @@ Invoke `ask_question` with a SINGLE concise question combining execution mode an
137
137
  - Option 4: Custom configuration (allows user write-in).
138
138
 
139
139
  ### Step 4: Synthesize Swarm Specification
140
- Once ratified, Garden synthesizes the swarm configuration dynamically in memory (zero on-disk JSON). If inspectable output is needed, Garden emits to stdout or prompt cards in `/tmp/garden-<project>/`:
140
+ Once ratified, Garden synthesizes the swarm configuration dynamically in memory (zero on-disk JSON).
141
+
142
+ > [!NOTE]
143
+ > **Decoupling Triad Roles from Unique Listener IDs**: The Triad defines *roles* (`architect`, `auditor`, `implementer`) which are registered as capability tags in Rhizo (`--tags "<project>,<role>,..."`) for semantic multicast and routing (`@architect`, `@auditor`, `@implementer`). The unique listener IDs (`name` / `agent_id`) are collision-free codenames allocated dynamically via `rhizo name <project>` (e.g. `my-project-sequoia`, `my-project-kestrel`, `my-project-falcon`). Never assume static role names as unique listener IDs.
144
+
145
+ In Tier 1 harnesses (Google Antigravity, OpenCode, Pi), workers register with the host Multiplexed Router Service (`rhizo open <name>` / `rhizo session register <name>`), eliminating per-turn shell listeners. In CLI harnesses (Claude Code, Codex), workers arm single-shot listeners (`rhizo listen <name>`). If inspectable output is needed, Garden emits to stdout or prompt cards in `/tmp/garden-<project>/`:
141
146
 
142
147
  ```json
143
148
  {
144
149
  "project": "my-project",
145
150
  "created_at": "2026-09-28T12:00:00Z",
146
151
  "target_repo": "/Users/eek/Development/my-project",
147
- "orchestrator": "my-project-orchestrator",
152
+ "orchestrator": "@orchestrator",
148
153
  "workers": [
149
154
  {
150
- "name": "my-project-architect",
155
+ "name": "my-project-sequoia",
156
+ "role_slug": "architect",
151
157
  "persona": "Bramblestitch",
152
158
  "role": "Staff Systems Architect",
153
159
  "harness": "Antigravity IDE",
154
160
  "model": "Session Default (active in window/tab)",
155
- "tags": ["my-project", "systems", "architecture", "invariants"],
161
+ "tags": ["my-project", "architect", "systems", "architecture", "invariants"],
156
162
  "system_prompt": "You are Bramblestitch, Staff Systems Architect for project my-project...",
157
163
  "opposing_priority": "Structural purity, invariant guarantees, and long-term maintainability over hasty quick fixes."
158
164
  },
159
165
  {
160
- "name": "my-project-auditor",
166
+ "name": "my-project-kestrel",
167
+ "role_slug": "auditor",
161
168
  "persona": "Prickle-Thistle",
162
169
  "role": "Verification & Adversarial Auditor",
163
170
  "harness": "Claude Code CLI / Antigravity",
164
171
  "model": "Session Default (active in window/tab)",
165
- "tags": ["my-project", "qa", "audit", "verifier", "purist"],
172
+ "tags": ["my-project", "auditor", "qa", "audit", "verifier", "purist"],
166
173
  "system_prompt": "You are Prickle-Thistle, Verification & Adversarial Auditor for project my-project...",
167
174
  "opposing_priority": "Adversarial skepticism, rigorous negative controls, and proof over convenience."
168
175
  },
169
176
  {
170
- "name": "my-project-implementer",
177
+ "name": "my-project-falcon",
178
+ "role_slug": "implementer",
171
179
  "persona": "Moss-Weaver",
172
180
  "role": "DevEx & Implementation Lead",
173
181
  "harness": "Antigravity / OpenCode",
174
182
  "model": "Session Default (active in window/tab)",
175
- "tags": ["my-project", "dev", "devex", "build", "implementation"],
183
+ "tags": ["my-project", "implementer", "dev", "devex", "build", "implementation"],
176
184
  "system_prompt": "You are Moss-Weaver, DevEx & Implementation Lead for project my-project...",
177
185
  "opposing_priority": "High-velocity implementation, pragmatic delivery, and developer ergonomics."
178
186
  }
@@ -327,6 +327,9 @@ Rejection is the low-friction fast path whenever ANY doubt, defect, green mirage
327
327
  Approval is intentionally high-friction and evidence-bound. Running `vine audit approve` strictly requires `--evidence "..."` citing specific changed file basenames, provider->consumer call-sites, and negative control assertions from the diff:
328
328
  `vine audit approve <task_id> --auditor <name> --ticket <hex> --evidence "<changed files, provider->consumer call-sites, negative controls>" --listen`
329
329
  Passing vague praise or empty justifications without empirical diff citations is mechanically and procedurally rejected.
330
+
331
+ > [!NOTE]
332
+ > **Multiplexed Router vs CLI Subprocesses**: In CLI subprocess harnesses (Claude Code, Codex), `--listen` re-arms the single-shot listener upon delivering the audit decision. In Multiplexed Router harnesses (Google Antigravity, OpenCode, Pi), the session is continuously connected to the host router, so per-turn listener re-arming is not required.
330
333
  </CRITICAL>
331
334
 
332
335
  1. **Mandatory Inspection (`vine audit inspect <task_id>`)**: Before issuing any audit decision (`approve` or `reject`), the Auditor MUST execute `vine audit inspect <task_id>` to inspect the deliverable claim bundle, delivery ticket, strand git diff, and test evidence. Approving an audit blindly without inspection is strictly prohibited.
@@ -194,8 +194,8 @@ When an operator initiates a fresh project or requests multi-agent coordination
194
194
  Because the coding harness is auto-detected from the session environment (`ANTIGRAVITY_APP_DIR` $\to$ Antigravity IDE, `CLAUDE_CODE` $\to$ Claude Code CLI, `OPENCODE_SESSION_ID` $\to$ OpenCode, `CODEX_SESSION_ID` $\to$ ChatGPT Desktop / Codex, `PI_SESSION_ID` $\to$ Pi), the orchestrator invokes `ask_question` to conduct a streamlined **Single-Question Intake Interview**:
195
195
 
196
196
  1. **Single Question: Execution Mode & Swarm Shape in <Detected Harness>**:
197
- - *Option 1 (Recommended)*: Multi-Agent Swarm: Balanced Triad in <Detected Harness> (Systems Architect `@<project>-architect`, Adversarial Auditor `@<project>-auditor`, DevEx Lead `@<project>-implementer`).
198
- - *Option 2*: Multi-Agent Swarm: Focused Duo in <Detected Harness> (Implementation Lead `@<project>-implementer`, Adversarial Auditor `@<project>-auditor`).
197
+ - *Option 1 (Recommended)*: Multi-Agent Swarm: Balanced Triad in <Detected Harness> (Systems Architect `@architect`, Adversarial Auditor `@auditor`, DevEx Lead `@implementer`; unique listener codenames allocated via `rhizo name <project>`).
198
+ - *Option 2*: Multi-Agent Swarm: Focused Duo in <Detected Harness> (Implementation Lead `@implementer`, Adversarial Auditor `@auditor`; unique listener codenames allocated via `rhizo name <project>`).
199
199
  - *Option 3 (Deprioritized)*: Single-Agent Inline (Execute sequentially within current chat session; strongly discouraged for code edits to preserve orchestrator context for governance).
200
200
  - *Option 4*: Custom Swarm (Operator specifies custom roles or cross-harness distribution).
201
201
 
@@ -382,8 +382,8 @@ Zero Theatrical Dialogue: Every dialectical assertion must be substantiated with
382
382
  <CRITICAL>
383
383
  Worker Autonomous Execution Invariant (GVR-017):
384
384
  Swarm workers are sovereign, autonomous implementers, not passive chatbots.
385
- When 'rhizo listen' delivers an incoming task and exits, workers MUST NOT wait for an operator prompt or ask "Shall I begin?".
386
- They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work, submit the strand for independent audit ('vine submit'), report results, and re-arm the single-shot listener before concluding their turn. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
385
+ When a directive is delivered (unblocking 'rhizo listen' in CLI harnesses, or streamed directly via the Multiplexed Router in Antigravity, OpenCode, and Pi), workers MUST NOT wait for an operator prompt or ask "Shall I begin?".
386
+ They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work, submit the strand for independent audit ('vine submit'), report results, and re-arm their single-shot listener (CLI harnesses) or resume listening via the Multiplexed Router before concluding their turn. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
387
387
  </CRITICAL>
388
388
 
389
389
  <CRITICAL>
@@ -442,7 +442,7 @@ Context compaction purges detailed operational invariants, ceremony rules, and p
442
442
  <!-- END_SWARM_RUNTIME_STATE -->
443
443
 
444
444
  3. **Resurrected Agent Invariant**:
445
- Upon waking from compaction, the agent MUST immediately read the required skills, re-arm its single-shot listener (`rhizo listen <agent>`), check `implementation_plan.md`, and resume work under full ceremony discipline.
445
+ Upon waking from compaction, the agent MUST immediately read the required skills, verify its listener or session registration (`rhizo listen <agent>` in CLI harnesses or `rhizo open <agent>` in Multiplexed Router harnesses), check `implementation_plan.md`, and resume work under full ceremony discipline.
446
446
  </CRITICAL>
447
447
 
448
448
  ---
@@ -455,7 +455,7 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
455
455
  - **Escalate Immediately**: Prompt the operator via `ask_question` with the diagnostic status.
456
456
  - **Actionable Remediation**: Offer options to (1) re-arm the listener in the worker's terminal session (`rhizo listen <worker>`), (2) reboot the agent harness, or (3) reassign the task via `rhizo reroute <worker> <new_worker>`.
457
457
  3. **Orchestrator Self-Audit Watchdog (ONLY for OpenAI Codex / ChatGPT)**:
458
- - **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively receives incoming messages via the continuous background ear (`--agy-ear`) and `agentapi send-message`.
458
+ - **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively receives incoming messages via the host Multiplexed Router Service (`rhizo router`) and session registry (`agentapi send-message`).
459
459
  - **Codex / ChatGPT Watchdog Only**: In OpenAI Codex Desktop / CLI where background processes cannot reactively wake the harness, arm a scheduled watchdog timer or cron job with stepped backoff (15m $\rightarrow$ 30m $\rightarrow$ 60m $\rightarrow$ 120m $\rightarrow$ Stand Down at check 4).
460
460
  - **Reset Invariant**: Resets immediately to base 15m (streak 0) on any listener failure, unread inbox backlog, outbound task dispatch (`rhizo send`/`enqueue`), worker reply, or user chat prompt.
461
461
  - When the timer fires in Codex, execute the short check: `rhizo watchdog check --agent <orchestrator> --json` and follow `next_action` (`SCHEDULE_TIMER` or `STAND_DOWN`).
@@ -22,17 +22,18 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
22
22
  Instead, orchestrators MUST output concise session assignments with clickable file links (e.g. `/tmp/garden-<project>/<worker>.md`).
23
23
  Inside the generated files and when `--inline` is passed, blocks are wrapped in 10 backticks (``````````markdown) to protect nested markdown and shell code blocks.
24
24
  </CRITICAL>
25
- 3. **Single-Shot Listener Discipline**:
25
+ 3. **Listener Discipline & Multiplexed Router**:
26
26
  <CRITICAL>
27
- Inside worker prompts, `rhizo listen <name>` must always be presented as a single-shot, blocking foreground command with zero timeout (infinite wait).
28
- NEVER wrap `rhizo listen` in a shell loop (`while true; do rhizo listen; done` or `until rhizo listen; do ...`). Loops trap message payloads inside unmonitored subshell logs and hang coordination.
27
+ Coordination operates in two harness-specific listener models:
28
+ - **Multiplexed Router Harnesses (Google Antigravity, OpenCode, Pi)**: Sessions register via `rhizo open <name> "<tags>"` or `rhizo session register <name> --tags "<tags>"`. One singleton `rhizo router` service listens for all agents on the machine and routes messages directly to the right session/conversation ID, while hooks and CLI commands automatically update `rhizo:agent:<name>` and `rhizo:agy_host:<machine_id>` whenever the language server address or CSRF token changes. Agents in these harnesses DO NOT need to run blocking `rhizo listen <name>` subprocesses every turn!
29
+ - **CLI Subprocess Harnesses (Claude Code, Codex, Generic Shells)**: Inside worker prompts, `rhizo listen <name>` must always be presented as a single-shot, blocking foreground command with zero timeout (infinite wait). NEVER wrap `rhizo listen` in a shell loop (`while true; do rhizo listen; done` or `until rhizo listen; do ...`). Loops trap message payloads inside unmonitored subshell logs and hang coordination.
29
30
  </CRITICAL>
30
31
  4. **Worker Autonomous Execution Invariant (GVR-017)**:
31
32
  <CRITICAL>
32
33
  Swarm workers operate as sovereign, autonomous implementers, not passive chatbots.
33
- When 'rhizo listen' unblocks and exits, a directive has been delivered!
34
+ When a directive arrives (unblocking 'rhizo listen' in CLI harnesses, or streamed directly via the Multiplexed Router in Antigravity, OpenCode, and Pi), a directive has been delivered!
34
35
  Workers MUST NOT wait for operator intervention or ask "Shall I start?".
35
- They MUST immediately inspect the delivered directive, claim the task, switch to their isolated Vine strand, execute the requested work, submit the strand for independent audit ('vine submit'), report results, and re-arm their single-shot listener. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
36
+ They MUST immediately inspect the delivered directive, claim the task, switch to their isolated Vine strand, execute the requested work, submit the strand for independent audit ('vine submit'), report results, and re-arm their single-shot listener (CLI harnesses) or resume listening via the Multiplexed Router. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
36
37
  </CRITICAL>
37
38
  5. **Zero Dirty Commits**:
38
39
  - Never stage coordination state (`.rhizo.*`, `*.lock`, `workspaces/`) into Git. Vine stores strand identity in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis (zero state files in the working tree).
@@ -47,11 +48,11 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
47
48
 
48
49
  8. **Mutual Arrival Handshake Invariant**:
49
50
  <CRITICAL>
50
- Swarm workers MUST NEVER boot into silent, passive blocking listeners.
51
+ Swarm workers MUST NEVER boot into silent, passive states.
51
52
  Turn 1 of every worker prompt card mandates executing the Mutual Arrival Handshake:
52
53
  `rhizo send --to "@<orchestrator>" --subject "WORKER_READY" --body "..."`
53
- This broadcast guarantees that the Orchestrator's background listener is immediately woken upon session initialization.
54
- Conversely, the Lead Orchestrator MUST arm its background listener (`rhizo listen <orchestrator>`) in the exact turn that prompt cards are emitted to prevent bootstrap deadlocks.
54
+ This broadcast guarantees that the Orchestrator is immediately notified upon session initialization.
55
+ Conversely, in CLI subprocess harnesses, the Lead Orchestrator MUST arm its background listener (`rhizo listen <orchestrator>`) in the exact turn that prompt cards are emitted to prevent bootstrap deadlocks. In Multiplexed Router harnesses (Antigravity, OpenCode, Pi), the orchestrator session is automatically registered via `rhizo open` / `rhizo session register` with the host `rhizo router` service.
55
56
  </CRITICAL>
56
57
 
57
58
  ---
@@ -96,38 +97,41 @@ Run `garden prompts` (or `garden launch`) from the project root:
96
97
  # Output all worker prompts to terminal (and optionally write to file):
97
98
  garden prompts --write garden-prompts.md
98
99
 
99
- # Or generate for a specific worker:
100
- garden prompts --worker <project>-architect # (or suffix shorthand: --worker architect)
100
+ # Or generate for a specific worker or role:
101
+ garden prompts --role architect # Filter by triad role
102
+ garden prompts --worker <unique_id> # Or filter by unique codename
101
103
  ```
102
104
 
103
- Garden automatically synthesizes the standard balanced triad with procedurally generated whimsical entities (e.g. botanical spirits, clockwork automatons, mythical cryptids):
104
- - `@<project>-architect` (e.g. Bramblestitch / Cogswell Pendulum - Staff Systems Architect)
105
- - `@<project>-auditor` (e.g. Prickle-Thistle / Grumblewick Snark - Verification & Adversarial Auditor)
106
- - `@<project>-implementer` (e.g. Moss-Weaver / Sprocket-Hop - DevEx & Implementation Lead)
105
+ Garden automatically synthesizes the standard balanced triad with procedurally generated whimsical entities and unique listener codenames (e.g. botanical spirits, clockwork automatons, mythical cryptids):
106
+ - `@architect` tag (e.g. Bramblestitch - Staff Systems Architect; unique listener ID: `<project>-sequoia`)
107
+ - `@auditor` tag (e.g. Prickle-Thistle - Verification & Adversarial Auditor; unique listener ID: `<project>-kestrel`)
108
+ - `@implementer` tag (e.g. Moss-Weaver - DevEx & Implementation Lead; unique listener ID: `<project>-falcon`)
107
109
 
108
110
  ### Step 2: Present & Paste Prompts into Sessions
109
111
  The Orchestrator presents the generated prompt blocks to the operator with clear, structured guidance:
110
112
 
111
113
  1. **Numbered Terminal Tab / Session Instructions**:
112
114
  Provide a concise setup list instructing the operator on how many sessions to open and which harness/model to configure for each:
113
- - **Session 1 (@<project>-architect)**: e.g. Antigravity IDE (Window 1) or Claude Code CLI (Tab 1) $\to$ Paste Card 1
114
- - **Session 2 (@<project>-auditor)**: e.g. Claude Code CLI (Tab 2) or Antigravity IDE (Window 2) $\to$ Paste Card 2
115
- - **Session 3 (@<project>-implementer)**: e.g. Antigravity IDE (Window 3) or OpenCode $\to$ Paste Card 3
115
+ - **Session 1 (@architect / <unique_id>)**: e.g. Antigravity IDE (Window 1) or Claude Code CLI (Tab 1) $\to$ Paste Card 1
116
+ - **Session 2 (@auditor / <unique_id>)**: e.g. Claude Code CLI (Tab 2) or Antigravity IDE (Window 2) $\to$ Paste Card 2
117
+ - **Session 3 (@implementer / <unique_id>)**: e.g. Antigravity IDE (Window 3) or OpenCode $\to$ Paste Card 3
116
118
  2. **Harness & Model Agnostic Flexibility**:
117
119
  Explicitly reassure the operator: *"Workers can run in ANY coding harness (Antigravity, Claude Code, OpenCode, Pi, Cursor) and inherit the active model configured in that window/session. Coordination occurs strictly over Rhizo (local Redis) and Vine (Rift strands)."*
118
120
  3. **Temp File Links (Zero Inline Chat Flooding)**:
119
- NEVER paste the multi-page prompt card bodies inline into chat. Output the concise list of workers with clickable file links:
120
- - **@<project>-architect**: `/tmp/garden-<project>/<project>-architect.md`
121
- - **@<project>-auditor**: `/tmp/garden-<project>/<project>-auditor.md`
122
- - **@<project>-implementer**: `/tmp/garden-<project>/<project>-implementer.md`
121
+ NEVER paste the multi-page prompt card bodies inline into chat. Output the concise list of workers with clickable file links (written with both role slug and unique ID):
122
+ - **Architect**: `/tmp/garden-<project>/architect-<unique_id>.md` and `/tmp/garden-<project>/<unique_id>.md`
123
+ - **Auditor**: `/tmp/garden-<project>/auditor-<unique_id>.md` and `/tmp/garden-<project>/<unique_id>.md`
124
+ - **Implementer**: `/tmp/garden-<project>/implementer-<unique_id>.md` and `/tmp/garden-<project>/<unique_id>.md`
123
125
  - **All Combined**: `/tmp/garden-<project>/all-workers.md`
124
126
  4. **Immediate Autonomous Onboarding**:
125
127
  Each prompt instructs the pasted session to immediately:
126
128
  - `cd "<project_dir>"`
127
- - `export RHIZO_AGENT_NAME="<name>"`
128
- - `rhizo open "<name>" "<tags>"`
129
- - `rhizo hook install --codex --agent "<name>"` (if running in Codex CLI/Desktop)
130
- - `rhizo listen "<name>"` (blocking foreground command with infinite wait)
129
+ - `export RHIZO_AGENT_ID="<unique_id>"`
130
+ - `export RHIZO_AGENT_NAME="<unique_id>"`
131
+ - `rhizo open "<unique_id>" "<tags>"` (registers session in Redis registry with host Multiplexed Router)
132
+ - `rhizo hook install --antigravity --agent "<unique_id>"` (if running in Antigravity IDE)
133
+ - `rhizo hook install --codex --agent "<unique_id>"` (if running in Codex CLI/Desktop)
134
+ - `rhizo listen "<unique_id>"` (ONLY in CLI harnesses: Claude Code, Codex, Generic Shells)
131
135
  5. **Scheduled Health Check Template (ONLY for OpenAI Codex / ChatGPT CLI)**:
132
136
  In Google Antigravity (using the continuous ambient ear and hooks) and OpenCode (using background ear), DO NOT configure scheduled tasks; reactive event/hook streams handle wakeups natively.
133
137
  In Codex Desktop / CLI where sessions cannot wake from background process exits without external stimulation, prompts include the bulletproof 4-step template:
@@ -114,17 +114,22 @@ Context compaction purges detailed operational invariants, ceremony rules, and p
114
114
  <!-- END_SWARM_RUNTIME_STATE -->
115
115
 
116
116
  3. **Resurrected Agent Invariant**:
117
- Upon waking from compaction, the agent MUST immediately read the required skills, re-arm its single-shot listener (`rhizo listen <agent>`), check `implementation_plan.md`, and resume work under full ceremony discipline.
117
+ Upon waking from compaction, the agent MUST immediately read the required skills, verify its listener or session registration (`rhizo listen <agent>` in CLI harnesses or `rhizo open <agent>` in Multiplexed Router harnesses), check `implementation_plan.md`, and resume work under full ceremony discipline.
118
118
  </CRITICAL>
119
119
 
120
120
  <CRITICAL>
121
121
  Orchestrator Turn-End Listener Invariant (GVR-014):
122
- Coding harnesses (Antigravity, Claude Code, OpenCode) are event-driven: when the model yields a turn with text output, execution is completely suspended. Redis inbox state changes CANNOT wake an idle harness without an active child process registered in the task manager.
123
-
124
- Whenever the Lead Orchestrator dispatches a task, broadcasts instructions, awaits worker responses, or emits worker prompt cards ('garden prompts' / 'garden launch'), THE FINAL ACTION OF THAT TURN MUST BE ARMING A BACKGROUND LISTENER:
125
- `run_command(CommandLine="rhizo listen <orchestrator>", IsDaemon=false, WaitMsBeforeAsync=500)`
126
-
127
- FORBIDDEN: Never yield the conversation turn to the operator after dispatching work or emitting prompt cards without an active background listener running. Yielding a turn without a listener severs the swarm's physical lifeline, trapping worker replies and mutual arrival handshakes ('WORKER_READY') in Redis and causing silent swarm deadlocks.
122
+ Coding harnesses operate in two distinct coordination modes:
123
+ 1. **Multiplexed Router Harnesses (Google Antigravity, OpenCode, Pi)**:
124
+ The orchestrator session registers its identity via `rhizo open <orchestrator>` or `rhizo session register <orchestrator>`.
125
+ A single singleton host Multiplexed Router Service (`rhizo router`) manages all message listening and routing on the host, directing worker arrival handshakes (`WORKER_READY`), gate reports, and task replies directly to the orchestrator's session/conversation ID.
126
+ Hooks (`rhizo hook install --antigravity`) and CLI calls automatically refresh the token and address registry (`rhizo:agent:<name>`, `rhizo:agy_host:<machine_id>`) whenever the language server address or CSRF token changes.
127
+ Orchestrators in these harnesses DO NOT need to spawn blocking `rhizo listen` subprocesses at the end of every turn!
128
+ 2. **CLI Subprocess Harnesses (Claude Code, Codex, Generic Shells)**:
129
+ Coding harnesses are event-driven: when the model yields a turn with text output, execution is completely suspended. Redis inbox state changes CANNOT wake an idle harness without an active child process registered in the task manager.
130
+ Whenever the Lead Orchestrator in a CLI subprocess harness dispatches a task, broadcasts instructions, awaits worker responses, or emits worker prompt cards ('garden prompts' / 'garden launch'), THE FINAL ACTION OF THAT TURN MUST BE ARMING A BACKGROUND LISTENER:
131
+ `run_command(CommandLine="rhizo listen <orchestrator>", IsDaemon=false, WaitMsBeforeAsync=500)`
132
+ FORBIDDEN: Never yield the conversation turn to the operator after dispatching work or emitting prompt cards without an active background listener running in CLI subprocess harnesses. Yielding a turn without a listener severs the swarm's physical lifeline, trapping worker replies and mutual arrival handshakes ('WORKER_READY') in Redis and causing silent swarm deadlocks.
128
133
 
129
134
  Safety Net (In-Flight Task Liveness Probe & Watchdog Protocol):
130
135
  - **Antigravity & OpenCode Idle Exemption**: When idle or waiting for routine replies in Google Antigravity (using background `run_command(CommandLine="rhizo listen <orchestrator>", IsDaemon=false, WaitMsBeforeAsync=500)`) and OpenCode (using background ear), DO NOT schedule recurring cron timers. Antigravity's task manager natively and reactively resumes execution on process exit when `rhizo listen` delivers a message.
@@ -267,9 +272,10 @@ Depending on the task distribution model in `implementation_plan.md`:
267
272
 
268
273
  - **Direct Assignment (O2O)**:
269
274
  ```bash
270
- rhizo send --to <project>-architect \
275
+ rhizo send --to @architect \
271
276
  --subject "Task 1.1: Core Data Structures" \
272
277
  --body '{"task_id": "task-core-ds", "instructions": "Implement AST node kinds and message serializers. Use vine strand.", "strand": "strand/task-core-ds"}'
278
+ # (Can also address worker by unique listener codename: rhizo send --to <unique_id> ...)
273
279
  ```
274
280
 
275
281
  - **Competing-Consumers Work Queue**:
@@ -279,12 +285,13 @@ Depending on the task distribution model in `implementation_plan.md`:
279
285
  --body '{"task_id": "task-test-harness", "strand": "strand/task-test-harness"}'
280
286
  ```
281
287
 
282
- - **Mandatory Turn-End Listener Arming**:
283
- Immediately after executing `rhizo send` or `rhizo enqueue`, arm your single-shot background listener before completing your turn:
284
- ```bash
285
- run_command(CommandLine="rhizo listen <project>-orchestrator", IsDaemon=false, WaitMsBeforeAsync=500)
286
- ```
287
- *(Never end your turn without this active background task; without it, worker gate reports cannot wake you up).*
288
+ - **Mandatory Turn-End Listener Arming / Router Verification**:
289
+ - In **Multiplexed Router Harnesses** (Google Antigravity, OpenCode, Pi): Your session is already registered with the singleton `rhizo router` via `rhizo open <orchestrator>` or `rhizo session register`. Incoming worker responses, arrival handshakes, and gate reports stream directly into your context. Spawning per-turn blocking `rhizo listen` subprocesses is NOT required.
290
+ - In **CLI Subprocess Harnesses** (Claude Code, Codex, Generic Shells): Immediately after executing `rhizo send` or `rhizo enqueue`, arm your single-shot background listener before completing your turn:
291
+ ```bash
292
+ run_command(CommandLine="rhizo listen <project>-orchestrator", IsDaemon=false, WaitMsBeforeAsync=500)
293
+ ```
294
+ *(Never end your turn in CLI harnesses without this active background task; without it, worker gate reports cannot wake you up).*
288
295
 
289
296
  ### SOP 2: Monitoring Swarm Health, Watchdog & Escalation (GVR-011)
290
297
  Check active workers and cluster status:
@@ -34,22 +34,22 @@ The generated implementation plan must follow this exact template:
34
34
  # Implementation Plan: [Feature / Project Name]
35
35
 
36
36
  ## 1. Swarm Roster & Role Mapping
37
- | Worker Name | Persona | Role | Assigned Subsystems |
38
- | :--- | :--- | :--- | :--- |
39
- | `<project>-architect` | Bramblestitch (or topical spirit) | Staff Systems Architect | Core data structures, API contracts |
40
- | `<project>-auditor` | Prickle-Thistle (or topical spirit) | Refactoring Purist | Unit tests, negative controls, linter |
41
- | `<project>-implementer` | Moss-Weaver (or topical spirit) | DevEx & Implementation Lead | CLI commands, adapters, docs |
37
+ | Swarm Role (@tag) | Unique Listener Codename | Persona | Role Title | Assigned Subsystems |
38
+ | :--- | :--- | :--- | :--- | :--- |
39
+ | `@architect` | `<project>-sequoia` | Bramblestitch (or topical spirit) | Staff Systems Architect | Core data structures, API contracts |
40
+ | `@auditor` | `<project>-kestrel` | Prickle-Thistle (or topical spirit) | Verification & Adversarial Auditor | Unit tests, negative controls, Key 3 audit |
41
+ | `@implementer` | `<project>-falcon` | Moss-Weaver (or topical spirit) | DevEx & Implementation Lead | CLI commands, adapters, docs |
42
42
 
43
43
  ---
44
44
 
45
45
  ## 2. Distributed Locking & Concurrency Schedule
46
46
  Before modifying any shared or non-mergeable file, the designated worker must obtain an atomic lease:
47
47
  - **Lock Target**: `file:src/config.nim`
48
- - *Owner*: `<project>-architect`
48
+ - *Owner*: `@architect` (`<project>-sequoia`)
49
49
  - *Command*: `rhizo lock file:src/config.nim 600 --fencing`
50
50
  - *Monotonic Fencing Counter*: Record token in task execution log.
51
51
  - **Lock Target**: `file:migrations/001_schema.sql`
52
- - *Owner*: `<project>-implementer`
52
+ - *Owner*: `@implementer` (`<project>-falcon`)
53
53
  - *Command*: `rhizo lock file:migrations/001_schema.sql 300 --fencing`
54
54
 
55
55
  ---
@@ -77,6 +77,7 @@ For all parallel development tracks:
77
77
  # Or to reject if defects are found:
78
78
  vine audit reject <task_id> --auditor <auditor> --ticket <hex> --reason "<findings>" --listen
79
79
  ```
80
+ *(Note: In Multiplexed Router harnesses such as Google Antigravity, OpenCode, and Pi, per-turn `--listen` re-arming is handled automatically by the host `rhizo router` service).*
80
81
  Remember: THE WORKER IS NOT THE AUDITOR. Auditors NEVER use `--force` and NEVER act as release/merge clerks (no editing `ROADMAP.md`, no resolving `CHANGELOG.md` merge conflicts, and no weaving on behalf of workers).
81
82
  4. **Trunk Weaving & DAG Cascading (Lead Orchestrator Role)**:
82
83
  *Fast-forwards ratified branch into epic/<slug> or main, automatically calls `rhizo task complete <task_id>`, and unblocks downstream DAG child tasks (`BLOCKED` $\rightarrow$ `QUEUED`):*
@@ -89,14 +90,14 @@ For all parallel development tracks:
89
90
  ## 4. Phase-by-Phase Task Checklist
90
91
 
91
92
  ### Phase 0: Contract Skeleton (Pre-Plan Stage 3.5 on `epic/<slug>`)
92
- - [x] **Task 0.1: Contract Skeleton Strand & Red Tests** (`<project>-architect`)
93
+ - [x] **Task 0.1: Contract Skeleton Strand & Red Tests** (`@architect`)
93
94
  - *Strand*: `strand/task-<slug>-skeleton` (`--parent epic/<slug>`)
94
95
  - *Committed Deliverables*: Idiomatic types, interfaces, and callable stubs with `UNIMPLEMENTED_CONTRACT` in `src/types.nim`, `src/api.nim`
95
96
  - *Committed Contract Tests*: `tests/test_contract.nim` asserting contract compliance (failing red against stubs)
96
97
  - *Weave*: `vine submit --skeleton && vine audit inspect task-<slug>-skeleton && vine audit approve task-<slug>-skeleton && vine weave`
97
98
 
98
99
  ### Phase 1: Core Engine Primitives (Branching off `epic/<slug>`)
99
- - [ ] **Task 1.1: Core Data Structures** (`<project>-architect`)
100
+ - [ ] **Task 1.1: Core Data Structures** (`@architect`)
100
101
  - *Strand*: `strand/task-core-ds` (`--parent epic/<slug>`)
101
102
  - *Anchored Skeleton Symbols*: `src/types.nim:15-80` (`ASTNode`, `NodeKind`, `serializeNode`)
102
103
  - *Contract Test Suite*: `tests/test_contract.nim` (must turn from red to green)
@@ -107,7 +108,7 @@ For all parallel development tracks:
107
108
  - *Holistic Verification*: Real AST nodes evaluate in full parser pipeline (no dummy mocks)
108
109
  - *Weave*: `vine submit && vine audit inspect task-core-ds && vine audit approve && vine weave && rhizo unlock file:src/types.nim`
109
110
 
110
- - [ ] **Task 1.2: Test Harness & Negative Controls** (`<project>-auditor`)
111
+ - [ ] **Task 1.2: Test Harness & Negative Controls** (`@auditor`)
111
112
  - *Strand*: `strand/task-test-harness` (`--parent epic/<slug>`)
112
113
  - *Provider*: `tests/test_harness.py`
113
114
  - *Consumer / Call-Site*: Wire test runner into CI workflow and `tests/all.py`