@nexus-cortex/server 4.124.64 → 4.124.66

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.
@@ -85,7 +85,7 @@ pkill -9 -f "node dist/index.js" 2>/dev/null; sleep 2
85
85
  ps -eo pid,args | grep "[d]ist/index.js" && echo "ZOMBIE — kill -9" || echo "clean"
86
86
 
87
87
  # Start stateless (CRITICAL — persistent mode leaks context across probes)
88
- cd /home/runner/workspace/omniclaude-v4/packages/server && \
88
+ cd "$CORTEX_ROOT/packages/server" && \ # CORTEX_ROOT = the nexus-cortex checkout
89
89
  DEBUG=true \
90
90
  MENTORSHIP_ENABLED=false \
91
91
  ENABLE_SERVER_SIDE_TOOLS=true \
@@ -358,7 +358,7 @@ Most benchmarks compare JSON from `/v1/messages` — but that **cannot see what
358
358
  **Use the native `TmuxSession` tool** (proven method — same one used during the earlier active-improvement rounds; it wraps `TmuxCapture.ts`/`TmuxManager.ts`, stores metadata in `.cortex/tmux-sessions/`, binary via `TMUX_BIN`). The tool exposes **create → send commands → capture output → list → kill**. The agentic flow:
359
359
 
360
360
  1. `TmuxSession create` — a persistent session sized like a real terminal (e.g. 200×50; also test 80×24 — different widths expose different wrapping/overflow bugs).
361
- 2. `TmuxSession send` → `cd /home/runner/workspace/omniclaude-v4 && neoncortex` (Ink UI; or `cortex-cli`). Wait for boot.
361
+ 2. `TmuxSession send` → `cd "$CORTEX_ROOT" && neoncortex` (Ink UI; or `cortex-cli`). Wait for boot.
362
362
  3. `TmuxSession send` → the prompt that exercises the rendering under test (e.g. *"Show a markdown table of the 5 cheapest models with a fenced code example"*). Wait for the stream to finish.
363
363
  4. `TmuxSession capture` — **this captured pane IS the metric.** It's the human-visible truth; the raw model text is NOT (a model can emit perfect markdown the TUI then mangles — only the capture shows it).
364
364
  5. Evaluate the capture for **frontend-design deficiencies**, treating the render as a real UI surface (hierarchy, alignment, contrast, density — not just "did text appear"):
@@ -390,10 +390,10 @@ Then compare all 4 answers side-by-side and report discrepancies.
390
390
 
391
391
  ## Location Reference
392
392
 
393
- - Server: `/home/runner/workspace/omniclaude-v4/packages/server/dist/index.js`
393
+ - Server: `$CORTEX_ROOT/packages/server/dist/index.js`
394
394
  - Server log: `/tmp/omniclaude-server.log`
395
- - Bench results / deficiency ledgers: `/home/runner/workspace/omniclaude-v4/.cortex/bench/`
396
- - Routing matrix (the metric store): `/home/runner/workspace/omniclaude-v4/.cortex/router-matrix.jsonl`
395
+ - Bench results / deficiency ledgers: `$CORTEX_ROOT/.cortex/bench/`
396
+ - Routing matrix (the metric store): `$CORTEX_ROOT/.cortex/router-matrix.jsonl`
397
397
  - **Cortex skill (load it — full tool/subsystem reference incl. `TmuxSession`, `WorkspaceManager`):** `.agents/skills/cortex/SKILL.md`
398
398
  - **Worktree/team proven pattern:** `WorkspaceManagerTool` (core: `tools/definitions/`, executor: `executors/.../execution/`) + memory `agent-team-workspace`
399
399
  - **TUI capture proven pattern:** `TmuxSession` tool, `TmuxCapture.ts` / `TmuxManager.ts`, sessions in `.cortex/tmux-sessions/`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/server",
3
- "version": "4.124.64",
3
+ "version": "4.124.66",
4
4
  "description": "Thin Express server wrapper for Nexus Cortex core library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
21
21
  },
22
22
  "dependencies": {
23
- "@nexus-cortex/core": "4.124.64",
24
- "@nexus-cortex/executors": "4.124.64",
23
+ "@nexus-cortex/core": "4.124.66",
24
+ "@nexus-cortex/executors": "4.124.66",
25
25
  "chalk": "^5.3.0",
26
26
  "cors": "^2.8.5",
27
27
  "dotenv": "^16.4.5",
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "id": "p3h-impl-intervals",
4
- "taskType": "T2",
5
- "prompt": "In /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p3-anchor, create src/intervals.js exporting mergeIntervals(list) for [start,end] integer pairs: sort by start and merge OVERLAPPING intervals only — intervals that merely TOUCH (end === next start) must NOT be merged. Throw a TypeError if any pair has end < start. Create src/intervals.test.js (plain Node) printing 'PASS <label>'/'FAIL <label>' per check, covering: [[1,5],[4,8]] -> [[1,8]]; [[1,5],[5,8]] -> [[1,5],[5,8]] (touching stays split); [[3,4],[1,2],[2,3]] -> [[1,2],[2,3],[3,4]]; [[1,0]] throws TypeError. Run it and reply with the full test output.",
6
- "verifier": { "type": "regex", "pattern": "PASS[\\s\\S]*PASS[\\s\\S]*PASS[\\s\\S]*PASS" }
7
- },
8
- {
9
- "id": "p3h-trace-canontools",
10
- "taskType": "T3",
11
- "prompt": "In this repository (omniclaude-v4), for the canon cross-harness tool-mapping layer: (1) which exported constant maps canonical tool concepts to per-harness tool names, (2) which exported type enumerates the harness names, and (3) what is the EXACT grok-build tool name mapped to the edit_file concept? Cite exact identifiers.",
12
- "verifier": { "type": "contains", "all": ["TOOL_CONCEPTS", "HarnessName", "search_replace"], "caseInsensitive": false }
13
- }
14
- ]
@@ -1,32 +0,0 @@
1
- [
2
- {
3
- "id": "p3-fix-ledger",
4
- "taskType": "T2",
5
- "prompt": "The Node project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p3-anchor has MULTIPLE independent bugs. First run `git -C /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p3-anchor checkout -- .` to reset it. Read README.md for the business rules, then find and fix ALL bugs in src/ledger.js so `node src/run.js` prints the correct summary for the data in src/run.js. Do not modify src/run.js or the data. Actually edit the file, run it to verify, and reply with the exact final JSON line it prints.",
6
- "verifier": { "type": "contains", "all": ["\"first\":\"bolts\"", "\"latest\":\"12\"", "\"page1Count\":3", "19.15"], "caseInsensitive": false }
7
- },
8
- {
9
- "id": "p3-impl-duration",
10
- "taskType": "T2",
11
- "prompt": "In /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p3-anchor, create src/duration.js exporting parseDuration(str) -> total seconds. Rules: str is 1-3 components in strict h,m,s ORDER (e.g. '2h45m10s', '90m', '1h5s'); integers only — reject decimals like '1.5h'; reject unknown units, wrong order (e.g. '10s2h'), empty string, and repeated units, all by throwing a TypeError. Then create src/duration.test.js using plain Node asserts that prints one line per check, 'PASS <label>' or 'FAIL <label>', covering: parseDuration('2h45m10s')===9910, parseDuration('90m')===5400, parseDuration('1h5s')===3605, '1.5h' throws TypeError, '10s2h' throws TypeError. Run it and reply with the full test output.",
12
- "verifier": { "type": "regex", "pattern": "PASS[\\s\\S]*PASS[\\s\\S]*PASS[\\s\\S]*PASS[\\s\\S]*PASS" }
13
- },
14
- {
15
- "id": "p3-trace-gemini-thinking",
16
- "taskType": "T3",
17
- "prompt": "In this repository (omniclaude-v4), trace how tunable Gemini thinking is plumbed to the wire. Report: (1) the exact helper method used to write the nested request param, (2) the exact dotted param path written into the request, (3) the exact model-card field whose value rides that path. Cite exact identifiers from the code.",
18
- "verifier": { "type": "contains", "all": ["setNestedParam", "generationConfig.thinkingConfig.thinkingLevel", "defaultEffort"], "caseInsensitive": false }
19
- },
20
- {
21
- "id": "p3-trace-searchtools-widening",
22
- "taskType": "T3",
23
- "prompt": "In this repository (omniclaude-v4), for the CLI harness deferred-tool path: after the model calls SearchTools, (1) which ClientSideToolFilter method records the discovered tool names, (2) which filter method does the orchestrator re-run before the continuation request so the discovered schemas enter the tools array, and (3) if the model calls a standard-tier tool COLD (never discovered via SearchTools), is the call executed or refused at dispatch? Answer (3) with exactly one word: 'executed' or 'refused'. Cite exact identifiers for (1) and (2).",
24
- "verifier": { "type": "contains", "all": ["recordDiscoveredTools", "getFilteredTools", "executed"], "caseInsensitive": true }
25
- },
26
- {
27
- "id": "p3-count-essential",
28
- "taskType": "T3",
29
- "prompt": "In this repository, count EXACTLY how many tool registrations in packages/core/src/tools/registries/BaseToolRegistry.ts carry discoveryTier: 'essential'. Be exhaustive — do not estimate. Reply with a line of the form 'COUNT: <n>'.",
30
- "verifier": { "type": "contains", "all": ["COUNT: 14"], "caseInsensitive": true }
31
- }
32
- ]
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "id": "p2h-refactor-discount",
4
- "taskType": "T2",
5
- "prompt": "In the project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile (run `git -C /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile checkout -- .` first, then re-apply the known fixes: loop bound < and pct/100), refactor src/inventory.js to add a new exported function netTotal(items, pct) that composes totalValue and applyDiscount, update src/report.js to ALSO print {\"net\": netTotal(items, 20)} on a second line, run it, and reply with both output lines.",
6
- "verifier": { "type": "contains", "all": ["\"discounted\":40", "\"net\":40"], "caseInsensitive": true }
7
- },
8
- {
9
- "id": "p2h-harness-usage-trace",
10
- "taskType": "T3",
11
- "prompt": "In this repository, packages/core/src/adapters/GatewayTranslationLayer.ts extracts token usage. Report: (1) the exact interface field that carries tokens read from cache, (2) which provider convention EXCLUDES cached tokens from its reported input_tokens (name the provider), (3) the field name added 2026-08 that carries reasoning token counts. Cite exact identifiers.",
12
- "verifier": { "type": "contains", "all": ["cacheReadTokens", "anthropic", "reasoningTokens"], "caseInsensitive": true }
13
- }
14
- ]
@@ -1,26 +0,0 @@
1
- [
2
- {
3
- "id": "p2-debug-fix-inventory",
4
- "taskType": "T2",
5
- "prompt": "The Node project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile has a bug: `node src/report.js` crashes. First run `git -C /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile checkout -- .` to reset the fixture. Then find and FIX all bugs in src/inventory.js so report.js prints the mathematically correct result for the data in src/report.js (a 20% discount means the customer pays 80%). Actually edit the file, run report.js to verify, and reply with the final JSON line it prints.",
6
- "verifier": { "type": "contains", "all": ["\"total\":50", "\"discounted\":40"], "caseInsensitive": true }
7
- },
8
- {
9
- "id": "p2-multifile-trace",
10
- "taskType": "T3",
11
- "prompt": "In this repository, trace the CORTEX_TOOL_PROFILE feature end to end and report: (1) the exact function name that filters a tool list by profile, (2) the file where the filter is applied inside getAllTools, (3) the two tool names that are ALWAYS retained regardless of profile, (4) the field name stamped into decision records for the active profile. Cite exact identifiers.",
12
- "verifier": { "type": "contains", "all": ["applyToolProfile", "ToolFactory", "EndTurn", "AskUserQuestion", "toolProfile"], "caseInsensitive": false }
13
- },
14
- {
15
- "id": "p2-write-tested-util",
16
- "taskType": "T2",
17
- "prompt": "In the project at /home/runner/workspace/omniclaude-v4/.cortex/bench/fixtures/p2-tool-profile, create a new file src/median.js exporting a function median(nums) that returns the median of a numeric array (average of two middles for even length; throw a TypeError on empty input). Then create src/median.test.js that requires it and asserts median([1,3,2])===2, median([1,2,3,4])===2.5, and that median([]) throws — printing PASS for each assertion that holds and FAIL otherwise, using plain Node (no test framework). Run it with node and reply with the full test output.",
18
- "verifier": { "type": "regex", "pattern": "PASS[\\s\\S]*PASS[\\s\\S]*PASS" }
19
- },
20
- {
21
- "id": "p2-cross-module-count",
22
- "taskType": "T3",
23
- "prompt": "Across packages/core/src/training in this repository, determine: (1) which file computes the FWER-adjusted alpha threshold and the exact function name, (2) which file auto-stamps experimentTag from CORTEX_EXPERIMENT_TAG into benchmark records, (3) the name of the verdict field that reports distinct task families. Cite exact identifiers.",
24
- "verifier": { "type": "contains", "all": ["mcFwerThreshold", "AutoResearchStats", "ModelRouterMatrix", "familiesCovered"], "caseInsensitive": false }
25
- }
26
- ]