@nexus-cortex/cli 4.124.27 → 4.124.30
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/.cortex/orient +24 -0
- package/.env.defaults +23 -0
- package/package.json +2 -2
package/.cortex/orient
CHANGED
|
@@ -85,6 +85,30 @@ CHANGED
|
|
|
85
85
|
fi
|
|
86
86
|
BN=$(wc -l < "$W/.cortex/baseline.cksum" 2>/dev/null | tr -d ' ')
|
|
87
87
|
echo "-- baseline: ${BN:-0} files recorded at start; \`sh .cortex/changed\` lists files you modified/added/deleted. Before finishing, run it and revert every change the task did not require."
|
|
88
|
+
elif [ "${CORTEX_ORIENT_BASELINE:-0}" = "auto" ] && ! { command -v git >/dev/null 2>&1 && git -C "$W" rev-parse --is-inside-work-tree >/dev/null 2>&1; }; then
|
|
89
|
+
# auto (general work, 2026-09-27): a git repo already has `git status`, so skip it; otherwise keep the baseline OUTSIDE the project
|
|
90
|
+
# (the user's ~/.cortex, else /tmp), keyed by the workspace path, so nothing is written into the tree being worked on.
|
|
91
|
+
KEY=$(printf %s "$W" | cksum | cut -d' ' -f1)
|
|
92
|
+
BD="${HOME:-/tmp}/.cortex/baselines/$KEY"
|
|
93
|
+
mkdir -p "$BD" 2>/dev/null && [ -w "$BD" ] || { BD="${TMPDIR:-/tmp}/cortex-baselines/$KEY"; mkdir -p "$BD" 2>/dev/null; }
|
|
94
|
+
{ printf '#!/bin/sh\n# Lists files modified / added / deleted in %s since orient recorded its start state.\nW=%s\nB=%s\n' "$W" "'$W'" "'$BD/baseline.cksum'"
|
|
95
|
+
cat <<'CHANGED'
|
|
96
|
+
cd "$W" || exit 0
|
|
97
|
+
[ -f "$B" ] || { echo "no baseline recorded ($B missing)"; exit 0; }
|
|
98
|
+
T=$(mktemp 2>/dev/null || echo /tmp/cortex-now.$$)
|
|
99
|
+
find . \( -path ./.git -o -path ./.cortex -o -name node_modules -o -name __pycache__ -o -name .venv -o -name venv -o -name .cache -o -name .pytest_cache -o -name .mypy_cache \) -prune -o -type f -size -20M -print 2>/dev/null | head -20000 | tr '\n' '\0' | xargs -0 cksum 2>/dev/null > "$T"
|
|
100
|
+
awk 'function k( f) { f=$0; sub(/^[0-9]+[ \t]+[0-9]+[ \t]+/, "", f); return f }
|
|
101
|
+
NR==FNR { b[k()]=$1" "$2; next } { n[k()]=$1" "$2 } END {
|
|
102
|
+
for (f in n) { if (!(f in b)) print "added " f; else if (b[f] != n[f]) print "modified " f }
|
|
103
|
+
for (f in b) if (!(f in n)) print "deleted " f }' "$B" "$T" | sort -k2
|
|
104
|
+
rm -f "$T"
|
|
105
|
+
CHANGED
|
|
106
|
+
} > "$BD/changed" 2>/dev/null
|
|
107
|
+
if [ ! -f "$BD/baseline.cksum" ]; then
|
|
108
|
+
( cd "$W" && find . \( -path ./.git -o -path ./.cortex -o -name node_modules -o -name __pycache__ -o -name .venv -o -name venv -o -name .cache -o -name .pytest_cache -o -name .mypy_cache \) -prune -o -type f -size -20M -print 2>/dev/null | head -20000 | tr '\n' '\0' | xargs -0 cksum 2>/dev/null > "$BD/baseline.cksum" )
|
|
109
|
+
fi
|
|
110
|
+
BN=$(wc -l < "$BD/baseline.cksum" 2>/dev/null | tr -d ' ')
|
|
111
|
+
echo "-- baseline: ${BN:-0} files recorded at start (not a git repo); \`sh $BD/changed\` lists files you modified/added/deleted. Before finishing, run it and revert changes to existing files the task did not require."
|
|
88
112
|
fi
|
|
89
113
|
# Bare-box hint (2026-09-03, operator-simplified): a task container may ship WITHOUT the language, compiler,
|
|
90
114
|
# package or library the objective needs — on purpose (the agent phase is bare; internet is usually allowed).
|
package/.env.defaults
CHANGED
|
@@ -1124,6 +1124,20 @@ CORTEX_ENDTURN_GATE=true
|
|
|
1124
1124
|
# P<0.0001 vs per-task control rates; 4 always-pass tasks lost. The judge quotes a failing blind check (specFrac 0.17-0.25, below the veto
|
|
1125
1125
|
# fraction) as its own named check → ordinary veto → the agent reshapes correct output to the invented check. KEEP DARK; redesign so check
|
|
1126
1126
|
# text never reaches the judge/writer (r-mimo64-val-2026-09-27.md §2).
|
|
1127
|
+
# CORTEX_JUDGE_SPEC_TEXT — R174e (2026-09-27, in tree): shown (default) | hidden. Hidden removes the spec checks' TEXT from the judge prompt and
|
|
1128
|
+
# the writer's veto message: spec evidence acts only through the averaged fraction gate (R174d); a judge CHECK line that echoes a spec
|
|
1129
|
+
# check is not run as a named check (closes the namedFailed bypass the sp arm hit); a fraction hold over a MEETS gives the writer a neutral
|
|
1130
|
+
# "re-verify each stated requirement against the task's own entry points; change nothing the task did not ask for" lead.
|
|
1131
|
+
# [LEDGER 2026-09-27 in tree] DARK — unit-tested; efficacy UNMEASURED (needs a MiMo cell: spec tests on + hidden vs the 4.124.27 base).
|
|
1132
|
+
#CORTEX_JUDGE_SPEC_TEXT=
|
|
1133
|
+
# CORTEX_ENDTURN_REQ_COVERAGE — EndTurn Stage 4f requirement coverage (2026-09-27, in tree). Evidence: MiMo tb64 sweep, 186 failing hidden tests
|
|
1134
|
+
# in 111 failed sessions (.bench/mimo/fail-criteria-sweep-v2.jsonl, reasoning-first labels): 101 check a requirement the task states (72) or
|
|
1135
|
+
# implies (29), and the agent's own verification covered it only partially; 85 assert details the task never gives (AST shape, exact source
|
|
1136
|
+
# lines, hashes) — out of reach for any verification lever. Stage 4f extracts the task's OWN requirement clauses deterministically (bullets +
|
|
1137
|
+
# must/exactly/do-not/preserve/remain/unchanged/only sentences; 3–12 per MiMo task) and, once per turn, rejects a finish whose `requirements`
|
|
1138
|
+
# attestation leaves clauses uncovered, quoting them verbatim — no model, no invented check (the R174 lesson). Needs CORTEX_ENDTURN_REQUIREMENTS.
|
|
1139
|
+
# Banks `req_coverage` {clauses, uncovered, nudged}. [LEDGER 2026-09-27 in tree] DARK — unit + gate tests; efficacy UNMEASURED (MiMo cell).
|
|
1140
|
+
#CORTEX_ENDTURN_REQ_COVERAGE=
|
|
1127
1141
|
#CORTEX_JUDGE_SPEC_TESTS_SAMPLES=
|
|
1128
1142
|
#CORTEX_JUDGE_SPEC_VETO_FRAC=
|
|
1129
1143
|
# CORTEX_JUDGE_VETO_MIN_REMAINING / _GAP_HOLD_MIN_INTERVAL_MS / _GAP_HOLD_PLAN_MAX_SIMILARITY — R173c (4.121.0, 2026-09-20, cell g1
|
|
@@ -1766,6 +1780,8 @@ CORTEX_ORIENT_BOOTSTRAP=1
|
|
|
1766
1780
|
# the MiMo validation cell (4.124.26, orient-v2 arm vs spec-tests arm vs the 4.124.20 K=3 control 59.9%) decides it.
|
|
1767
1781
|
# [LEDGER 2026-09-27 @4.124.26] MiMo tb64 validation arm o2: 43/64 = 67.2% vs control 59.9% (K=3), +7.3 pts, P=0.019 vs per-task control
|
|
1768
1782
|
# rates (one run). Positive single run — replicate (K=2 more) before flipping the default (r-mimo64-val-2026-09-27.md).
|
|
1783
|
+
# [LEDGER 2026-09-27 @4.124.27] NOT REPLICATED: five sweep arms on o2 + edit-scope pair pooled 194/320 = 60.6% (control 59.9%); o2's 43/64 was
|
|
1784
|
+
# most likely a high draw (the pair could offset it — no o2-only replicate). Stays DARK.
|
|
1769
1785
|
#CORTEX_ORIENT_V2=
|
|
1770
1786
|
# CORTEX_ORIENT_BASELINE / CORTEX_LIFT_PLAN_SCOPE — edit-scope pair (2026-09-27, r-mimo64-val-2026-09-27.md §8). MiMo tb64: the grader's
|
|
1771
1787
|
# protected-file guard rejected 4-9 sessions per run (31 across 5 runs, ~10-14% of tasks) — a file outside the task's repair set was
|
|
@@ -1775,6 +1791,13 @@ CORTEX_ORIENT_BOOTSTRAP=1
|
|
|
1775
1791
|
# are modified; ends with the changed-files check.
|
|
1776
1792
|
# [LEDGER 2026-09-27 @4.124.27] DARK (both default off) — fixture-tested (dash; start state kept across orient re-runs; spaces in names);
|
|
1777
1793
|
# efficacy UNMEASURED: the MiMo reasoning sweep carries both ON with an o2+both base arm.
|
|
1794
|
+
# [LEDGER 2026-09-27 in tree] general-work variants (operator: "how will this work in interactive sessions or other benchmarks"):
|
|
1795
|
+
# CORTEX_LIFT_PLAN_SCOPE=adaptive (named files bind; tests/runners/fixtures/data in scope only when the task asks; revert EXISTING files only)
|
|
1796
|
+
# and CORTEX_ORIENT_BASELINE=auto (skip git repos; baseline stored outside the project in ~/.cortex/baselines, else /tmp). true / 1 are
|
|
1797
|
+
# unchanged = what the MiMo sweep measures. Scope only reaches headless sessions: the lift planner is skipped on a TTY unless
|
|
1798
|
+
# CORTEX_LIFT_PLAN_INTERACTIVE=true. DARK; validate adaptive/auto on TB2.1 or TB4.0 (build-style tasks) before any default.
|
|
1799
|
+
# [LEDGER 2026-09-27 @4.124.27] MiMo sweep (r-mimo64-sweep-2026-09-27.md): with SCOPE=true + BASELINE=1 on the o2 config, protected-file rejects
|
|
1800
|
+
# fell to 13/320 (4.1%) vs 31/320 (9.7%) in the five prior runs — mechanism works; pass rate unchanged (5 arms pooled 60.6% vs control 59.9%). DARK.
|
|
1778
1801
|
#CORTEX_ORIENT_BASELINE=
|
|
1779
1802
|
#CORTEX_LIFT_PLAN_SCOPE=
|
|
1780
1803
|
# [LEDGER 2026-09-02 @4.89.0] code default 30 (4.88.0) — 20 made the break rung (2N=24) unreachable; preserves 40%/80% density semantics.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/cli",
|
|
3
|
-
"version": "4.124.
|
|
3
|
+
"version": "4.124.30",
|
|
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.30",
|
|
23
23
|
"chalk": "^4.1.2",
|
|
24
24
|
"cli-spinners": "^2.9.0",
|
|
25
25
|
"commander": "^11.0.0",
|