@nexus-cortex/cli 4.124.59 → 4.124.61
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 +26 -0
- package/package.json +2 -2
package/.env.defaults
CHANGED
|
@@ -626,6 +626,13 @@ CORTEX_LIFT_PLAN=true
|
|
|
626
626
|
# [LEDGER 2026-09-27] MiMo K=3 wire (banked `mentor`, 192 lift plans): pro thinking-on @max median 108 s, p90 166 s, 15/192 thinking-off retries — 12–22% of a 900 s MiMo agent budget. e6 (09-18) found no effort level separating (max 10/28, high 12/29, none 11/29 at 10× faster lift); max buys nothing measured. Candidate: CORTEX_LIFT_PLAN_REASONING=none (operator decision).
|
|
627
627
|
#CORTEX_LIFT_PLAN_EFFORT=max
|
|
628
628
|
#CORTEX_LIFT_PLAN_BUDGET_TOKENS=4000
|
|
629
|
+
# [LEDGER 2026-10-06] TRAP: this lever governs ONLY the orchestrator's outer wait (withTimeout around generateTaskPlan); the helper's own
|
|
630
|
+
# first-call abort (the one that fires at 180 s and triggers the thinking-OFF truncated retry) follows the per-effort thinking table
|
|
631
|
+
# (mentorRole THINKING_TIMEOUT_MS max=300 s × FIRST_CALL_SHARE 0.6) because the lift-plan mentor config is resolved WITHOUT a timeoutMs
|
|
632
|
+
# input (HelperModelMiddleware ~1617). The 10-05 cap cell set this to 1,000,000 and every abort still recorded firstCallTimeoutMs 180,000.
|
|
633
|
+
# Workaround = CORTEX_MENTOR_THINKING_TIMEOUT_MS (all thinking-on surfaces); proper fix = pass this lever into the lift-plan mentor resolve.
|
|
634
|
+
# [LEDGER 2026-10-06 @4.124.60] FIXED — the lift-plan mentor resolve now receives this lever as timeoutMs, so the first-call abort = 0.6 ×
|
|
635
|
+
# max(this, thinking table): 1,000,000 → 600 s (mentorRole.test.ts). Cells may drop the CORTEX_MENTOR_THINKING_TIMEOUT_MS workaround.
|
|
629
636
|
#CORTEX_LIFT_PLAN_TIMEOUT_MS=90000
|
|
630
637
|
#CORTEX_LIFT_PLAN_INTERACTIVE=false
|
|
631
638
|
#CORTEX_LIFT_PLAN_RECON_TIMEOUT_MS=8000
|
|
@@ -1044,6 +1051,21 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1044
1051
|
# the disclosed max. Cards now 393,216 → an unset lever sends 393,216. Use this lever to pin a LOWER cap (e.g. 65536 to reproduce the
|
|
1045
1052
|
# old behaviour as a control, 131072 = the provider's max-effort default). Pairs with CORTEX_HTTP_TIMEOUT_MS (below).
|
|
1046
1053
|
#CORTEX_OUTPUT_CAP_TOKENS=
|
|
1054
|
+
# CORTEX_WALL_RETRY_LADDER / CORTEX_WALL_FORCE_ACTION_AT — HB-WALL-RETRY-LADDER (R241/R240, 2026-10-06, DARK). Under the 393,216 cap every
|
|
1055
|
+
# wall of the 10-05 TB4 cell was a degenerate repetition loop (40/40) and the retry re-looped from its first tokens at full price; DeepSeek has
|
|
1056
|
+
# no server-side cycle breaker in thinking mode (probed 10-06: penalties deprecated, temperature inert, stop sequences never reach
|
|
1057
|
+
# reasoning_content). LADDER = max_tokens for the retry after the n-th exhaustion wall of a turn ("65536,16384": wall 1 → 65,536, wall 2+ →
|
|
1058
|
+
# 16,384; last rung repeats; never above the request's own cap). FORCE_ACTION_AT (default 2) = from that wall on the retry carries
|
|
1059
|
+
# tool_choice:required, which the gateway turns into thinking OFF on DeepSeek → the model must emit a tool call (probed 10-06: works
|
|
1060
|
+
# mid-conversation, thinking resumes next call; costs ONE uncached prefix read). Exhaustion kinds only, never a no-tools nudge. R240 rides
|
|
1061
|
+
# along: the retry's usage is now counted in the session ledger. Events: wall_retry_ladder {wallIndex, cap, forceAction, iteration}.
|
|
1062
|
+
# [LEDGER 2026-10-06 @4.124.60] DARK — BUILT + unit/integration-tested (wallRetryLadder.test.ts, wallGuard.integration.test.ts); first arm pending.
|
|
1063
|
+
# [LEDGER 2026-10-06 @4.124.60 WIRE-PROVEN] local headless session through the capture proxy (OUTPUT_CAP 1200, LADDER 1150,1100, FORCE_AT 2):
|
|
1064
|
+
# wall 1 (iter 5) → retry max_tokens 1150, no forced choice; wall 2 (iter 7) → retry max_tokens 1100 + tool_choice "required" +
|
|
1065
|
+
# thinking {type: disabled} on the wire → the model acted and finished the task. Events wall_retry_ladder {wallIndex 1 cap 1150}, {wallIndex 2
|
|
1066
|
+
# cap 1100 forceAction true}. Note: with CORTEX_REASONING_EXHAUST_BACKOFF unset the retry effort also stepped down (bundle sets it false).
|
|
1067
|
+
#CORTEX_WALL_RETRY_LADDER=
|
|
1068
|
+
#CORTEX_WALL_FORCE_ACTION_AT=2
|
|
1047
1069
|
# CORTEX_HTTP_TIMEOUT_MS — HTTP timeout for the NON-STREAMING chat call (2026-10-05). The openai SDK default (600 s, 2 retries) bounds the
|
|
1048
1070
|
# whole response body; a 384K-token thinking turn decodes 20–70 min, so the default would abort it and retry at double cost. Unset =
|
|
1049
1071
|
# derived from the request's max_tokens at 50 tok/s with a 600-s floor (65,536 → 1,311 s; 393,216 → 7,864 s); integer ms overrides.
|
|
@@ -2079,6 +2101,10 @@ MENTORSHIP_ACTIVE_DISCOVERY=false
|
|
|
2079
2101
|
# accepted stream_options (200; usage on the final chunk WITH finish_reason, not a separate choices:[] chunk). The prefix
|
|
2080
2102
|
# harness cannot reach the streaming builders.
|
|
2081
2103
|
#CORTEX_STREAM_USAGE=
|
|
2104
|
+
# [LEDGER 2026-10-06 @4.124.61 R238] The chat-completions stream's finalMessage now SETTLES on any early exit (consumer break / abort /
|
|
2105
|
+
# throw) with the partial message: finish_reason 'aborted', content + reasoning_content + tool_calls accumulated so far, x_partial: true,
|
|
2106
|
+
# x_estimated_output_tokens (chars/4 — the provider usage chunk never arrives on an abort), x_error on a throw. Natural end byte-identical.
|
|
2107
|
+
# Unblocks an on-stream loop detector with abort (plan P1/P3). Messages and Responses readers untouched.
|
|
2082
2108
|
# CORTEX_OPENAI_TOOLS_REASONING — HB-OPENAI-TOOLS-REASONING (DARK, 2026-10-02; stack-portability N1). OpenAI reasoning cards never declare
|
|
2083
2109
|
# reasoning.toggleable, so the gateway withheld the request/action effort (CORTEX_ACTION_EFFORT was a NOOP on every OpenAI path).
|
|
2084
2110
|
# on: the gateway forwards the effort for OpenAI reasoning cards → Responses `reasoning.effort` (+ summary auto). Chat/completions is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/cli",
|
|
3
|
-
"version": "4.124.
|
|
3
|
+
"version": "4.124.61",
|
|
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.124.
|
|
22
|
+
"@nexus-cortex/core": "4.124.61",
|
|
23
23
|
"chalk": "^4.1.2",
|
|
24
24
|
"cli-spinners": "^2.9.0",
|
|
25
25
|
"commander": "^11.0.0",
|