@axiomantic/garden 0.2.27 → 0.2.29
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 +7 -7
- package/SKILL.md +68 -69
- 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/choose-personas/SKILL.md +1 -1
- package/skills/dialectical-pump/SKILL.md +126 -21
- package/skills/garden/SKILL.md +68 -69
- package/skills/launch-workers/SKILL.md +47 -57
- package/skills/orchestrate-swarm/SKILL.md +66 -62
- package/skills/plan-implementation/SKILL.md +41 -16
|
@@ -32,7 +32,7 @@ Furthermore, when the operator explicitly requests or names a worker or peer ses
|
|
|
32
32
|
|
|
33
33
|
<CRITICAL>
|
|
34
34
|
Orchestrator Intake Gate & Autonomous Dispatch Invariant (GVR-016):
|
|
35
|
-
The Lead Orchestrator is a CONDUCTOR, NOT A CODER.
|
|
35
|
+
The Lead Orchestrator is a CONDUCTOR, NOT A CODER. The orchestrator context window must remain dedicated to high-level planning, architectural analysis, and governance.
|
|
36
36
|
Whenever the operator presents a task, feature request, bugfix, or asks to work on something (including "garden: <prompt>"):
|
|
37
37
|
THE ORCHESTRATOR MUST NEVER DIRECTLY JUMP INTO CODE EDITING OR IMPLEMENTATION TOOLS (e.g. `write_to_file`, `replace_file_content`).
|
|
38
38
|
|
|
@@ -41,18 +41,33 @@ The orchestrator inspects the cluster state via `rhizo who --all --json`:
|
|
|
41
41
|
If the operator has already directed "work on this with your workers", "delegate", or "dispatch", OR if active cluster workers/queues already exist:
|
|
42
42
|
DO NOT STOP TO ASK ROUTING QUESTIONS. The routing is already decided.
|
|
43
43
|
The orchestrator MUST immediately provision strands (`vine new`), break down the work, and dispatch directly to available cluster workers (`rhizo send <worker>`) or enqueue to `queue:<project>:tasks`.
|
|
44
|
+
*Single-Worker Direct Dispatch Preference*: Even for small or single-file code changes, Single-Worker Direct Dispatch (`rhizo send` to 1 worker in a dedicated Vine strand) is strongly preferred over Orchestrator Inline Execution to preserve the conductor's context window.
|
|
44
45
|
2. **Mandatory `ask_question` Tool Discipline (Zero Conversational Multiple-Choice)**:
|
|
45
46
|
If and ONLY if the cluster is completely cold (0 active workers online across the machine) AND the operator has not specified an execution mode:
|
|
46
47
|
The orchestrator MUST invoke the interactive `ask_question` tool to solicit the operator's preference (Swarm vs Inline).
|
|
47
48
|
Dumping multiple-choice numbered lists (`1, 2, 3`) or routing questionnaires in raw chat text is STRICTLY PROHIBITED.
|
|
49
|
+
Inline execution in the orchestrator is strictly discouraged for code implementation and reserved for non-code planning, analysis, or design discussions.
|
|
48
50
|
3. **Project-Scoped Fleet Mandate & Anti-Hijacking Invariant**:
|
|
49
51
|
When active or idle workers exist FOR THIS PROJECT (or in the unassigned pool: project 'unassigned'/'default' or tagged 'pool'/'float'/'shared'), the orchestrator must automatically dispatch or repurpose them over Rhizo without prompt cards. However, workers assigned to other named projects are protected; cross-project worker hijacking is strictly prohibited. If only foreign project workers exist, the orchestrator MUST NOT hijack them, but must instead bootstrap dedicated workers via prompt cards (`garden prompts` / `garden launch`).
|
|
50
52
|
</CRITICAL>
|
|
51
53
|
|
|
52
54
|
<CRITICAL>
|
|
53
|
-
Pre-Weave Adversarial Audit,
|
|
55
|
+
Pre-Weave Adversarial Audit, Contract Immutability & Auditor Merge-Clerk Decoupling:
|
|
54
56
|
The Lead Orchestrator is the final gatekeeper against hermetic shelfware, hollow mocks, superficial heuristics, benchmark defeat devices, and green mirages.
|
|
55
57
|
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.
|
|
58
|
+
|
|
59
|
+
1. Pre-Plan Contract Skeleton Ceremony (Option B):
|
|
60
|
+
Before authoring `implementation_plan.md` and dispatching parallel workers, the Triad commits idiomatic public types, callable stubs (`UNIMPLEMENTED_CONTRACT`), and red contract test suites onto the feature integration branch `epic/<slug>` via `vine new task-<slug>-skeleton --parent epic/<slug>`, `vine submit --skeleton`, and Key 3 audit. Parallel implementation strands branch off `--parent epic/<slug>`.
|
|
61
|
+
2. Contract Immutability:
|
|
62
|
+
Parallel implementation strands branching off `--parent epic/<slug>` MUST NOT alter exported contract signatures or weaken contract tests without an approved `[DESIGN ADDENDUM]`.
|
|
63
|
+
3. Anti-Mock-Fallback:
|
|
64
|
+
Workers are strictly prohibited from implementing silent mock fallbacks (e.g. `lesMockFallback`); missing dependencies require halting immediately with `BLOCKER: MISSING_DEPENDENCY`.
|
|
65
|
+
4. Key 3 Auditor Merge-Clerk Decoupling & Invariants:
|
|
66
|
+
- **Auditor Merge-Clerk Decoupling**: The Adversarial Auditor ONLY inspects and ratifies/rejects Key 3 (`vine audit inspect` + `vine audit approve/reject`). The Lead Orchestrator is solely responsible for running `vine weave` after Key 3 ratification. The Orchestrator is strictly forbidden from delegating weaving (`--weave`), merge conflict resolution, `ROADMAP.md` updates, or release chores to the Adversarial Auditor. Turning the Auditor into a merge clerk biases the LLM toward rubber-stamping audits just to finish its administrative checklist.
|
|
67
|
+
- **Single-Strand Audit Isolation (Anti-Batching Invariant)**: Orchestrators MUST dispatch at most ONE strand per Key 3 audit request. Batching multiple strands into a single audit message ("Audit tasks 3.1, 3.2, 3.3, 3.5") collapses LLM attention, blinds the auditor to edge cases, and causes rubber-stamping. Every strand must be audited independently in its own focused turn.
|
|
68
|
+
- **Inverted Effort Gradient & Evidence Mandate**: Rejection is the fast path whenever ANY doubt or defect exists (`vine audit reject <task_id> --ticket <hex> --reason "..."`). Approval is evidence-bound and strictly requires `--evidence "..."` citing specific changed file basenames, provider->consumer call-sites, and negative control assertions from the diff (`vine audit approve <task_id> --ticket <hex> --evidence "..."`).
|
|
69
|
+
- The independent Adversarial Auditor MUST run `vine audit inspect <task_id>` before approving. Using `--force` on audit approvals is strictly prohibited. Auditors are adversarial verifiers, NOT release or merge clerks (auditors never edit `ROADMAP.md` or resolve `CHANGELOG.md` merge conflicts on behalf of workers).
|
|
70
|
+
|
|
56
71
|
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):
|
|
57
72
|
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.
|
|
58
73
|
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.
|
|
@@ -149,26 +164,22 @@ stateDiagram-v2
|
|
|
149
164
|
[*] --> DRAFTED : rhizo task create <id>
|
|
150
165
|
DRAFTED --> BLOCKED : Unmet DAG dependencies (depends_on)
|
|
151
166
|
DRAFTED --> QUEUED : Zero unmet dependencies
|
|
152
|
-
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by
|
|
153
|
-
|
|
154
|
-
QUEUED --> DELIVERED : Listener pops message (Transport Receipt emitted)
|
|
155
|
-
DELIVERED --> CLAIMED : Worker acknowledges (Acquires monotonic lease)
|
|
156
|
-
DELIVERED --> ORPHANED : Receipt timeout (180s without claim)
|
|
167
|
+
BLOCKED --> QUEUED : Parent task COMPLETED (Auto-promoted by vine weave)
|
|
157
168
|
|
|
158
|
-
|
|
169
|
+
QUEUED --> IN_PROGRESS : Task claimed / delivered (rhizo claim / rhizo task claim)
|
|
159
170
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
160
171
|
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
161
172
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
162
173
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
163
174
|
|
|
164
175
|
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,
|
|
176
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, delivery ticket stamped)
|
|
166
177
|
|
|
167
|
-
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve
|
|
168
|
-
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
178
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve --ticket <hex>, audit token stamped)
|
|
179
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject --ticket <hex> --reason "...")
|
|
169
180
|
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
170
181
|
|
|
171
|
-
AUDIT_RATIFIED --> COMPLETED : vine weave
|
|
182
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave (Auto-completes task via rhizo task complete & unblocks DAG children)
|
|
172
183
|
|
|
173
184
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
174
185
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -187,51 +198,42 @@ stateDiagram-v2
|
|
|
187
198
|
+---------+ Unmet deps
|
|
188
199
|
| DRAFTED | ──────────────────► [ BLOCKED ]
|
|
189
200
|
+---------+ │
|
|
190
|
-
│ Zero deps │ Parent task COMPLETED
|
|
201
|
+
│ Zero deps │ Parent task COMPLETED (Auto-promoted by vine weave)
|
|
191
202
|
▼ ▼
|
|
192
203
|
+---------+ ◄───────────────────────+
|
|
193
204
|
| QUEUED |
|
|
194
205
|
+---------+
|
|
195
206
|
│
|
|
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)
|
|
207
|
+
│ Task claimed / delivered (rhizo claim / rhizo task claim / rhizo send)
|
|
208
|
+
│ Collapses DELIVERED ➔ CLAIMED ➔ IN_PROGRESS with monotonic lease
|
|
209
209
|
▼
|
|
210
210
|
+-------------+ Lease expires
|
|
211
211
|
| IN_PROGRESS | ────────────────────────────────► [ ORPHANED ]
|
|
212
|
-
+-------------+
|
|
213
|
-
│ ▲
|
|
214
|
-
│ vine │ Gate fails
|
|
215
|
-
│ submit │ (Tests red or conflict)
|
|
212
|
+
+-------------+ │
|
|
213
|
+
│ ▲ │ Attempts >= 3
|
|
214
|
+
│ vine │ Gate fails ▼
|
|
215
|
+
│ submit │ (Tests red or conflict) [ DEAD_LETTER ]
|
|
216
216
|
▼ │
|
|
217
217
|
+-----------------+
|
|
218
218
|
| GATE_EVALUATING |
|
|
219
219
|
+-----------------+
|
|
220
220
|
│
|
|
221
|
-
│ Keys 1 & 2 PASSED (vine submit:
|
|
221
|
+
│ Keys 1 & 2 PASSED (vine submit: delivery ticket stamped)
|
|
222
222
|
▼
|
|
223
223
|
+------------------+
|
|
224
|
-
| READY_FOR_AUDIT |
|
|
225
|
-
+------------------+
|
|
226
|
-
│ │
|
|
227
|
-
│ approve │ reject
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
| READY_FOR_AUDIT | ◄──────────────────────────────┐
|
|
225
|
+
+------------------+ │
|
|
226
|
+
│ │ │
|
|
227
|
+
│ approve │ reject │ Remediate
|
|
228
|
+
│ --ticket │ --ticket │
|
|
229
|
+
▼ ▼ │
|
|
230
|
+
+------------+ +----------------+ │
|
|
231
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────────────┘
|
|
231
232
|
| RATIFIED | +----------------+
|
|
232
233
|
+------------+
|
|
233
234
|
│
|
|
234
|
-
│ vine weave
|
|
235
|
+
│ vine weave (Executed by Lead Orchestrator)
|
|
236
|
+
│ Auto-executes rhizo task complete & unblocks DAG children
|
|
235
237
|
▼
|
|
236
238
|
+-----------+
|
|
237
239
|
| COMPLETED | ──► Auto-promotes BLOCKED child tasks to QUEUED!
|
|
@@ -245,19 +247,13 @@ stateDiagram-v2
|
|
|
245
247
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
246
248
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
247
249
|
| **`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` |
|
|
250
|
+
| **`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
251
|
| **`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 |
|
|
252
|
+
| **`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 |
|
|
253
|
+
| **`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 |
|
|
254
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve <task_id> --auditor <name> --ticket <hex> --evidence "..." [--listen]` | Key 3 passed! Cryptographic delivery ticket verified and `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). Auditor NEVER weaves. | N/A |
|
|
255
|
+
| **`COMPLETED`** | `vine weave` | Fast-forward merged into canonical trunk by the Lead Orchestrator. Strand pruned. Locks released. **`vine weave` automatically invokes `rhizo task complete`**, auto-promoting downstream DAG dependencies (`BLOCKED` $\rightarrow$ `QUEUED`)! | N/A |
|
|
256
|
+
| **`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
257
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
262
258
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
263
259
|
|
|
@@ -337,25 +333,26 @@ rhizo probe <worker>
|
|
|
337
333
|
```
|
|
338
334
|
|
|
339
335
|
### 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:
|
|
336
|
+
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
337
|
```json
|
|
342
338
|
{
|
|
343
339
|
"status": "READY_FOR_AUDIT",
|
|
344
340
|
"task_id": "task-core-ds",
|
|
345
341
|
"branch": "strand/task-core-ds",
|
|
346
342
|
"strand_path": "/Users/eek/Development/workspaces/myproject/task-core-ds/myproject",
|
|
347
|
-
"author": "implementer"
|
|
343
|
+
"author": "implementer",
|
|
344
|
+
"ticket": "<64-char-hex-delivery-ticket>"
|
|
348
345
|
}
|
|
349
346
|
```
|
|
350
347
|
|
|
351
348
|
> [!CRITICAL]
|
|
352
349
|
> **THE WORKER IS NOT THE AUDITOR**: Workers cannot audit or approve their own strands (`vine audit approve` strictly enforces `auditor != author`).
|
|
353
|
-
> The Lead Orchestrator dispatches an audit request
|
|
354
|
-
> `rhizo send @auditor --subject "Audit Request: task-core-ds" --body '{"strand_path": "...", "author": "implementer"}'`
|
|
350
|
+
> **SINGLE-STRAND AUDIT ISOLATION**: The Lead Orchestrator dispatches an audit request for at most ONE strand at a time (batching multiple strands into a single audit message is strictly prohibited):
|
|
351
|
+
> `rhizo send @auditor --subject "Audit Request: task-core-ds" --body '{"strand_path": "...", "author": "implementer", "ticket": "<64-char-hex-delivery-ticket>"}'`
|
|
355
352
|
|
|
356
353
|
The independent Auditor initiates **Key 3: The Pre-Weave Adversarial Code Audit Pump** under the **Presumption of Guilt**:
|
|
357
354
|
|
|
358
|
-
1. **Thesis Intake**: Demand the worker's **Deliverable Claim Bundle** (task contract, Two-Point Diff mapping, test evidence, negative controls).
|
|
355
|
+
1. **Thesis Intake**: Demand the worker's **Deliverable Claim Bundle** (task contract, Two-Point Diff mapping, test evidence, negative controls, delivery ticket).
|
|
359
356
|
2. **Five-Pillar Presumption-of-Guilt Audit**:
|
|
360
357
|
- **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
358
|
- **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 +361,23 @@ The independent Auditor initiates **Key 3: The Pre-Weave Adversarial Code Audit
|
|
|
364
361
|
- **Pillar 4 (Aggressive Replacement Purge)**: Ensure all superseded legacy code, fallbacks, and commented-out blocks are deleted in the strand.
|
|
365
362
|
- **Pillar 5 (Structural Assertion Rigor)**: Reject partial/loose assertions (`assert "foo" in bar`). Mandate complete structural equality (`assert actual == expected`) and negative controls.
|
|
366
363
|
3. **Audit Ratification or Delta Re-Pump Loop**:
|
|
367
|
-
- **
|
|
364
|
+
- **Step 3.0: Mandatory Inspection & Merge-Clerk Decoupling**: The Auditor MUST run `vine audit inspect <task_id>` to review the Deliverable Claim Bundle, test results, and git diff. Blind approvals are forbidden, and `--force` is strictly prohibited. The Auditor is strictly decoupled from merge/release duties: auditors NEVER run `--weave`, NEVER edit `ROADMAP.md`, and NEVER resolve merge conflicts. Any conflict or missing changelog must be rejected back to the worker.
|
|
365
|
+
- **If findings exist**: Auditor executes rejection against the delivery ticket:
|
|
366
|
+
```bash
|
|
367
|
+
vine audit reject <task_id> --auditor <auditor_name> --ticket <hex> --reason "<defects>" --listen
|
|
368
|
+
```
|
|
369
|
+
and reports findings to the worker. Worker remediates inside the strand and re-submits with `vine submit` (obtaining a fresh delivery ticket).
|
|
368
370
|
- **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
|
-
- **When 0 defects remain**: Auditor
|
|
371
|
+
- **When 0 defects remain**: Auditor ratifies Key 3 with mandatory `--evidence`:
|
|
370
372
|
```bash
|
|
371
|
-
vine audit approve --auditor <auditor_name>
|
|
373
|
+
vine audit approve <task_id> --auditor <auditor_name> --ticket <hex> --evidence "Provider in src/provider.nim, Consumer in src/consumer.nim:42, negative control in tests/test_cases.nim:88" --listen
|
|
372
374
|
```
|
|
373
|
-
This stamps a cryptographic `audit_token
|
|
374
|
-
4. **Weave &
|
|
375
|
+
This verifies the delivery ticket, stamps a cryptographic `audit_token`, and marks the strand `AUDIT_RATIFIED`. Auditor notifies orchestrator.
|
|
376
|
+
4. **Weave & Auto-Complete (Executed Exclusively by Lead Orchestrator)**:
|
|
375
377
|
```bash
|
|
376
|
-
# 1. Weave the verified, ratified strand into main (
|
|
378
|
+
# 1. Weave the verified, ratified strand into main (Lead Orchestrator role):
|
|
379
|
+
# Mechanically verifies audit_token, fast-forward merges, prunes strand,
|
|
380
|
+
# and automatically triggers 'rhizo task complete' to unblock downstream DAG children!
|
|
377
381
|
vine weave
|
|
378
382
|
|
|
379
383
|
# 2. Release any held fencing locks if applicable
|
|
@@ -16,9 +16,13 @@ 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 Three-Key Gate (`vine submit`, `vine audit approve`, `vine weave`).
|
|
20
|
-
4. **
|
|
21
|
-
|
|
19
|
+
3. **Workspace Isolation via Vine & Feature Integration Branch (`epic/<slug>`)**: Complex, multi-file changes must occur in isolated Rift strands branching off the feature integration branch (`vine new <task_id> --parent epic/<slug>`). Strands cannot be woven until passing the Three-Key Gate (`vine submit`, `vine audit inspect`, `vine audit approve`, `vine weave`).
|
|
20
|
+
4. **Contract Skeleton Anchoring & Immutability**: Every implementation plan must anchor tasks directly to the committed types, interfaces, callable stubs (`UNIMPLEMENTED_CONTRACT`), and red contract test suites established during Stage 3.5 on `epic/<slug>`.
|
|
21
|
+
- *Contract Immutability*: Workers branching off `--parent epic/<slug>` MUST NOT alter exported type declarations or signatures, nor weaken contract tests, without an approved `[DESIGN ADDENDUM]`.
|
|
22
|
+
- *Anti-Mock-Fallback*: Workers must NEVER implement silent mock fallbacks (e.g. `lesMockFallback`); missing dependencies require immediately halting with `BLOCKER: MISSING_DEPENDENCY`.
|
|
23
|
+
5. **Auditor Merge-Clerk Decoupling & Inverted Effort Gradient**: The independent Adversarial Auditor ONLY inspects and ratifies Key 3 (`vine audit inspect` + `vine audit approve/reject`). Rejection is the fast path for any defect (`vine audit reject`); approval requires `--evidence "..."` citing changed files, call-sites, and negative controls. Using `--force` on audit approvals is strictly prohibited. The Auditor NEVER runs `vine weave`, NEVER edits `ROADMAP.md`, and NEVER resolves `CHANGELOG.md` merge conflicts on behalf of workers. Weaving is strictly the Lead Orchestrator's role.
|
|
24
|
+
6. **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.
|
|
25
|
+
7. **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
26
|
|
|
23
27
|
---
|
|
24
28
|
|
|
@@ -52,18 +56,30 @@ Before modifying any shared or non-mergeable file, the designated worker must ob
|
|
|
52
56
|
|
|
53
57
|
## 3. Vine Strand Lifecycle & Verification Matrix
|
|
54
58
|
For all parallel development tracks:
|
|
55
|
-
1. **Provision Strand**:
|
|
59
|
+
1. **Provision Strand Branching off Feature Integration Branch (`epic/<slug>`)**:
|
|
56
60
|
```bash
|
|
57
|
-
vine new <task_id> --
|
|
61
|
+
vine new <task_id> --parent epic/<slug> --worktree
|
|
58
62
|
```
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
*Note: Vine stores strand identity in `.git/config` (`vine.taskId`, `vine.project`) and authoritative state in Redis (zero on-disk `.vine.json` state files).*
|
|
64
|
+
2. **Execute Work Inside Strand Under Contract Immutability**:
|
|
65
|
+
- Implement real provider logic turning committed red contract stubs into green passing code.
|
|
66
|
+
- Do NOT modify exported contract signatures or weaken contract tests without an approved `[DESIGN ADDENDUM]`.
|
|
67
|
+
- Never implement fake mock fallbacks (`lesMockFallback`); halt with `BLOCKER: MISSING_DEPENDENCY` if dependencies are unavailable.
|
|
61
68
|
- Run local unit tests and formatters.
|
|
62
69
|
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
|
-
|
|
70
|
+
- **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`).
|
|
71
|
+
- **Independent Auditor**: Inspects Five Pillars and runs:
|
|
72
|
+
```bash
|
|
73
|
+
# Step 1: Mandatory forensic inspection
|
|
74
|
+
vine audit inspect <task_id>
|
|
75
|
+
# Step 2: To ratify approval with evidence (Auditor NEVER weaves):
|
|
76
|
+
vine audit approve <task_id> --auditor <auditor> --ticket <hex> --evidence "<files, call-sites, negative controls>" --listen
|
|
77
|
+
# Or to reject if defects are found:
|
|
78
|
+
vine audit reject <task_id> --auditor <auditor> --ticket <hex> --reason "<findings>" --listen
|
|
79
|
+
```
|
|
80
|
+
Remember: THE WORKER IS NOT THE AUDITOR. Auditors NEVER use `--force` and NEVER act as release/merge clerks (no editing `ROADMAP.md`, no resolving `CHANGELOG.md` merge conflicts, and no weaving on behalf of workers).
|
|
81
|
+
4. **Trunk Weaving & DAG Cascading (Lead Orchestrator Role)**:
|
|
82
|
+
*Fast-forwards ratified branch into epic/<slug> or main, automatically calls `rhizo task complete <task_id>`, and unblocks downstream DAG child tasks (`BLOCKED` $\rightarrow$ `QUEUED`):*
|
|
67
83
|
```bash
|
|
68
84
|
vine weave
|
|
69
85
|
```
|
|
@@ -72,22 +88,31 @@ For all parallel development tracks:
|
|
|
72
88
|
|
|
73
89
|
## 4. Phase-by-Phase Task Checklist
|
|
74
90
|
|
|
75
|
-
### Phase
|
|
91
|
+
### Phase 0: Contract Skeleton (Pre-Plan Stage 3.5 on `epic/<slug>`)
|
|
92
|
+
- [x] **Task 0.1: Contract Skeleton Strand & Red Tests** (`<project>-architect`)
|
|
93
|
+
- *Strand*: `strand/task-<slug>-skeleton` (`--parent epic/<slug>`)
|
|
94
|
+
- *Committed Deliverables*: Idiomatic types, interfaces, and callable stubs with `UNIMPLEMENTED_CONTRACT` in `src/types.nim`, `src/api.nim`
|
|
95
|
+
- *Committed Contract Tests*: `tests/test_contract.nim` asserting contract compliance (failing red against stubs)
|
|
96
|
+
- *Weave*: `vine submit --skeleton && vine audit inspect task-<slug>-skeleton && vine audit approve task-<slug>-skeleton && vine weave`
|
|
97
|
+
|
|
98
|
+
### Phase 1: Core Engine Primitives (Branching off `epic/<slug>`)
|
|
76
99
|
- [ ] **Task 1.1: Core Data Structures** (`<project>-architect`)
|
|
77
|
-
- *Strand*: `strand/task-core-ds`
|
|
100
|
+
- *Strand*: `strand/task-core-ds` (`--parent epic/<slug>`)
|
|
101
|
+
- *Anchored Skeleton Symbols*: `src/types.nim:15-80` (`ASTNode`, `NodeKind`, `serializeNode`)
|
|
102
|
+
- *Contract Test Suite*: `tests/test_contract.nim` (must turn from red to green)
|
|
78
103
|
- *Lock*: `rhizo lock file:src/types.nim 300 --fencing`
|
|
79
104
|
- *Provider*: `src/types.nim` (AST node kinds and serializers)
|
|
80
105
|
- *Consumer / Call-Site*: Wire into `src/parser.nim` parse loop and `src/eval.nim`
|
|
81
106
|
- *Replacement Deletion*: Delete deprecated ad-hoc string tuples in `src/legacy_types.nim`
|
|
82
107
|
- *Holistic Verification*: Real AST nodes evaluate in full parser pipeline (no dummy mocks)
|
|
83
|
-
- *Weave*: `vine submit && vine audit approve && vine weave && rhizo unlock file:src/types.nim`
|
|
108
|
+
- *Weave*: `vine submit && vine audit inspect task-core-ds && vine audit approve && vine weave && rhizo unlock file:src/types.nim`
|
|
84
109
|
|
|
85
110
|
- [ ] **Task 1.2: Test Harness & Negative Controls** (`<project>-auditor`)
|
|
86
|
-
- *Strand*: `strand/task-test-harness`
|
|
111
|
+
- *Strand*: `strand/task-test-harness` (`--parent epic/<slug>`)
|
|
87
112
|
- *Provider*: `tests/test_harness.py`
|
|
88
113
|
- *Consumer / Call-Site*: Wire test runner into CI workflow and `tests/all.py`
|
|
89
114
|
- *Verification*: `pytest tests/test_harness.py` (proves negative controls catch malformed JSON)
|
|
90
|
-
- *Weave*: `vine submit && vine audit approve && vine weave`
|
|
115
|
+
- *Weave*: `vine submit && vine audit inspect task-test-harness && vine audit approve && vine weave`
|
|
91
116
|
|
|
92
117
|
### Phase 2: High-Level CLI & Integration
|
|
93
118
|
- [ ] **Task 2.1: CLI Subcommand Wiring** (`implementer`)
|