@axiomantic/garden 0.2.20 → 0.2.21

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.20",
3
+ "version": "0.2.21",
4
4
  "description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
5
5
  "main": "bin/run.js",
6
6
  "bin": {
@@ -125,13 +125,27 @@ Instead, it acts as an **Intelligent Intake Concierge**:
125
125
  - **If Option 3 selected**: Execute inline in the current session.
126
126
 
127
127
  #### Fast-Path: Re-using an Active / Existing Swarm (First-Look Invariant)
128
- Before asking ANY intake questions or presenting configuration modals, the orchestrator MUST run `rhizo who --json` to inspect the cluster.
128
+ Before asking ANY intake questions or presenting configuration modals, the designated orchestrator MUST run `rhizo who --json` to inspect the cluster.
129
129
  If active, healthy workers are ALREADY registered and listening on the Rhizo cluster:
130
130
  - **DO NOT** ask intake interview questions or prompt the operator for new sessions or models.
131
131
  - **DO NOT** display swarm composition or harness questions.
132
132
  - Automatically attach to the existing online workers (`@worker-1`, `@worker-2`, ...).
133
133
  - Confirm cluster readiness and proceed immediately to Phase 3 (Dialectical Pump / Task Breakdown) or Phase 5 (Task Dispatch).
134
134
 
135
+ > [!CAUTION]
136
+ > **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`!
137
+
138
+ <INVARIANT>
139
+ 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:
140
+ 1. Run 'rhizo name' to allocate a fresh unique identity, followed by 'rhizo open <name>', OR
141
+ 2. Ask the operator via 'ask_question' which persona or role this window represents.
142
+ Never assume you are the orchestrator or an existing active worker simply because those names appear in the project directory.
143
+ </INVARIANT>
144
+
145
+ <FORBIDDEN>
146
+ 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.
147
+ </FORBIDDEN>
148
+
135
149
  #### Cold-Start Intake Protocol (Zero Active Workers Only)
136
150
  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.
137
151
  Because the coding harness is auto-detected from the session environment (`ANTIGRAVITY_APP_DIR` $\to$ Antigravity IDE, `CLAUDE_CODE` $\to$ Claude Code CLI, `OPENCODE_SESSION_ID` $\to$ OpenCode, `CODEX_SESSION_ID` $\to$ ChatGPT Desktop / Codex, `PI_SESSION_ID` $\to$ Pi), the orchestrator invokes `ask_question` to conduct a streamlined **Single-Question Intake Interview**: