@axiomantic/garden 0.2.27 → 0.2.28
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 +6 -6
- package/SKILL.md +35 -54
- 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 +1 -1
- package/skills/dialectical-pump/SKILL.md +5 -5
- package/skills/garden/SKILL.md +35 -54
- package/skills/launch-workers/SKILL.md +38 -57
- package/skills/orchestrate-swarm/SKILL.md +46 -58
- package/skills/plan-implementation/SKILL.md +12 -4
package/README.md
CHANGED
|
@@ -182,10 +182,10 @@ Garden utilizes the **Active Swarm Fast-Path (First-Look Invariant)**:
|
|
|
182
182
|
|
|
183
183
|
### 3. Prompt-Based Swarm Bootstrapping (`launch-workers`)
|
|
184
184
|
Garden writes `garden-swarm.json` and runs `garden prompts` to write prompt cards directly to temporary files (`/tmp/garden-<project>/<worker>.md`) rather than flooding the chat window with thousands of lines of raw text:
|
|
185
|
-
- The Orchestrator displays concise session assignments with clickable file links
|
|
186
|
-
1. Open **Tab 1 / Window 1**:
|
|
187
|
-
2. Open **Tab 2 / Window 2**:
|
|
188
|
-
3. Open **Tab 3 / Window 3**:
|
|
185
|
+
- The Orchestrator displays concise session assignments with clickable file links:
|
|
186
|
+
1. Open **Tab 1 / Window 1**: Reference Prompt 1 (`/tmp/garden-<project>/<project>-auditor.md`)
|
|
187
|
+
2. Open **Tab 2 / Window 2**: Reference Prompt 2 (`/tmp/garden-<project>/<project>-architect.md`)
|
|
188
|
+
3. Open **Tab 3 / Window 3**: Reference Prompt 3 (`/tmp/garden-<project>/<project>-implementer.md`)
|
|
189
189
|
- Each session enters the project directory, exports `RHIZO_AGENT_NAME`, registers on the Redis bus (`rhizo open`), and arms its single-shot listener (`rhizo listen`).
|
|
190
190
|
- The Orchestrator confirms all workers are live via `rhizo who --json` before dispatching tasks!
|
|
191
191
|
|
|
@@ -202,7 +202,7 @@ Garden authors `implementation_plan.md`:
|
|
|
202
202
|
- Sets up dynamic progress checkboxes and harness To-Do tracking.
|
|
203
203
|
|
|
204
204
|
### 6. Live Orchestration & Trunk Weaving (`orchestrate-swarm`)
|
|
205
|
-
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands, run unit tests, and verify Keys 1 & 2
|
|
205
|
+
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands (where Vine tracks identity in `.git/config` and state in Redis with zero on-disk manifests), run unit tests, and verify Keys 1 & 2 via `vine submit` (which generates a cryptographic delivery ticket). An independent adversarial auditor reviews and ratifies Key 3 (`vine audit approve <task_id> --auditor <name> --ticket <hex> --weave --listen`). When ratified, `vine weave` fast-forwards verified code into `main` with zero merge conflicts, automatically calls `rhizo task complete`, and promotes downstream DAG child tasks!
|
|
206
206
|
|
|
207
207
|
---
|
|
208
208
|
|
|
@@ -282,7 +282,7 @@ The main chat orchestrator dispatches work over Redis. Workers code in isolated
|
|
|
282
282
|
2. **Empirical Grounding Protocol (Zero Theatrical Dialogue)**:
|
|
283
283
|
Dialectical deliberations must cite hard evidence from real tool calls (line citations, test outputs, compiler errors). Theatrical roleplay is strictly banned.
|
|
284
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.
|
|
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 <task_id> --auditor <name> --ticket <hex> --weave --listen`). Workers submit strands with `vine submit` (which generates a delivery ticket) and CANNOT audit their own work. `vine weave` automatically invokes `rhizo task complete` and unblocks downstream DAG child tasks.
|
|
286
286
|
4. **Zero Dirty Commits**:
|
|
287
287
|
All agent identity files, session state, and temporary lockfiles are strictly ignored in `.gitignore`.
|
|
288
288
|
|
package/SKILL.md
CHANGED
|
@@ -214,11 +214,11 @@ Upon receiving the operator's response:
|
|
|
214
214
|
1. Run `garden init` if `garden.toml` or `AGENTS.md` is not yet initialized.
|
|
215
215
|
2. Synthesize swarm configuration reflecting the chosen workers, roles, detected harness, and session-default models (zero on-disk JSON).
|
|
216
216
|
3. Run `garden prompts` which writes individual prompt cards to `/tmp/garden-<project>/<worker>.md` and all cards to `/tmp/garden-<project>/all-workers.md`.
|
|
217
|
-
4. Present the operator with concise setup instructions
|
|
217
|
+
4. Present the operator with concise setup instructions with clickable prompt file paths (NEVER paste prompt cards inline in chat):
|
|
218
218
|
```text
|
|
219
219
|
1. Open X terminal tabs or windows in your detected coding harness.
|
|
220
|
-
2.
|
|
221
|
-
3. Once
|
|
220
|
+
2. Pass each worker's prompt card into its session (e.g. paste or reference /tmp/garden-<project>/<worker>.md).
|
|
221
|
+
3. Once launched, tell me here (or I will automatically detect them online via `rhizo who`).
|
|
222
222
|
```
|
|
223
223
|
5. Register the orchestrator's presence (`rhizo open <project>-orchestrator`) and arm the listener.
|
|
224
224
|
6. Poll or await cluster readiness gate (`rhizo who --json`) before proceeding to Phase 3.
|
|
@@ -235,26 +235,22 @@ stateDiagram-v2
|
|
|
235
235
|
[*] --> DRAFTED : rhizo task create <id>
|
|
236
236
|
DRAFTED --> BLOCKED : Unmet DAG dependencies (depends_on)
|
|
237
237
|
DRAFTED --> QUEUED : Zero unmet dependencies
|
|
238
|
-
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by
|
|
238
|
+
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by vine weave)
|
|
239
239
|
|
|
240
|
-
QUEUED -->
|
|
241
|
-
DELIVERED --> CLAIMED : Worker acknowledges (Acquires monotonic lease)
|
|
242
|
-
DELIVERED --> ORPHANED : Receipt timeout (180s without claim)
|
|
243
|
-
|
|
244
|
-
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
240
|
+
QUEUED --> IN_PROGRESS : Task claimed / delivered (rhizo claim / rhizo task claim)
|
|
245
241
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
246
242
|
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
247
243
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
248
244
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
249
245
|
|
|
250
246
|
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
251
|
-
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit,
|
|
247
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, delivery ticket stamped)
|
|
252
248
|
|
|
253
|
-
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve
|
|
254
|
-
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
249
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve --ticket <hex>, audit token stamped)
|
|
250
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject --ticket <hex> --reason "...")
|
|
255
251
|
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
256
252
|
|
|
257
|
-
AUDIT_RATIFIED --> COMPLETED : vine weave
|
|
253
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave (Auto-completes task via rhizo task complete & unblocks DAG children)
|
|
258
254
|
|
|
259
255
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
260
256
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -273,51 +269,42 @@ stateDiagram-v2
|
|
|
273
269
|
+---------+ Unmet deps
|
|
274
270
|
| DRAFTED | ──────────────────► [ BLOCKED ]
|
|
275
271
|
+---------+ │
|
|
276
|
-
│ Zero deps │ Parent task COMPLETED
|
|
272
|
+
│ Zero deps │ Parent task COMPLETED (Auto-promoted by vine weave)
|
|
277
273
|
▼ ▼
|
|
278
274
|
+---------+ ◄───────────────────────+
|
|
279
275
|
| QUEUED |
|
|
280
276
|
+---------+
|
|
281
277
|
│
|
|
282
|
-
│ rhizo
|
|
283
|
-
|
|
284
|
-
+-----------+ 180s Receipt Timeout
|
|
285
|
-
| DELIVERED | ─────────────────────────────────► [ ORPHANED ]
|
|
286
|
-
+-----------+ │
|
|
287
|
-
│ │ Attempts >= 3
|
|
288
|
-
│ rhizo task claim / rhizo reply ▼
|
|
289
|
-
▼ [ DEAD_LETTER ]
|
|
290
|
-
+---------+
|
|
291
|
-
| CLAIMED |
|
|
292
|
-
+---------+
|
|
293
|
-
│
|
|
294
|
-
│ vine new <task_id> (Provision strand)
|
|
278
|
+
│ Task claimed / delivered (rhizo claim / rhizo task claim / rhizo send)
|
|
279
|
+
│ Collapses DELIVERED ➔ CLAIMED ➔ IN_PROGRESS with monotonic lease
|
|
295
280
|
▼
|
|
296
281
|
+-------------+ Lease expires
|
|
297
282
|
| IN_PROGRESS | ────────────────────────────────► [ ORPHANED ]
|
|
298
|
-
+-------------+
|
|
299
|
-
│ ▲
|
|
300
|
-
│ vine │ Gate fails
|
|
301
|
-
│ submit │ (Tests red or conflict)
|
|
283
|
+
+-------------+ │
|
|
284
|
+
│ ▲ │ Attempts >= 3
|
|
285
|
+
│ vine │ Gate fails ▼
|
|
286
|
+
│ submit │ (Tests red or conflict) [ DEAD_LETTER ]
|
|
302
287
|
▼ │
|
|
303
288
|
+-----------------+
|
|
304
289
|
| GATE_EVALUATING |
|
|
305
290
|
+-----------------+
|
|
306
291
|
│
|
|
307
|
-
│ Keys 1 & 2 PASSED (vine submit:
|
|
292
|
+
│ Keys 1 & 2 PASSED (vine submit: delivery ticket stamped)
|
|
308
293
|
▼
|
|
309
294
|
+------------------+
|
|
310
|
-
| READY_FOR_AUDIT |
|
|
311
|
-
+------------------+
|
|
312
|
-
│ │
|
|
313
|
-
│ approve │ reject
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
295
|
+
| READY_FOR_AUDIT | ◄──────────────────────────────┐
|
|
296
|
+
+------------------+ │
|
|
297
|
+
│ │ │
|
|
298
|
+
│ approve │ reject │ Remediate
|
|
299
|
+
│ --ticket │ --ticket │
|
|
300
|
+
▼ ▼ │
|
|
301
|
+
+------------+ +----------------+ │
|
|
302
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────────────┘
|
|
317
303
|
| RATIFIED | +----------------+
|
|
318
304
|
+------------+
|
|
319
305
|
│
|
|
320
|
-
│ vine weave
|
|
306
|
+
│ vine weave (or vine audit approve --weave)
|
|
307
|
+
│ Auto-executes rhizo task complete & unblocks DAG children
|
|
321
308
|
▼
|
|
322
309
|
+-----------+
|
|
323
310
|
| COMPLETED | ──► Auto-promotes BLOCKED child tasks to QUEUED!
|
|
@@ -331,19 +318,13 @@ stateDiagram-v2
|
|
|
331
318
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
332
319
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
333
320
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
334
|
-
| **`
|
|
335
|
-
ightarrow$ `ORPHANED` |
|
|
336
|
-
| **`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 $
|
|
337
|
-
ightarrow$ `ORPHANED` |
|
|
338
|
-
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
339
|
-
ightarrow$ `ORPHANED` |
|
|
321
|
+
| **`IN_PROGRESS`** | `rhizo task claim <id>` / `rhizo claim` / task delivery | **Collapsed claim & delivery**: Worker acquires monotonic fencing lease and enters isolated Vine strand (`vine new <id>`). Zero on-disk manifests; strand identity is stored in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis. Periodic `rhizo task progress` extends lease. | Lease expires $\rightarrow$ `ORPHANED` |
|
|
340
322
|
| **`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` |
|
|
341
|
-
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
342
|
-
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
343
|
-
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
344
|
-
| **`COMPLETED`** | `vine weave
|
|
345
|
-
| **`ORPHANED`** |
|
|
346
|
-
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
323
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Cryptographic delivery ticket (`gate_token`) stamped into strand state. Strand submitted for independent adversarial review. | N/A |
|
|
324
|
+
| **`AUDIT_REJECTED`** | `vine audit reject <task_id> --auditor <name> --ticket <hex> --reason "..." --listen` | Auditor rejected deliverable with recorded defect reasons against delivery ticket. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
325
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve <task_id> --auditor <name> --ticket <hex> [--weave] [--listen]` | Key 3 passed! Cryptographic delivery ticket verified and `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
326
|
+
| **`COMPLETED`** | `vine weave` (or `vine audit approve --weave`) | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **`vine weave` automatically invokes `rhizo task complete`**, auto-promoting downstream DAG dependencies (`BLOCKED` $\rightarrow$ `QUEUED`)! | N/A |
|
|
327
|
+
| **`ORPHANED`** | Lease expired without progress | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3 \rightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
347
328
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
348
329
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
349
330
|
|
|
@@ -403,7 +384,7 @@ Never merge code into the canonical trunk without passing the Three-Key Gate: Ke
|
|
|
403
384
|
</INVARIANT>
|
|
404
385
|
|
|
405
386
|
<FORBIDDEN>
|
|
406
|
-
Never stage coordination metadata (*.lock, .rhizo.*,
|
|
387
|
+
Never stage coordination metadata (*.lock, .rhizo.*, 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). Keep all agent state ignored.
|
|
407
388
|
</FORBIDDEN>
|
|
408
389
|
|
|
409
390
|
<CRITICAL>
|
|
@@ -456,7 +437,7 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
456
437
|
- **Escalate Immediately**: Prompt the operator via `ask_question` with the diagnostic status.
|
|
457
438
|
- **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>`.
|
|
458
439
|
3. **Orchestrator Self-Audit Watchdog (ONLY for OpenAI Codex / ChatGPT)**:
|
|
459
|
-
- **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively
|
|
440
|
+
- **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`.
|
|
460
441
|
- **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).
|
|
461
442
|
- **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.
|
|
462
443
|
- 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
|
@@ -240,20 +240,20 @@ sequenceDiagram
|
|
|
240
240
|
> [!CRITICAL]
|
|
241
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
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.
|
|
243
|
+
1. **Defect Issuance**: If defects are discovered, the Auditor runs `vine audit reject <task_id> --auditor <auditor_name> --ticket <hex> --reason "<defects>" --listen` and records findings in `audit_report.md` with defect codes (`CRIT-XX`, `HIGH-XX`, `FIDELITY-XX`, `MIRAGE-XX`), exact file lines, and failure proof.
|
|
244
244
|
2. **In-Strand Remediation**: The worker fixes findings strictly inside the isolated Vine strand.
|
|
245
|
-
3. **The Delta Re-Pump**: When resubmitting with `vine submit
|
|
245
|
+
3. **The Delta Re-Pump**: When resubmitting with `vine submit` (which generates a refreshed delivery ticket), 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.
|
|
246
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.
|
|
247
247
|
|
|
248
248
|
### Step 4.4: Gate Clearance & Cryptographic Token
|
|
249
249
|
|
|
250
250
|
When all findings reach 0, the independent auditor ratifies Key 3:
|
|
251
251
|
```bash
|
|
252
|
-
vine audit approve --auditor <auditor_name>
|
|
252
|
+
vine audit approve <task_id> --auditor <auditor_name> --ticket <hex> --weave --listen
|
|
253
253
|
```
|
|
254
|
-
This mechanically verifies Keys 1 & 2, checks that the strand has zero uncommitted changes, ensures `auditor != author`, and stamps a cryptographic `audit_token
|
|
254
|
+
This mechanically verifies Keys 1 & 2 against the delivery ticket, checks that the strand has zero uncommitted changes, ensures `auditor != author`, and stamps a cryptographic `audit_token`. Vine stores strand identity in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis (zero on-disk state files).
|
|
255
255
|
|
|
256
|
-
Only strands in `AUDIT_RATIFIED` state with a valid cryptographic audit token are permitted to weave into trunk (`vine weave`).
|
|
256
|
+
Only strands in `AUDIT_RATIFIED` state with a valid cryptographic audit token are permitted to weave into trunk (`vine weave`, which automatically invokes `rhizo task complete` and promotes downstream DAG child tasks from `BLOCKED` to `QUEUED`).
|
|
257
257
|
|
|
258
258
|
---
|
|
259
259
|
|
package/skills/garden/SKILL.md
CHANGED
|
@@ -214,11 +214,11 @@ Upon receiving the operator's response:
|
|
|
214
214
|
1. Run `garden init` if `garden.toml` or `AGENTS.md` is not yet initialized.
|
|
215
215
|
2. Synthesize swarm configuration reflecting the chosen workers, roles, detected harness, and session-default models (zero on-disk JSON).
|
|
216
216
|
3. Run `garden prompts` which writes individual prompt cards to `/tmp/garden-<project>/<worker>.md` and all cards to `/tmp/garden-<project>/all-workers.md`.
|
|
217
|
-
4. Present the operator with concise setup instructions
|
|
217
|
+
4. Present the operator with concise setup instructions with clickable prompt file paths (NEVER paste prompt cards inline in chat):
|
|
218
218
|
```text
|
|
219
219
|
1. Open X terminal tabs or windows in your detected coding harness.
|
|
220
|
-
2.
|
|
221
|
-
3. Once
|
|
220
|
+
2. Pass each worker's prompt card into its session (e.g. paste or reference /tmp/garden-<project>/<worker>.md).
|
|
221
|
+
3. Once launched, tell me here (or I will automatically detect them online via `rhizo who`).
|
|
222
222
|
```
|
|
223
223
|
5. Register the orchestrator's presence (`rhizo open <project>-orchestrator`) and arm the listener.
|
|
224
224
|
6. Poll or await cluster readiness gate (`rhizo who --json`) before proceeding to Phase 3.
|
|
@@ -235,26 +235,22 @@ stateDiagram-v2
|
|
|
235
235
|
[*] --> DRAFTED : rhizo task create <id>
|
|
236
236
|
DRAFTED --> BLOCKED : Unmet DAG dependencies (depends_on)
|
|
237
237
|
DRAFTED --> QUEUED : Zero unmet dependencies
|
|
238
|
-
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by
|
|
238
|
+
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by vine weave)
|
|
239
239
|
|
|
240
|
-
QUEUED -->
|
|
241
|
-
DELIVERED --> CLAIMED : Worker acknowledges (Acquires monotonic lease)
|
|
242
|
-
DELIVERED --> ORPHANED : Receipt timeout (180s without claim)
|
|
243
|
-
|
|
244
|
-
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
240
|
+
QUEUED --> IN_PROGRESS : Task claimed / delivered (rhizo claim / rhizo task claim)
|
|
245
241
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
246
242
|
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
247
243
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
248
244
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
249
245
|
|
|
250
246
|
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
251
|
-
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit,
|
|
247
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, delivery ticket stamped)
|
|
252
248
|
|
|
253
|
-
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve
|
|
254
|
-
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
249
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve --ticket <hex>, audit token stamped)
|
|
250
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject --ticket <hex> --reason "...")
|
|
255
251
|
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
256
252
|
|
|
257
|
-
AUDIT_RATIFIED --> COMPLETED : vine weave
|
|
253
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave (Auto-completes task via rhizo task complete & unblocks DAG children)
|
|
258
254
|
|
|
259
255
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
260
256
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -273,51 +269,42 @@ stateDiagram-v2
|
|
|
273
269
|
+---------+ Unmet deps
|
|
274
270
|
| DRAFTED | ──────────────────► [ BLOCKED ]
|
|
275
271
|
+---------+ │
|
|
276
|
-
│ Zero deps │ Parent task COMPLETED
|
|
272
|
+
│ Zero deps │ Parent task COMPLETED (Auto-promoted by vine weave)
|
|
277
273
|
▼ ▼
|
|
278
274
|
+---------+ ◄───────────────────────+
|
|
279
275
|
| QUEUED |
|
|
280
276
|
+---------+
|
|
281
277
|
│
|
|
282
|
-
│ rhizo
|
|
283
|
-
|
|
284
|
-
+-----------+ 180s Receipt Timeout
|
|
285
|
-
| DELIVERED | ─────────────────────────────────► [ ORPHANED ]
|
|
286
|
-
+-----------+ │
|
|
287
|
-
│ │ Attempts >= 3
|
|
288
|
-
│ rhizo task claim / rhizo reply ▼
|
|
289
|
-
▼ [ DEAD_LETTER ]
|
|
290
|
-
+---------+
|
|
291
|
-
| CLAIMED |
|
|
292
|
-
+---------+
|
|
293
|
-
│
|
|
294
|
-
│ vine new <task_id> (Provision strand)
|
|
278
|
+
│ Task claimed / delivered (rhizo claim / rhizo task claim / rhizo send)
|
|
279
|
+
│ Collapses DELIVERED ➔ CLAIMED ➔ IN_PROGRESS with monotonic lease
|
|
295
280
|
▼
|
|
296
281
|
+-------------+ Lease expires
|
|
297
282
|
| IN_PROGRESS | ────────────────────────────────► [ ORPHANED ]
|
|
298
|
-
+-------------+
|
|
299
|
-
│ ▲
|
|
300
|
-
│ vine │ Gate fails
|
|
301
|
-
│ submit │ (Tests red or conflict)
|
|
283
|
+
+-------------+ │
|
|
284
|
+
│ ▲ │ Attempts >= 3
|
|
285
|
+
│ vine │ Gate fails ▼
|
|
286
|
+
│ submit │ (Tests red or conflict) [ DEAD_LETTER ]
|
|
302
287
|
▼ │
|
|
303
288
|
+-----------------+
|
|
304
289
|
| GATE_EVALUATING |
|
|
305
290
|
+-----------------+
|
|
306
291
|
│
|
|
307
|
-
│ Keys 1 & 2 PASSED (vine submit:
|
|
292
|
+
│ Keys 1 & 2 PASSED (vine submit: delivery ticket stamped)
|
|
308
293
|
▼
|
|
309
294
|
+------------------+
|
|
310
|
-
| READY_FOR_AUDIT |
|
|
311
|
-
+------------------+
|
|
312
|
-
│ │
|
|
313
|
-
│ approve │ reject
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
295
|
+
| READY_FOR_AUDIT | ◄──────────────────────────────┐
|
|
296
|
+
+------------------+ │
|
|
297
|
+
│ │ │
|
|
298
|
+
│ approve │ reject │ Remediate
|
|
299
|
+
│ --ticket │ --ticket │
|
|
300
|
+
▼ ▼ │
|
|
301
|
+
+------------+ +----------------+ │
|
|
302
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────────────┘
|
|
317
303
|
| RATIFIED | +----------------+
|
|
318
304
|
+------------+
|
|
319
305
|
│
|
|
320
|
-
│ vine weave
|
|
306
|
+
│ vine weave (or vine audit approve --weave)
|
|
307
|
+
│ Auto-executes rhizo task complete & unblocks DAG children
|
|
321
308
|
▼
|
|
322
309
|
+-----------+
|
|
323
310
|
| COMPLETED | ──► Auto-promotes BLOCKED child tasks to QUEUED!
|
|
@@ -331,19 +318,13 @@ stateDiagram-v2
|
|
|
331
318
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
332
319
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
333
320
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
334
|
-
| **`
|
|
335
|
-
ightarrow$ `ORPHANED` |
|
|
336
|
-
| **`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 $
|
|
337
|
-
ightarrow$ `ORPHANED` |
|
|
338
|
-
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
339
|
-
ightarrow$ `ORPHANED` |
|
|
321
|
+
| **`IN_PROGRESS`** | `rhizo task claim <id>` / `rhizo claim` / task delivery | **Collapsed claim & delivery**: Worker acquires monotonic fencing lease and enters isolated Vine strand (`vine new <id>`). Zero on-disk manifests; strand identity is stored in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis. Periodic `rhizo task progress` extends lease. | Lease expires $\rightarrow$ `ORPHANED` |
|
|
340
322
|
| **`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` |
|
|
341
|
-
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
342
|
-
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
343
|
-
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
344
|
-
| **`COMPLETED`** | `vine weave
|
|
345
|
-
| **`ORPHANED`** |
|
|
346
|
-
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
323
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Cryptographic delivery ticket (`gate_token`) stamped into strand state. Strand submitted for independent adversarial review. | N/A |
|
|
324
|
+
| **`AUDIT_REJECTED`** | `vine audit reject <task_id> --auditor <name> --ticket <hex> --reason "..." --listen` | Auditor rejected deliverable with recorded defect reasons against delivery ticket. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
325
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve <task_id> --auditor <name> --ticket <hex> [--weave] [--listen]` | Key 3 passed! Cryptographic delivery ticket verified and `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
326
|
+
| **`COMPLETED`** | `vine weave` (or `vine audit approve --weave`) | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **`vine weave` automatically invokes `rhizo task complete`**, auto-promoting downstream DAG dependencies (`BLOCKED` $\rightarrow$ `QUEUED`)! | N/A |
|
|
327
|
+
| **`ORPHANED`** | Lease expired without progress | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3 \rightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
347
328
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
348
329
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
349
330
|
|
|
@@ -403,7 +384,7 @@ Never merge code into the canonical trunk without passing the Three-Key Gate: Ke
|
|
|
403
384
|
</INVARIANT>
|
|
404
385
|
|
|
405
386
|
<FORBIDDEN>
|
|
406
|
-
Never stage coordination metadata (*.lock, .rhizo.*,
|
|
387
|
+
Never stage coordination metadata (*.lock, .rhizo.*, 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). Keep all agent state ignored.
|
|
407
388
|
</FORBIDDEN>
|
|
408
389
|
|
|
409
390
|
<CRITICAL>
|
|
@@ -456,7 +437,7 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
456
437
|
- **Escalate Immediately**: Prompt the operator via `ask_question` with the diagnostic status.
|
|
457
438
|
- **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>`.
|
|
458
439
|
3. **Orchestrator Self-Audit Watchdog (ONLY for OpenAI Codex / ChatGPT)**:
|
|
459
|
-
- **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively
|
|
440
|
+
- **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`.
|
|
460
441
|
- **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).
|
|
461
442
|
- **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.
|
|
462
443
|
- 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`).
|
|
@@ -19,7 +19,7 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
|
|
|
19
19
|
<CRITICAL>
|
|
20
20
|
`garden prompts` and `garden launch` automatically write worker prompt cards to `/tmp/garden-<project>/<worker-name>.md` and a combined roster to `/tmp/garden-<project>/all-workers.md`.
|
|
21
21
|
Orchestrator agents MUST NEVER dump thousands of lines of prompt text inline into the chat conversation. Dumping cards inline exhausts token context budgets, causes scrolling fatigue, and triggers chat UI rendering bugs.
|
|
22
|
-
Instead, orchestrators MUST output concise session assignments with clickable file links
|
|
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
25
|
3. **Single-Shot Listener Discipline**:
|
|
@@ -35,7 +35,7 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
|
|
|
35
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
|
-
- Never stage coordination state (`.rhizo.*`, `*.lock`, `.vine.
|
|
38
|
+
- 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).
|
|
39
39
|
6. **Sovereign Dedicated Session Invariant (Universal Subagent Prohibition)**:
|
|
40
40
|
<CRITICAL>
|
|
41
41
|
Swarm workers are ALWAYS sovereign, independent interactive sessions (separate terminal tabs or IDE windows) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY FORBIDDEN from acting as swarm workers. Prompt cards are generated strictly for human operators to paste into separate sessions. The orchestrator must NEVER attempt to automate prompt cards by feeding them into internal subagents.
|
|
@@ -115,11 +115,11 @@ The Orchestrator presents the generated prompt blocks to the operator with clear
|
|
|
115
115
|
- **Session 3 (@<project>-implementer)**: e.g. Antigravity IDE (Window 3) or OpenCode $\to$ Paste Card 3
|
|
116
116
|
2. **Harness & Model Agnostic Flexibility**:
|
|
117
117
|
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
|
-
3. **Temp File Links
|
|
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**:
|
|
121
|
-
- **@<project>-auditor**:
|
|
122
|
-
- **@<project>-implementer**:
|
|
118
|
+
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`
|
|
123
123
|
- **All Combined**: `/tmp/garden-<project>/all-workers.md`
|
|
124
124
|
4. **Immediate Autonomous Onboarding**:
|
|
125
125
|
Each prompt instructs the pasted session to immediately:
|
|
@@ -129,7 +129,7 @@ The Orchestrator presents the generated prompt blocks to the operator with clear
|
|
|
129
129
|
- `rhizo hook install --codex --agent "<name>"` (if running in Codex CLI/Desktop)
|
|
130
130
|
- `rhizo listen "<name>"` (blocking foreground command with infinite wait)
|
|
131
131
|
5. **Scheduled Health Check Template (ONLY for OpenAI Codex / ChatGPT CLI)**:
|
|
132
|
-
In Google Antigravity (using
|
|
132
|
+
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
133
|
In Codex Desktop / CLI where sessions cannot wake from background process exits without external stimulation, prompts include the bulletproof 4-step template:
|
|
134
134
|
- STEP 1: Inspect completed background listener processes / hooks for unhandled delivered tasks and execute them immediately (never stay quiet with pending work).
|
|
135
135
|
- STEP 2: Inspect active tasks to verify a listener is currently running, and re-arm if missing.
|
|
@@ -179,26 +179,22 @@ stateDiagram-v2
|
|
|
179
179
|
[*] --> DRAFTED : rhizo task create <id>
|
|
180
180
|
DRAFTED --> BLOCKED : Unmet DAG dependencies (depends_on)
|
|
181
181
|
DRAFTED --> QUEUED : Zero unmet dependencies
|
|
182
|
-
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by
|
|
182
|
+
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by vine weave)
|
|
183
183
|
|
|
184
|
-
QUEUED -->
|
|
185
|
-
DELIVERED --> CLAIMED : Worker acknowledges (Acquires monotonic lease)
|
|
186
|
-
DELIVERED --> ORPHANED : Receipt timeout (180s without claim)
|
|
187
|
-
|
|
188
|
-
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
184
|
+
QUEUED --> IN_PROGRESS : Task claimed / delivered (rhizo claim / rhizo task claim)
|
|
189
185
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
190
186
|
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
191
187
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
192
188
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
193
189
|
|
|
194
190
|
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,
|
|
191
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, delivery ticket stamped)
|
|
196
192
|
|
|
197
|
-
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve
|
|
198
|
-
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
193
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve --ticket <hex>, audit token stamped)
|
|
194
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject --ticket <hex> --reason "...")
|
|
199
195
|
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
200
196
|
|
|
201
|
-
AUDIT_RATIFIED --> COMPLETED : vine weave
|
|
197
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave (Auto-completes task via rhizo task complete & unblocks DAG children)
|
|
202
198
|
|
|
203
199
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
204
200
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -217,51 +213,42 @@ stateDiagram-v2
|
|
|
217
213
|
+---------+ Unmet deps
|
|
218
214
|
| DRAFTED | ──────────────────► [ BLOCKED ]
|
|
219
215
|
+---------+ │
|
|
220
|
-
│ Zero deps │ Parent task COMPLETED
|
|
216
|
+
│ Zero deps │ Parent task COMPLETED (Auto-promoted by vine weave)
|
|
221
217
|
▼ ▼
|
|
222
218
|
+---------+ ◄───────────────────────+
|
|
223
219
|
| QUEUED |
|
|
224
220
|
+---------+
|
|
225
221
|
│
|
|
226
|
-
│ rhizo
|
|
227
|
-
|
|
228
|
-
+-----------+ 180s Receipt Timeout
|
|
229
|
-
| DELIVERED | ─────────────────────────────────► [ ORPHANED ]
|
|
230
|
-
+-----------+ │
|
|
231
|
-
│ │ Attempts >= 3
|
|
232
|
-
│ rhizo task claim / rhizo reply ▼
|
|
233
|
-
▼ [ DEAD_LETTER ]
|
|
234
|
-
+---------+
|
|
235
|
-
| CLAIMED |
|
|
236
|
-
+---------+
|
|
237
|
-
│
|
|
238
|
-
│ vine new <task_id> (Provision strand)
|
|
222
|
+
│ Task claimed / delivered (rhizo claim / rhizo task claim / rhizo send)
|
|
223
|
+
│ Collapses DELIVERED ➔ CLAIMED ➔ IN_PROGRESS with monotonic lease
|
|
239
224
|
▼
|
|
240
225
|
+-------------+ Lease expires
|
|
241
226
|
| IN_PROGRESS | ────────────────────────────────► [ ORPHANED ]
|
|
242
|
-
+-------------+
|
|
243
|
-
│ ▲
|
|
244
|
-
│ vine │ Gate fails
|
|
245
|
-
│ submit │ (Tests red or conflict)
|
|
227
|
+
+-------------+ │
|
|
228
|
+
│ ▲ │ Attempts >= 3
|
|
229
|
+
│ vine │ Gate fails ▼
|
|
230
|
+
│ submit │ (Tests red or conflict) [ DEAD_LETTER ]
|
|
246
231
|
▼ │
|
|
247
232
|
+-----------------+
|
|
248
233
|
| GATE_EVALUATING |
|
|
249
234
|
+-----------------+
|
|
250
235
|
│
|
|
251
|
-
│ Keys 1 & 2 PASSED (vine submit:
|
|
236
|
+
│ Keys 1 & 2 PASSED (vine submit: delivery ticket stamped)
|
|
252
237
|
▼
|
|
253
238
|
+------------------+
|
|
254
|
-
| READY_FOR_AUDIT |
|
|
255
|
-
+------------------+
|
|
256
|
-
│ │
|
|
257
|
-
│ approve │ reject
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
239
|
+
| READY_FOR_AUDIT | ◄──────────────────────────────┐
|
|
240
|
+
+------------------+ │
|
|
241
|
+
│ │ │
|
|
242
|
+
│ approve │ reject │ Remediate
|
|
243
|
+
│ --ticket │ --ticket │
|
|
244
|
+
▼ ▼ │
|
|
245
|
+
+------------+ +----------------+ │
|
|
246
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────────────┘
|
|
261
247
|
| RATIFIED | +----------------+
|
|
262
248
|
+------------+
|
|
263
249
|
│
|
|
264
|
-
│ vine weave
|
|
250
|
+
│ vine weave (or vine audit approve --weave)
|
|
251
|
+
│ Auto-executes rhizo task complete & unblocks DAG children
|
|
265
252
|
▼
|
|
266
253
|
+-----------+
|
|
267
254
|
| COMPLETED | ──► Auto-promotes BLOCKED child tasks to QUEUED!
|
|
@@ -275,19 +262,13 @@ stateDiagram-v2
|
|
|
275
262
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
276
263
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
277
264
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
278
|
-
| **`
|
|
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` |
|
|
265
|
+
| **`IN_PROGRESS`** | `rhizo task claim <id>` / `rhizo claim` / task delivery | **Collapsed claim & delivery**: Worker acquires monotonic fencing lease and enters isolated Vine strand (`vine new <id>`). Zero on-disk manifests; strand identity is stored in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis. Periodic `rhizo task progress` extends lease. | Lease expires $\rightarrow$ `ORPHANED` |
|
|
284
266
|
| **`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
|
|
289
|
-
| **`ORPHANED`** |
|
|
290
|
-
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
267
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Cryptographic delivery ticket (`gate_token`) stamped into strand state. Strand submitted for independent adversarial review. | N/A |
|
|
268
|
+
| **`AUDIT_REJECTED`** | `vine audit reject <task_id> --auditor <name> --ticket <hex> --reason "..." --listen` | Auditor rejected deliverable with recorded defect reasons against delivery ticket. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
269
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve <task_id> --auditor <name> --ticket <hex> [--weave] [--listen]` | Key 3 passed! Cryptographic delivery ticket verified and `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
270
|
+
| **`COMPLETED`** | `vine weave` (or `vine audit approve --weave`) | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **`vine weave` automatically invokes `rhizo task complete`**, auto-promoting downstream DAG dependencies (`BLOCKED` $\rightarrow$ `QUEUED`)! | N/A |
|
|
271
|
+
| **`ORPHANED`** | Lease expired without progress | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3 \rightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
291
272
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
292
273
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
293
274
|
|
|
@@ -149,26 +149,22 @@ stateDiagram-v2
|
|
|
149
149
|
[*] --> DRAFTED : rhizo task create <id>
|
|
150
150
|
DRAFTED --> BLOCKED : Unmet DAG dependencies (depends_on)
|
|
151
151
|
DRAFTED --> QUEUED : Zero unmet dependencies
|
|
152
|
-
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by
|
|
152
|
+
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by vine weave)
|
|
153
153
|
|
|
154
|
-
QUEUED -->
|
|
155
|
-
DELIVERED --> CLAIMED : Worker acknowledges (Acquires monotonic lease)
|
|
156
|
-
DELIVERED --> ORPHANED : Receipt timeout (180s without claim)
|
|
157
|
-
|
|
158
|
-
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
154
|
+
QUEUED --> IN_PROGRESS : Task claimed / delivered (rhizo claim / rhizo task claim)
|
|
159
155
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
160
156
|
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
161
157
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
162
158
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
163
159
|
|
|
164
160
|
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
165
|
-
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit,
|
|
161
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, delivery ticket stamped)
|
|
166
162
|
|
|
167
|
-
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve
|
|
168
|
-
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
163
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve --ticket <hex>, audit token stamped)
|
|
164
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject --ticket <hex> --reason "...")
|
|
169
165
|
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
170
166
|
|
|
171
|
-
AUDIT_RATIFIED --> COMPLETED : vine weave
|
|
167
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave (Auto-completes task via rhizo task complete & unblocks DAG children)
|
|
172
168
|
|
|
173
169
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
174
170
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -187,51 +183,42 @@ stateDiagram-v2
|
|
|
187
183
|
+---------+ Unmet deps
|
|
188
184
|
| DRAFTED | ──────────────────► [ BLOCKED ]
|
|
189
185
|
+---------+ │
|
|
190
|
-
│ Zero deps │ Parent task COMPLETED
|
|
186
|
+
│ Zero deps │ Parent task COMPLETED (Auto-promoted by vine weave)
|
|
191
187
|
▼ ▼
|
|
192
188
|
+---------+ ◄───────────────────────+
|
|
193
189
|
| QUEUED |
|
|
194
190
|
+---------+
|
|
195
191
|
│
|
|
196
|
-
│ rhizo
|
|
197
|
-
|
|
198
|
-
+-----------+ 180s Receipt Timeout
|
|
199
|
-
| DELIVERED | ─────────────────────────────────► [ ORPHANED ]
|
|
200
|
-
+-----------+ │
|
|
201
|
-
│ │ Attempts >= 3
|
|
202
|
-
│ rhizo task claim / rhizo reply ▼
|
|
203
|
-
▼ [ DEAD_LETTER ]
|
|
204
|
-
+---------+
|
|
205
|
-
| CLAIMED |
|
|
206
|
-
+---------+
|
|
207
|
-
│
|
|
208
|
-
│ vine new <task_id> (Provision strand)
|
|
192
|
+
│ Task claimed / delivered (rhizo claim / rhizo task claim / rhizo send)
|
|
193
|
+
│ Collapses DELIVERED ➔ CLAIMED ➔ IN_PROGRESS with monotonic lease
|
|
209
194
|
▼
|
|
210
195
|
+-------------+ Lease expires
|
|
211
196
|
| IN_PROGRESS | ────────────────────────────────► [ ORPHANED ]
|
|
212
|
-
+-------------+
|
|
213
|
-
│ ▲
|
|
214
|
-
│ vine │ Gate fails
|
|
215
|
-
│ submit │ (Tests red or conflict)
|
|
197
|
+
+-------------+ │
|
|
198
|
+
│ ▲ │ Attempts >= 3
|
|
199
|
+
│ vine │ Gate fails ▼
|
|
200
|
+
│ submit │ (Tests red or conflict) [ DEAD_LETTER ]
|
|
216
201
|
▼ │
|
|
217
202
|
+-----------------+
|
|
218
203
|
| GATE_EVALUATING |
|
|
219
204
|
+-----------------+
|
|
220
205
|
│
|
|
221
|
-
│ Keys 1 & 2 PASSED (vine submit:
|
|
206
|
+
│ Keys 1 & 2 PASSED (vine submit: delivery ticket stamped)
|
|
222
207
|
▼
|
|
223
208
|
+------------------+
|
|
224
|
-
| READY_FOR_AUDIT |
|
|
225
|
-
+------------------+
|
|
226
|
-
│ │
|
|
227
|
-
│ approve │ reject
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
209
|
+
| READY_FOR_AUDIT | ◄──────────────────────────────┐
|
|
210
|
+
+------------------+ │
|
|
211
|
+
│ │ │
|
|
212
|
+
│ approve │ reject │ Remediate
|
|
213
|
+
│ --ticket │ --ticket │
|
|
214
|
+
▼ ▼ │
|
|
215
|
+
+------------+ +----------------+ │
|
|
216
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────────────┘
|
|
231
217
|
| RATIFIED | +----------------+
|
|
232
218
|
+------------+
|
|
233
219
|
│
|
|
234
|
-
│ vine weave
|
|
220
|
+
│ vine weave (or vine audit approve --weave)
|
|
221
|
+
│ Auto-executes rhizo task complete & unblocks DAG children
|
|
235
222
|
▼
|
|
236
223
|
+-----------+
|
|
237
224
|
| COMPLETED | ──► Auto-promotes BLOCKED child tasks to QUEUED!
|
|
@@ -245,19 +232,13 @@ stateDiagram-v2
|
|
|
245
232
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
246
233
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
247
234
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
248
|
-
| **`
|
|
249
|
-
ightarrow$ `ORPHANED` |
|
|
250
|
-
| **`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 $
|
|
251
|
-
ightarrow$ `ORPHANED` |
|
|
252
|
-
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
253
|
-
ightarrow$ `ORPHANED` |
|
|
235
|
+
| **`IN_PROGRESS`** | `rhizo task claim <id>` / `rhizo claim` / task delivery | **Collapsed claim & delivery**: Worker acquires monotonic fencing lease and enters isolated Vine strand (`vine new <id>`). Zero on-disk manifests; strand identity is stored in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis. Periodic `rhizo task progress` extends lease. | Lease expires $\rightarrow$ `ORPHANED` |
|
|
254
236
|
| **`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` |
|
|
255
|
-
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
256
|
-
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
257
|
-
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
258
|
-
| **`COMPLETED`** | `vine weave
|
|
259
|
-
| **`ORPHANED`** |
|
|
260
|
-
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
237
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Cryptographic delivery ticket (`gate_token`) stamped into strand state. Strand submitted for independent adversarial review. | N/A |
|
|
238
|
+
| **`AUDIT_REJECTED`** | `vine audit reject <task_id> --auditor <name> --ticket <hex> --reason "..." --listen` | Auditor rejected deliverable with recorded defect reasons against delivery ticket. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
239
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve <task_id> --auditor <name> --ticket <hex> [--weave] [--listen]` | Key 3 passed! Cryptographic delivery ticket verified and `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
240
|
+
| **`COMPLETED`** | `vine weave` (or `vine audit approve --weave`) | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **`vine weave` automatically invokes `rhizo task complete`**, auto-promoting downstream DAG dependencies (`BLOCKED` $\rightarrow$ `QUEUED`)! | N/A |
|
|
241
|
+
| **`ORPHANED`** | Lease expired without progress | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3 \rightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
261
242
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
262
243
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
263
244
|
|
|
@@ -337,25 +318,26 @@ rhizo probe <worker>
|
|
|
337
318
|
```
|
|
338
319
|
|
|
339
320
|
### SOP 3: Enforcing the Three-Key Gate & Independent Adversarial Audit
|
|
340
|
-
When a worker finishes implementation in their strand, they run `vine submit --author <worker>` and report readiness:
|
|
321
|
+
When a worker finishes implementation in their strand, they run `vine submit --author <worker>` (which generates a cryptographic delivery ticket / `gate_token`) and report readiness:
|
|
341
322
|
```json
|
|
342
323
|
{
|
|
343
324
|
"status": "READY_FOR_AUDIT",
|
|
344
325
|
"task_id": "task-core-ds",
|
|
345
326
|
"branch": "strand/task-core-ds",
|
|
346
327
|
"strand_path": "/Users/eek/Development/workspaces/myproject/task-core-ds/myproject",
|
|
347
|
-
"author": "implementer"
|
|
328
|
+
"author": "implementer",
|
|
329
|
+
"ticket": "<64-char-hex-delivery-ticket>"
|
|
348
330
|
}
|
|
349
331
|
```
|
|
350
332
|
|
|
351
333
|
> [!CRITICAL]
|
|
352
334
|
> **THE WORKER IS NOT THE AUDITOR**: Workers cannot audit or approve their own strands (`vine audit approve` strictly enforces `auditor != author`).
|
|
353
335
|
> The Lead Orchestrator dispatches an audit request to the dedicated **Adversarial Auditor** session:
|
|
354
|
-
> `rhizo send @auditor --subject "Audit Request: task-core-ds" --body '{"strand_path": "...", "author": "implementer"}'`
|
|
336
|
+
> `rhizo send @auditor --subject "Audit Request: task-core-ds" --body '{"strand_path": "...", "author": "implementer", "ticket": "<64-char-hex-delivery-ticket>"}'`
|
|
355
337
|
|
|
356
338
|
The independent Auditor initiates **Key 3: The Pre-Weave Adversarial Code Audit Pump** under the **Presumption of Guilt**:
|
|
357
339
|
|
|
358
|
-
1. **Thesis Intake**: Demand the worker's **Deliverable Claim Bundle** (task contract, Two-Point Diff mapping, test evidence, negative controls).
|
|
340
|
+
1. **Thesis Intake**: Demand the worker's **Deliverable Claim Bundle** (task contract, Two-Point Diff mapping, test evidence, negative controls, delivery ticket).
|
|
359
341
|
2. **Five-Pillar Presumption-of-Guilt Audit**:
|
|
360
342
|
- **Changelog Gate (Key 2 Interlock)**: If the repository contains a changelog (`CHANGELOG.md`, `changelog.md`, etc.), verify that changes are documented under `## [Unreleased]`. Confirm `vine gate` passed without changelog violations (or verify worker ran `vine changelog "..."`). Reject if an existing changelog is untouched unless `--allow-no-changelog` was explicitly approved.
|
|
361
343
|
- **Pillar 1 (Closed-Circuit Two-Point Diff)**: Inspect strand diff against `origin/main` (`git -C "$strand_path" diff --name-only origin/main...HEAD`). Confirm both Provider and live Consumer call-sites are modified. Reject hermetic shelfware lacking a live consumer.
|
|
@@ -364,16 +346,22 @@ The independent Auditor initiates **Key 3: The Pre-Weave Adversarial Code Audit
|
|
|
364
346
|
- **Pillar 4 (Aggressive Replacement Purge)**: Ensure all superseded legacy code, fallbacks, and commented-out blocks are deleted in the strand.
|
|
365
347
|
- **Pillar 5 (Structural Assertion Rigor)**: Reject partial/loose assertions (`assert "foo" in bar`). Mandate complete structural equality (`assert actual == expected`) and negative controls.
|
|
366
348
|
3. **Audit Ratification or Delta Re-Pump Loop**:
|
|
367
|
-
- **If findings exist**: Auditor executes
|
|
349
|
+
- **If findings exist**: Auditor executes rejection against the delivery ticket:
|
|
350
|
+
```bash
|
|
351
|
+
vine audit reject <task_id> --auditor <auditor_name> --ticket <hex> --reason "<defects>" --listen
|
|
352
|
+
```
|
|
353
|
+
and reports findings to the worker. Worker remediates inside the strand and re-submits with `vine submit` (obtaining a fresh delivery ticket).
|
|
368
354
|
- **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**.
|
|
369
355
|
- **When 0 defects remain**: Auditor runs:
|
|
370
356
|
```bash
|
|
371
|
-
vine audit approve --auditor <auditor_name>
|
|
357
|
+
vine audit approve <task_id> --auditor <auditor_name> --ticket <hex> --weave --listen
|
|
372
358
|
```
|
|
373
|
-
This stamps a cryptographic `audit_token
|
|
374
|
-
4. **Weave &
|
|
359
|
+
This verifies the delivery ticket, stamps a cryptographic `audit_token`, and marks the strand `AUDIT_RATIFIED` (and fast-forward weaves into main if `--weave` is specified). Auditor notifies orchestrator.
|
|
360
|
+
4. **Weave & Auto-Complete (Only after Key 3 Clearance)**:
|
|
375
361
|
```bash
|
|
376
|
-
# 1. Weave the verified, ratified strand into main
|
|
362
|
+
# 1. Weave the verified, ratified strand into main:
|
|
363
|
+
# Mechanically verifies audit_token, fast-forward merges, prunes strand,
|
|
364
|
+
# and automatically triggers 'rhizo task complete' to unblock downstream DAG children!
|
|
377
365
|
vine weave
|
|
378
366
|
|
|
379
367
|
# 2. Release any held fencing locks if applicable
|
|
@@ -56,14 +56,22 @@ For all parallel development tracks:
|
|
|
56
56
|
```bash
|
|
57
57
|
vine new <task_id> --branch strand/<task_id> --worktree
|
|
58
58
|
```
|
|
59
|
+
*Note: Vine stores strand identity in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis (zero on-disk `.vine.json` state files).*
|
|
59
60
|
2. **Execute Work Inside Strand**:
|
|
60
61
|
- Implement code changes.
|
|
61
62
|
- Run local unit tests and formatters.
|
|
62
63
|
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
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
- **Worker**: Runs `vine submit --author <worker>` (evaluates Key 1 mechanical merge-tree + Key 2 live compiler/test suite + changelog, and stamps cryptographic delivery ticket / `gate_token`).
|
|
65
|
+
- **Independent Auditor**: Inspects Five Pillars and runs:
|
|
66
|
+
```bash
|
|
67
|
+
# To ratify approval and weave:
|
|
68
|
+
vine audit approve <task_id> --auditor <auditor> --ticket <hex> --weave --listen
|
|
69
|
+
# Or to reject if defects are found:
|
|
70
|
+
vine audit reject <task_id> --auditor <auditor> --ticket <hex> --reason "<findings>" --listen
|
|
71
|
+
```
|
|
72
|
+
Remember: THE WORKER IS NOT THE AUDITOR.
|
|
73
|
+
4. **Trunk Weaving & DAG Cascading**:
|
|
74
|
+
*Fast-forwards ratified branch into main, automatically calls `rhizo task complete <task_id>`, and unblocks downstream DAG child tasks (`BLOCKED` $\rightarrow$ `QUEUED`):*
|
|
67
75
|
```bash
|
|
68
76
|
vine weave
|
|
69
77
|
```
|