@axiomantic/garden 0.2.22 → 0.2.23
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/README.md +9 -19
- package/bin/binaries/garden-darwin-arm64 +0 -0
- package/bin/binaries/garden-darwin-x64 +0 -0
- package/bin/binaries/garden-linux-arm64 +0 -0
- package/bin/binaries/garden-linux-x64 +0 -0
- package/bin/binaries/garden-win32-x64.exe +0 -0
- package/package.json +3 -3
- package/skills/choose-personas/SKILL.md +12 -10
- package/skills/dialectical-pump/SKILL.md +18 -21
- package/skills/garden/SKILL.md +44 -22
- package/skills/launch-workers/SKILL.md +51 -21
- package/skills/orchestrate-swarm/SKILL.md +70 -37
- package/skills/plan-implementation/SKILL.md +9 -11
package/README.md
CHANGED
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
> ```text
|
|
28
28
|
> "garden: I want to build [feature/system/project]"
|
|
29
29
|
> ```
|
|
30
|
-
> The session automatically acts as the **Lead Orchestrator**. It auto-detects your coding harness and conducts a single-question intake interview to calibrate your desired team shape and session-default models. It then configures your project (`garden.toml` & `garden-swarm.json`) and
|
|
30
|
+
> The session automatically acts as the **Lead Orchestrator**. It auto-detects your coding harness and conducts a single-question intake interview to calibrate your desired team shape and session-default models. It then configures your project (`garden.toml` & `garden-swarm.json`) and writes prompt cards to files for you to manually assign to new or existing chat sessions. Garden coordinates the entire swarm over Rhizo (local Redis message bus) and Vine (isolated Rift copy-on-write workspaces)!
|
|
31
31
|
|
|
32
|
-
Instead of treating AI agents as isolated single-turn chatbots, Garden provisions **prompt-bootstrapped worker swarms** across your favorite AI coding harnesses (Claude Code, OpenCode, Antigravity, Pi, Cursor), balances specialized personas with designated foundation models, drives **empirically grounded dialectical deliberation**, schedules distributed fencing mutexes, and integrates code through isolated Rift copy-on-write strands verified by Vine's
|
|
32
|
+
Instead of treating AI agents as isolated single-turn chatbots, Garden provisions **prompt-bootstrapped worker swarms** across your favorite AI coding harnesses (Claude Code, OpenCode, Antigravity, Pi, Cursor), balances specialized personas with designated foundation models, drives **empirically grounded dialectical deliberation**, schedules distributed fencing mutexes, and integrates code through isolated Rift copy-on-write strands verified by Vine's Three-Key Gate.
|
|
33
33
|
|
|
34
34
|
```mermaid
|
|
35
35
|
flowchart TD
|
|
@@ -46,7 +46,7 @@ flowchart TD
|
|
|
46
46
|
|
|
47
47
|
subgraph Layer2["Layer 2: Vine (Workstream Integrator)"]
|
|
48
48
|
Strands["Rift Strands (Zero-cost copy-on-write workspaces)"]
|
|
49
|
-
TwoKey["
|
|
49
|
+
TwoKey["Three-Key Gate (Mechanical + Semantic + Independent Audit)"]
|
|
50
50
|
Weave["Trunk Weaving (Fast-forward verified branches)"]
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ Garden is organized into a clean, batteries-included catalog of self-explanatory
|
|
|
74
74
|
| **[`launch-workers`](skills/launch-workers/SKILL.md)** | **Session Bootstrapping** | Generates self-contained, 10-backtick raw markdown prompt cards for pasting into separate terminal sessions (Claude Code, OpenCode, Antigravity, Pi). Configures environment variables, registers identities via `rhizo open`, and arms single-shot listeners. |
|
|
75
75
|
| **[`dialectical-pump`](skills/dialectical-pump/SKILL.md)** | **Empirical Deliberation** | Drives multi-perspective thesis/antithesis/synthesis debates. Strictly prohibits theatrical roleplay: every turn requires tool execution (reading files, running tests, checking ASTs). Produces `understanding.md`, `design.md`, and `audit_report.md`. |
|
|
76
76
|
| **[`plan-implementation`](skills/plan-implementation/SKILL.md)** | **Master Scheduling** | Authors `implementation_plan.md` defining task assignment matrices, `rhizo` distributed fencing locks, `vine` strand workflows, dynamic markdown checkboxes, harness To-Do integration, and emergent design addenda. |
|
|
77
|
-
| **[`orchestrate-swarm`](skills/orchestrate-swarm/SKILL.md)** | **Main-Chat Governor** | Governs execution from the primary chat session: dispatches tasks over Redis, tracks heartbeats, ratifies emergent design addenda, verifies
|
|
77
|
+
| **[`orchestrate-swarm`](skills/orchestrate-swarm/SKILL.md)** | **Main-Chat Governor** | Governs execution from the primary chat session: dispatches tasks over Redis, tracks heartbeats, ratifies emergent design addenda, verifies Three-Key gate passes, and triggers `vine weave`. |
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
@@ -92,16 +92,6 @@ Garden provides comprehensive ceremony, manifest, and protocol specifications:
|
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|
|
95
|
-
## Standalone Yet Designed for the Axiomantic Triad
|
|
96
|
-
|
|
97
|
-
Garden is completely standalone and can direct multi-agent dialectics, persona selection, and prompt-bootstrapped worker swarms on any codebase.
|
|
98
|
-
|
|
99
|
-
However, Garden is designed from the ground up to pair seamlessly with **Rhizo** and **Vine**:
|
|
100
|
-
- [**Rhizo**](https://github.com/axiomantic/rhizo) (Transport & Concurrency): Inter-agent messaging bus, monotonic fencing locks, and task queues over Redis.
|
|
101
|
-
- [**Vine**](https://github.com/axiomantic/vine) (Workspaces & Verification): Zero-cost Rift copy-on-write strands, polyglot build-cache normalization, and the Two-Key integration gate (`git merge-tree` mechanical + compiler/test suite semantic checks).
|
|
102
|
-
- **Garden** (Swarm Ceremonies): Prompt-based worker session bootstrapping, 3-stage empirical dialectical pump (research, architecture, audit), and master ceremonial implementation planning.
|
|
103
|
-
|
|
104
|
-
---
|
|
105
95
|
|
|
106
96
|
## Installation
|
|
107
97
|
|
|
@@ -212,7 +202,7 @@ Garden authors `implementation_plan.md`:
|
|
|
212
202
|
- Sets up dynamic progress checkboxes and harness To-Do tracking.
|
|
213
203
|
|
|
214
204
|
### 6. Live Orchestration & Trunk Weaving (`orchestrate-swarm`)
|
|
215
|
-
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands, run unit tests, and verify
|
|
205
|
+
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands, run unit tests, and verify Keys 1 & 2 (`vine submit`). An independent adversarial auditor reviews and ratifies Key 3 (`vine audit approve`). When ratified, the orchestrator executes `vine weave` to fast-forward verified code into `main` with zero merge conflicts!
|
|
216
206
|
|
|
217
207
|
---
|
|
218
208
|
|
|
@@ -221,13 +211,13 @@ The main chat orchestrator dispatches work over Redis. Workers code in isolated
|
|
|
221
211
|
| Command | Arguments | Description |
|
|
222
212
|
| :--- | :--- | :--- |
|
|
223
213
|
| `garden plant` | `"<description>" [--season <name>] [--sunlight <level>] [--tags <csv>] [--list] [--json]` | Sow a roadmap seed to `.garden/seeds/<id>.toml` or list sown seeds. |
|
|
224
|
-
| `garden germinate` | `<dispatch
|
|
214
|
+
| `garden germinate` | `<dispatch|prompt|inline|status> <seed_id>` | Deterministically germinate a seed via Rhizo work queues, prompt cards, inline pump, or status query. |
|
|
225
215
|
| `garden prompts` | `[--worker <name>] [--inline] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Generate bootstrap prompt cards (written to /tmp/garden-<project>/ by default; pass --inline for stdout). |
|
|
226
216
|
| `garden launch` | `[--worker <name>] [--inline] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Bootstrap swarm worker sessions (writes prompt cards to /tmp/garden-<project>/). |
|
|
227
217
|
| `garden status` | `[--json]` | Telemetry query across active Rhizo agents, listener status, and Vine strands. |
|
|
228
218
|
| `garden init` | `[<target_dir>] [--force]` | Initialize `garden.toml`, docs scaffold, and install guide in `AGENTS.md`. |
|
|
229
219
|
| `garden teardown`| `[--swarm-file <file>]` | Gracefully close registered swarm agents on the Redis bus. |
|
|
230
|
-
| `garden guide` | `<install
|
|
220
|
+
| `garden guide` | `<install|check|uninstall> [path]` | Install or manage Garden Multi-Agent Swarm Guide in `AGENTS.md`. |
|
|
231
221
|
|
|
232
222
|
---
|
|
233
223
|
|
|
@@ -291,8 +281,8 @@ The main chat orchestrator dispatches work over Redis. Workers code in isolated
|
|
|
291
281
|
The main chat session coordinates, reviews, and integrates. Intensive multi-file edits are executed by the worker fleet in isolated strands.
|
|
292
282
|
2. **Empirical Grounding Protocol (Zero Theatrical Dialogue)**:
|
|
293
283
|
Dialectical deliberations must cite hard evidence from real tool calls (line citations, test outputs, compiler errors). Theatrical roleplay is strictly banned.
|
|
294
|
-
3. **
|
|
295
|
-
No code is merged into the trunk without passing
|
|
284
|
+
3. **Three-Key Gate Verification**:
|
|
285
|
+
No code is merged into the trunk without passing Key 1 (in-memory `git merge-tree` mechanical check), Key 2 (live semantic compiler and test suite run), and Key 3 (independent adversarial audit ratification via `vine audit approve`). Workers submit strands with `vine submit` and CANNOT audit their own work.
|
|
296
286
|
4. **Zero Dirty Commits**:
|
|
297
287
|
All agent identity files, session state, and temporary lockfiles are strictly ignored in `.gitignore`.
|
|
298
288
|
|
|
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.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
|
|
5
5
|
"main": "bin/run.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/axiomantic/garden#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@axiomantic/rhizo": "^0.2.
|
|
54
|
-
"@axiomantic/vine": "^0.2.
|
|
53
|
+
"@axiomantic/rhizo": "^0.2.25",
|
|
54
|
+
"@axiomantic/vine": "^0.2.13",
|
|
55
55
|
"rift-snapshot": "^0.0.13"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -25,16 +25,22 @@ graph TD
|
|
|
25
25
|
C <-->|Coherence Tension| A
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
1. **The Systems Architect
|
|
28
|
+
1. **The Systems Architect**:
|
|
29
29
|
- **Focus**: Global system topology, invariants, lifecycle management, failure modes, cross-component boundaries.
|
|
30
30
|
- **Bias**: Prefers structural purity and comprehensive conceptual models.
|
|
31
|
-
2. **The Purist Auditor / Refactoring Specialist
|
|
31
|
+
2. **The Purist Auditor / Refactoring Specialist**:
|
|
32
32
|
- **Focus**: Single-source of truth (SSOT), ISO standards compliance, dead-code elimination, zero green mirages, edge-case failure proofs.
|
|
33
33
|
- **Bias**: Adversarial skeptic. Assumes claims are unproven until verified by an automated test or compiler run.
|
|
34
|
-
3. **The DevEx & Implementation Lead
|
|
34
|
+
3. **The DevEx & Implementation Lead**:
|
|
35
35
|
- **Focus**: Developer experience, API ergonomics, ease of adoption, idiomatic conventions, pragmatic delivery.
|
|
36
36
|
- **Bias**: Champions the human engineer using the tool; eliminates cognitive overhead and unnecessary friction.
|
|
37
37
|
|
|
38
|
+
<CRITICAL>
|
|
39
|
+
Mandatory Independent Auditor Role (Key 3 Invariant):
|
|
40
|
+
Swarm rosters MUST ALWAYS include a dedicated, independent Adversarial Auditor (@<project>-auditor).
|
|
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
|
+
</CRITICAL>
|
|
43
|
+
|
|
38
44
|
---
|
|
39
45
|
|
|
40
46
|
## 2. Harness & Model Alignment
|
|
@@ -58,13 +64,9 @@ Swarm workers operate in sovereign interactive sessions and inherit whatever fou
|
|
|
58
64
|
</CRITICAL>
|
|
59
65
|
|
|
60
66
|
<CRITICAL>
|
|
61
|
-
Whimsical Personas &
|
|
62
|
-
1. Strict
|
|
63
|
-
2.
|
|
64
|
-
- Botanical / Biological: Briar-Weaver, Sprout-Surge, Root-Tender, Bark-Scraper, Mycelium-Mender
|
|
65
|
-
- Clockwork / Artificer: Gear-Whisperer, Escapement-Caliber, Ratcheteer, Piston-Spark, Clocksmith-Spindle
|
|
66
|
-
- Mythical / Cryptid: Astral-Gryphon, Iron-Basilisk, Forge-Salamander, Chimera-Mason, Gargoyle-Gaze
|
|
67
|
-
- Celestial / Nautical: Nebula-Drifter, Solar-Flare, Coral-Carver, Deep-Current, Tide-Warden
|
|
67
|
+
Whimsical Non-Human Personas & Dynamic Invention Invariant (GVR-017):
|
|
68
|
+
1. Strict Non-Human Constraint: Personas MUST NEVER be human or humanoid personal names (e.g. first/last name combinations). Personas MUST be purely non-human entities: botanical, clockwork, mythical, mineral, or topological compound monikers.
|
|
69
|
+
2. Dynamic Synthesis Mandate: When configuring or recommending swarm personas, NEVER draw from or reuse static, generic, or example lists. Dynamically synthesize completely original, inventive compound monikers ([Descriptor]-[Entity/Craft]) tailored specifically to the target project's domain.
|
|
68
70
|
</CRITICAL>
|
|
69
71
|
|
|
70
72
|
| Role Mandate | Recommended Harness | Model Alignment | Rationale |
|
|
@@ -177,6 +177,8 @@ The Auditor executes the following checks against the Claim Bundle and the stran
|
|
|
177
177
|
#### Pillar 2: Holistic Integration vs. Heuristic Hand-Waves & Hollow Stubs
|
|
178
178
|
- [ ] **Anti-Stub & Anti-Toy Check**: Does the implementation handle real application state, real network/file I/O, and real concurrent events?
|
|
179
179
|
- [ ] **No Hollow Mocks in Production**: Reject artificial `sleep()` calls, hardcoded success responses, or fake test doubles in production paths.
|
|
180
|
+
- [ ] **Anti-Defeat-Device & Anti-Theatrical Interceptor Mandate**: Strictly reject prompt keyword interceptors (e.g. `if 'flight game' in q or 'webworker' in q`) and theatrical mock questionnaires in generic runtimes that bypass genuine neural/radar/algorithmic pipelines to fake benchmark compliance. This is a critical `CRIT-DEFEAT-DEVICE` defect requiring complete elimination.
|
|
181
|
+
- [ ] **Autonomous Intensive Audit Mandate**: Intensive audits are Standard Operating Procedure (SOP) and pre-authorized. Auditors must execute without requesting operator confirmation or input.
|
|
180
182
|
- [ ] **Brittle String-Split Hacks**: Reject naive string splits (`str.split(" ")[0]`) pretending to parse structured protocols or payloads; compliant lexers/parsers must be used.
|
|
181
183
|
- [ ] **Swallowed Exceptions**: Reject empty `except: pass` or `catch: discard` blocks that sweep real error conditions under the rug.
|
|
182
184
|
|
|
@@ -218,45 +220,40 @@ sequenceDiagram
|
|
|
218
220
|
participant A as Adversarial Auditor
|
|
219
221
|
participant G as Gate (Vine / Garden)
|
|
220
222
|
|
|
221
|
-
W
|
|
223
|
+
Note over W: Worker finishes and runs 'vine submit'
|
|
224
|
+
W->>A: Submit Deliverable Claim Bundle ('vine submit')
|
|
222
225
|
A->>A: Five-Pillar Presumption-of-Guilt Audit (Antithesis)
|
|
223
226
|
|
|
224
227
|
alt Findings > 0 (CRIT / HIGH / MED)
|
|
228
|
+
A->>G: 'vine audit reject --reason <text>'
|
|
225
229
|
A-->>W: Emit audit_report.md with empirical citations
|
|
226
230
|
Note over W: Worker remediates findings inside Strand
|
|
227
|
-
W->>A: Re-pump:
|
|
231
|
+
W->>A: Re-pump: 'vine submit' (Delta Claim Bundle + git diff against last audit commit)
|
|
228
232
|
A->>A: Delta Audit: Verify fix + full test regression sweep
|
|
229
233
|
Note over A,W: Loop repeats until 0 open defects
|
|
230
234
|
else Findings == 0
|
|
231
|
-
A->>G:
|
|
235
|
+
A->>G: 'vine audit approve --auditor <name>' (Stamps audit_token)
|
|
232
236
|
G->>G: Execute vine weave (Trunk Fast-Forward)
|
|
233
237
|
end
|
|
234
238
|
```
|
|
235
239
|
|
|
236
|
-
|
|
240
|
+
> [!CRITICAL]
|
|
241
|
+
> **THE WORKER IS NOT THE AUDITOR**: Workers cannot audit or approve their own strands (`vine audit approve` strictly enforces `auditor != author`). The audit MUST be performed by an independent Adversarial Auditor session.
|
|
242
|
+
|
|
243
|
+
1. **Defect Issuance**: If defects are discovered, the Auditor runs `vine audit reject --reason "<defects>"` and records findings in `audit_report.md` with defect codes (`CRIT-XX`, `HIGH-XX`, `FIDELITY-XX`, `MIRAGE-XX`), exact file lines, and failure proof.
|
|
237
244
|
2. **In-Strand Remediation**: The worker fixes findings strictly inside the isolated Vine strand.
|
|
238
|
-
3. **The Delta Re-Pump**: When resubmitting
|
|
245
|
+
3. **The Delta Re-Pump**: When resubmitting with `vine submit`, the auditor audits the **exact delta** (`git diff <audit_commit>...HEAD`) to ensure fixes do not introduce secondary defects, while re-running the full project test suite (`vine gate`) to guarantee no regressions.
|
|
239
246
|
4. **Exit Condition**: The pump loops until **ZERO open defects of severity CRIT, HIGH, or MED remain**, and all low/nit items are resolved or empirically justified.
|
|
240
247
|
|
|
241
248
|
### Step 4.4: Gate Clearance & Cryptographic Token
|
|
242
249
|
|
|
243
|
-
When all findings reach 0, the auditor
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
"status": "GATE_AUDIT_PASSED",
|
|
247
|
-
"task_id": "<task-id>",
|
|
248
|
-
"audit_iterations": 2,
|
|
249
|
-
"five_pillars": {
|
|
250
|
-
"closed_circuit": "VERIFIED",
|
|
251
|
-
"holistic_integration": "VERIFIED",
|
|
252
|
-
"literal_fidelity": "VERIFIED",
|
|
253
|
-
"replacement_purge": "VERIFIED",
|
|
254
|
-
"structural_assertions": "VERIFIED"
|
|
255
|
-
},
|
|
256
|
-
"gate_token": "AUDIT_PASS_SHA256_..."
|
|
257
|
-
}
|
|
250
|
+
When all findings reach 0, the independent auditor ratifies Key 3:
|
|
251
|
+
```bash
|
|
252
|
+
vine audit approve --auditor <auditor_name>
|
|
258
253
|
```
|
|
259
|
-
|
|
254
|
+
This mechanically verifies Keys 1 & 2, checks that the strand has zero uncommitted changes, ensures `auditor != author`, and stamps a cryptographic `audit_token` in `.vine.json`.
|
|
255
|
+
|
|
256
|
+
Only strands in `AUDIT_RATIFIED` state with a valid cryptographic audit token are permitted to weave into trunk (`vine weave`).
|
|
260
257
|
|
|
261
258
|
---
|
|
262
259
|
|
package/skills/garden/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: garden
|
|
3
|
-
description: "Master entrypoint and umbrella conductor for the Axiomantic Multi-Agent Swarm Triad (Garden + Rhizo + Vine). Activating Garden automatically coordinates Rhizo for transport/concurrency and Vine for Rift workspace virtualization. Guides the user through feature sowing (garden plant), deterministic germination (garden germinate dispatch|prompt|inline|status), conversational intake, persona selection, prompt-based worker fleet bootstrapping with 10-backtick copy-paste cards, 3-stage empirical dialectical pump (research, design, audit), master implementation planning, and
|
|
3
|
+
description: "Master entrypoint and umbrella conductor for the Axiomantic Multi-Agent Swarm Triad (Garden + Rhizo + Vine). Activating Garden automatically coordinates Rhizo for transport/concurrency and Vine for Rift workspace virtualization. Guides the user through feature sowing (garden plant), deterministic germination (garden germinate dispatch|prompt|inline|status), conversational intake, persona selection, prompt-based worker fleet bootstrapping with 10-backtick copy-paste cards, 3-stage empirical dialectical pump (research, design, audit), master implementation planning, and Three-Key gate trunk weaving. Triggers: 'garden', 'swarm', 'multi-agent', 'agent team', 'coordinate agents', 'parallel agents', 'run swarm', 'start swarm', 'run garden', 'swarm this project', 'orchestrate with garden', 'start garden swarm', 'run the full garden ceremony', 'start a project with garden', 'start a project with rhizo', 'set up a multi-agent team', 'use rhizo for this project', 'set up a swarm', 'coordinate multiple agents on this project', 'set up agents for this project', 'garden plant', 'garden germinate', 'sow seed', 'germinate', 'roadmap'."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Garden: Multi-Agent Swarm Ceremony & Orchestration Engine
|
|
@@ -40,7 +40,7 @@ flowchart TD
|
|
|
40
40
|
|
|
41
41
|
subgraph Infrastructure["Coordination Infrastructure"]
|
|
42
42
|
Rhizo["Rhizo (Redis Bus, Fencing Mutexes, Work Queues)"]
|
|
43
|
-
Vine["Vine (Rift Strands,
|
|
43
|
+
Vine["Vine (Rift Strands, Three-Key Gate, Weaving)"]
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
Phase0 --> Phase1 --> Phase2 --> Phase3 --> Phase4 --> Phase5
|
|
@@ -121,17 +121,22 @@ Instead, it acts as an **Intelligent Intake Concierge**:
|
|
|
121
121
|
|
|
122
122
|
3. **Execution Branching**:
|
|
123
123
|
- **If Option 1 selected**: Run `garden plant "<prompt>"`, then proceed to Cold-Start Swarm Calibration / Phase 1 `choose-personas` (or attach to active swarm via Fast-Path) and Phase 3 `dialectical-pump`.
|
|
124
|
-
- **If Option 2 selected**: Check `rhizo who --json`. If workers are online, dispatch via `rhizo send` or `rhizo enqueue`. If cold, run Cold-Start Swarm Calibration to spin up workers.
|
|
124
|
+
- **If Option 2 selected**: Check `rhizo who --all --json`. If workers are online, dispatch via `rhizo send` or `rhizo enqueue`. If cold, run Cold-Start Swarm Calibration to spin up workers.
|
|
125
125
|
- **If Option 3 selected**: Execute inline in the current session.
|
|
126
126
|
|
|
127
127
|
#### Fast-Path: Re-using an Active / Existing Swarm (First-Look Invariant)
|
|
128
|
-
Before asking ANY intake questions or presenting configuration modals, the designated orchestrator MUST run `rhizo who --json` to inspect the cluster.
|
|
128
|
+
Before asking ANY intake questions or presenting configuration modals, the designated orchestrator MUST run `rhizo who --all --json` to inspect the cluster across all projects.
|
|
129
129
|
If active, healthy workers are ALREADY registered and listening on the Rhizo cluster:
|
|
130
130
|
- **DO NOT** ask intake interview questions or prompt the operator for new sessions or models.
|
|
131
131
|
- **DO NOT** display swarm composition or harness questions.
|
|
132
132
|
- Automatically attach to the existing online workers (`@worker-1`, `@worker-2`, ...).
|
|
133
133
|
- Confirm cluster readiness and proceed immediately to Phase 3 (Dialectical Pump / Task Breakdown) or Phase 5 (Task Dispatch).
|
|
134
134
|
|
|
135
|
+
<CRITICAL>
|
|
136
|
+
Operator-Named Worker Delegation Mandate:
|
|
137
|
+
When the operator explicitly requests or names a worker or peer session (e.g. 'u + autopxd-architect' or 'assign to worker-1'), the Lead Orchestrator MUST dispatch directly to that named recipient over Rhizo (`rhizo send --to <worker> ...`). The orchestrator MUST NEVER gate delegation on whether that worker appears in local single-project `rhizo who`, and MUST NEVER fall back to internal subagents. When inspecting the cluster roster for active workers, an orchestrator MUST query `rhizo who --all --json` (or check specific peers via `rhizo who <worker>` / `rhizo probe <worker>`). Never assume the cluster is empty based solely on local single-project `rhizo who` output.
|
|
138
|
+
</CRITICAL>
|
|
139
|
+
|
|
135
140
|
> [!CAUTION]
|
|
136
141
|
> **Orchestrator Scope Restriction**: This fast-path applies **ONLY** to a session that was explicitly initialized or designated by the operator as the Lead Orchestrator. A fresh unbootstrapped session must NEVER assume it is the orchestrator simply because `<project>-orchestrator` appears in `rhizo who`!
|
|
137
142
|
|
|
@@ -185,7 +190,7 @@ Upon receiving the operator's response:
|
|
|
185
190
|
|
|
186
191
|
## Unified Work Item State Machine (WISM)
|
|
187
192
|
|
|
188
|
-
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through
|
|
193
|
+
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through deterministic states with atomic Redis transitions, automated DAG unblocking, and Three-Key integration gates.
|
|
189
194
|
|
|
190
195
|
```mermaid
|
|
191
196
|
stateDiagram-v2
|
|
@@ -200,14 +205,18 @@ stateDiagram-v2
|
|
|
200
205
|
|
|
201
206
|
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
202
207
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
203
|
-
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine gate)
|
|
208
|
+
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
204
209
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
205
210
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
206
211
|
|
|
207
|
-
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red or merge conflict)
|
|
208
|
-
GATE_EVALUATING -->
|
|
212
|
+
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
213
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, gate token stamped)
|
|
214
|
+
|
|
215
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve, audit token stamped)
|
|
216
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
217
|
+
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
209
218
|
|
|
210
|
-
|
|
219
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave && rhizo task complete (Unblocks downstream DAG children)
|
|
211
220
|
|
|
212
221
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
213
222
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -251,17 +260,24 @@ stateDiagram-v2
|
|
|
251
260
|
+-------------+
|
|
252
261
|
│ ▲
|
|
253
262
|
│ vine │ Gate fails
|
|
254
|
-
│
|
|
263
|
+
│ submit │ (Tests red or conflict)
|
|
255
264
|
▼ │
|
|
256
265
|
+-----------------+
|
|
257
266
|
| GATE_EVALUATING |
|
|
258
267
|
+-----------------+
|
|
259
268
|
│
|
|
260
|
-
│
|
|
269
|
+
│ Keys 1 & 2 PASSED (vine submit: merge-tree + live test suite green)
|
|
261
270
|
▼
|
|
262
|
-
|
|
263
|
-
|
|
|
264
|
-
|
|
271
|
+
+------------------+
|
|
272
|
+
| READY_FOR_AUDIT | ◄──────────────────────┐
|
|
273
|
+
+------------------+ │
|
|
274
|
+
│ │ │
|
|
275
|
+
│ approve │ reject │ Remediate
|
|
276
|
+
▼ ▼ │
|
|
277
|
+
+------------+ +----------------+ │
|
|
278
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────┘
|
|
279
|
+
| RATIFIED | +----------------+
|
|
280
|
+
+------------+
|
|
265
281
|
│
|
|
266
282
|
│ vine weave && rhizo task complete
|
|
267
283
|
▼
|
|
@@ -277,13 +293,19 @@ stateDiagram-v2
|
|
|
277
293
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
278
294
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
279
295
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
280
|
-
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
281
|
-
|
|
282
|
-
| **`
|
|
283
|
-
|
|
284
|
-
| **`
|
|
285
|
-
|
|
286
|
-
| **`
|
|
296
|
+
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
297
|
+
ightarrow$ `ORPHANED` |
|
|
298
|
+
| **`CLAIMED`** | `rhizo task claim <id>` / `rhizo reply` | Worker acquires monotonic fencing lease. Isolated Vine strand provisioned (`vine new <id>`). Turn-end hook blocks until work starts. | Lease expires $
|
|
299
|
+
ightarrow$ `ORPHANED` |
|
|
300
|
+
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
301
|
+
ightarrow$ `ORPHANED` |
|
|
302
|
+
| **`GATE_EVALUATING`**| `vine submit` / `vine gate` | Key 1 (mechanical merge-tree) & Key 2 (live compiler/test suite + changelog) evaluated. | Exit 1 $\rightarrow$ `CONFLICTED`<br>Exit 2 $\rightarrow$ `GATE_FAILED` |
|
|
303
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
304
|
+
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
305
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
306
|
+
| **`COMPLETED`** | `vine weave && rhizo task complete` | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **Downstream DAG dependencies automatically unblocked (`BLOCKED` $\rightarrow$ `QUEUED`)!** | N/A |
|
|
307
|
+
| **`ORPHANED`** | Receipt timeout or lease expired | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3
|
|
308
|
+
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
287
309
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
288
310
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
289
311
|
|
|
@@ -324,7 +346,7 @@ Zero Theatrical Dialogue: Every dialectical assertion must be substantiated with
|
|
|
324
346
|
Worker Autonomous Execution Invariant (GVR-017):
|
|
325
347
|
Swarm workers are sovereign, autonomous implementers, not passive chatbots.
|
|
326
348
|
When 'rhizo listen' delivers an incoming task and exits, workers MUST NOT wait for an operator prompt or ask "Shall I begin?".
|
|
327
|
-
They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work,
|
|
349
|
+
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').
|
|
328
350
|
</CRITICAL>
|
|
329
351
|
|
|
330
352
|
<CRITICAL>
|
|
@@ -32,7 +32,7 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
|
|
|
32
32
|
Swarm workers operate as sovereign, autonomous implementers, not passive chatbots.
|
|
33
33
|
When 'rhizo listen' unblocks and exits, a directive has been delivered!
|
|
34
34
|
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,
|
|
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
36
|
</CRITICAL>
|
|
37
37
|
5. **Zero Dirty Commits**:
|
|
38
38
|
- Never stage coordination state (`.rhizo.*`, `*.lock`, `.vine.json`, `workspaces/`) into Git.
|
|
@@ -45,6 +45,15 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
|
|
|
45
45
|
Swarm workers must never produce isolated shelfware or mock toys. Every task must implement both the Provider and an active Consumer call-site in live entrypoints, must holistically integrate with real application state and events, and must aggressively delete any legacy code it replaces in the same strand.
|
|
46
46
|
</CRITICAL>
|
|
47
47
|
|
|
48
|
+
8. **Mutual Arrival Handshake Invariant**:
|
|
49
|
+
<CRITICAL>
|
|
50
|
+
Swarm workers MUST NEVER boot into silent, passive blocking listeners.
|
|
51
|
+
Turn 1 of every worker prompt card mandates executing the Mutual Arrival Handshake:
|
|
52
|
+
`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.
|
|
55
|
+
</CRITICAL>
|
|
56
|
+
|
|
48
57
|
---
|
|
49
58
|
|
|
50
59
|
## 2. The Bootstrapping Flow
|
|
@@ -61,15 +70,19 @@ sequenceDiagram
|
|
|
61
70
|
Orch->>Garden: Runs garden prompts (or garden launch)
|
|
62
71
|
Garden-->>Orch: Emits X prompt cards wrapped in 10 backticks
|
|
63
72
|
Orch->>Op: Displays formatted prompt blocks to operator
|
|
73
|
+
Note over Orch: MANDATORY: Orchestrator arms background listener ('rhizo listen <orchestrator>')
|
|
64
74
|
Op->>Workers: Pastes Prompt #1 into Session 1, Prompt #2 into Session 2...
|
|
65
75
|
loop Each Pasted Worker Session
|
|
66
76
|
Workers->>Workers: Sets RHIZO_AGENT_NAME & enters target directory
|
|
67
77
|
Workers->>Redis: Runs rhizo open <name> "<tags>"
|
|
78
|
+
Workers->>Redis: Broadcasts Arrival Handshake ('rhizo send @orchestrator --subject WORKER_READY')
|
|
68
79
|
Workers->>Redis: Runs rhizo listen <name> (blocks waiting for tasks)
|
|
80
|
+
Redis-->>Orch: WORKER_READY message wakes Orchestrator listener!
|
|
81
|
+
Orch->>Redis: Orchestrator immediately dispatches initial sprint task
|
|
69
82
|
end
|
|
70
|
-
Orch->>Redis: Runs rhizo who --json to verify
|
|
71
|
-
Redis-->>Orch: All workers active and
|
|
72
|
-
Orch->>Op: Confirms swarm is
|
|
83
|
+
Orch->>Redis: Runs rhizo who --json to verify full cluster roster
|
|
84
|
+
Redis-->>Orch: All workers active, listening, and assigned
|
|
85
|
+
Orch->>Op: Confirms swarm is fully active and executing
|
|
73
86
|
```
|
|
74
87
|
|
|
75
88
|
---
|
|
@@ -159,7 +172,7 @@ done
|
|
|
159
172
|
|
|
160
173
|
## Unified Work Item State Machine (WISM)
|
|
161
174
|
|
|
162
|
-
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through
|
|
175
|
+
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through deterministic states with atomic Redis transitions, automated DAG unblocking, and Three-Key integration gates.
|
|
163
176
|
|
|
164
177
|
```mermaid
|
|
165
178
|
stateDiagram-v2
|
|
@@ -174,14 +187,18 @@ stateDiagram-v2
|
|
|
174
187
|
|
|
175
188
|
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
176
189
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
177
|
-
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine gate)
|
|
190
|
+
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
178
191
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
179
192
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
180
193
|
|
|
181
|
-
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red or merge conflict)
|
|
182
|
-
GATE_EVALUATING -->
|
|
194
|
+
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
195
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, gate token stamped)
|
|
196
|
+
|
|
197
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve, audit token stamped)
|
|
198
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
199
|
+
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
183
200
|
|
|
184
|
-
|
|
201
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave && rhizo task complete (Unblocks downstream DAG children)
|
|
185
202
|
|
|
186
203
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
187
204
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -225,17 +242,24 @@ stateDiagram-v2
|
|
|
225
242
|
+-------------+
|
|
226
243
|
│ ▲
|
|
227
244
|
│ vine │ Gate fails
|
|
228
|
-
│
|
|
245
|
+
│ submit │ (Tests red or conflict)
|
|
229
246
|
▼ │
|
|
230
247
|
+-----------------+
|
|
231
248
|
| GATE_EVALUATING |
|
|
232
249
|
+-----------------+
|
|
233
250
|
│
|
|
234
|
-
│
|
|
251
|
+
│ Keys 1 & 2 PASSED (vine submit: merge-tree + live test suite green)
|
|
235
252
|
▼
|
|
236
|
-
|
|
237
|
-
|
|
|
238
|
-
|
|
253
|
+
+------------------+
|
|
254
|
+
| READY_FOR_AUDIT | ◄──────────────────────┐
|
|
255
|
+
+------------------+ │
|
|
256
|
+
│ │ │
|
|
257
|
+
│ approve │ reject │ Remediate
|
|
258
|
+
▼ ▼ │
|
|
259
|
+
+------------+ +----------------+ │
|
|
260
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────┘
|
|
261
|
+
| RATIFIED | +----------------+
|
|
262
|
+
+------------+
|
|
239
263
|
│
|
|
240
264
|
│ vine weave && rhizo task complete
|
|
241
265
|
▼
|
|
@@ -251,13 +275,19 @@ stateDiagram-v2
|
|
|
251
275
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
252
276
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
253
277
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
254
|
-
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
255
|
-
|
|
256
|
-
| **`
|
|
257
|
-
|
|
258
|
-
| **`
|
|
259
|
-
|
|
260
|
-
| **`
|
|
278
|
+
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
279
|
+
ightarrow$ `ORPHANED` |
|
|
280
|
+
| **`CLAIMED`** | `rhizo task claim <id>` / `rhizo reply` | Worker acquires monotonic fencing lease. Isolated Vine strand provisioned (`vine new <id>`). Turn-end hook blocks until work starts. | Lease expires $
|
|
281
|
+
ightarrow$ `ORPHANED` |
|
|
282
|
+
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
283
|
+
ightarrow$ `ORPHANED` |
|
|
284
|
+
| **`GATE_EVALUATING`**| `vine submit` / `vine gate` | Key 1 (mechanical merge-tree) & Key 2 (live compiler/test suite + changelog) evaluated. | Exit 1 $\rightarrow$ `CONFLICTED`<br>Exit 2 $\rightarrow$ `GATE_FAILED` |
|
|
285
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
286
|
+
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
287
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
288
|
+
| **`COMPLETED`** | `vine weave && rhizo task complete` | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **Downstream DAG dependencies automatically unblocked (`BLOCKED` $\rightarrow$ `QUEUED`)!** | N/A |
|
|
289
|
+
| **`ORPHANED`** | Receipt timeout or lease expired | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3
|
|
290
|
+
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
261
291
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
262
292
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
263
293
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestrate-swarm
|
|
3
|
-
description: "Directs live multi-agent swarm execution from the primary chat session acting as Lead Orchestrator. Dispatches tasks over the Rhizo Redis bus, monitors worker heartbeats with rhizo who, governs task leasing and dead-letter queues, ratifies emergent design addenda,
|
|
3
|
+
description: "Directs live multi-agent swarm execution from the primary chat session acting as Lead Orchestrator. Dispatches tasks over the Rhizo Redis bus, monitors worker heartbeats with rhizo who, governs task leasing and dead-letter queues, ratifies emergent design addenda, enforces the Three-Key Gate and independent adversarial audit ratification, executes fast-forward trunk merges via vine weave, and dynamically maintains implementation plan checkboxes and harness To-Do tools. Triggers: 'orchestrate swarm', 'run implementation plan', 'execute swarm tasks', 'manage workers', 'drive plan'."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `orchestrate-swarm`: Main-Chat Swarm Governance & Trunk Integration
|
|
7
7
|
|
|
8
8
|
> **The Sovereign Conductor of Autonomous Execution**
|
|
9
|
-
> *The Lead Orchestrator does not write the low-level code lines; it directs the symphony. It dispatches work over Redis, unblocks dependencies, enforces the
|
|
9
|
+
> *The Lead Orchestrator does not write the low-level code lines; it directs the symphony. It dispatches work over Redis, unblocks dependencies, enforces the Three-Key Gate, and weaves clean strands into the trunk.*
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -15,12 +15,19 @@ description: "Directs live multi-agent swarm execution from the primary chat ses
|
|
|
15
15
|
The main chat session assumes the role of **Lead Orchestrator**:
|
|
16
16
|
- **Non-Interference**: Never perform massive multi-file edits directly when workers are active in isolated strands.
|
|
17
17
|
- **Strict Transport Discipline**: All task assignments, handoffs, and cancellation interrupts flow exclusively over the Rhizo Redis bus (`rhizo send`, `rhizo reply`, `rhizo enqueue`).
|
|
18
|
-
- **Gated Integration**: Never run `git merge` directly. Only weave branches that have passed
|
|
18
|
+
- **Gated Integration**: Never run `git merge` directly. Only weave branches that have passed Key 1 (mechanical merge-tree), Key 2 (live compiler/tests + changelog) inside their Vine strands, and Key 3 (independent adversarial audit ratification via `vine audit approve`).
|
|
19
19
|
|
|
20
20
|
<CRITICAL>
|
|
21
|
-
|
|
21
|
+
The Worker is NOT the Auditor Invariant:
|
|
22
|
+
Workers are autonomous implementers, NEVER their own auditors. When a worker completes their tasks and passes Keys 1 & 2, they MUST run 'vine submit' to mark the strand READY_FOR_AUDIT. The worker is strictly forbidden from executing 'vine audit approve' on their own work.
|
|
23
|
+
The Lead Orchestrator provisions an independent Adversarial Auditor persona to inspect the strand, verify the Five Pillars, and run 'vine audit approve --auditor <name>'. Self-auditing is mechanically rejected by Vine (ExitGateAuditViolation = 6).
|
|
24
|
+
</CRITICAL>
|
|
25
|
+
|
|
26
|
+
<CRITICAL>
|
|
27
|
+
Delegation Precedence & Operator-Named Worker Mandate:
|
|
22
28
|
Whenever instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`).
|
|
23
29
|
Cluster workers operate exclusively in dedicated, sovereign sessions bootstrapped via 10-backtick prompt cards. NEVER spawn harness-internal subagents (e.g. `invoke_subagent`, `Task`, OpenCode subtasks) to act as cluster workers. Internal subagents are ephemeral, cannot maintain persistent blocking listeners, and cause severe context poisoning. Harness-internal subagents are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly specifies the word "subagent".
|
|
30
|
+
Furthermore, when the operator explicitly requests or names a worker or peer session (e.g. 'u + autopxd-architect' or 'assign to worker-1'), the Lead Orchestrator MUST dispatch directly to that named recipient over Rhizo (`rhizo send --to <worker> ...`). The orchestrator MUST NEVER gate delegation on whether that worker appears in local single-project `rhizo who`, and MUST NEVER fall back to internal subagents. When inspecting the cluster roster for active workers, an orchestrator MUST query `rhizo who --all --json` (or check specific peers via `rhizo who <worker>` / `rhizo probe <worker>`). Never assume the cluster is empty based solely on local single-project `rhizo who` output.
|
|
24
31
|
</CRITICAL>
|
|
25
32
|
|
|
26
33
|
<CRITICAL>
|
|
@@ -37,11 +44,12 @@ This intake gate applies to ANY request to "work on X", "build Y", "fix Z", or "
|
|
|
37
44
|
</CRITICAL>
|
|
38
45
|
|
|
39
46
|
<CRITICAL>
|
|
40
|
-
Pre-Weave Adversarial Audit & Literal Fidelity Invariant:
|
|
41
|
-
The Lead Orchestrator is the final gatekeeper against hermetic shelfware, hollow mocks, superficial heuristics, and green mirages.
|
|
47
|
+
Pre-Weave Adversarial Audit, Anti-Defeat-Device & Literal Fidelity Invariant:
|
|
48
|
+
The Lead Orchestrator is the final gatekeeper against hermetic shelfware, hollow mocks, superficial heuristics, benchmark defeat devices, and green mirages.
|
|
49
|
+
Intensive Five-Pillar adversarial audits are Standard Operating Procedure (SOP). They are pre-authorized, mandatory, and autonomous across the Triad; the Orchestrator executes them automatically without prompting for human operator input.
|
|
42
50
|
Before executing `vine weave` on any worker strand, the Orchestrator MUST enforce the Five-Pillar Pre-Weave Adversarial Audit (Key 3 of the Three-Key Gate):
|
|
43
51
|
1. Two-Point Diff: The branch modifies both a Provider and an active Consumer call-site (live router, CLI command dispatcher, UI, or event loop). Unwired modules tested solely by their own test suites are strictly rejected back to the worker as incomplete shelfware.
|
|
44
|
-
2. Holistic Integration
|
|
52
|
+
2. Holistic Integration & Anti-Defeat-Device: Real system behavior, state, and errors must be handled; no placeholder toys, stubs, mocks, naive string splits, or prompt keyword interceptors (e.g. 'if flight game in q'). Any prompt-matching defeat device that bypasses genuine pipelines to fake benchmark compliance is mechanically rejected at Key 2 (`ExitGateDefeatDeviceViolation` = 7) and Key 3.
|
|
45
53
|
3. Literal Fidelity & Reference Parity Mandate (Anti-Approximation): If the task ports, reverse-engineers, duplicates functionality from a reference, or executes a specific operator directive, it must exhibit literal, true fidelity. Approximations ("looks right", "good enough for happy paths") are strictly rejected. All edge cases, flags, type boundaries, and error flows must match the specification precisely.
|
|
46
54
|
4. Replacement Purge: All legacy or obsolete code targeted for replacement is completely deleted in the strand diff. Preserving dead code as "fallbacks" or leaving commented-out blocks is prohibited.
|
|
47
55
|
5. Structural Assertion Rigor (Anti-Green-Mirage): Reject tests relying on partial/loose assertions (`assert "foo" in bar` or `assert len(x) > 0`). Require full structural equality (`assert actual == expected`) and mandatory negative controls.
|
|
@@ -92,10 +100,10 @@ Context compaction purges detailed operational invariants, ceremony rules, and p
|
|
|
92
100
|
Orchestrator Turn-End Listener Invariant (GVR-014):
|
|
93
101
|
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.
|
|
94
102
|
|
|
95
|
-
Whenever the Lead Orchestrator dispatches a task, broadcasts instructions,
|
|
103
|
+
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:
|
|
96
104
|
`run_command(CommandLine="rhizo listen <orchestrator>", IsDaemon=false, WaitMsBeforeAsync=500)`
|
|
97
105
|
|
|
98
|
-
FORBIDDEN: Never yield the conversation turn to the operator after dispatching work without an active background listener running. Yielding a turn without a listener severs the swarm's physical lifeline, trapping worker replies in Redis and causing silent swarm
|
|
106
|
+
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.
|
|
99
107
|
|
|
100
108
|
Safety Net (In-Flight Task Liveness Probe & Watchdog Protocol):
|
|
101
109
|
- **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.
|
|
@@ -128,7 +136,7 @@ Safety Net (In-Flight Task Liveness Probe & Watchdog Protocol):
|
|
|
128
136
|
|
|
129
137
|
## Unified Work Item State Machine (WISM)
|
|
130
138
|
|
|
131
|
-
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through
|
|
139
|
+
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through deterministic states with atomic Redis transitions, automated DAG unblocking, and Three-Key integration gates.
|
|
132
140
|
|
|
133
141
|
```mermaid
|
|
134
142
|
stateDiagram-v2
|
|
@@ -143,14 +151,18 @@ stateDiagram-v2
|
|
|
143
151
|
|
|
144
152
|
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
145
153
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
146
|
-
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine gate)
|
|
154
|
+
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
147
155
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
148
156
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
149
157
|
|
|
150
|
-
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red or merge conflict)
|
|
151
|
-
GATE_EVALUATING -->
|
|
158
|
+
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
159
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, gate token stamped)
|
|
160
|
+
|
|
161
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve, audit token stamped)
|
|
162
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
163
|
+
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
152
164
|
|
|
153
|
-
|
|
165
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave && rhizo task complete (Unblocks downstream DAG children)
|
|
154
166
|
|
|
155
167
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
156
168
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -194,17 +206,24 @@ stateDiagram-v2
|
|
|
194
206
|
+-------------+
|
|
195
207
|
│ ▲
|
|
196
208
|
│ vine │ Gate fails
|
|
197
|
-
│
|
|
209
|
+
│ submit │ (Tests red or conflict)
|
|
198
210
|
▼ │
|
|
199
211
|
+-----------------+
|
|
200
212
|
| GATE_EVALUATING |
|
|
201
213
|
+-----------------+
|
|
202
214
|
│
|
|
203
|
-
│
|
|
215
|
+
│ Keys 1 & 2 PASSED (vine submit: merge-tree + live test suite green)
|
|
204
216
|
▼
|
|
205
|
-
|
|
206
|
-
|
|
|
207
|
-
|
|
217
|
+
+------------------+
|
|
218
|
+
| READY_FOR_AUDIT | ◄──────────────────────┐
|
|
219
|
+
+------------------+ │
|
|
220
|
+
│ │ │
|
|
221
|
+
│ approve │ reject │ Remediate
|
|
222
|
+
▼ ▼ │
|
|
223
|
+
+------------+ +----------------+ │
|
|
224
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────┘
|
|
225
|
+
| RATIFIED | +----------------+
|
|
226
|
+
+------------+
|
|
208
227
|
│
|
|
209
228
|
│ vine weave && rhizo task complete
|
|
210
229
|
▼
|
|
@@ -220,13 +239,19 @@ stateDiagram-v2
|
|
|
220
239
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
221
240
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
222
241
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
223
|
-
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
224
|
-
|
|
225
|
-
| **`
|
|
226
|
-
|
|
227
|
-
| **`
|
|
228
|
-
|
|
229
|
-
| **`
|
|
242
|
+
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
243
|
+
ightarrow$ `ORPHANED` |
|
|
244
|
+
| **`CLAIMED`** | `rhizo task claim <id>` / `rhizo reply` | Worker acquires monotonic fencing lease. Isolated Vine strand provisioned (`vine new <id>`). Turn-end hook blocks until work starts. | Lease expires $
|
|
245
|
+
ightarrow$ `ORPHANED` |
|
|
246
|
+
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
247
|
+
ightarrow$ `ORPHANED` |
|
|
248
|
+
| **`GATE_EVALUATING`**| `vine submit` / `vine gate` | Key 1 (mechanical merge-tree) & Key 2 (live compiler/test suite + changelog) evaluated. | Exit 1 $\rightarrow$ `CONFLICTED`<br>Exit 2 $\rightarrow$ `GATE_FAILED` |
|
|
249
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
250
|
+
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
251
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
252
|
+
| **`COMPLETED`** | `vine weave && rhizo task complete` | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **Downstream DAG dependencies automatically unblocked (`BLOCKED` $\rightarrow$ `QUEUED`)!** | N/A |
|
|
253
|
+
| **`ORPHANED`** | Receipt timeout or lease expired | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3
|
|
254
|
+
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
230
255
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
231
256
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
232
257
|
|
|
@@ -305,20 +330,24 @@ If a worker is waiting for a lease or has held a lock too long, probe its listen
|
|
|
305
330
|
rhizo probe <worker>
|
|
306
331
|
```
|
|
307
332
|
|
|
308
|
-
### SOP 3:
|
|
309
|
-
When a worker
|
|
333
|
+
### SOP 3: Enforcing the Three-Key Gate & Independent Adversarial Audit
|
|
334
|
+
When a worker finishes implementation in their strand, they run `vine submit --author <worker>` and report readiness:
|
|
310
335
|
```json
|
|
311
336
|
{
|
|
312
|
-
"status": "
|
|
337
|
+
"status": "READY_FOR_AUDIT",
|
|
313
338
|
"task_id": "task-core-ds",
|
|
314
339
|
"branch": "strand/task-core-ds",
|
|
315
340
|
"strand_path": "/Users/eek/Development/workspaces/myproject/task-core-ds/myproject",
|
|
316
|
-
"
|
|
317
|
-
"key2_semantic": "PASS"
|
|
341
|
+
"author": "implementer"
|
|
318
342
|
}
|
|
319
343
|
```
|
|
320
344
|
|
|
321
|
-
|
|
345
|
+
> [!CRITICAL]
|
|
346
|
+
> **THE WORKER IS NOT THE AUDITOR**: Workers cannot audit or approve their own strands (`vine audit approve` strictly enforces `auditor != author`).
|
|
347
|
+
> The Lead Orchestrator dispatches an audit request to the dedicated **Adversarial Auditor** session:
|
|
348
|
+
> `rhizo send @auditor --subject "Audit Request: task-core-ds" --body '{"strand_path": "...", "author": "implementer"}'`
|
|
349
|
+
|
|
350
|
+
The independent Auditor initiates **Key 3: The Pre-Weave Adversarial Code Audit Pump** under the **Presumption of Guilt**:
|
|
322
351
|
|
|
323
352
|
1. **Thesis Intake**: Demand the worker's **Deliverable Claim Bundle** (task contract, Two-Point Diff mapping, test evidence, negative controls).
|
|
324
353
|
2. **Five-Pillar Presumption-of-Guilt Audit**:
|
|
@@ -328,13 +357,17 @@ The Orchestrator or designated Auditor initiates **Key 3: The Pre-Weave Adversar
|
|
|
328
357
|
- **Pillar 3 (Literal Fidelity & Reference Parity)**: When duplicating functionality, porting, or executing specific operator directives, demand literal true fidelity. Reject approximations ("looks right", "good enough for happy paths") and verify edge case parity against reference specifications.
|
|
329
358
|
- **Pillar 4 (Aggressive Replacement Purge)**: Ensure all superseded legacy code, fallbacks, and commented-out blocks are deleted in the strand.
|
|
330
359
|
- **Pillar 5 (Structural Assertion Rigor)**: Reject partial/loose assertions (`assert "foo" in bar`). Mandate complete structural equality (`assert actual == expected`) and negative controls.
|
|
331
|
-
3. **
|
|
332
|
-
- If findings exist
|
|
333
|
-
- The
|
|
334
|
-
-
|
|
360
|
+
3. **Audit Ratification or Delta Re-Pump Loop**:
|
|
361
|
+
- **If findings exist**: Auditor executes `vine audit reject --reason "<defects>" --auditor <auditor_name>` and reports findings to the worker. Worker remediates inside the strand and re-submits with `vine submit`.
|
|
362
|
+
- **The Delta Re-Pump Loop**: Auditor reviews the git delta against the previous audit commit (`git diff <audit_sha>...HEAD`) and verifies clean tests. The pump repeats until **ZERO open defects of severity CRIT, HIGH, or MED remain**.
|
|
363
|
+
- **When 0 defects remain**: Auditor runs:
|
|
364
|
+
```bash
|
|
365
|
+
vine audit approve --auditor <auditor_name>
|
|
366
|
+
```
|
|
367
|
+
This stamps a cryptographic `audit_token` and marks the strand `AUDIT_RATIFIED`. Auditor notifies orchestrator.
|
|
335
368
|
4. **Weave & Unlock (Only after Key 3 Clearance)**:
|
|
336
369
|
```bash
|
|
337
|
-
# 1. Weave the verified strand into main
|
|
370
|
+
# 1. Weave the verified, ratified strand into main (mechanically verifies audit_token)
|
|
338
371
|
vine weave
|
|
339
372
|
|
|
340
373
|
# 2. Release any held fencing locks if applicable
|
|
@@ -16,7 +16,7 @@ The Orchestrator authors `implementation_plan.md` adhering to four core invarian
|
|
|
16
16
|
|
|
17
17
|
1. **Deterministic Assignment**: Every subtask has exactly one primary persona owner.
|
|
18
18
|
2. **Resource Fencing Before Mutation**: Any non-mergeable resource (e.g. database schemas, configuration files, migration scripts) must have an explicit `rhizo lock file:<path> --fencing` lease scheduled before modification begins.
|
|
19
|
-
3. **Workspace Isolation via Vine**: Complex, multi-file changes must occur in isolated Rift strands (`vine new <task_id>`). Strands cannot be woven until passing the
|
|
19
|
+
3. **Workspace Isolation via Vine**: Complex, multi-file changes must occur in isolated Rift strands (`vine new <task_id>`). Strands cannot be woven until passing the Three-Key Gate (`vine submit`, `vine audit approve`, `vine weave`).
|
|
20
20
|
4. **Zero Silent Architectural Drift**: If an implementer encounters an unforeseen constraint during coding, it cannot unilaterally alter the architecture. It must submit a formal design addendum.
|
|
21
21
|
5. **Closed-Circuit Two-Point Diff & Holistic Integration**: Every task specification must declare both the **Provider** (new capability) and the active **Consumer Call-Site** (runtime entrypoint, router, UI canvas, or CLI loop). Modules tested only by isolated unit tests are strictly prohibited as incomplete shelfware. The implementation must holistically integrate with real application state and live events (no toys, stubs, mocks, or hollow approximations). Any code intended to be replaced must be explicitly scheduled for **immediate deletion** in the same strand—never kept as a vestigial fallback or commented-out logic.
|
|
22
22
|
|
|
@@ -59,13 +59,11 @@ For all parallel development tracks:
|
|
|
59
59
|
2. **Execute Work Inside Strand**:
|
|
60
60
|
- Implement code changes.
|
|
61
61
|
- Run local unit tests and formatters.
|
|
62
|
-
3. **
|
|
63
|
-
|
|
64
|
-
vine
|
|
65
|
-
```
|
|
66
|
-
*Must verify exit code 0: Key 1 (in-memory merge-tree) PASS + Key 2 (compiler/test suite) PASS.*
|
|
62
|
+
3. **Three-Key Gate Verification**:
|
|
63
|
+
- **Worker**: Runs `vine submit --author <worker>` (evaluates Key 1 mechanical merge-tree + Key 2 live compiler/test suite + changelog).
|
|
64
|
+
- **Independent Auditor**: Inspects Five Pillars and runs `vine audit approve --auditor <auditor>` (Key 3 ratification, stamps `audit_token`). Remember: THE WORKER IS NOT THE AUDITOR.
|
|
67
65
|
4. **Trunk Weaving**:
|
|
68
|
-
*Orchestrator fast-forwards
|
|
66
|
+
*Orchestrator fast-forwards ratified branch into main:*
|
|
69
67
|
```bash
|
|
70
68
|
vine weave
|
|
71
69
|
```
|
|
@@ -82,14 +80,14 @@ For all parallel development tracks:
|
|
|
82
80
|
- *Consumer / Call-Site*: Wire into `src/parser.nim` parse loop and `src/eval.nim`
|
|
83
81
|
- *Replacement Deletion*: Delete deprecated ad-hoc string tuples in `src/legacy_types.nim`
|
|
84
82
|
- *Holistic Verification*: Real AST nodes evaluate in full parser pipeline (no dummy mocks)
|
|
85
|
-
- *Weave*: `vine
|
|
83
|
+
- *Weave*: `vine submit && vine audit approve && vine weave && rhizo unlock file:src/types.nim`
|
|
86
84
|
|
|
87
85
|
- [ ] **Task 1.2: Test Harness & Negative Controls** (`<project>-auditor`)
|
|
88
86
|
- *Strand*: `strand/task-test-harness`
|
|
89
87
|
- *Provider*: `tests/test_harness.py`
|
|
90
88
|
- *Consumer / Call-Site*: Wire test runner into CI workflow and `tests/all.py`
|
|
91
89
|
- *Verification*: `pytest tests/test_harness.py` (proves negative controls catch malformed JSON)
|
|
92
|
-
- *Weave*: `vine
|
|
90
|
+
- *Weave*: `vine submit && vine audit approve && vine weave`
|
|
93
91
|
|
|
94
92
|
### Phase 2: High-Level CLI & Integration
|
|
95
93
|
- [ ] **Task 2.1: CLI Subcommand Wiring** (`implementer`)
|
|
@@ -99,7 +97,7 @@ For all parallel development tracks:
|
|
|
99
97
|
- *Consumer / Call-Site*: Wire into `src/main.nim` CLI argument dispatcher table
|
|
100
98
|
- *Replacement Deletion*: Delete old prototype script `scripts/gen_proto.sh`
|
|
101
99
|
- *Holistic Verification*: Run compiled binary `app generate --input data.json` and verify live output
|
|
102
|
-
- *Weave*: `vine
|
|
100
|
+
- *Weave*: `vine submit && vine audit approve && vine weave`
|
|
103
101
|
|
|
104
102
|
---
|
|
105
103
|
|
|
@@ -131,5 +129,5 @@ If a worker discovers that an assumption in `design.md` is flawed or impossible
|
|
|
131
129
|
Before handing off to [`orchestrate-swarm`](../orchestrate-swarm/SKILL.md):
|
|
132
130
|
1. Assert that every task names a concrete persona owner.
|
|
133
131
|
2. Assert that all shared files have fencing locks scheduled.
|
|
134
|
-
3. Assert that all tasks requiring branch isolation specify `vine new` and `vine
|
|
132
|
+
3. Assert that all tasks requiring branch isolation specify `vine new`, `vine submit`, and `vine audit approve`.
|
|
135
133
|
4. Save file to `implementation_plan.md` in the project root.
|