@axiomantic/garden 0.2.25 → 0.2.26

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.
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.25",
3
+ "version": "0.2.26",
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.27",
54
- "@axiomantic/vine": "^0.2.15",
53
+ "@axiomantic/rhizo": "^0.2.28",
54
+ "@axiomantic/vine": "^0.2.16",
55
55
  "rift-snapshot": "^0.0.13"
56
56
  }
57
57
  }
@@ -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-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.
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 three operational pools:
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 currently registered under other projects, immediately available for dynamic repurposing.
138
- 3. **`busyClusterPeers`**: Active listeners executing in-flight tasks (`BUSY`), guarded from unintentional reassignment.
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 & 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
+ - **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:
@@ -45,8 +45,8 @@ The orchestrator inspects the cluster state via `rhizo who --all --json`:
45
45
  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
46
  The orchestrator MUST invoke the interactive `ask_question` tool to solicit the operator's preference (Swarm vs Inline).
47
47
  Dumping multiple-choice numbered lists (`1, 2, 3`) or routing questionnaires in raw chat text is STRICTLY PROHIBITED.
48
- 3. **Fleet-First Mandate (Zero Prompt-Card Overhead When Workers Are Online)**:
49
- When active or idle workers exist on the cluster (`rhizo who --all`), the orchestrator is strictly forbidden from printing copy-paste prompt cards into chat or asking the operator to open new terminal tabs. It must automatically dispatch or repurpose the existing fleet over Rhizo.
48
+ 3. **Project-Scoped Fleet Mandate & Anti-Hijacking Invariant**:
49
+ 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
50
  </CRITICAL>
51
51
 
52
52
  <CRITICAL>