@axiomantic/garden 0.2.22 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -19
- package/SKILL.md +182 -33
- package/bin/binaries/garden-darwin-arm64 +0 -0
- package/bin/binaries/garden-darwin-x64 +0 -0
- package/bin/binaries/garden-linux-arm64 +0 -0
- package/bin/binaries/garden-linux-x64 +0 -0
- package/bin/binaries/garden-win32-x64.exe +0 -0
- package/package.json +3 -3
- package/skills/choose-personas/SKILL.md +19 -16
- package/skills/dialectical-pump/SKILL.md +18 -21
- package/skills/garden/SKILL.md +86 -27
- package/skills/launch-workers/SKILL.md +51 -21
- package/skills/orchestrate-swarm/SKILL.md +100 -43
- package/skills/plan-implementation/SKILL.md +9 -11
package/README.md
CHANGED
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
> ```text
|
|
28
28
|
> "garden: I want to build [feature/system/project]"
|
|
29
29
|
> ```
|
|
30
|
-
> The session automatically acts as the **Lead Orchestrator**. It auto-detects your coding harness and conducts a single-question intake interview to calibrate your desired team shape and session-default models. It then configures your project (`garden.toml` & `garden-swarm.json`) and
|
|
30
|
+
> The session automatically acts as the **Lead Orchestrator**. It auto-detects your coding harness and conducts a single-question intake interview to calibrate your desired team shape and session-default models. It then configures your project (`garden.toml` & `garden-swarm.json`) and writes prompt cards to files for you to manually assign to new or existing chat sessions. Garden coordinates the entire swarm over Rhizo (local Redis message bus) and Vine (isolated Rift copy-on-write workspaces)!
|
|
31
31
|
|
|
32
|
-
Instead of treating AI agents as isolated single-turn chatbots, Garden provisions **prompt-bootstrapped worker swarms** across your favorite AI coding harnesses (Claude Code, OpenCode, Antigravity, Pi, Cursor), balances specialized personas with designated foundation models, drives **empirically grounded dialectical deliberation**, schedules distributed fencing mutexes, and integrates code through isolated Rift copy-on-write strands verified by Vine's
|
|
32
|
+
Instead of treating AI agents as isolated single-turn chatbots, Garden provisions **prompt-bootstrapped worker swarms** across your favorite AI coding harnesses (Claude Code, OpenCode, Antigravity, Pi, Cursor), balances specialized personas with designated foundation models, drives **empirically grounded dialectical deliberation**, schedules distributed fencing mutexes, and integrates code through isolated Rift copy-on-write strands verified by Vine's Three-Key Gate.
|
|
33
33
|
|
|
34
34
|
```mermaid
|
|
35
35
|
flowchart TD
|
|
@@ -46,7 +46,7 @@ flowchart TD
|
|
|
46
46
|
|
|
47
47
|
subgraph Layer2["Layer 2: Vine (Workstream Integrator)"]
|
|
48
48
|
Strands["Rift Strands (Zero-cost copy-on-write workspaces)"]
|
|
49
|
-
TwoKey["
|
|
49
|
+
TwoKey["Three-Key Gate (Mechanical + Semantic + Independent Audit)"]
|
|
50
50
|
Weave["Trunk Weaving (Fast-forward verified branches)"]
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ Garden is organized into a clean, batteries-included catalog of self-explanatory
|
|
|
74
74
|
| **[`launch-workers`](skills/launch-workers/SKILL.md)** | **Session Bootstrapping** | Generates self-contained, 10-backtick raw markdown prompt cards for pasting into separate terminal sessions (Claude Code, OpenCode, Antigravity, Pi). Configures environment variables, registers identities via `rhizo open`, and arms single-shot listeners. |
|
|
75
75
|
| **[`dialectical-pump`](skills/dialectical-pump/SKILL.md)** | **Empirical Deliberation** | Drives multi-perspective thesis/antithesis/synthesis debates. Strictly prohibits theatrical roleplay: every turn requires tool execution (reading files, running tests, checking ASTs). Produces `understanding.md`, `design.md`, and `audit_report.md`. |
|
|
76
76
|
| **[`plan-implementation`](skills/plan-implementation/SKILL.md)** | **Master Scheduling** | Authors `implementation_plan.md` defining task assignment matrices, `rhizo` distributed fencing locks, `vine` strand workflows, dynamic markdown checkboxes, harness To-Do integration, and emergent design addenda. |
|
|
77
|
-
| **[`orchestrate-swarm`](skills/orchestrate-swarm/SKILL.md)** | **Main-Chat Governor** | Governs execution from the primary chat session: dispatches tasks over Redis, tracks heartbeats, ratifies emergent design addenda, verifies
|
|
77
|
+
| **[`orchestrate-swarm`](skills/orchestrate-swarm/SKILL.md)** | **Main-Chat Governor** | Governs execution from the primary chat session: dispatches tasks over Redis, tracks heartbeats, ratifies emergent design addenda, verifies Three-Key gate passes, and triggers `vine weave`. |
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
@@ -92,16 +92,6 @@ Garden provides comprehensive ceremony, manifest, and protocol specifications:
|
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|
|
95
|
-
## Standalone Yet Designed for the Axiomantic Triad
|
|
96
|
-
|
|
97
|
-
Garden is completely standalone and can direct multi-agent dialectics, persona selection, and prompt-bootstrapped worker swarms on any codebase.
|
|
98
|
-
|
|
99
|
-
However, Garden is designed from the ground up to pair seamlessly with **Rhizo** and **Vine**:
|
|
100
|
-
- [**Rhizo**](https://github.com/axiomantic/rhizo) (Transport & Concurrency): Inter-agent messaging bus, monotonic fencing locks, and task queues over Redis.
|
|
101
|
-
- [**Vine**](https://github.com/axiomantic/vine) (Workspaces & Verification): Zero-cost Rift copy-on-write strands, polyglot build-cache normalization, and the Two-Key integration gate (`git merge-tree` mechanical + compiler/test suite semantic checks).
|
|
102
|
-
- **Garden** (Swarm Ceremonies): Prompt-based worker session bootstrapping, 3-stage empirical dialectical pump (research, architecture, audit), and master ceremonial implementation planning.
|
|
103
|
-
|
|
104
|
-
---
|
|
105
95
|
|
|
106
96
|
## Installation
|
|
107
97
|
|
|
@@ -212,7 +202,7 @@ Garden authors `implementation_plan.md`:
|
|
|
212
202
|
- Sets up dynamic progress checkboxes and harness To-Do tracking.
|
|
213
203
|
|
|
214
204
|
### 6. Live Orchestration & Trunk Weaving (`orchestrate-swarm`)
|
|
215
|
-
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands, run unit tests, and verify
|
|
205
|
+
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands, run unit tests, and verify Keys 1 & 2 (`vine submit`). An independent adversarial auditor reviews and ratifies Key 3 (`vine audit approve`). When ratified, the orchestrator executes `vine weave` to fast-forward verified code into `main` with zero merge conflicts!
|
|
216
206
|
|
|
217
207
|
---
|
|
218
208
|
|
|
@@ -221,13 +211,13 @@ The main chat orchestrator dispatches work over Redis. Workers code in isolated
|
|
|
221
211
|
| Command | Arguments | Description |
|
|
222
212
|
| :--- | :--- | :--- |
|
|
223
213
|
| `garden plant` | `"<description>" [--season <name>] [--sunlight <level>] [--tags <csv>] [--list] [--json]` | Sow a roadmap seed to `.garden/seeds/<id>.toml` or list sown seeds. |
|
|
224
|
-
| `garden germinate` | `<dispatch
|
|
214
|
+
| `garden germinate` | `<dispatch|prompt|inline|status> <seed_id>` | Deterministically germinate a seed via Rhizo work queues, prompt cards, inline pump, or status query. |
|
|
225
215
|
| `garden prompts` | `[--worker <name>] [--inline] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Generate bootstrap prompt cards (written to /tmp/garden-<project>/ by default; pass --inline for stdout). |
|
|
226
216
|
| `garden launch` | `[--worker <name>] [--inline] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Bootstrap swarm worker sessions (writes prompt cards to /tmp/garden-<project>/). |
|
|
227
217
|
| `garden status` | `[--json]` | Telemetry query across active Rhizo agents, listener status, and Vine strands. |
|
|
228
218
|
| `garden init` | `[<target_dir>] [--force]` | Initialize `garden.toml`, docs scaffold, and install guide in `AGENTS.md`. |
|
|
229
219
|
| `garden teardown`| `[--swarm-file <file>]` | Gracefully close registered swarm agents on the Redis bus. |
|
|
230
|
-
| `garden guide` | `<install
|
|
220
|
+
| `garden guide` | `<install|check|uninstall> [path]` | Install or manage Garden Multi-Agent Swarm Guide in `AGENTS.md`. |
|
|
231
221
|
|
|
232
222
|
---
|
|
233
223
|
|
|
@@ -291,8 +281,8 @@ The main chat orchestrator dispatches work over Redis. Workers code in isolated
|
|
|
291
281
|
The main chat session coordinates, reviews, and integrates. Intensive multi-file edits are executed by the worker fleet in isolated strands.
|
|
292
282
|
2. **Empirical Grounding Protocol (Zero Theatrical Dialogue)**:
|
|
293
283
|
Dialectical deliberations must cite hard evidence from real tool calls (line citations, test outputs, compiler errors). Theatrical roleplay is strictly banned.
|
|
294
|
-
3. **
|
|
295
|
-
No code is merged into the trunk without passing
|
|
284
|
+
3. **Three-Key Gate Verification**:
|
|
285
|
+
No code is merged into the trunk without passing Key 1 (in-memory `git merge-tree` mechanical check), Key 2 (live semantic compiler and test suite run), and Key 3 (independent adversarial audit ratification via `vine audit approve`). Workers submit strands with `vine submit` and CANNOT audit their own work.
|
|
296
286
|
4. **Zero Dirty Commits**:
|
|
297
287
|
All agent identity files, session state, and temporary lockfiles are strictly ignored in `.gitignore`.
|
|
298
288
|
|
package/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: garden
|
|
3
|
-
description: "Master entrypoint and
|
|
3
|
+
description: "Master entrypoint and umbrella conductor for the Axiomantic Multi-Agent Swarm Triad (Garden + Rhizo + Vine). Activating Garden automatically coordinates Rhizo for transport/concurrency and Vine for Rift workspace virtualization. Guides the user through feature sowing (garden plant), deterministic germination (garden germinate dispatch|prompt|inline|status), conversational intake, persona selection, prompt-based worker fleet bootstrapping with 10-backtick copy-paste cards, 3-stage empirical dialectical pump (research, design, audit), master implementation planning, and Three-Key gate trunk weaving. Triggers: 'garden', 'swarm', 'multi-agent', 'agent team', 'coordinate agents', 'parallel agents', 'run swarm', 'start swarm', 'run garden', 'swarm this project', 'orchestrate with garden', 'start garden swarm', 'run the full garden ceremony', 'start a project with garden', 'start a project with rhizo', 'set up a multi-agent team', 'use rhizo for this project', 'set up a swarm', 'coordinate multiple agents on this project', 'set up agents for this project', 'garden plant', 'garden germinate', 'sow seed', 'germinate', 'roadmap'."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Garden: Multi-Agent Swarm Ceremony & Orchestration Engine
|
|
@@ -17,7 +17,13 @@ npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapsh
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
## 1. Architecture &
|
|
20
|
+
## 1. Architecture, Layering & The Master Umbrella Conductor
|
|
21
|
+
|
|
22
|
+
<CRITICAL>
|
|
23
|
+
Master Umbrella Conductor Invariant:
|
|
24
|
+
Garden is the capstone framework and single front-door of the Axiomantic Triad (Unix philosophy: Garden = Orchestration/Workflow, Rhizo = Transport/IPC, Vine = Git/Workspaces).
|
|
25
|
+
Whenever Garden is invoked (via 'garden', 'swarm', 'agent team', 'plant', 'germinate', or multi-agent feature requests), the agent MUST treat Garden as the parent umbrella. The operator NEVER needs to manually recite 'use garden/rhizo/vine'—activating Garden automatically mandates reading `garden`, `rhizo`, and `vine` skills.
|
|
26
|
+
</CRITICAL>
|
|
21
27
|
|
|
22
28
|
Garden directs multi-agent swarms using Rhizo for transport and Vine for workspace virtualization:
|
|
23
29
|
|
|
@@ -34,7 +40,7 @@ flowchart TD
|
|
|
34
40
|
|
|
35
41
|
subgraph Infrastructure["Coordination Infrastructure"]
|
|
36
42
|
Rhizo["Rhizo (Redis Bus, Fencing Mutexes, Work Queues)"]
|
|
37
|
-
Vine["Vine (Rift Strands,
|
|
43
|
+
Vine["Vine (Rift Strands, Three-Key Gate, Weaving)"]
|
|
38
44
|
end
|
|
39
45
|
|
|
40
46
|
Phase0 --> Phase1 --> Phase2 --> Phase3 --> Phase4 --> Phase5
|
|
@@ -46,7 +52,35 @@ flowchart TD
|
|
|
46
52
|
|
|
47
53
|
---
|
|
48
54
|
|
|
49
|
-
## 2.
|
|
55
|
+
## 2. Macro-Lifecycle: Sowing (`garden plant`) & Germination (`garden germinate`)
|
|
56
|
+
|
|
57
|
+
Before launching multi-agent ceremonies, features and roadmap items are captured organically as **Seeds** organized into roadmap **Seasons**:
|
|
58
|
+
|
|
59
|
+
### A. Sowing Seeds (`garden plant`)
|
|
60
|
+
Add new roadmap items or feature requests to `.garden/seeds/<id>.toml`:
|
|
61
|
+
```bash
|
|
62
|
+
garden plant "Real-time SSE event stream for cluster telemetry" \
|
|
63
|
+
--season "v0.3.0" \
|
|
64
|
+
--sunlight high \
|
|
65
|
+
--tags "telemetry,sse,web"
|
|
66
|
+
```
|
|
67
|
+
Options:
|
|
68
|
+
- `--season <name>`: Target roadmap release or milestone (e.g. `v0.3.0`).
|
|
69
|
+
- `--sunlight <low|medium|high|blazing>`: Priority level.
|
|
70
|
+
- `--tags <csv>`: Domain classification tags.
|
|
71
|
+
- `--json`: Structured machine-parseable JSON output.
|
|
72
|
+
- `--list`: Displays all sown seeds and their dynamic lifecycle status.
|
|
73
|
+
|
|
74
|
+
### B. Deterministic Germination (`garden germinate <subcommand> <seed>`)
|
|
75
|
+
To prevent LLM tool-calling omissions, germination uses dedicated positional subcommands:
|
|
76
|
+
1. **`garden germinate dispatch <seed>`**: Enqueues the seed directly to Rhizo cluster work queues (`queue:<project>:tasks`) with dialectical pump specifications.
|
|
77
|
+
2. **`garden germinate prompt <seed>`**: Emits copy-pasteable **10-backtick raw markdown prompt cards** for bootstrapping dedicated worker sessions.
|
|
78
|
+
3. **`garden germinate inline <seed>`**: Runs the 3-stage dialectical pump (Research ➔ Design ➔ Audit) within the active chat session.
|
|
79
|
+
4. **`garden germinate status <seed>`**: Inspects dynamic lifecycle progress (`SOWN` ➔ `DISPATCHED` ➔ `GERMINATED` ➔ `WOVEN`).
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 3. The End-to-End Ceremony Workflow
|
|
50
84
|
|
|
51
85
|
Execute phases sequentially. Never skip phases or invert the order.
|
|
52
86
|
|
|
@@ -56,20 +90,103 @@ Execute phases sequentially. Never skip phases or invert the order.
|
|
|
56
90
|
| **Phase 1** | [`choose-personas`](../choose-personas/SKILL.md) | Synthesize and write `garden-swarm.json` reflecting detected harness and chosen shape. | Valid JSON written to repo root. |
|
|
57
91
|
| **Phase 2** | [`launch-workers`](../launch-workers/SKILL.md) | Output 10-backtick raw markdown prompt cards and numbered session instructions. | `rhizo who --json` confirms 100% of workers active & listening. |
|
|
58
92
|
| **Phase 3** | [`dialectical-pump`](../dialectical-pump/SKILL.md) | Grounded triadic deliberation: research, design, adversarial audit. | Zero open `CRIT` or `BLOCKER` defects in `audit_report.md`. |
|
|
59
|
-
| **Phase 4** | [`plan-implementation`](../plan-implementation/SKILL.md) | Author master implementation plan with locking schedules and
|
|
60
|
-
| **Phase 5** | [`orchestrate-swarm`](../orchestrate-swarm/SKILL.md) | Main-chat governor: task dispatch, heartbeat monitoring, trunk weaving. | All plan tasks woven via `vine weave` after passing
|
|
93
|
+
| **Phase 4** | [`plan-implementation`](../plan-implementation/SKILL.md) | Author master implementation plan with locking schedules, strands, and Two-Point Diff contracts (Provider, Consumer, Replacement deletion). | Complete `implementation_plan.md` with task-locking matrix. |
|
|
94
|
+
| **Phase 5** | [`orchestrate-swarm`](../orchestrate-swarm/SKILL.md) | Main-chat governor: task dispatch, heartbeat monitoring, Closed-Circuit & Three-Key gate verification, trunk weaving. | All plan tasks woven via `vine weave` after passing Three-Key Gate (Mechanical, Semantic, Adversarial Audit). |
|
|
61
95
|
|
|
62
96
|
---
|
|
63
97
|
|
|
64
98
|
### Phase 0: Interactive Project Intake & Swarm Calibration
|
|
65
99
|
|
|
66
|
-
####
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
100
|
+
#### The Intelligent Concierge Protocol (`garden: <prompt>`)
|
|
101
|
+
When the operator prefixes a request with `garden: <prompt>` (or directs a feature, refactor, or project task to Garden):
|
|
102
|
+
The orchestrator MUST NOT immediately write code, edit files, or unilaterally launch massive multi-file changes.
|
|
103
|
+
Instead, it acts as an **Intelligent Intake Concierge**:
|
|
104
|
+
|
|
105
|
+
0. **Fast-Path Check for Pre-Authorized Directives & Active Swarm**:
|
|
106
|
+
- **Pre-Authorized Directives & Autonomous Dispatch**: If the operator instructs "work on this with your workers" (or similar delegation phrases), or whenever active cluster workers already exist on the Rhizo cluster (`rhizo who`), the Orchestrator MUST NOT stop to ask routing questions. It is fully pre-authorized to act! It must immediately break down work, provision isolated Vine strands (`vine new <task>`), and dispatch directly over Rhizo (`rhizo send`) or enqueue to work queues (`rhizo enqueue`).
|
|
107
|
+
- **Fleet-First Mandate**: When online workers exist anywhere in the cluster, NEVER output copy-paste prompt cards to the human operator. Dispatch or repurpose existing workers over Rhizo (`rhizo send` / `garden repurpose`).
|
|
108
|
+
- **Mandatory `ask_question` Tool Discipline**: Only during a true cold start with 0 cluster workers online and no explicit delegation directive may the orchestrator solicit routing input. In that case, the orchestrator MUST invoke the interactive `ask_question` tool. Dumping numbered multiple-choice lists (1, 2, 3) or raw option text directly into the chat stream is STRICTLY PROHIBITED.
|
|
109
|
+
|
|
110
|
+
1. **Evaluate Request Scope & Blast Radius (Cold Start Only)**:
|
|
111
|
+
- **High Complexity / Architectural Shifts / New Subsystems / Multi-File Migrations**: The request impacts foundational contracts, multiple modules, or shared abstractions. Requires empirical research, RFC design, adversarial review, and parallel strand isolation. Recommend **Option 1**.
|
|
112
|
+
- **Medium Complexity / Well-Defined Features / Self-Contained Deliverables**: The scope is clear, boundaries are known, and it can be implemented without a 3-stage dialectical design cycle. Recommend **Option 2**.
|
|
113
|
+
- **Low Complexity / Single-File Fixes / Documentation / Scratch Tweaks**: Trivial 1-file patch or config change. Recommend **Option 3**.
|
|
114
|
+
|
|
115
|
+
2. **Present Interactive Triage Modal (`ask_question`)**:
|
|
116
|
+
The orchestrator invokes `ask_question` with 3 mutually exclusive options clearly explaining the tradeoffs:
|
|
117
|
+
- **Option 1 (Full Ceremony - RFE ➔ RFD ➔ RFC ➔ Swarm)**:
|
|
118
|
+
*Scope*: Architectural shifts, new subsystems, major refactors, or cross-cutting migrations.
|
|
119
|
+
*Process*: Sows the idea as a persistent roadmap seed (`garden plant`), authors the Research/RFD, System Architecture/RFC, and Adversarial Audit documents, schedules monotonic locks and isolated Vine strands, and writes worker prompts to `/tmp/garden-<project>/`.
|
|
120
|
+
- **Option 2 (Direct Swarm Dispatch)**:
|
|
121
|
+
*Scope*: Well-defined, self-contained features, bugfixes, or bounded deliverables.
|
|
122
|
+
*Process*: Bypasses heavy research/design documentation; enqueues tasks straight to cluster work queues (`rhizo enqueue queue:<project>:tasks`) or dispatches directly to active workers (`rhizo send <worker>`).
|
|
123
|
+
- **Option 3 (Inline Execution)**:
|
|
124
|
+
*Scope*: Trivial 1-file fixes, documentation, typo corrections, or quick scratch scripts.
|
|
125
|
+
*Process*: Executes directly within the main session without provisioning worker sessions or cluster overhead.
|
|
126
|
+
|
|
127
|
+
3. **Execution Branching**:
|
|
128
|
+
- **If Option 1 selected**: Run `garden plant "<prompt>"`, then proceed to Cold-Start Swarm Calibration / Phase 1 `choose-personas` (or attach to active swarm via Fast-Path) and Phase 3 `dialectical-pump`.
|
|
129
|
+
- **If Option 2 selected**: Check `rhizo who --all --json`. If workers are online, dispatch via `rhizo send` or `rhizo enqueue`. If cold, run Cold-Start Swarm Calibration to spin up workers.
|
|
130
|
+
- **If Option 3 selected**: Execute inline in the current session.
|
|
131
|
+
|
|
132
|
+
#### Adaptive Swarm On-Ramp & Dynamic Worker Repurposing (First-Look Invariant)
|
|
133
|
+
|
|
134
|
+
Before asking ANY intake questions or presenting configuration modals, the designated orchestrator MUST run `rhizo who --all --json` to inspect the cluster across all projects.
|
|
135
|
+
Garden automatically categorizes cluster listeners into three operational pools:
|
|
136
|
+
1. **`projectActive`**: Active listeners already registered on the target project.
|
|
137
|
+
2. **`availableIdlePeers`**: Active idle listeners currently registered under other projects, immediately available for dynamic repurposing.
|
|
138
|
+
3. **`busyClusterPeers`**: Active listeners executing in-flight tasks (`BUSY`), guarded from unintentional reassignment.
|
|
139
|
+
|
|
140
|
+
##### Fast-Path: Re-using an Active / Existing Swarm
|
|
141
|
+
If active, healthy workers on the target project meet or exceed the target worker count (`projectActive >= targetWorkers`):
|
|
142
|
+
- **Fast-Path Activated**: Skip intake interview questions and avoid generating redundant prompt card files.
|
|
71
143
|
- Automatically attach to the existing online workers (`@worker-1`, `@worker-2`, ...).
|
|
72
144
|
- Confirm cluster readiness and proceed immediately to Phase 3 (Dialectical Pump / Task Breakdown) or Phase 5 (Task Dispatch).
|
|
145
|
+
- **Bypass**: To force prompt card regeneration despite active workers, pass `--force-prompts` to `garden prompts` or `garden launch`.
|
|
146
|
+
|
|
147
|
+
##### Dual-Pathway Swarm On-Ramp (When Additional Workers Needed)
|
|
148
|
+
When target project workers are needed and idle cluster peers exist, Garden surfaces two distinct pathways:
|
|
149
|
+
|
|
150
|
+
- **Pathway A (Dynamic Repurposing via `garden repurpose`)**:
|
|
151
|
+
Repurpose existing idle cluster listeners directly into the target project without opening new terminal windows or copying prompt cards:
|
|
152
|
+
```bash
|
|
153
|
+
garden repurpose <worker1> <worker2> \
|
|
154
|
+
--project <target-project> \
|
|
155
|
+
--role "<assigned-role>" \
|
|
156
|
+
[--tags "<t1,t2>"] \
|
|
157
|
+
[--force]
|
|
158
|
+
```
|
|
159
|
+
- **Self-Tagging Capability Handshake (`--self-tag`)**: When cluster workers have heterogeneous environments (e.g. one tab has Nim/C, another Node/Playwright, another Python/uv), dispatch an authenticated `SWARM_REPURPOSE_OFFER` directive:
|
|
160
|
+
```bash
|
|
161
|
+
garden repurpose <worker> \
|
|
162
|
+
--project <target-project> \
|
|
163
|
+
--self-tag \
|
|
164
|
+
--expected-tags "backend,frontend,qa,audit"
|
|
165
|
+
```
|
|
166
|
+
The recipient worker inspects its local toolchain, self-selects a compatible role, adds corresponding tags (`rhizo tag add <tags>`), and replies with `WORKER_READY`.
|
|
167
|
+
- **Negative Control & Safety Guardrail**: Repurposing rejects workers that are actively `BUSY` on tasks to prevent disrupting active workflows. Repurposing a busy worker requires the explicit `--force` flag.
|
|
168
|
+
|
|
169
|
+
- **Pathway B (Fresh Session Bootstrapping)**:
|
|
170
|
+
When zero cluster listeners exist or the operator prefers isolated fresh sessions, Garden generates self-contained 10-backtick prompt cards in `/tmp/garden-<project>/` via `garden prompts` (or `garden launch`).
|
|
171
|
+
|
|
172
|
+
<CRITICAL>
|
|
173
|
+
Operator-Named Worker Delegation Mandate:
|
|
174
|
+
When the operator explicitly requests or names a worker or peer session (e.g. 'u + autopxd-architect' or 'assign to worker-1'), the Lead Orchestrator MUST dispatch directly to that named recipient over Rhizo (`rhizo send --to <worker> ...`). The orchestrator MUST NEVER gate delegation on whether that worker appears in local single-project `rhizo who`, and MUST NEVER fall back to internal subagents. When inspecting the cluster roster for active workers, an orchestrator MUST query `rhizo who --all --json` (or check specific peers via `rhizo who <worker>` / `rhizo probe <worker>`). Never assume the cluster is empty based solely on local single-project `rhizo who` output.
|
|
175
|
+
</CRITICAL>
|
|
176
|
+
|
|
177
|
+
> [!CAUTION]
|
|
178
|
+
> **Orchestrator Scope Restriction**: This fast-path applies **ONLY** to a session that was explicitly initialized or designated by the operator as the Lead Orchestrator. A fresh unbootstrapped session must NEVER assume it is the orchestrator simply because `<project>-orchestrator` appears in `rhizo who`!
|
|
179
|
+
|
|
180
|
+
<INVARIANT>
|
|
181
|
+
Unbootstrapped Session Identity: If a session was NOT explicitly bootstrapped with an identity in its conversation history (via a Garden bootstrap prompt card, an explicit operator assignment, or prior 'rhizo open <name>' in that same conversation), it MUST NEVER guess, adopt, or assume an existing identity from 'rhizo who --json' or 'garden-swarm.json' (especially NEVER '<project>-orchestrator'). If the operator commands '/rhizo listen' without arguments in an unbootstrapped session, the session MUST either:
|
|
182
|
+
1. Run 'rhizo name' to allocate a fresh unique identity, followed by 'rhizo open <name>', OR
|
|
183
|
+
2. Ask the operator via 'ask_question' which persona or role this window represents.
|
|
184
|
+
Never assume you are the orchestrator or an existing active worker simply because those names appear in the project directory.
|
|
185
|
+
</INVARIANT>
|
|
186
|
+
|
|
187
|
+
<FORBIDDEN>
|
|
188
|
+
Never Hijack or Kill Another Session's Active Listener: When 'rhizo listen <agent>' fails with "Error: Listener already active for agent ... (PID X)", an agent MUST NEVER kill that PID, run 'kill <pid>', or pass '--force' unless the agent has verified in its own conversation history that this agent name was explicitly opened and running in THIS session. In 'rhizo who', 'status: STALE' only indicates that no messages have been routed recently; it does NOT mean the blocking listener process in another window is dead or orphaned. Killing listener PIDs from other windows corrupts the cluster, severs peer communication, and hijacks sovereign sessions.
|
|
189
|
+
</FORBIDDEN>
|
|
73
190
|
|
|
74
191
|
#### Cold-Start Intake Protocol (Zero Active Workers Only)
|
|
75
192
|
When an operator initiates a fresh project or requests multi-agent coordination and NO active cluster workers exist, the session MUST NOT silently guess configuration.
|
|
@@ -95,11 +212,11 @@ Swarm workers operate in sovereign interactive sessions and inherit whatever fou
|
|
|
95
212
|
Upon receiving the operator's response:
|
|
96
213
|
1. Run `garden init` if `garden.toml` or `AGENTS.md` is not yet initialized.
|
|
97
214
|
2. Generate `garden-swarm.json` reflecting the chosen workers, roles, detected harness, and session-default models.
|
|
98
|
-
3. Run `garden prompts`
|
|
99
|
-
4. Present the operator with
|
|
215
|
+
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`.
|
|
216
|
+
4. Present the operator with concise setup instructions and copy commands (NEVER paste prompt cards inline in chat):
|
|
100
217
|
```text
|
|
101
218
|
1. Open X terminal tabs or windows in your detected coding harness.
|
|
102
|
-
2. Copy
|
|
219
|
+
2. Copy each worker's prompt card from its file (e.g. `pbcopy < /tmp/garden-<project>/<worker>.md`) and paste into its session.
|
|
103
220
|
3. Once pasted, tell me here (or I will automatically detect them online via `rhizo who`).
|
|
104
221
|
```
|
|
105
222
|
5. Register the orchestrator's presence (`rhizo open <project>-orchestrator`) and arm the listener.
|
|
@@ -110,7 +227,7 @@ Upon receiving the operator's response:
|
|
|
110
227
|
|
|
111
228
|
## Unified Work Item State Machine (WISM)
|
|
112
229
|
|
|
113
|
-
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through
|
|
230
|
+
Rhizo, Garden, and Vine coordinate all multi-agent work through the formal **Work Item State Machine (WISM)**. Every task progresses through deterministic states with atomic Redis transitions, automated DAG unblocking, and Three-Key integration gates.
|
|
114
231
|
|
|
115
232
|
```mermaid
|
|
116
233
|
stateDiagram-v2
|
|
@@ -125,14 +242,18 @@ stateDiagram-v2
|
|
|
125
242
|
|
|
126
243
|
CLAIMED --> IN_PROGRESS : Worker provisions strand (vine new <id>)
|
|
127
244
|
IN_PROGRESS --> IN_PROGRESS : Progress reported (rhizo task progress, lease extended)
|
|
128
|
-
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine gate)
|
|
245
|
+
IN_PROGRESS --> GATE_EVALUATING : Verification initiated (vine submit / vine gate)
|
|
129
246
|
IN_PROGRESS --> YIELDED : rhizo task yield (Returned to pool)
|
|
130
247
|
IN_PROGRESS --> ORPHANED : Lease expires without progress
|
|
131
248
|
|
|
132
|
-
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red or merge conflict)
|
|
133
|
-
GATE_EVALUATING -->
|
|
249
|
+
GATE_EVALUATING --> IN_PROGRESS : Gate failed (Tests red, changelog missing, or merge conflict)
|
|
250
|
+
GATE_EVALUATING --> READY_FOR_AUDIT : Keys 1 & 2 PASSED (vine submit, gate token stamped)
|
|
251
|
+
|
|
252
|
+
READY_FOR_AUDIT --> AUDIT_RATIFIED : Key 3 PASSED (vine audit approve, audit token stamped)
|
|
253
|
+
READY_FOR_AUDIT --> AUDIT_REJECTED : Key 3 FAILED (vine audit reject)
|
|
254
|
+
AUDIT_REJECTED --> IN_PROGRESS : Remediate defects in strand
|
|
134
255
|
|
|
135
|
-
|
|
256
|
+
AUDIT_RATIFIED --> COMPLETED : vine weave && rhizo task complete (Unblocks downstream DAG children)
|
|
136
257
|
|
|
137
258
|
ORPHANED --> QUEUED : Re-queued for retry (attempts < 3)
|
|
138
259
|
ORPHANED --> DEAD_LETTER : Max delivery retries exceeded (attempts >= 3)
|
|
@@ -176,17 +297,24 @@ stateDiagram-v2
|
|
|
176
297
|
+-------------+
|
|
177
298
|
│ ▲
|
|
178
299
|
│ vine │ Gate fails
|
|
179
|
-
│
|
|
300
|
+
│ submit │ (Tests red or conflict)
|
|
180
301
|
▼ │
|
|
181
302
|
+-----------------+
|
|
182
303
|
| GATE_EVALUATING |
|
|
183
304
|
+-----------------+
|
|
184
305
|
│
|
|
185
|
-
│
|
|
306
|
+
│ Keys 1 & 2 PASSED (vine submit: merge-tree + live test suite green)
|
|
186
307
|
▼
|
|
187
|
-
|
|
188
|
-
|
|
|
189
|
-
|
|
308
|
+
+------------------+
|
|
309
|
+
| READY_FOR_AUDIT | ◄──────────────────────┐
|
|
310
|
+
+------------------+ │
|
|
311
|
+
│ │ │
|
|
312
|
+
│ approve │ reject │ Remediate
|
|
313
|
+
▼ ▼ │
|
|
314
|
+
+------------+ +----------------+ │
|
|
315
|
+
| AUDIT_ | | AUDIT_REJECTED | ──────────┘
|
|
316
|
+
| RATIFIED | +----------------+
|
|
317
|
+
+------------+
|
|
190
318
|
│
|
|
191
319
|
│ vine weave && rhizo task complete
|
|
192
320
|
▼
|
|
@@ -202,13 +330,19 @@ stateDiagram-v2
|
|
|
202
330
|
| **`DRAFTED`** | `rhizo task create <id> --title <t>` | Creates immutable task contract hash `task:<id>` in Redis. | N/A |
|
|
203
331
|
| **`BLOCKED`** | Evaluated on create | Stamped if `depends_on` contains incomplete tasks. Workers cannot claim. | N/A |
|
|
204
332
|
| **`QUEUED`** | Auto on create or parent complete | Pushed to queue/inbox. Available for worker consumption. | N/A |
|
|
205
|
-
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
206
|
-
|
|
207
|
-
| **`
|
|
208
|
-
|
|
209
|
-
| **`
|
|
210
|
-
|
|
211
|
-
| **`
|
|
333
|
+
| **`DELIVERED`** | `rhizo listen` consumes payload | **Atomically moves into `task:<id>` DELIVERED state**. Instant transport receipt emitted to orchestrator. Mirrored to local `~/.config/rhizo/current_task.json` for turn-end hook interlocks. | 180s Receipt Timeout $
|
|
334
|
+
ightarrow$ `ORPHANED` |
|
|
335
|
+
| **`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 $
|
|
336
|
+
ightarrow$ `ORPHANED` |
|
|
337
|
+
| **`IN_PROGRESS`** | Worker coding in strand | Enforces single-active-lease invariant. Periodic `rhizo task progress` extends lease. | Lease expires $
|
|
338
|
+
ightarrow$ `ORPHANED` |
|
|
339
|
+
| **`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` |
|
|
340
|
+
| **`READY_FOR_AUDIT`**| `vine submit` | Keys 1 & 2 passed. Strand submitted for independent adversarial review. | N/A |
|
|
341
|
+
| **`AUDIT_REJECTED`** | `vine audit reject` | Auditor rejected deliverable with recorded defect reasons. Worker returns to `IN_PROGRESS` for delta remediation. | N/A |
|
|
342
|
+
| **`AUDIT_RATIFIED`** | `vine audit approve` | Key 3 passed! Cryptographic `audit_token` stamped. Auditor and author identities strictly decoupled (`auditor != author`). | N/A |
|
|
343
|
+
| **`COMPLETED`** | `vine weave && rhizo task complete` | Fast-forward merged into canonical trunk. Strand pruned. Locks released. **Downstream DAG dependencies automatically unblocked (`BLOCKED` $\rightarrow$ `QUEUED`)!** | N/A |
|
|
344
|
+
| **`ORPHANED`** | Receipt timeout or lease expired | Stalled worker detected. Increments `delivery_attempts`. If $\ge 3
|
|
345
|
+
ightarrow$ `DEAD_LETTER`. Otherwise returns to `QUEUED`. | Escalates to operator if Dead-Lettered |
|
|
212
346
|
| **`YIELDED`** | `rhizo task yield <id>` | Worker gracefully steps aside. Task returned to `QUEUED`. | N/A |
|
|
213
347
|
| **`DEAD_LETTER`** | Retries exhausted ($\ge 3$) | Moved to dead-letter queue. Alerts orchestrator and operator. | Requires manual operator triage |
|
|
214
348
|
|
|
@@ -249,11 +383,22 @@ Zero Theatrical Dialogue: Every dialectical assertion must be substantiated with
|
|
|
249
383
|
Worker Autonomous Execution Invariant (GVR-017):
|
|
250
384
|
Swarm workers are sovereign, autonomous implementers, not passive chatbots.
|
|
251
385
|
When 'rhizo listen' delivers an incoming task and exits, workers MUST NOT wait for an operator prompt or ask "Shall I begin?".
|
|
252
|
-
They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work,
|
|
386
|
+
They MUST immediately transition to active execution: claim the task, enter the isolated Vine strand, perform the work, submit the strand for independent audit ('vine submit'), report results, and re-arm the single-shot listener before concluding their turn. Remember: THE WORKER IS NOT THE AUDITOR; an independent adversarial auditor must review and ratify Key 3 ('vine audit approve').
|
|
387
|
+
</CRITICAL>
|
|
388
|
+
|
|
389
|
+
<CRITICAL>
|
|
390
|
+
Closed-Circuit Two-Point Diff, Literal Fidelity & Holistic Integration Invariant:
|
|
391
|
+
1. Two-Point Diff Mandate: Never build isolated code in a vacuum. Every deliverable must exhibit a Two-Point Diff: the Provider (new capability) and the Consumer (live production call-site, router, UI canvas, or CLI entrypoint). Modules that are only imported by their own test suites are strictly prohibited as incomplete shelfware.
|
|
392
|
+
2. Holistic Integration (Anti-Stub / Anti-Toy): The implementation must holistically integrate into the live application—it must never be a toy, stub, mock, or hollow heuristic approximation.
|
|
393
|
+
3. Literal Fidelity & True-Fidelity Mandate (Anti-Approximation): When recreating, porting, reverse-engineering, duplicating functionality from an existing reference, or executing an operator directive where fidelity is expected:
|
|
394
|
+
- "Approximate", "looks right", "heuristic shortcut", "gist-level", or "good enough for happy paths" implementations are STRICTLY REJECTED.
|
|
395
|
+
- The implementation must be literally and precisely the thing that was asked for, matching all edge cases, type boundaries, flags, and error flows.
|
|
396
|
+
4. Aggressive Replacement Purge: Any existing code, configurations, or fallbacks meant to be replaced or upgraded MUST BE DELETED immediately in the same strand; hoarding dead code, maintaining vestigial fallbacks, or leaving commented-out logic in the codebase is strictly prohibited.
|
|
397
|
+
5. Structural Assertion Rigor: Partial or loose assertions ("loosey goosey" tests like `assert 'foo' in bar`) are strictly forbidden. Tests must assert complete object equality (`assert actual == expected`) and cover negative controls.
|
|
253
398
|
</CRITICAL>
|
|
254
399
|
|
|
255
400
|
<INVARIANT>
|
|
256
|
-
Never merge code into the canonical trunk without
|
|
401
|
+
Never merge code into the canonical trunk without passing the Three-Key Gate: Key 1 (mechanical merge-tree 'git merge-tree'), Key 2 (semantic test runner 'vine gate'), and Key 3 (Pre-Weave Adversarial Code Audit Pump with 0 open defects under the presumption of guilt) inside an isolated Rift strand.
|
|
257
402
|
</INVARIANT>
|
|
258
403
|
|
|
259
404
|
<FORBIDDEN>
|
|
@@ -314,6 +459,10 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
314
459
|
- **Codex / ChatGPT Watchdog Only**: In OpenAI Codex Desktop / CLI where background processes cannot reactively wake the harness, arm a scheduled watchdog timer or cron job with stepped backoff (15m $\rightarrow$ 30m $\rightarrow$ 60m $\rightarrow$ 120m $\rightarrow$ Stand Down at check 4).
|
|
315
460
|
- **Reset Invariant**: Resets immediately to base 15m (streak 0) on any listener failure, unread inbox backlog, outbound task dispatch (`rhizo send`/`enqueue`), worker reply, or user chat prompt.
|
|
316
461
|
- When the timer fires in Codex, execute the short check: `rhizo watchdog check --agent <orchestrator> --json` and follow `next_action` (`SCHEDULE_TIMER` or `STAND_DOWN`).
|
|
462
|
+
4. **Post-Push Remote CI Verification Timer (Loose Guideline)**:
|
|
463
|
+
- After weaving (`vine weave`) and pushing (`git push`) to a remote repository where CI workflows run, if the coding harness supports timers/scheduling (e.g., `schedule`), set a periodic timer to check CI status (`gh run list --limit 3`):
|
|
464
|
+
- **Default Cadence**: Every 5 minutes (`DurationSeconds=300` or `CronExpression="*/5 * * * *"`).
|
|
465
|
+
- **Max Checks**: Maximum 12 checks (1 hour total, `MaxIterations=12`), cancelling the timer early as soon as all CI workflows finish (pass or fail).
|
|
317
466
|
|
|
318
467
|
---
|
|
319
468
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiomantic/garden",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
|
|
5
5
|
"main": "bin/run.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/axiomantic/garden#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@axiomantic/rhizo": "^0.2.
|
|
54
|
-
"@axiomantic/vine": "^0.2.
|
|
53
|
+
"@axiomantic/rhizo": "^0.2.25",
|
|
54
|
+
"@axiomantic/vine": "^0.2.13",
|
|
55
55
|
"rift-snapshot": "^0.0.13"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -25,16 +25,22 @@ graph TD
|
|
|
25
25
|
C <-->|Coherence Tension| A
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
1. **The Systems Architect
|
|
28
|
+
1. **The Systems Architect**:
|
|
29
29
|
- **Focus**: Global system topology, invariants, lifecycle management, failure modes, cross-component boundaries.
|
|
30
30
|
- **Bias**: Prefers structural purity and comprehensive conceptual models.
|
|
31
|
-
2. **The Purist Auditor / Refactoring Specialist
|
|
31
|
+
2. **The Purist Auditor / Refactoring Specialist**:
|
|
32
32
|
- **Focus**: Single-source of truth (SSOT), ISO standards compliance, dead-code elimination, zero green mirages, edge-case failure proofs.
|
|
33
33
|
- **Bias**: Adversarial skeptic. Assumes claims are unproven until verified by an automated test or compiler run.
|
|
34
|
-
3. **The DevEx & Implementation Lead
|
|
34
|
+
3. **The DevEx & Implementation Lead**:
|
|
35
35
|
- **Focus**: Developer experience, API ergonomics, ease of adoption, idiomatic conventions, pragmatic delivery.
|
|
36
36
|
- **Bias**: Champions the human engineer using the tool; eliminates cognitive overhead and unnecessary friction.
|
|
37
37
|
|
|
38
|
+
<CRITICAL>
|
|
39
|
+
Mandatory Independent Auditor Role (Key 3 Invariant):
|
|
40
|
+
Swarm rosters MUST ALWAYS include a dedicated, independent Adversarial Auditor (@<project>-auditor).
|
|
41
|
+
Workers who write code are strictly prohibited from auditing or ratifying their own deliverables. Vine's Key 3 gate mechanically rejects self-auditing (ExitGateAuditViolation = 6). The Adversarial Auditor must run in a dedicated, independent session to inspect submitted strands, enforce the Five Pillars, and execute 'vine audit approve --auditor <name>'.
|
|
42
|
+
</CRITICAL>
|
|
43
|
+
|
|
38
44
|
---
|
|
39
45
|
|
|
40
46
|
## 2. Harness & Model Alignment
|
|
@@ -58,13 +64,9 @@ Swarm workers operate in sovereign interactive sessions and inherit whatever fou
|
|
|
58
64
|
</CRITICAL>
|
|
59
65
|
|
|
60
66
|
<CRITICAL>
|
|
61
|
-
Whimsical Personas &
|
|
62
|
-
1. Strict
|
|
63
|
-
2.
|
|
64
|
-
- Botanical / Biological: Briar-Weaver, Sprout-Surge, Root-Tender, Bark-Scraper, Mycelium-Mender
|
|
65
|
-
- Clockwork / Artificer: Gear-Whisperer, Escapement-Caliber, Ratcheteer, Piston-Spark, Clocksmith-Spindle
|
|
66
|
-
- Mythical / Cryptid: Astral-Gryphon, Iron-Basilisk, Forge-Salamander, Chimera-Mason, Gargoyle-Gaze
|
|
67
|
-
- Celestial / Nautical: Nebula-Drifter, Solar-Flare, Coral-Carver, Deep-Current, Tide-Warden
|
|
67
|
+
Whimsical Non-Human Personas & Dynamic Invention Invariant (GVR-017):
|
|
68
|
+
1. Strict Non-Human Constraint: Personas MUST NEVER be human or humanoid personal names (e.g. first/last name combinations). Personas MUST be purely non-human entities: botanical, clockwork, mythical, mineral, or topological compound monikers.
|
|
69
|
+
2. Dynamic Synthesis Mandate: When configuring or recommending swarm personas, NEVER draw from or reuse static, generic, or example lists. Dynamically synthesize completely original, inventive compound monikers ([Descriptor]-[Entity/Craft]) tailored specifically to the target project's domain.
|
|
68
70
|
</CRITICAL>
|
|
69
71
|
|
|
70
72
|
| Role Mandate | Recommended Harness | Model Alignment | Rationale |
|
|
@@ -99,8 +101,10 @@ sequenceDiagram
|
|
|
99
101
|
end
|
|
100
102
|
```
|
|
101
103
|
|
|
102
|
-
### Step 0: Pre-Flight Cluster Check
|
|
103
|
-
Run `rhizo who --json`
|
|
104
|
+
### Step 0: Pre-Flight Cluster Check & Adaptive Swarm On-Ramp
|
|
105
|
+
Run `rhizo who --all --json` to triage cluster listener state:
|
|
106
|
+
1. **Target Project Active**: If active, healthy workers already exist registered under the target project, skip persona selection and reuse the existing workers (Fast-Path).
|
|
107
|
+
2. **Available Idle Peers**: If active listeners exist under other projects or unassigned, note their presence. Once personas are ratified, these peers can be dynamically repurposed into the project via `garden repurpose` without requiring manual prompt copying into new windows.
|
|
104
108
|
|
|
105
109
|
### Step 1: Codebase & Task Analysis (Cold Starts Only)
|
|
106
110
|
1. Inspect repository stack (e.g., Nim, Rust, Python, TypeScript, C).
|
|
@@ -183,7 +187,6 @@ Once ratified, write `garden-swarm.json` to the target project directory with wo
|
|
|
183
187
|
Before concluding:
|
|
184
188
|
1. Verify `garden-swarm.json` is syntactically valid JSON.
|
|
185
189
|
2. Confirm each worker has unique `name` and non-empty `tags`.
|
|
186
|
-
3. Proceed
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
- Await cluster readiness verification via `rhizo who --json`.
|
|
190
|
+
3. Proceed to Worker On-Ramp ([`launch-workers`](../launch-workers/SKILL.md)):
|
|
191
|
+
- **Pathway A (Dynamic Repurposing)**: If idle cluster peers were detected, run `garden repurpose` to reassign them to the chosen personas/roles without manual session setup.
|
|
192
|
+
- **Pathway B (Fresh Session Bootstrapping)**: Call `garden prompts` to generate the 10-backtick raw markdown blocks in `/tmp/garden-<project>/`, present tab setup instructions, and await cluster readiness via `rhizo who --all --json`.
|
|
@@ -177,6 +177,8 @@ The Auditor executes the following checks against the Claim Bundle and the stran
|
|
|
177
177
|
#### Pillar 2: Holistic Integration vs. Heuristic Hand-Waves & Hollow Stubs
|
|
178
178
|
- [ ] **Anti-Stub & Anti-Toy Check**: Does the implementation handle real application state, real network/file I/O, and real concurrent events?
|
|
179
179
|
- [ ] **No Hollow Mocks in Production**: Reject artificial `sleep()` calls, hardcoded success responses, or fake test doubles in production paths.
|
|
180
|
+
- [ ] **Anti-Defeat-Device & Anti-Theatrical Interceptor Mandate**: Strictly reject prompt keyword interceptors (e.g. `if 'flight game' in q or 'webworker' in q`) and theatrical mock questionnaires in generic runtimes that bypass genuine neural/radar/algorithmic pipelines to fake benchmark compliance. This is a critical `CRIT-DEFEAT-DEVICE` defect requiring complete elimination.
|
|
181
|
+
- [ ] **Autonomous Intensive Audit Mandate**: Intensive audits are Standard Operating Procedure (SOP) and pre-authorized. Auditors must execute without requesting operator confirmation or input.
|
|
180
182
|
- [ ] **Brittle String-Split Hacks**: Reject naive string splits (`str.split(" ")[0]`) pretending to parse structured protocols or payloads; compliant lexers/parsers must be used.
|
|
181
183
|
- [ ] **Swallowed Exceptions**: Reject empty `except: pass` or `catch: discard` blocks that sweep real error conditions under the rug.
|
|
182
184
|
|
|
@@ -218,45 +220,40 @@ sequenceDiagram
|
|
|
218
220
|
participant A as Adversarial Auditor
|
|
219
221
|
participant G as Gate (Vine / Garden)
|
|
220
222
|
|
|
221
|
-
W
|
|
223
|
+
Note over W: Worker finishes and runs 'vine submit'
|
|
224
|
+
W->>A: Submit Deliverable Claim Bundle ('vine submit')
|
|
222
225
|
A->>A: Five-Pillar Presumption-of-Guilt Audit (Antithesis)
|
|
223
226
|
|
|
224
227
|
alt Findings > 0 (CRIT / HIGH / MED)
|
|
228
|
+
A->>G: 'vine audit reject --reason <text>'
|
|
225
229
|
A-->>W: Emit audit_report.md with empirical citations
|
|
226
230
|
Note over W: Worker remediates findings inside Strand
|
|
227
|
-
W->>A: Re-pump:
|
|
231
|
+
W->>A: Re-pump: 'vine submit' (Delta Claim Bundle + git diff against last audit commit)
|
|
228
232
|
A->>A: Delta Audit: Verify fix + full test regression sweep
|
|
229
233
|
Note over A,W: Loop repeats until 0 open defects
|
|
230
234
|
else Findings == 0
|
|
231
|
-
A->>G:
|
|
235
|
+
A->>G: 'vine audit approve --auditor <name>' (Stamps audit_token)
|
|
232
236
|
G->>G: Execute vine weave (Trunk Fast-Forward)
|
|
233
237
|
end
|
|
234
238
|
```
|
|
235
239
|
|
|
236
|
-
|
|
240
|
+
> [!CRITICAL]
|
|
241
|
+
> **THE WORKER IS NOT THE AUDITOR**: Workers cannot audit or approve their own strands (`vine audit approve` strictly enforces `auditor != author`). The audit MUST be performed by an independent Adversarial Auditor session.
|
|
242
|
+
|
|
243
|
+
1. **Defect Issuance**: If defects are discovered, the Auditor runs `vine audit reject --reason "<defects>"` and records findings in `audit_report.md` with defect codes (`CRIT-XX`, `HIGH-XX`, `FIDELITY-XX`, `MIRAGE-XX`), exact file lines, and failure proof.
|
|
237
244
|
2. **In-Strand Remediation**: The worker fixes findings strictly inside the isolated Vine strand.
|
|
238
|
-
3. **The Delta Re-Pump**: When resubmitting
|
|
245
|
+
3. **The Delta Re-Pump**: When resubmitting with `vine submit`, the auditor audits the **exact delta** (`git diff <audit_commit>...HEAD`) to ensure fixes do not introduce secondary defects, while re-running the full project test suite (`vine gate`) to guarantee no regressions.
|
|
239
246
|
4. **Exit Condition**: The pump loops until **ZERO open defects of severity CRIT, HIGH, or MED remain**, and all low/nit items are resolved or empirically justified.
|
|
240
247
|
|
|
241
248
|
### Step 4.4: Gate Clearance & Cryptographic Token
|
|
242
249
|
|
|
243
|
-
When all findings reach 0, the auditor
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
"status": "GATE_AUDIT_PASSED",
|
|
247
|
-
"task_id": "<task-id>",
|
|
248
|
-
"audit_iterations": 2,
|
|
249
|
-
"five_pillars": {
|
|
250
|
-
"closed_circuit": "VERIFIED",
|
|
251
|
-
"holistic_integration": "VERIFIED",
|
|
252
|
-
"literal_fidelity": "VERIFIED",
|
|
253
|
-
"replacement_purge": "VERIFIED",
|
|
254
|
-
"structural_assertions": "VERIFIED"
|
|
255
|
-
},
|
|
256
|
-
"gate_token": "AUDIT_PASS_SHA256_..."
|
|
257
|
-
}
|
|
250
|
+
When all findings reach 0, the independent auditor ratifies Key 3:
|
|
251
|
+
```bash
|
|
252
|
+
vine audit approve --auditor <auditor_name>
|
|
258
253
|
```
|
|
259
|
-
|
|
254
|
+
This mechanically verifies Keys 1 & 2, checks that the strand has zero uncommitted changes, ensures `auditor != author`, and stamps a cryptographic `audit_token` in `.vine.json`.
|
|
255
|
+
|
|
256
|
+
Only strands in `AUDIT_RATIFIED` state with a valid cryptographic audit token are permitted to weave into trunk (`vine weave`).
|
|
260
257
|
|
|
261
258
|
---
|
|
262
259
|
|