@nexus-cortex/server 4.56.1 → 4.56.2

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.
@@ -128,6 +128,47 @@ cortex --new --quiet -m deepseek-v4-pro "[TASK]" &
128
128
  # + Task agent with Opus as control
129
129
  ```
130
130
 
131
+ ## Sub-agent Orchestration: isolation vs throughput (learned live, 2026-08-05)
132
+
133
+ Dispatching N agents at once raises the question this skill left implicit: **do they
134
+ share a working tree, or get isolated ones?** Both are right — for different task
135
+ shapes. Choosing wrong costs either wall-clock or a phantom bug hunt.
136
+
137
+ | | **Worktree isolation** (`isolation: "worktree"`) | **Disjoint file sets** (shared tree) |
138
+ |---|---|---|
139
+ | Mechanism | Each agent gets its own checkout off the same `.git` | All agents edit the live tree; each is *told* which files it owns |
140
+ | Enforcement | Structural — collisions impossible | By instruction only — nothing prevents an overlap |
141
+ | Agent can build/test itself | **No** — a fresh worktree has no `node_modules` (gitignored) until you install there | Yes (deps already present) |
142
+ | Cost | N× dependency install on a monorepo; disk; time | Main tree holds unverified code mid-flight |
143
+ | Use when | Agents edit **existing shared** files · large change · agent must self-verify | **New-file / additive** work · low collision surface · env can't afford N installs |
144
+
145
+ **The phantom-error trap.** A shared-tree agent that runs a *whole-project* typecheck
146
+ will observe peers' half-written files and report errors that are not its own. In a
147
+ live run the RelayExecutor agent reported a TS error in `ConnectionsPage.tsx` — a file
148
+ it never touched — because a concurrent agent was mid-write; that cost a real
149
+ debugging detour. **Rule: a shared-tree agent verifies ONLY its own files (or not at
150
+ all); the orchestrator owns whole-project verification.** Worktrees make this
151
+ structurally impossible — that's their value beyond collision safety.
152
+
153
+ **Central verification pattern (resource-constrained boxes).** Agents write; the
154
+ orchestrator compiles, tests, and ships — ONE build at a time. `main` stays at a
155
+ known-good checkpoint until each piece is proven, and you never hang a small box with
156
+ N concurrent builds. Trade-off: verification serializes through the orchestrator. Want
157
+ parallel self-verification? Pay for worktrees + installs. Don't pretend it's free.
158
+
159
+ **Trust on-disk state, not the agent's report.** An agent killed mid-flight (session
160
+ restart, timeout) may have *fully landed* its work with no report, or landed half of
161
+ it. Check the files before re-dispatching — blind re-runs duplicate work or clobber
162
+ good output. Corollary: when no report arrives, the BUILD is the verification, not the
163
+ missing summary.
164
+
165
+ **Let agents refute your assumptions.** Brief them to VERIFY identifiers against the
166
+ registry instead of accepting yours. In a live ontology build two of the tool IDs I
167
+ asserted (`searchTools`, `skills`) were wrong; the agent grepped the real registry and
168
+ returned `cortex_search_tools` / `cortex_skill`. An agent told to "use these names"
169
+ would have shipped the bug. This is Cardinal Rule 2 (behavioral probe) applied to
170
+ delegation.
171
+
131
172
  ## The Comparison Table (copy this format)
132
173
 
133
174
  | Metric | Arm A (model) | Arm B (model) | Arm C (model) | Control (Opus) | Verdict |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/server",
3
- "version": "4.56.1",
3
+ "version": "4.56.2",
4
4
  "description": "Thin Express server wrapper for Nexus Cortex core library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
21
21
  },
22
22
  "dependencies": {
23
- "@nexus-cortex/core": "4.56.1",
24
- "@nexus-cortex/executors": "4.56.1",
23
+ "@nexus-cortex/core": "4.56.2",
24
+ "@nexus-cortex/executors": "4.56.2",
25
25
  "chalk": "^5.3.0",
26
26
  "cors": "^2.8.5",
27
27
  "dotenv": "^16.4.5",