@nexus-cortex/cli 4.107.0 → 4.107.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.
Files changed (2) hide show
  1. package/.env.defaults +22 -0
  2. package/package.json +2 -2
package/.env.defaults CHANGED
@@ -281,6 +281,7 @@ CORTEX_EFFORT_TAIL=false
281
281
  # accepted but COERCED → 'high' server-side, so the card default 'medium' effectively runs HIGH.
282
282
  # ⇒ the flash-low verdict was low-vs-HIGH (not low-vs-medium): ~30% cheaper at pass-rate WASH.
283
283
  # Applies to the ACTION model here; the mentor roles run 'max' (top), the helper middleware runs 'none'.
284
+ # [LEDGER 2026-09-11 @4.107.0] cell-n-r4 (hard core 13×K=2, flash action model, FINAL 47/52 rows): high = NO LIFT — ah-none 6/22 (0.27), ah-low 7/25 (0.28) vs control 11/26 (0.42); +3.5–4.5 min/task latency, turns unchanged (narrow door intact). Keep unset (card default). DARK. Ledger r-cell-n-r34.
284
285
  #CORTEX_ACTION_EFFORT=
285
286
  # Trigger helper-model review on tool errors (only applies when mentorship is enabled)
286
287
  MENTORSHIP_TRIGGER_ON_ERROR=false
@@ -322,6 +323,7 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
322
323
  # +17pp, cell-d-k3 judges) was measured with thinking OFF on the wire despite the "@max" configs (HB-MENTOR-THINKING); the
323
324
  # plans were real and non-empty even so. `none` reproduces that baseline. cell-m A/Bs {pro, deepseek-flash} × {on, none}.
324
325
  #CORTEX_MENTOR_REASONING=on
326
+ # [LEDGER 2026-09-11 @4.107.0] cell-n-r1 (TB2.1 hard core 13 tasks x K=2, n~25/arm, $17.92 peak): CONTROL WINS — flash-none 10/24 (0.42) vs pro-high 9/25, flash-high 7/25, flash-max 7/26, fh-plan (planner on/resolver off) 7/25. Thinking-on resolvers false-accept ~50% vs 20% off; every thinking-on config costs 45-150 s per mentor call. STATUS: `none` CONFIRMED for the k=5; thinking-on DARK. Ledger .cortex/bench/r-cell-n-r1-2026-09-11.md
325
327
  # [LEDGER 2026-09-11 @4.106.1] cell-m-r1 (5 arms, n=8): DELIVERY FIXED for flash — flash-high 18/18 mentor calls delivered (11 thinking-on, 7 thinking-off-retry at the 16K cap); flash-max/pro-high hit the 90 s surface timeouts (→ 4.106.2). Rates: thinking-on arms 5/8 ×3 vs none 4/8, 3/8 — direction only, CIs overlap. STATUS: `none` stays the k=5 COMMON; proper A/B = flash-none vs flash-high on 4.106.2 + ALLOWANCE=16000, hard core K=3 (operator go).
326
328
  # [LEDGER 2026-09-10 @4.105.0] cell-m pilot (8 arms, n=4): `on` is BROKEN for DeepSeek planners as shipped — reasoning shares max_tokens (4000), so pro@low/high/max returned 0/10 lift plans + 1/8 resolver verdicts (blank after 50-75 s) and flash 3/10 + 2/9; every blank verdict fail-opened to MEETS. `none` = 8/8 plans, 12/12 verdicts, 5-9 s. STATUS: keep `none` (k=5 COMMON) until HB-MENTOR-BUDGET ships (max_tokens = content budget + reasoning allowance; finish_reason=length → retry thinking-off). Ledger .cortex/bench/r-cell-m-2026-09-10.md
327
329
  # CORTEX_MENTOR_CONSULT_REASONING — on|none. The AskForAdvice consult hint (400-token budget). Default none: the
@@ -331,6 +333,7 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
331
333
  # CORTEX_MENTOR_EFFORT — low|medium|high|max. ONE effort for every planner surface (the mentor-effort A/B lever); a
332
334
  # surface's own *_EFFORT (CORTEX_LIFT_PLAN_EFFORT etc.), when explicitly set, wins over it. Empty = per-surface (max).
333
335
  # [LEDGER 2026-09-10 @4.105.0] unset — cell-m A/Bs {pro, deepseek-flash} × {low, high, max} (+ thinking-off baselines).
336
+ # [LEDGER 2026-09-11 @4.107.0] cell-n-r3 flash@low (REASONING=on): REJECT — delivery 91% thinking-on (the treatment fired) but false-accept 0.67 (worst measured; high 0.56, max 0.50, off 0.33) and 6/24 vs control 11/26. Effort is monotone in cost only; ANY thinking on the resolver raises false accepts. Moot while REASONING=none (k=5). DARK. Ledger r-cell-n-r34.
334
337
  #CORTEX_MENTOR_EFFORT=
335
338
  # [LEDGER 2026-09-10 @4.105.0] cell-m pilot: low/high/max UNMEASURABLE — the thinking-on calls came back empty (see CORTEX_MENTOR_REASONING). Only flash@low ever delivered (1/4 plans, 2/3 verdicts). Re-test after HB-MENTOR-BUDGET.
336
339
  # CORTEX_ASK_FOR_ADVICE — true|false. Include the model-initiated AskForAdvice consult tool while mentorship is on.
@@ -348,6 +351,7 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
348
351
  # completion_tokens 2045 = 1641 reasoning + ~400 content). UNTESTED on the bench — the flash-none vs flash-high re-pilot
349
352
  # (K=2) is the efficacy test; until then CORTEX_MENTOR_REASONING=none stays the k=5 COMMON.
350
353
  #CORTEX_MENTOR_REASONING_ALLOWANCE=
354
+ # [LEDGER 2026-09-11 @4.107.0] cell-n-r1 at 16000 (cap 20K): flash@high/max still truncated ~30% (retry rescued, ~100 s); reasoningTok p90 16.8K/15.3K. Moot while thinking-on is DARK.
351
355
  # [LEDGER 2026-09-11 @4.106.1] cell-m-r1: flash@high thinking-on calls used 10.2K/10.6K reasoning tokens (med/p90) when they delivered and hit the 16K cap on 7/18 → 12K is ~50% short for flash@high; set 16000 on the next run (cap 20K). flash@max delivered at 3.8K/13.4K under 28K.
352
356
  # CORTEX_MENTOR_THINKING_TIMEOUT_MS — integer ms (4.106.2). A thinking-on mentor call (lift planner / EndTurn resolver / loop-exit
353
357
  # planner) races against max(surface timeout, this); the FIRST request is aborted at 60% of it so the thinking-off retry always
@@ -355,6 +359,7 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
355
359
  # [LEDGER 2026-09-10 @4.106.2] BUILT from cell-m-r1 (4.106.1): pro@high and flash@max reasoned past the 90 s surface timeouts →
356
360
  # banked deliveredBy=none (the retry never ran); flash@high delivered 6 thinking-on + 6 thinking-off-retry. UNTESTED on the bench.
357
361
  #CORTEX_MENTOR_THINKING_TIMEOUT_MS=
362
+ # [LEDGER 2026-09-11 @4.107.0] cell-n-r1: 0 `none` deliveries (the wall is gone); pro@high aborted at 144 s (60% of 240 s) on 38/50 calls — pro cannot answer inside the first-call share on these prompts. Moot while thinking-on is DARK.
358
363
  # PER-SURFACE REASONING SWITCH (4.107.0) — on|none per mentor surface, wins over CORTEX_MENTOR_REASONING; empty = follow the
359
364
  # global lever. Built from the cell-m-r1 quality read (ledger §6): thinking-ON lift plans are task-specific/adversarial, the
360
365
  # thinking-OFF resolver is the strict judge (0 false accepts) — "planner on, resolver off" is the candidate config.
@@ -363,6 +368,15 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
363
368
  # [LEDGER 2026-09-11 @4.107.0] BUILT; first bench test = cell-n-r1 arm `fh-plan` (CORTEX_LIFT_PLAN_REASONING=on +
364
369
  # CORTEX_ENDTURN_RESOLVER_REASONING=none under CORTEX_MENTOR_REASONING=none).
365
370
  #CORTEX_LIFT_PLAN_REASONING=
371
+ # CORTEX_LIFT_PLAN_DOCTRINE — planner doctrine version: v1 (default; the 4.107.0 PLANNER_SYSTEM) | v2 (adds the four
372
+ # cell-n-r1 census bullets: ONE INSTALL LAYER/uv, LONG WAITS ≤60 s polls, EXACT-OUTPUT byte-level, EXPECTED LITERALS ARE
373
+ # LAW + graders re-parameterize). Prompt-only.
374
+ # [LEDGER 2026-09-11 @4.107.2] LEVER (was hard-wired ON in 4.107.1). cell-n-r5 (4.107.1 control, hard core): 4/18 vs 11/26 on
375
+ # 4.107.0, PAIRED 6 losses / 1 gain, fewer turns on 12/18 tasks (finishes earlier, less verification: gcode read "gcodo3"
376
+ # without the control's max-zoom check). Shipped together with EndTurn essential, so attribution needs the 2×2 (cell-n-r6:
377
+ # base / et-ess / doc-v2 / et-doc). Default v1 = measured baseline until the 2×2 decides.
378
+ #CORTEX_LIFT_PLAN_DOCTRINE=
379
+ # [LEDGER 2026-09-11 @4.107.0] cell-n-r1 arm fh-plan (LIFT_PLAN_REASONING=on @high + resolver none): 7/25 vs control 10/24 — the thinking-on planner did not help on the hard core. DARK.
366
380
  #CORTEX_ENDTURN_RESOLVER_REASONING=
367
381
  #CORTEX_DEADLINE_EXIT_MENTOR_REASONING=
368
382
  #CORTEX_LOOP_TOOL_BLOCK_REASONING=
@@ -549,6 +563,7 @@ CORTEX_LIFT_NUDGE=true
549
563
  # per-step Bash timeouts from the box's REAL resources; fail-open to observations alone).
550
564
  # [LEDGER 2026-09-04 @4.91.1] BUILT DARK / FIRE-CHECKED — v1 shipped gated-off (typecheck clean, planner tests, orchestrator e2e 26/26 no-regression, core build clean). LIVE FIRE-CHECK PASSED (lift_plan event fired:true/planChars>0/criteriaStated:true; negative control clean). ISOLATED EVAL: plan quality EXCELLENT at max+4000 (criteria-anchored, adversarial, anti-self-test) — but caught max+1200=empty (defaults bumped to max/4000/90s). Still UNTESTED for pass-rate lift: needs the treatment bench (grind-retire + criteria-misalign score-lift) BEFORE trusting efficacy. Adapter must add these to its env passthrough or the bench arm runs dark. Keep false.
551
565
  # [LEDGER 2026-09-06 @4.93.0] ON (reson standard baseline). Part of the reson stack (GATE+REQ+LIFT+RESOLVER) that shipped through resolver-k5 (proven net-positive as a stack). NOTE: k5 held LIFT on in BOTH arms (shared baseline, not the A/B variable) — its independent efficacy stands from the 2026-09-04 isolated eval (plan quality excellent at max/4000); k5 ratifies the reson stack as standard, not LIFT in isolation.
566
+ # [LEDGER 2026-09-11 @4.107.1] PLANNER DOCTRINE +4 bullets (HB-PLAN-DOCTRINE, cell-n-r1 census): ONE INSTALL LAYER (uv owns venv+packages / bun / reuse what is present — no python→.venv→python stacks), LONG WAITS (background + poll ≤60 s, no minute-long sleeps), EXACT-OUTPUT (byte-level, never parse→re-serialize), EXPECTED LITERALS ARE LAW + graders re-parameterize (derive at run time, never bake constants). Prompt-only; efficacy = next hard-core run on 4.107.1 vs cell-n-r1 flash-none 10/24. Same release: EndTurn discoveryTier standard→essential (HB-ENDTURN-TIER, not a lever).
552
567
  CORTEX_LIFT_PLAN=true
553
568
  #CORTEX_LIFT_PLAN_EFFORT=max
554
569
  #CORTEX_LIFT_PLAN_BUDGET_TOKENS=4000
@@ -704,6 +719,13 @@ ROUTER_MIN_SAMPLES=3
704
719
  # [LEDGER 2026-09-03 @4.91.0] DARK/PENDING → **RECOMMENDED ON for k=5 (with REQUIREMENTS=strict)** — 4.91.0: gates now run on the STREAMING path too (were sendMessage-only; one shared endTurnGates.ts, live-proven on stream:true) and Stage-2 grounding accepts text the model WROTE this turn (Write/Edit content) — the false 'not grounded' rejections on authored files are gone. COST (v4 pass mining + doctrine-mine): every pass paid 4-8 EndTurn round-trips, the biggest share = Stage-2 CITATION rejects (17/43 doctrine findings; the model never re-ran a command for a fresh verbatim line) → 4.90.2 nudge teaches per-turn grounding + re-run; expect controls' +25-35% turn tax to drop — measure at k=5. — v4 (n=1, @4.90.0): gate engaged heavily under strict (flash gate_req=22/cite=13, pro 17/4), controls bn-fit+sqlite held on BOTH models, pro flips vs p3: dna-insert, pytorch-model-cli, cancel-async (n=1 candidates). Prior 3 cells: 4.71 fp 11→1 · fd +2/5 · c3 (n=2, r-c3-candidate-config) code-from-image FLIP 2/2 (first flash-family pass ever; Stage-4 requirement rejections, no mentor) + dna-insert 1/2; 0 clean regressions outside its LIMIT (accepts a re-attested wrong artifact: pytorch-model-cli r2, dna-insert fd). Cost: attestation turns. Operator decision pending. PRO (r-p3, n=1): controls 3/3 held with NO attestation tax (bn-fit 53→30 turns), 0 regressions, 0 paralysis; 0/13 flips on pro's hard core (budget timeouts while working). → k=5 config for BOTH models: guards + GATE+REQ + ENABLE_WEBTOOLS=false, mentor/tail off.
705
720
  # [LEDGER 2026-09-06 @4.93.0] ON (reson standard baseline). GATE+REQ (with REQUIREMENTS=true, NOT strict) shipped as the shared reson baseline through resolver-k5 — proven net-positive as a stack. k5 held GATE on in both arms; prior cell evidence stands. Part of the standard.
706
721
  CORTEX_ENDTURN_GATE=true
722
+ # CORTEX_ENDTURN_TIER — EndTurn discovery tier: standard (default; deferred behind SearchTools, the 4.107.0 baseline) |
723
+ # essential (in the turn-1 tool set; no SearchTools hunt for the mandatory finish tool).
724
+ # [LEDGER 2026-09-11 @4.107.2] LEVER (was hard-wired essential in 4.107.1 after the cell-n-r1 census: 70–80% of sessions spent a
725
+ # SearchTools call hunting EndTurn, 11 tried Task as a finish tool). MECHANISM PROVEN on cell-n-r5: SearchTools 21→2, Task 3→0 —
726
+ # but the hard core REGRESSED (4/18 vs 11/26) with fewer turns per task: a more salient finish tool may end turns EARLY.
727
+ # Shipped with the planner doctrine, so the 2×2 (cell-n-r6) attributes it. Default standard = baseline until then.
728
+ #CORTEX_ENDTURN_TIER=
707
729
  # Stage 4 (4.70.0, requires the gate ON): task-requirements attestation —
708
730
  # enumerate each stated requirement with what satisfies it + how it was
709
731
  # verified; mutating turns with no checks are challenged. Default OFF.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/cli",
3
- "version": "4.107.0",
3
+ "version": "4.107.2",
4
4
  "description": "Nexus Cortex CLI - Terminal interface for multi-provider LLM orchestration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
20
20
  },
21
21
  "dependencies": {
22
- "@nexus-cortex/core": "4.107.0",
22
+ "@nexus-cortex/core": "4.107.2",
23
23
  "chalk": "^4.1.2",
24
24
  "cli-spinners": "^2.9.0",
25
25
  "commander": "^11.0.0",