@nexus-cortex/cli 4.94.0 → 4.95.0

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 +42 -1
  2. package/package.json +2 -2
package/.env.defaults CHANGED
@@ -261,6 +261,12 @@ CORTEX_EFFORT_TAIL=false
261
261
  # never medium-vs-low). Floor risk: too low loses in-loop tool micro-reasoning. Arm in the fanout
262
262
  # cell (pro@low vs pro@medium vs pro@max action, mentors@max); winner → bake into the pro card's
263
263
  # reasoning.effortByRole.action (validate-then-bake).
264
+ # [LEDGER 2026-09-07 @4.94.0] DARK/PENDING (n=1, dark-levers dlelo/dlemx + pro-effort pelo/pemd/pemx):
265
+ # low = FLASH EFFICIENCY WIN (dlelo 33 turns/34.6K outTok/$1.635 vs dlctl 44/54.6K/$2.315, no pass
266
+ # loss); max = REJECT (over-deliberates; pro@max pemx CUT mid-run — failed control at 67 turns/2x
267
+ # tokens). PRO low≈medium too close (pe-lo/pe-md torn down at egress-rot). ⇒ flash-low confirmed at
268
+ # n=1 → card reasoning.effortByRole.action bake pending k=5; pro-track k=5 (low vs med, mentors@max)
269
+ # STILL OWED. Do NOT ship-on: n=1, k=5-gated. Stays dark/UNSET in production.
264
270
  #CORTEX_ACTION_EFFORT=
265
271
  # Trigger helper-model review on tool errors (only applies when mentorship is enabled)
266
272
  MENTORSHIP_TRIGGER_ON_ERROR=false
@@ -488,7 +494,19 @@ CORTEX_ENDTURN_RESOLVER=true
488
494
  # [LEDGER 2026-09-06 @4.93.0] DARK/PENDING — built (resolver v2 abstention axis); addresses the k=5
489
495
  # over-rejection finding (filter-js 7 rej/0 pass, pytorch 8 rej/1 pass). NOT yet validated live —
490
496
  # arm in the next fanout cell (measure cost-per-PASS + false-RETIRE rate vs resolver-without-abstain).
491
- #CORTEX_ENDTURN_RESOLVER_ABSTAIN=false
497
+ # [LEDGER 2026-09-07 @4.94.0] DARK/PROMISING (n=1, dark-levers dlabs vs dlctl): equal pass (7=7),
498
+ # ~30% CHEAPER ($1.53 vs $2.32), MECHANISM-ATTRIBUTABLE — decisions.jsonl shows abstain/RETIRE fired
499
+ # on the reject-loop tasks (filter-js abstain×2/retire×3, pytorch abstain×1, sqlite-gcov abstain×1).
500
+ # Thesis confirmed (stops burning pro@max re-rejecting doomed finishes).
501
+ # [LEDGER 2026-09-07 @4.94.0 — SHIP-ON, operator decision] 🟢 ON (reson STANDARD). Flipped default-on
502
+ # from the n=1 PROMISING verdict (equal pass, ~30% cheaper, mechanism-attributable). Rationale
503
+ # (operator): affirm-then-verify, not gate-then-ship — budget doesn't allow adversarially EXCLUDING
504
+ # a promising optimization vs AFFIRMING it. k=5 now CONFIRMS rather than gates (pins the published
505
+ # version → re-measures ABSTAIN on current code). Orthogonal to this session's other changes: the
506
+ # resolver/adjudicateEndTurn path reads task/env/workProduct/attestation only — NO classifyToolOutcome/
507
+ # failure-count/loop-block coupling (grep-verified); loop-block ships dark (no-op); distiller = tooling.
508
+ # ROLLBACK if k=5 shows a net regression or a high false-RETIRE rate.
509
+ CORTEX_ENDTURN_RESOLVER_ABSTAIN=true
492
510
  #
493
511
  # CORTEX_DEADLINE_EXIT_MENTOR — the "smart deadline". At the WARN rung (~0.9 of the per-turn
494
512
  # wall-clock deadline, where residual still exists), a bounded mentor decides what to do with the
@@ -502,6 +520,11 @@ CORTEX_ENDTURN_RESOLVER=true
502
520
  # deadline adjudication, NOT the mis-premised endturn_gate_fallback). Addresses budget_frac>1.0
503
521
  # overrun + last-fifth grind. 🔴 quality-gated (tell "closing in" from "grinding") — arm in the next
504
522
  # fanout cell; measure pass-rate + budget_frac on the 0.80-1.0 finishing population.
523
+ # [LEDGER 2026-09-07 @4.94.0] DARK/RE-TARGET (n=1, dark-levers dldln): FIRED (make-mips×2, schemelike×1)
524
+ # but its only +1 flip (pytorch) was on a task where it did NOT fire = noise; no attributable gain,
525
+ # +cost (59 turns). Its "don't-truncate-late-win" value needs the 0.80-1.0 FINISHING population
526
+ # specifically, not this reject-loop-heavy subset. ⇒ keep dark; re-target the k=5/next cell to the
527
+ # high-budget_frac finishers (schemelike/make-mips/install-windows/filter-js/pytorch). Stays false.
505
528
  #CORTEX_DEADLINE_EXIT_MENTOR=false
506
529
  #CORTEX_DEADLINE_EXIT_MENTOR_EFFORT=max
507
530
  #CORTEX_DEADLINE_EXIT_MENTOR_BUDGET_TOKENS=2000
@@ -883,6 +906,24 @@ CORTEX_ORIENT_BOOTSTRAP=1
883
906
  # [LEDGER 2026-09-02 @4.89.0] code default 12 (4.88.0) — 8 misfired on persistence-wins grinds (rstan-to-pystan regressed both arms).
884
907
  #NEARDUP_NUDGE_AT=12
885
908
 
909
+ # CORTEX_LOOP_TOOL_BLOCK — hard loop intervention (operator design 2026-09-07). On a ladder-detected
910
+ # non-converging loop (diversify/break), disables the LOOPING TOOL'S EXECUTOR for one turn (cache-safe:
911
+ # the tool stays in the list, so the prompt cache is NOT busted) and returns an append-only redirect
912
+ # error steering to the complementary tools (Bash→Read/Write/Edit, Edit→Read/Bash). After 2 blocks that
913
+ # do not break the loop, ESCALATES to a bounded pro-max exit-planner mentor (orchestrator-direct-invoke,
914
+ # NOT forced tool_choice — dead on DeepSeek mid-history; the 4th sibling of the endturn-resolver family)
915
+ # that reads the last loop calls + their outputs and returns VERDICT: REPLAN <different plan> | RETIRE
916
+ # <stop, record best-effort>.
917
+ # [LEDGER 2026-09-07 @unreleased] DARK (default false) — BUILT + tsc-clean + loopToolBlock 6/6 +
918
+ # loopExitPlanner 9/9 + orchestrator e2e 26/26 + LIVE-SEEDED FIRE-CHECK PASSED (seeded grep-loop:
919
+ # block#1 → block#2 → ESCALATED → exit-planner RETIRE delivered, model complied + stopped retrying Bash).
920
+ # Ships dark on the combined release; efficacy A/B still owed (retry_loop is the dominant TB2 fail class).
921
+ #CORTEX_LOOP_TOOL_BLOCK=true
922
+ # Escalation exit-planner mentor tuning (bounded pro-max; only consulted when CORTEX_LOOP_TOOL_BLOCK=true).
923
+ #CORTEX_LOOP_TOOL_BLOCK_EFFORT=max # a bounded single-shot planner cannot grind
924
+ #CORTEX_LOOP_TOOL_BLOCK_BUDGET_TOKENS=4000 # big enough that reasoning does not eat the plan on DeepSeek
925
+ #CORTEX_LOOP_TOOL_BLOCK_TIMEOUT_MS=90000 # fail-open to the generic redirect on timeout
926
+
886
927
 
887
928
  # --- OPTIMAL LIFT CONFIG (appended) ---
888
929
  # [LEDGER 2026-09-02 @4.90.0] DEAD — no code path reads CORTEX_IDLE_TIMEOUT (grep packages/*/src = 0 hits); it was cargo-culted into the bench adapter env for months and removed there in adapter v21 (p3 timeout audit). Left commented so nobody re-adds it as a "lever".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/cli",
3
- "version": "4.94.0",
3
+ "version": "4.95.0",
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.94.0",
22
+ "@nexus-cortex/core": "4.95.0",
23
23
  "chalk": "^4.1.2",
24
24
  "cli-spinners": "^2.9.0",
25
25
  "commander": "^11.0.0",