@nexus-cortex/cli 4.119.1 → 4.120.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.
- package/.env.defaults +39 -5
- package/package.json +2 -2
package/.env.defaults
CHANGED
|
@@ -283,6 +283,7 @@ CORTEX_EFFORT_TAIL=false
|
|
|
283
283
|
# Applies to the ACTION model here; the mentor roles run 'max' (top), the helper middleware runs 'none'.
|
|
284
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.
|
|
285
285
|
# [LEDGER 2026-09-12 @4.107.2] PRO @high on the k=5 series COMMON (tb21-k5-ph1, full 89, K=1): 72/89 = 80.9% (Wilson 0.72-0.88), $12.77, med 737 s — +3-4 pts over the flash series (77.3 ± 2.7), CIs overlap; effort NOT separated from model (pro @default not yet run). Flash @high = no lift (cell-n-r4). Stays DARK. Ledger .cortex/bench/r-tb21-k5-ph1-2026-09-12.md
|
|
286
|
+
# [LEDGER 2026-09-18 @4.119.1] TB4.0 cell e6 (29 ever-passed tasks, 3-h budgets, flash, 1 repeat): LOW = REJECT 3/29 vs high 10/28 (+2/−9, p 0.07; tokens equal, wall +60%); MAX = WASH vs high 10/29 (+4/−4) at +30% tokens/+60% wall. Wire: reasoning/iteration FLAT across levels (4.6K/5.0K/4.8K chars), only the peak call scales (15.8K/22.7K/26.1K tok) — effort caps peak reasoning, not typical. Keep HIGH for TB4.0. Ledger r-tb4-e6-effort-2026-09-18.md.
|
|
286
287
|
#CORTEX_ACTION_EFFORT=
|
|
287
288
|
# Trigger helper-model review on tool errors (only applies when mentorship is enabled)
|
|
288
289
|
MENTORSHIP_TRIGGER_ON_ERROR=false
|
|
@@ -300,6 +301,8 @@ MENTORSHIP_CUSTOM_KEYWORDS=
|
|
|
300
301
|
# (apprentice) so the mentor is genuinely stronger on the task.
|
|
301
302
|
# (For image/vision background tasks, deepseek-v4-flash-vision-exp is the vision-capable option.)
|
|
302
303
|
# [LEDGER 2026-09-02 @4.89.0] ON=pro — NEVER a same-strength mentor: flash→flash peer = −2 engaged (m88b, confident-wrong hints lost chess+tune-mjcf); pro elder = +1 engaged (m88). For a PRO apprentice this makes pro→pro = the harmful peer config → run pro with CORTEX_MENTOR_AUTO=false.
|
|
304
|
+
# [LEDGER 2026-09-18] 🔴 V4 PRO IS NOT RETIRED — DeepSeek REINSTATED it (operator, repeated correction): "In response to user demand, we have decided to continue providing API services for DeepSeek V4 Pro after September 14, 2026, with the billing method remaining unchanged. We will provide further notice should there be any changes. Thank you for your understanding and support!"
|
|
305
|
+
# deepseek-v4-pro serves V4 Pro weights, same billing; the 09-10 retirement note below is HISTORY, do not repeat it.
|
|
303
306
|
# [LEDGER 2026-09-10 @4.102.0] deepseek-flash @max — V4 Pro is RETIRED 2026-09-14 04:00 UTC (routes to V4.1 Flash after
|
|
304
307
|
# that). DeepSeek states V4.1 Flash surpasses V4 Pro; the mentor roles (lift/resolver/deadline/loop-exit, AskForAdvice) run
|
|
305
308
|
# at effort max regardless of card. The "never a same-strength mentor" rule (m88b: v4-FLASH peer −2 engaged) was measured
|
|
@@ -335,6 +338,8 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
|
|
|
335
338
|
# surface's own *_EFFORT (CORTEX_LIFT_PLAN_EFFORT etc.), when explicitly set, wins over it. Empty = per-surface (max).
|
|
336
339
|
# [LEDGER 2026-09-10 @4.105.0] unset — cell-m A/Bs {pro, deepseek-flash} × {low, high, max} (+ thinking-off baselines).
|
|
337
340
|
# [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.
|
|
341
|
+
# [LEDGER 2026-09-18 @4.119.1] TB4.0 cell e6, pro planner (resolver thinking-off in all arms, so this reached ONE call/session — the lift plan): control per-surface max 10/28 · low 9/29 (+3/−4) · high 12/29 (+5/−3, p 0.73, best point estimate, ~half of max's planner latency) · REASONING=none 11/29 (+3/−2, 10x faster lift). No level separates at n=29; candidate for the full run = high. Wire: max delivered thinking-on 5/5 @118–178 s; high 4/5 (+1 thinking-off retry) @60–158 s; low 3/5 (+2 retries) @53–84 s.
|
|
342
|
+
# [LEDGER 2026-09-19 @4.119.1] FIELD, full TB4.0 (stack arm, =high): WASH vs per-surface max control (12/62 each); planner thinking-on 20/36 (16 retries) vs max 24/38 (14 retries).
|
|
338
343
|
#CORTEX_MENTOR_EFFORT=
|
|
339
344
|
# [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.
|
|
340
345
|
# CORTEX_ASK_FOR_ADVICE — true|false. Include the model-initiated AskForAdvice consult tool while mentorship is on.
|
|
@@ -388,10 +393,11 @@ MENTORSHIP_HELPER_MODEL=deepseek-flash
|
|
|
388
393
|
# grader; the planner's limit is planning from a snapshot — and every later steering surface anchors to that plan. Event lift_plan +=
|
|
389
394
|
# {toolRounds, roundsUsed, investigateChecks, investigateReads, investigateRefused, investigateAfterWithdraw, roundLatencyMs,
|
|
390
395
|
# evidenceChars}. Default 1 = 4.117.3 byte-for-byte.
|
|
391
|
-
# [LEDGER 2026-09-18 @4.118.0] BUILT + unit-tested (liftPlanner.test.ts R171).
|
|
396
|
+
# [LEDGER 2026-09-18 @4.118.0] BUILT + unit-tested (liftPlanner.test.ts R171). FIELD 09-18 (arm lp, 4.118.1): DELIVERED + FULLY ENGAGED (12/12 sessions investigated, 47 checks + 36 reads), NULL — 1/12 = control; planner cost 2–9 min/task at pro/thinking-on → use the flash planner or ROUNDS=2 (ledger §10).
|
|
392
397
|
#CORTEX_LIFT_PLAN_TOOL_ROUNDS=
|
|
393
398
|
#CORTEX_LIFT_PLAN_TOOL_ROUND_BUDGET_MS=
|
|
394
399
|
# [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.
|
|
400
|
+
# [LEDGER 2026-09-19 @4.119.1] FIELD, full TB4.0 (stack arm, =on @high, pro): thinking-on delivered 38/87 verdicts, 47/87 fell to the thinking-off retry (16K allowance exhausted); outcome WASH vs thinking-off control (12/62 each).
|
|
395
401
|
#CORTEX_ENDTURN_RESOLVER_REASONING=
|
|
396
402
|
#CORTEX_DEADLINE_EXIT_MENTOR_REASONING=
|
|
397
403
|
#CORTEX_LOOP_TOOL_BLOCK_REASONING=
|
|
@@ -1032,7 +1038,7 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1032
1038
|
# HELD once — sharing CORTEX_FINISH_CONFIRM_MAX with R167 — with the check results, the budget and the junior's open_items; an
|
|
1033
1039
|
# unverified MEETS also no longer silences the R151/R157 nudges. A MEETS backed by a passing check stands. Event: finish_confirm
|
|
1034
1040
|
# {action:'accept', meets:true, evidencePassed, checksNamed, namedRanNow, namedPassed, …}. =false restores 4.116.2 byte-for-byte.
|
|
1035
|
-
# [LEDGER 2026-09-17 @4.117.0] BUILT + unit-tested (endTurnResolver.test.ts R168).
|
|
1041
|
+
# [LEDGER 2026-09-17 @4.117.0] BUILT + unit-tested (endTurnResolver.test.ts R168). FIELD 09-17 (pilot-12 rerun-3 arm mc): DELIVERED, NULL, PRECISION-LIMITED — every MEETS named 2–3 checks, >=1 PASSED each time, hold fired 0x, 1/12 vs control 1/12 (ledger §9).
|
|
1036
1042
|
#CORTEX_MEETS_CONFIRM=
|
|
1037
1043
|
#CORTEX_MEETS_CONFIRM_MIN_REMAINING=
|
|
1038
1044
|
# CORTEX_TURN_CONTRACT_ENFORCE / CORTEX_TURN_CONTRACT_ENFORCE_MAX — HB-TURN-CONTRACT-ENFORCE (4.117.0, 2026-09-17). The channel contract as
|
|
@@ -1042,7 +1048,7 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1042
1048
|
# error results carrying the re-prompt — up to ENFORCE_MAX (2) times per turn, then the batch runs as-is (liveness). Finish batches
|
|
1043
1049
|
# (EndTurn) are exempt. Pair with CORTEX_TURN_CONTRACT=channel (the prompt half). Events: turn_contract_reject {iteration, rejects,
|
|
1044
1050
|
# max, missing, tools}, turn_contract_fallback. Default off = byte-identical.
|
|
1045
|
-
# [LEDGER 2026-09-17 @4.117.0] BUILT + unit-tested (turnContractValidator.test.ts).
|
|
1051
|
+
# [LEDGER 2026-09-17 @4.117.0] BUILT + unit-tested (turnContractValidator.test.ts). FIELD 09-17 (rerun-3 arm tc): DELIVERED, NULL — 22 rejections / 10 fallbacks, compliance 6% → ~95%, 0/12 vs control 1/12, output +9% (ledger §9).
|
|
1046
1052
|
#CORTEX_TURN_CONTRACT_ENFORCE=
|
|
1047
1053
|
#CORTEX_TURN_CONTRACT_ENFORCE_MAX=
|
|
1048
1054
|
# CORTEX_ACTION_PLAN_FIELDS — R172 HB-ACTION-PLAN-FIELDS (4.119.0, 2026-09-18, operator: "can we have the model output those as a structured
|
|
@@ -1054,6 +1060,7 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1054
1060
|
# before dispatch (executors + loop guards see bare params) and keep them in the canonical message, so every action's rationale is in
|
|
1055
1061
|
# the trajectory. Event action_plan_reject {iteration, rejects, missing}. Cost: a few dozen output tokens per call. Default off.
|
|
1056
1062
|
# [LEDGER 2026-09-18 @4.119.0] BUILT + unit-tested (turnContractValidator.test.ts R172). Field: PENDING (full-66 run arm vs control).
|
|
1063
|
+
# [LEDGER 2026-09-19 @4.119.1] FIELD, full TB4.0 (stack arm): 21 action_plan_reject events in 15/32 sampled sessions (enforced, model complied); outcome 12/62 vs control 12/62 — WASH. The Terminus "analysis+plan per action" half does not move flash here.
|
|
1057
1064
|
#CORTEX_ACTION_PLAN_FIELDS=
|
|
1058
1065
|
# CORTEX_JUDGE_TOOL_ROUNDS / CORTEX_JUDGE_TOOL_ROUND_BUDGET_MS — R170 HB-JUDGE-TOOL-LOOP (4.117.0, 2026-09-17). The v2 of
|
|
1059
1066
|
# docs/LIFT_MENTOR_PLANNER_EXPERIMENT_SPEC.md §2.2/§2.4 ("bounded tool-using mentor, turn-capped never token-capped"), built as a
|
|
@@ -1066,7 +1073,8 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1066
1073
|
# gone; an INVESTIGATE after withdrawal abstains (never re-loops). Investigation checks that pass count as evidence for R168.
|
|
1067
1074
|
# The thinking-on escalation is skipped when >1 round ran. Event endturn_resolver gains {toolRounds, roundsUsed, investigateChecks,
|
|
1068
1075
|
# investigateReads, investigateRefused, roundLatencyMs, evidenceChars}; `mentor` describes the LAST call. Default 1 = 4.116.2.
|
|
1069
|
-
# [LEDGER 2026-09-17 @4.117.0] BUILT + unit-tested (endTurnResolver.test.ts R170, judgeEvidence.test.ts R170).
|
|
1076
|
+
# [LEDGER 2026-09-17 @4.117.0] BUILT + unit-tested (endTurnResolver.test.ts R170, judgeEvidence.test.ts R170). FIELD 09-17: 4.117.0 arm VOID (closing line overrode the offer; fixed 4.117.1); 4.117.2 arm jl2 DELIVERED + ENGAGED (5/26 adjudications multi-round, 27 checks/reads) — 2/12 vs control 1/12, within noise (ledger §9).
|
|
1077
|
+
# [LEDGER 2026-09-19 @4.119.1] FIELD, full TB4.0 (62 tasks, 1 repeat, in the STACK arm with resolver reasoning on @high + R172 + mentor high): 12/62 vs control 12/62 — WASH (7 flips each way, p 1.0). Engaged: 2–3 rounds in 59/87 adjudications, 122 checks + 183 reads. Lever pile CLOSED for TB4.0; ledger r-tb4-full-f1-2026-09-18.md.
|
|
1070
1078
|
#CORTEX_JUDGE_TOOL_ROUNDS=
|
|
1071
1079
|
#CORTEX_JUDGE_TOOL_ROUND_BUDGET_MS=
|
|
1072
1080
|
# CORTEX_JUDGE_TOOL_AUTOLOOP — R170b (4.117.3, 2026-09-17, rerun-3 jl/jl2 field read). Offered INVESTIGATE (persona + closing
|
|
@@ -1075,8 +1083,34 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1075
1083
|
# verdict that names CHECK lines is treated as provisional — the harness runs them (read-only denylist), appends the EVIDENCE block
|
|
1076
1084
|
# ("your provisional verdict was …; decide again on these results") and asks once more; checks run in the loop are cached so the
|
|
1077
1085
|
# R166 evidence pass does not re-run them. Event endturn_resolver += {autoLooped, toolAutoLoop}. Needs ROUNDS >= 2. Default off.
|
|
1078
|
-
# [LEDGER 2026-09-17 @4.117.3] BUILT + unit-tested.
|
|
1086
|
+
# [LEDGER 2026-09-17 @4.117.3] BUILT + unit-tested. FIELD 09-17 (arm jl3): ENGAGED HARD (9/25 adjudications multi-round, 56 checks/reads), NULL — 1/12 vs control 1/12; the judge re-issues the same verdict on its own checks' results (ledger §9).
|
|
1079
1087
|
#CORTEX_JUDGE_TOOL_AUTOLOOP=
|
|
1088
|
+
# CORTEX_JUDGE_GAP_HOLD — R173 HB-GAP-HOLD (4.120.0, 2026-09-20; from the f1 curation r-tb4-f1-curation-2026-09-19.md: the judge often
|
|
1089
|
+
# named the real defect, the finish was accepted "with gap" because no harness-run check had FAILED (R166 evidence mode, effective veto
|
|
1090
|
+
# budget 1), and 96/100 failing sessions gave up with ~85% of the budget unused). With GAP_HOLD an evidence-mode GAP that names open
|
|
1091
|
+
# items is RETURNED to the junior — with or without a failed check — while >= CORTEX_BUDGET_CONTINUE_MIN_REMAINING of the wall budget
|
|
1092
|
+
# remains and the budgeted cap (MAX_REJECTS_BUDGETED, 6) allows; the R165 progress rules still apply (re-attest without progress →
|
|
1093
|
+
# one thinking-on escalation, then the finish stands). Below the floor, or with no deadline, R166 is unchanged. Event endturn_resolver
|
|
1094
|
+
# += {gapHold, gapHoldable}. Default off.
|
|
1095
|
+
# [LEDGER 2026-09-20 @4.120.0] BUILT + unit-tested (R173 block in endTurnResolver.test.ts). FIELD: pending (cell g1: control vs GAP_HOLD+SPEC_TESTS on the 29-task ever-passed cell ∪ the 13-task fixable pool).
|
|
1096
|
+
#CORTEX_JUDGE_GAP_HOLD=
|
|
1097
|
+
# CORTEX_JUDGE_GAP_HOLD_JEV / _MIN — R173b (4.120.0): typed gate on the hold via TypeSafe Jev (fixable_with_more_turns noul over the
|
|
1098
|
+
# task + the reviewer's items + the budget; ~0.3 s, $0.042/M input, zero output tokens; measured AUC 0.72 / ECE 0.06 on 262 sessions).
|
|
1099
|
+
# off (default) | shadow (bank jevFixable on the event, no control-flow change) | gate (hold only when P >= _MIN, default 0.3; fail-closed
|
|
1100
|
+
# to R166 when the call fails). Needs TYPESAFE_API_KEY in the executor env. The typed result changes control flow, never prose.
|
|
1101
|
+
# [LEDGER 2026-09-20 @4.120.0] BUILT + unit-tested (jevGate.test.ts). FIELD: shadow on cell g1 (bank the probabilities against the grader).
|
|
1102
|
+
#CORTEX_JUDGE_GAP_HOLD_JEV=
|
|
1103
|
+
#CORTEX_JUDGE_GAP_HOLD_JEV_MIN=
|
|
1104
|
+
# CORTEX_JUDGE_SPEC_TESTS / _MAX — R174 HB-SPEC-TESTS (4.120.0, 2026-09-20): BLIND spec-derived checks. At the first finish of a turn
|
|
1105
|
+
# a mentor call (endturn-resolver wire, its own persona) that sees ONLY the task text + environment report writes up to _MAX (4; 1..8)
|
|
1106
|
+
# read-only `CHECK:` commands that exit non-zero with a printed reason when a requirement the task states is unmet; the harness runs
|
|
1107
|
+
# them (R170 runner + denylist) at every adjudication, shows the results to the judge, and a FAILED spec check is objective evidence
|
|
1108
|
+
# for the veto (R166 checksFailed) — independent of the agent's own tests (83/100 failing sessions had their own test passing) and of
|
|
1109
|
+
# the judge's post-hoc checks (f1: 122 checks confirmed the agent's reading of the spec). Events: spec_tests {checks, genLatencyMs,
|
|
1110
|
+
# refused}; endturn_resolver += {specTests, specChecks, specRan, specPassed, specFailed, specInconclusive, specGenLatencyMs}. Default off.
|
|
1111
|
+
# [LEDGER 2026-09-20 @4.120.0] BUILT + unit-tested (R174 block in endTurnResolver.test.ts). FIELD: pending (cell g1).
|
|
1112
|
+
#CORTEX_JUDGE_SPEC_TESTS=
|
|
1113
|
+
#CORTEX_JUDGE_SPEC_TESTS_MAX=
|
|
1080
1114
|
# (no lever) R169 HB-NEARDUP-SCRATCH-STEM — REFUTED before shipping (2026-09-17, pilot-12 trajectory replay). The distiller's 16
|
|
1081
1115
|
# "repeated-identical-retry" candidates were re-read: the two stuck sessions (coq-block-bound base arm: `cat > /tmp/tN.v <<EOF` with a
|
|
1082
1116
|
# DIFFERENT proof body each attempt; rs-archive-clone: 191 distinct `python3 -c` bodies) are unconverged EXPLORATION, not retries —
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.120.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.
|
|
22
|
+
"@nexus-cortex/core": "4.120.0",
|
|
23
23
|
"chalk": "^4.1.2",
|
|
24
24
|
"cli-spinners": "^2.9.0",
|
|
25
25
|
"commander": "^11.0.0",
|