@axiomantic/garden 0.2.7 → 0.2.9
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 +14 -7
- 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 +10 -4
- package/skills/garden/SKILL.md +14 -7
- package/skills/launch-workers/SKILL.md +7 -2
- package/skills/orchestrate-swarm/SKILL.md +8 -12
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
**Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine**
|
|
6
6
|
|
|
7
7
|
[](LICENSE)
|
|
8
|
-
[](https://github.com/axiomantic/rhizo)
|
|
9
|
+
[](https://github.com/axiomantic/vine)
|
|
10
10
|
[](README.md)
|
|
11
11
|
[](README.md)
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
> ```
|
|
30
30
|
> The session automatically acts as the **Lead Orchestrator**. It conducts a brief interactive intake interview to calibrate your desired team balance, coding harnesses, and model tiers. It then configures your project (`garden.toml` & `garden-swarm.json`) and prints ready-to-copy prompt cards wrapped in **10 backticks** (` ``````````markdown `). You paste these cards into separate terminal tabs or coding harnesses, and 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
|
|
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 Two-Key Gate.
|
|
33
33
|
|
|
34
34
|
```mermaid
|
|
35
35
|
flowchart TD
|
|
@@ -45,7 +45,7 @@ flowchart TD
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
subgraph Layer2["Layer 2: Vine (Workstream Integrator)"]
|
|
48
|
-
Strands["
|
|
48
|
+
Strands["Rift Strands (Zero-cost copy-on-write workspaces)"]
|
|
49
49
|
TwoKey["Two-Key Gate (Mechanical merge-tree + semantic test suite)"]
|
|
50
50
|
Weave["Trunk Weaving (Fast-forward verified branches)"]
|
|
51
51
|
end
|
|
@@ -82,7 +82,7 @@ Garden is completely standalone and can direct multi-agent dialectics, persona s
|
|
|
82
82
|
|
|
83
83
|
However, Garden is designed from the ground up to pair seamlessly with **Rhizo** and **Vine**:
|
|
84
84
|
- [**Rhizo**](https://github.com/axiomantic/rhizo) (Transport & Concurrency): Inter-agent messaging bus, monotonic fencing locks, and task queues over Redis.
|
|
85
|
-
- [**Vine**](https://github.com/axiomantic/vine) (Workspaces & Verification):
|
|
85
|
+
- [**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).
|
|
86
86
|
- **Garden** (Swarm Ceremonies): Prompt-based worker session bootstrapping, 3-stage empirical dialectical pump (research, architecture, audit), and master ceremonial implementation planning.
|
|
87
87
|
|
|
88
88
|
---
|
|
@@ -113,7 +113,7 @@ Install the compiled CLI tools directly onto your `$PATH`:
|
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
115
|
# Install all three tools:
|
|
116
|
-
npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden
|
|
116
|
+
npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapshot
|
|
117
117
|
|
|
118
118
|
# Or install Garden alone:
|
|
119
119
|
npm install -g @axiomantic/garden
|
|
@@ -190,7 +190,7 @@ The personas deliberate across three empirical stages:
|
|
|
190
190
|
### 5. Ceremonial Planning (`plan-implementation`)
|
|
191
191
|
Garden authors `implementation_plan.md`:
|
|
192
192
|
- Schedules distributed fencing locks (`rhizo lock file:<path> --fencing`).
|
|
193
|
-
- Assigns tasks and
|
|
193
|
+
- Assigns tasks and provisions isolated Rift strands (`vine new <task_id>`).
|
|
194
194
|
- Sets up dynamic progress checkboxes and harness To-Do tracking.
|
|
195
195
|
|
|
196
196
|
### 6. Live Orchestration & Trunk Weaving (`orchestrate-swarm`)
|
package/SKILL.md
CHANGED
|
@@ -73,7 +73,11 @@ When an operator initiates a project or requests multi-agent coordination, the s
|
|
|
73
73
|
- *Option 2*: Focused Duo (2 Workers: Implementation Lead `@<project>-implementer`, Adversarial Auditor `@<project>-auditor`).
|
|
74
74
|
- *Option 3*: Custom Swarm (Operator specifies custom roles and headcount).
|
|
75
75
|
3. **Question 3: Available AI Coding Harnesses**:
|
|
76
|
-
- The operator specifies which coding environments they
|
|
76
|
+
- The operator specifies which coding environments they will open dedicated tabs/windows for (Claude Code CLI, OpenCode, Antigravity, Pi, Cursor, Headless Terminal).
|
|
77
|
+
<CRITICAL>
|
|
78
|
+
Sovereign Sessions Only (Universal Subagent Prohibition):
|
|
79
|
+
Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via copy-paste prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY PROHIBITED as swarm workers across all harnesses. Internal subagents are ephemeral, cannot maintain continuous background listeners, and cause severe context poisoning. NEVER offer or present "subagents" as an option in Question 3 or any other intake question.
|
|
80
|
+
</CRITICAL>
|
|
77
81
|
4. **Question 4: Foundation Model Pairing & Equivalencies**:
|
|
78
82
|
- Recommend optimal models with fallback equivalents:
|
|
79
83
|
- `@<project>-architect`: Gemini 3.8 Flash / Claude 3.5 Sonnet / GPT-4o (deep architecture comprehension).
|
|
@@ -224,7 +228,11 @@ This intake gate applies to ANY request to "work on X", "build Y", "fix Z", or "
|
|
|
224
228
|
</CRITICAL>
|
|
225
229
|
|
|
226
230
|
<INVARIANT>
|
|
227
|
-
|
|
231
|
+
Sovereign Session & Subagent Prohibition: Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g., Antigravity's 'invoke_subagent', Claude Code's 'Task', OpenCode subagents, Cursor sub-composers) are STRICTLY PROHIBITED from acting as cluster swarm workers across all harnesses. Internal subagents are ephemeral, terminate upon single-task completion, cannot maintain persistent blocking listeners ('rhizo listen'), corrupt workspace isolation, and cause severe context poisoning by dumping execution traces back into the parent prompt. When orchestrating or bootstrapping a swarm, an orchestrator must NEVER spawn internal subagents and must NEVER offer "subagents" as a worker execution option during intake.
|
|
232
|
+
</INVARIANT>
|
|
233
|
+
|
|
234
|
+
<INVARIANT>
|
|
235
|
+
Delegation Precedence: When instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`). Harness-internal subagents (e.g. `invoke_subagent`, `Task`, `Agent`) must NEVER be used to fulfill cluster swarm roles; they are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly requests a "subagent" by name.
|
|
228
236
|
</INVARIANT>
|
|
229
237
|
|
|
230
238
|
<INVARIANT>
|
|
@@ -295,12 +303,11 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
295
303
|
2. **Watchdog Window**: If a worker fails to respond within the expected turn window (e.g. 5–10 minutes) and `rhizo probe` reveals `NO_LISTENER` or unread inbox items:
|
|
296
304
|
- **Escalate Immediately**: Prompt the operator via `ask_question` with the diagnostic status.
|
|
297
305
|
- **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>`.
|
|
298
|
-
3. **Orchestrator Self-Audit Watchdog
|
|
299
|
-
-
|
|
300
|
-
- **
|
|
306
|
+
3. **Orchestrator Self-Audit Watchdog (ONLY for OpenAI Codex / ChatGPT)**:
|
|
307
|
+
- **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively wakes up on background process completion when `rhizo listen` delivers a message.
|
|
308
|
+
- **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).
|
|
301
309
|
- **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.
|
|
302
|
-
-
|
|
303
|
-
- When the timer fires, execute the short check: `rhizo watchdog check --agent <orchestrator> --json` and follow `next_action` (`SCHEDULE_TIMER` or `STAND_DOWN`).
|
|
310
|
+
- 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`).
|
|
304
311
|
|
|
305
312
|
---
|
|
306
313
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -41,12 +41,18 @@ graph TD
|
|
|
41
41
|
|
|
42
42
|
When proposing personas, the assistant must explicitly pair each persona with an appropriate **coding harness** and **foundation model**, taking operator preferences into account (defaulting to Antigravity + Gemini 3.8 Flash for rapid implementation, and invoking Claude for deep adversarial auditing):
|
|
43
43
|
|
|
44
|
+
<CRITICAL>
|
|
45
|
+
Sovereign Dedicated Sessions Only (Universal Subagent Prohibition):
|
|
46
|
+
Every recommended harness represents an INDEPENDENT, DEDICATED CODING SESSION (separate terminal tab or dedicated IDE window) to be bootstrapped by the operator via Garden 10-backtick prompt cards.
|
|
47
|
+
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. NEVER pair a persona with internal subagents.
|
|
48
|
+
</CRITICAL>
|
|
49
|
+
|
|
44
50
|
| Role Mandate | Recommended Harness | Recommended Model Tier | Rationale |
|
|
45
51
|
| :--- | :--- | :--- | :--- |
|
|
46
|
-
| **Architectural Design & Systems Modeling** | **Antigravity** or **OpenCode** | **Gemini 3.8 Flash** or **Claude 3.5 Sonnet** | Fast token throughput, deep reasoning, superior multi-file architectural comprehension, and native background ear support. |
|
|
47
|
-
| **Adversarial Audit & Code Quality Purism** | **Claude Code CLI** | **Claude 3 Opus** or **Claude 3.5 Sonnet** | Uncompromising adherence to instructions, meticulous attention to negative controls, zero tolerance for superficial green tests. |
|
|
48
|
-
| **DevEx, Rapid Prototyping & Implementation** | **Antigravity** | **Gemini 3.8 Flash** | Native reactive tool execution (`run_command`), rapid file modification, direct terminal feedback. |
|
|
49
|
-
| **Hermetic / Local Security Analysis** | **Headless Terminal Worker** | **Ollama / Local DeepSeek-R1** | Air-gapped execution for proprietary credentials, licensing checks, or sensitive security audits. |
|
|
52
|
+
| **Architectural Design & Systems Modeling** | **Antigravity (Dedicated Window)** or **OpenCode (Dedicated Session)** | **Gemini 3.8 Flash** or **Claude 3.5 Sonnet** | Fast token throughput, deep reasoning, superior multi-file architectural comprehension, and native background ear support. |
|
|
53
|
+
| **Adversarial Audit & Code Quality Purism** | **Claude Code CLI (Dedicated Tab)** | **Claude 3 Opus** or **Claude 3.5 Sonnet** | Uncompromising adherence to instructions, meticulous attention to negative controls, zero tolerance for superficial green tests. |
|
|
54
|
+
| **DevEx, Rapid Prototyping & Implementation** | **Antigravity (Dedicated Window)** | **Gemini 3.8 Flash** | Native reactive tool execution (`run_command`), rapid file modification, direct terminal feedback. |
|
|
55
|
+
| **Hermetic / Local Security Analysis** | **Headless Terminal Worker (Dedicated Tab)** | **Ollama / Local DeepSeek-R1** | Air-gapped execution for proprietary credentials, licensing checks, or sensitive security audits. |
|
|
50
56
|
|
|
51
57
|
---
|
|
52
58
|
|
package/skills/garden/SKILL.md
CHANGED
|
@@ -73,7 +73,11 @@ When an operator initiates a project or requests multi-agent coordination, the s
|
|
|
73
73
|
- *Option 2*: Focused Duo (2 Workers: Implementation Lead `@<project>-implementer`, Adversarial Auditor `@<project>-auditor`).
|
|
74
74
|
- *Option 3*: Custom Swarm (Operator specifies custom roles and headcount).
|
|
75
75
|
3. **Question 3: Available AI Coding Harnesses**:
|
|
76
|
-
- The operator specifies which coding environments they
|
|
76
|
+
- The operator specifies which coding environments they will open dedicated tabs/windows for (Claude Code CLI, OpenCode, Antigravity, Pi, Cursor, Headless Terminal).
|
|
77
|
+
<CRITICAL>
|
|
78
|
+
Sovereign Sessions Only (Universal Subagent Prohibition):
|
|
79
|
+
Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via copy-paste prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY PROHIBITED as swarm workers across all harnesses. Internal subagents are ephemeral, cannot maintain continuous background listeners, and cause severe context poisoning. NEVER offer or present "subagents" as an option in Question 3 or any other intake question.
|
|
80
|
+
</CRITICAL>
|
|
77
81
|
4. **Question 4: Foundation Model Pairing & Equivalencies**:
|
|
78
82
|
- Recommend optimal models with fallback equivalents:
|
|
79
83
|
- `@<project>-architect`: Gemini 3.8 Flash / Claude 3.5 Sonnet / GPT-4o (deep architecture comprehension).
|
|
@@ -224,7 +228,11 @@ This intake gate applies to ANY request to "work on X", "build Y", "fix Z", or "
|
|
|
224
228
|
</CRITICAL>
|
|
225
229
|
|
|
226
230
|
<INVARIANT>
|
|
227
|
-
|
|
231
|
+
Sovereign Session & Subagent Prohibition: Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g., Antigravity's 'invoke_subagent', Claude Code's 'Task', OpenCode subagents, Cursor sub-composers) are STRICTLY PROHIBITED from acting as cluster swarm workers across all harnesses. Internal subagents are ephemeral, terminate upon single-task completion, cannot maintain persistent blocking listeners ('rhizo listen'), corrupt workspace isolation, and cause severe context poisoning by dumping execution traces back into the parent prompt. When orchestrating or bootstrapping a swarm, an orchestrator must NEVER spawn internal subagents and must NEVER offer "subagents" as a worker execution option during intake.
|
|
232
|
+
</INVARIANT>
|
|
233
|
+
|
|
234
|
+
<INVARIANT>
|
|
235
|
+
Delegation Precedence: When instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`). Harness-internal subagents (e.g. `invoke_subagent`, `Task`, `Agent`) must NEVER be used to fulfill cluster swarm roles; they are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly requests a "subagent" by name.
|
|
228
236
|
</INVARIANT>
|
|
229
237
|
|
|
230
238
|
<INVARIANT>
|
|
@@ -295,12 +303,11 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
295
303
|
2. **Watchdog Window**: If a worker fails to respond within the expected turn window (e.g. 5–10 minutes) and `rhizo probe` reveals `NO_LISTENER` or unread inbox items:
|
|
296
304
|
- **Escalate Immediately**: Prompt the operator via `ask_question` with the diagnostic status.
|
|
297
305
|
- **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>`.
|
|
298
|
-
3. **Orchestrator Self-Audit Watchdog
|
|
299
|
-
-
|
|
300
|
-
- **
|
|
306
|
+
3. **Orchestrator Self-Audit Watchdog (ONLY for OpenAI Codex / ChatGPT)**:
|
|
307
|
+
- **Antigravity & OpenCode Exemption**: In Google Antigravity and OpenCode, DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity natively and reactively wakes up on background process completion when `rhizo listen` delivers a message.
|
|
308
|
+
- **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).
|
|
301
309
|
- **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.
|
|
302
|
-
-
|
|
303
|
-
- When the timer fires, execute the short check: `rhizo watchdog check --agent <orchestrator> --json` and follow `next_action` (`SCHEDULE_TIMER` or `STAND_DOWN`).
|
|
310
|
+
- 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`).
|
|
304
311
|
|
|
305
312
|
---
|
|
306
313
|
|
|
@@ -37,6 +37,10 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
|
|
|
37
37
|
</CRITICAL>
|
|
38
38
|
5. **Zero Dirty Commits**:
|
|
39
39
|
- Never stage coordination state (`.rhizo.*`, `*.lock`, `.vine.json`, `workspaces/`) into Git.
|
|
40
|
+
6. **Sovereign Dedicated Session Invariant (Universal Subagent Prohibition)**:
|
|
41
|
+
<CRITICAL>
|
|
42
|
+
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.
|
|
43
|
+
</CRITICAL>
|
|
40
44
|
|
|
41
45
|
---
|
|
42
46
|
|
|
@@ -104,8 +108,9 @@ The Orchestrator presents the generated prompt blocks to the operator with clear
|
|
|
104
108
|
- `rhizo open "<name>" "<tags>"`
|
|
105
109
|
- `rhizo hook install --codex --agent "<name>"` (if running in Codex CLI/Desktop)
|
|
106
110
|
- `rhizo listen "<name>"` (blocking foreground command with infinite wait)
|
|
107
|
-
5. **Scheduled Health Check Template (
|
|
108
|
-
|
|
111
|
+
5. **Scheduled Health Check Template (ONLY for OpenAI Codex / ChatGPT CLI)**:
|
|
112
|
+
In Google Antigravity (using background `run_command`) and OpenCode (using background ear), DO NOT configure scheduled tasks; reactive background process completion handles wakeups natively.
|
|
113
|
+
In Codex Desktop / CLI where sessions cannot wake from background process exits without external stimulation, prompts include the bulletproof 4-step template:
|
|
109
114
|
- STEP 1: Inspect completed subagents/tasks for unhandled delivered tasks and execute them immediately (never stay quiet with pending work).
|
|
110
115
|
- STEP 2: Inspect active tasks to verify a listener is currently running, and re-arm if missing.
|
|
111
116
|
- STEP 3: Run `rhizo probe <name> --json` and drain any inbox backlog.
|
|
@@ -18,9 +18,9 @@ The main chat session assumes the role of **Lead Orchestrator**:
|
|
|
18
18
|
- **Gated Integration**: Never run `git merge` directly. Only weave branches that have passed both Key 1 (mechanical merge-tree) and Key 2 (live compiler/tests) inside their Vine strands.
|
|
19
19
|
|
|
20
20
|
<CRITICAL>
|
|
21
|
-
Delegation Precedence Invariant:
|
|
21
|
+
Delegation Precedence & Sovereign Session Invariant:
|
|
22
22
|
Whenever instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`).
|
|
23
|
-
NEVER spawn harness-internal subagents (e.g. `invoke_subagent`, `Task
|
|
23
|
+
Cluster workers operate exclusively in dedicated, sovereign sessions bootstrapped via 10-backtick prompt cards. NEVER spawn harness-internal subagents (e.g. `invoke_subagent`, `Task`, OpenCode subtasks) to act as cluster workers. Internal subagents are ephemeral, cannot maintain persistent blocking listeners, and cause severe context poisoning. Harness-internal subagents are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly specifies the word "subagent".
|
|
24
24
|
</CRITICAL>
|
|
25
25
|
|
|
26
26
|
<CRITICAL>
|
|
@@ -85,9 +85,9 @@ Whenever the Lead Orchestrator dispatches a task, broadcasts instructions, or aw
|
|
|
85
85
|
|
|
86
86
|
FORBIDDEN: Never yield the conversation turn to the operator after dispatching work without an active background listener running. Yielding a turn without a listener severs the swarm's physical lifeline, trapping worker replies in Redis and causing silent swarm stalls.
|
|
87
87
|
|
|
88
|
-
Safety Net (Scheduled
|
|
89
|
-
In
|
|
90
|
-
- **
|
|
88
|
+
Safety Net (Scheduled Watchdog Protocol — ONLY for OpenAI Codex / ChatGPT):
|
|
89
|
+
- **Antigravity & OpenCode Exemption**: In Google Antigravity (using background `run_command(CommandLine="rhizo listen <orchestrator>", IsDaemon=false, WaitMsBeforeAsync=500)`) and OpenCode (using background ear), DO NOT schedule timers or cron tasks (`schedule(...)`). Antigravity's task manager natively and reactively resumes execution on process exit when `rhizo listen` delivers a message, with zero timer overhead.
|
|
90
|
+
- **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 using stepped backoff:
|
|
91
91
|
- Initial / After Activity: Base 15 minutes (`DurationSeconds=900`).
|
|
92
92
|
- Quiescent Check 1 (Streak 1): 30 minutes (`DurationSeconds=1800`).
|
|
93
93
|
- Quiescent Check 2 (Streak 2): 60 minutes (`DurationSeconds=3600`).
|
|
@@ -100,18 +100,14 @@ In harnesses supporting `schedule` (e.g. Google Antigravity), arm a debounced wa
|
|
|
100
100
|
3. Any outbound task dispatch (`rhizo send`, `rhizo enqueue`, `rhizo reply`).
|
|
101
101
|
4. Any worker gate report or message receipt.
|
|
102
102
|
5. Any operator interaction or new prompt in chat.
|
|
103
|
-
- **Replace, Never Stack Invariant**:
|
|
104
|
-
Harnesses prohibit concurrent timers with `TimerCondition="any"`. Before setting a timer, inspect running tasks with `manage_task(Action='list')`. If an existing watchdog task is active (`toolName == "schedule"` or prompt includes `[RHIZO WATCHDOG]`), cancel it via `manage_task(Action='kill', TaskId=...)`.
|
|
105
103
|
- **Stand Down Invariants**:
|
|
106
|
-
1. When all tasks in `implementation_plan.md` are complete (`- [x]` 100%),
|
|
104
|
+
1. When all tasks in `implementation_plan.md` are complete (`- [x]` 100%), cancel any running watchdog timer and do not reschedule.
|
|
107
105
|
2. When the watchdog reaches `substatus: "MAX_STREAK_REACHED"` (streak 4/4), stand down and do not reschedule. The background listener process (`rhizo listen`) remains continuously active on Redis `BRPOP` and will wake the session on any new message.
|
|
108
|
-
- **
|
|
109
|
-
Because `TimerCondition="any"` is set, any arriving worker message or background task completion automatically cancels the timer early before it expires. The timer only fires if the orchestrator was silent and deaf for the full cadence duration.
|
|
110
|
-
- **The Short Check (When Timer Fires)**:
|
|
106
|
+
- **The Short Check (When Timer Fires in Codex)**:
|
|
111
107
|
Run `rhizo watchdog check --agent <name> --json`.
|
|
112
108
|
* If `ACTION_REQUIRED: REARM_LISTENER`: start `rhizo listen <name>` in background and schedule base timer (`DurationSeconds=900`).
|
|
113
109
|
* If `ACTION_REQUIRED: UNREAD_MESSAGES`: drain messages with `rhizo drain 10 <name>`, start listener, and schedule base timer (`DurationSeconds=900`).
|
|
114
|
-
* If `OK: LISTENING`: listener is healthy; check `recommended_cadence`. If `next_action == "SCHEDULE_TIMER"`, schedule timer with `DurationSeconds=recommended_cadence
|
|
110
|
+
* If `OK: LISTENING`: listener is healthy; check `recommended_cadence`. If `next_action == "SCHEDULE_TIMER"`, schedule timer with `DurationSeconds=recommended_cadence`.
|
|
115
111
|
* If `STAND_DOWN: MAX_STREAK_REACHED` or `STAND_DOWN: IDLE`: stand down and do NOT reschedule.
|
|
116
112
|
</CRITICAL>
|
|
117
113
|
|