@nexus-cortex/cli 4.108.1 → 4.108.3

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 +27 -0
  2. package/package.json +2 -2
package/.env.defaults CHANGED
@@ -740,7 +740,34 @@ CORTEX_ENDTURN_GATE=true
740
740
  # reminder is appended to the session JSONL, and .cortex/memory/resume-<session>.md is written. false = the old silent drop.
741
741
  # [LEDGER 2026-09-12 @4.108.0] BUILT + unit-tested (compactionResume.test.ts); UNMEASURED on a bench — the first TB4.0 (8-h budget) run on
742
742
  # 4.108.x is the field test (count `compaction` events per session; compare pass rate on tasks that compacted vs the 4.107.2 VM run).
743
+ # [LEDGER 2026-09-12 @4.108.3] LIVE-PROVED (forced 14K threshold, deepseek-flash, /tmp/claude-1000/cmp-test/run.sh): reminder + verbatim task
744
+ # pin + rebuild protocol on every compaction; resume file written; facts survived 6 compactions (4/4). The hardened proof (task working set
745
+ # > window) found the v2 stale-checkpoint replay (fixed, v3 rolling memory) and that the anti-loop stack fights chunked reads
746
+ # (HB-CHUNKED-READS, open) — a task whose working set exceeds the window still degrades; that is the model's problem class, not this lever's.
743
747
  #CORTEX_COMPACTION_RESUME=
748
+ # CORTEX_COMPACTION_CHECKPOINT_PCT / _STEP — the PRESSURE RUNG (4.108.2): the resume memory of the WHOLE conversation is written by the
749
+ # helper model at PCT (default 0.75) of the compaction threshold — BEFORE any drop, the way the operator's resume-session routine checkpoints
750
+ # at ~85% of the window — and refreshed every STEP (default 0.10). At compaction a checkpoint younger than 15% of the threshold is reused
751
+ # (no second helper call); otherwise the dropped messages are summarized. The memory uses the resume-session template (WORK ORDER verbatim,
752
+ # DONE, OUTSTANDING with next commands, DECISIONS/REJECTED, ARTIFACTS, TRAPS, CURRENT WORK) and the reminder ends with the REBUILD PROTOCOL.
753
+ # [LEDGER 2026-09-12 @4.108.2] BUILT + unit-tested (compactionResumeTemplate.test.ts); UNMEASURED on a bench — field read = `compaction` events
754
+ # with mode checkpoint|proactive and memorySource checkpoint|dropped per session on the first 4.108.2 TB4.0 run.
755
+ # [LEDGER 2026-09-12 @4.108.3] v3: reuse is gated on COVERAGE (the checkpoint summarized every dropped message), else the prior memory is
756
+ # ROLLED forward with the dropped messages (memorySource `rolled`); the rung RE-ARMS after each compaction so the last band before the
757
+ # threshold refires every cycle (one whole-conversation helper call per cycle). Live: 28 compactions / 28 fresh covering checkpoints /
758
+ # 0 stale replays (proof run 6). The v2 rule (token distance) replayed ONE stale memory into 27 compactions — never ship a reuse test on tokens.
759
+ #CORTEX_COMPACTION_CHECKPOINT_PCT=
760
+ #CORTEX_COMPACTION_CHECKPOINT_STEP=
761
+ # CORTEX_COMPACTION_THRESHOLD_TOKENS — TEST/OPS OVERRIDE of the compaction threshold (4.108.3). Unset (default) = the threshold is derived
762
+ # from the model card's context window (the ~747K/1M rung). Set = that many tokens becomes the compaction threshold and the kept-history
763
+ # budget is half of it, so the whole compaction path (checkpoint rung → helper resume memory → proactive drop → reminder + rebuild protocol)
764
+ # can be exercised in minutes on a small task instead of after hours of an 8-h bench task. NOT a tuning lever for production: a low value
765
+ # discards history the model still needs. The resume memory is sized to ~10% of the threshold (clamp 1500–6000 tokens) so a small threshold
766
+ # does not produce a memory larger than the history it replaces.
767
+ # [LEDGER 2026-09-12 @4.108.3] BUILT + unit-tested (compactionResume.test.ts: resumeMemoryTargetTokens, resolveTaskText); used by the LIVE
768
+ # proof (/tmp/claude-1000/cmp-test/run.sh, deepseek-flash, threshold 14000, rung 0.6): checkpoint fired, 6 proactive compactions in 17
769
+ # iterations (5 reused the checkpoint at $0), task pinned verbatim in every reminder, final answer 4/4 planted facts — mechanism proven.
770
+ #CORTEX_COMPACTION_THRESHOLD_TOKENS=
744
771
 
745
772
  # CORTEX_DELEGATION_HINT — DARK (4.108.1, HB-DELEGATION-DOCTRINE). true = the boot-minimal prompt gains ONE clause naming the Task tool for
746
773
  # large / independent / output-heavy sub-tasks (delegate with a self-contained prompt, continue from the summary). The Task tool is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/cli",
3
- "version": "4.108.1",
3
+ "version": "4.108.3",
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.108.1",
22
+ "@nexus-cortex/core": "4.108.3",
23
23
  "chalk": "^4.1.2",
24
24
  "cli-spinners": "^2.9.0",
25
25
  "commander": "^11.0.0",