@axiomantic/garden 0.2.26 → 0.2.27
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/SKILL.md
CHANGED
|
@@ -104,8 +104,8 @@ Instead, it acts as an **Intelligent Intake Concierge**:
|
|
|
104
104
|
|
|
105
105
|
0. **Fast-Path Check for Pre-Authorized Directives & Active Swarm**:
|
|
106
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-
|
|
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.
|
|
107
|
+
- **Project-Scoped Fleet Mandate & Anti-Hijacking Invariant**: Workers assigned to a named project belong exclusively to that project. Cross-project worker hijacking is strictly prohibited by default. When online workers exist FOR THIS PROJECT (or in the unassigned pool: project 'unassigned'/'default' or tagged 'pool'/'float'/'shared'), dispatch or repurpose existing workers over Rhizo (`rhizo send` / `garden repurpose`). If only workers belonging to other named projects are online and no unassigned workers are available, the orchestrator MUST NOT hijack foreign workers; it MUST bootstrap dedicated workers for the project via prompt cards (`garden prompts` / `garden launch`).
|
|
108
|
+
- **Mandatory `ask_question` Tool Discipline**: Only during a true cold start with 0 cluster workers online for this project 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
109
|
|
|
110
110
|
1. **Evaluate Request Scope & Blast Radius (Cold Start Only)**:
|
|
111
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**.
|
|
@@ -132,10 +132,11 @@ Instead, it acts as an **Intelligent Intake Concierge**:
|
|
|
132
132
|
#### Adaptive Swarm On-Ramp & Dynamic Worker Repurposing (First-Look Invariant)
|
|
133
133
|
|
|
134
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
|
|
135
|
+
Garden automatically categorizes cluster listeners into four operational pools:
|
|
136
136
|
1. **`projectActive`**: Active listeners already registered on the target project.
|
|
137
|
-
2. **`availableIdlePeers`**: Active idle listeners
|
|
138
|
-
3. **`
|
|
137
|
+
2. **`availableIdlePeers`**: Active idle listeners in the unassigned pool (project is empty, `default`, or `unassigned`, or tagged `pool`/`float`/`shared`), immediately available for dynamic repurposing.
|
|
138
|
+
3. **`foreignProjectPeers`**: Active listeners registered to other named projects, **protected against cross-project poaching** (repurposing rejected unless `--allow-cross-project` is explicitly passed).
|
|
139
|
+
4. **`busyClusterPeers`**: Active listeners executing in-flight tasks (`BUSY`), guarded from unintentional reassignment (requires `--force`).
|
|
139
140
|
|
|
140
141
|
##### Fast-Path: Re-using an Active / Existing Swarm
|
|
141
142
|
If active, healthy workers on the target project meet or exceed the target worker count (`projectActive >= targetWorkers`):
|
|
@@ -145,10 +146,10 @@ If active, healthy workers on the target project meet or exceed the target worke
|
|
|
145
146
|
- **Bypass**: To force prompt card regeneration despite active workers, pass `--force-prompts` to `garden prompts` or `garden launch`.
|
|
146
147
|
|
|
147
148
|
##### 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
|
+
When target project workers are needed and unassigned idle cluster peers exist, Garden surfaces two distinct pathways:
|
|
149
150
|
|
|
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:
|
|
151
|
+
- **Pathway A (Dynamic Worker Repurposing via `garden repurpose`)**:
|
|
152
|
+
Repurpose existing unassigned idle cluster listeners directly into the target project without opening new terminal windows or copying prompt cards:
|
|
152
153
|
```bash
|
|
153
154
|
garden repurpose <worker1> <worker2> \
|
|
154
155
|
--project <target-project> \
|
|
@@ -164,10 +165,10 @@ When target project workers are needed and idle cluster peers exist, Garden surf
|
|
|
164
165
|
--expected-tags "backend,frontend,qa,audit"
|
|
165
166
|
```
|
|
166
167
|
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 &
|
|
168
|
+
- **Negative Control & Tenancy Guardrail**: Repurposing rejects workers belonging to other named projects unless `--allow-cross-project` is specified. It also rejects workers that are actively `BUSY` on tasks (requires `--force`).
|
|
168
169
|
|
|
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`).
|
|
170
|
+
- **Pathway B (Fresh Session Bootstrapping via Prompt Cards)**:
|
|
171
|
+
When zero unassigned cluster listeners exist (even if workers from other projects are online) 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`). Dedicated prompt cards are the primary and intended mechanism for spinning up workers for a new project!
|
|
171
172
|
|
|
172
173
|
<CRITICAL>
|
|
173
174
|
Operator-Named Worker Delegation Mandate:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|