@nexus-cortex/core 4.124.10 → 4.124.12

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 (51) hide show
  1. package/.env.defaults +39 -0
  2. package/dist/config/RuntimeConfigRegistry.d.ts.map +1 -1
  3. package/dist/config/RuntimeConfigRegistry.js +6 -0
  4. package/dist/config/RuntimeConfigRegistry.js.map +1 -1
  5. package/dist/config/SettingsLoader.d.ts.map +1 -1
  6. package/dist/config/SettingsLoader.js +6 -0
  7. package/dist/config/SettingsLoader.js.map +1 -1
  8. package/dist/config/SettingsSchema.d.ts +6 -0
  9. package/dist/config/SettingsSchema.d.ts.map +1 -1
  10. package/dist/config/SettingsSchema.js +14 -0
  11. package/dist/config/SettingsSchema.js.map +1 -1
  12. package/dist/config/effectiveConfig.d.ts.map +1 -1
  13. package/dist/config/effectiveConfig.js +6 -0
  14. package/dist/config/effectiveConfig.js.map +1 -1
  15. package/dist/frames/chooser.d.ts +8 -9
  16. package/dist/frames/chooser.d.ts.map +1 -1
  17. package/dist/frames/chooser.js +17 -68
  18. package/dist/frames/chooser.js.map +1 -1
  19. package/dist/frames/frameConfig.d.ts +2 -1
  20. package/dist/frames/frameConfig.d.ts.map +1 -1
  21. package/dist/frames/frameConfig.js +4 -3
  22. package/dist/frames/frameConfig.js.map +1 -1
  23. package/dist/frames/frameRunner.d.ts.map +1 -1
  24. package/dist/frames/frameRunner.js +6 -7
  25. package/dist/frames/frameRunner.js.map +1 -1
  26. package/dist/frames/terminusFrame.d.ts +2 -0
  27. package/dist/frames/terminusFrame.d.ts.map +1 -1
  28. package/dist/frames/terminusFrame.js +5 -4
  29. package/dist/frames/terminusFrame.js.map +1 -1
  30. package/dist/middleware/HelperModelMiddleware.d.ts +11 -0
  31. package/dist/middleware/HelperModelMiddleware.d.ts.map +1 -1
  32. package/dist/middleware/HelperModelMiddleware.js +18 -0
  33. package/dist/middleware/HelperModelMiddleware.js.map +1 -1
  34. package/dist/orchestrator/CortexOrchestrator.d.ts +12 -0
  35. package/dist/orchestrator/CortexOrchestrator.d.ts.map +1 -1
  36. package/dist/orchestrator/CortexOrchestrator.js +134 -4
  37. package/dist/orchestrator/CortexOrchestrator.js.map +1 -1
  38. package/dist/tools/registries/BaseToolRegistry.d.ts.map +1 -1
  39. package/dist/tools/registries/BaseToolRegistry.js +2 -1
  40. package/dist/tools/registries/BaseToolRegistry.js.map +1 -1
  41. package/dist/training/DecisionStore.d.ts +1 -1
  42. package/dist/training/DecisionStore.d.ts.map +1 -1
  43. package/dist/training/endTurnResolver.d.ts +9 -0
  44. package/dist/training/endTurnResolver.d.ts.map +1 -1
  45. package/dist/training/endTurnResolver.js +6 -1
  46. package/dist/training/endTurnResolver.js.map +1 -1
  47. package/dist/training/requirementLedger.d.ts +84 -0
  48. package/dist/training/requirementLedger.d.ts.map +1 -0
  49. package/dist/training/requirementLedger.js +155 -0
  50. package/dist/training/requirementLedger.js.map +1 -0
  51. package/package.json +3 -3
@@ -0,0 +1,155 @@
1
+ /**
2
+ * R187 HB-REQUIREMENT-LEDGER (2026-09-23) — the consistency lever the top-7 read named.
3
+ *
4
+ * Field (tb4-consistency-top7-2026-09-23.md): five of the seven tasks flash passes ≥50% of the time fail on a requirement the TASK TEXT
5
+ * STATES — a contract branch, a numeric threshold, an exactness rule, a latency bound, a do-not-change constraint — and the failing run
6
+ * finishes EARLIER than the passing run with more budget left, the resolver accepting, because the writer's own checks test the path it
7
+ * chose and the stated requirement was never exercised.
8
+ *
9
+ * The ledger: at lift the mentor extracts each stated requirement as a typed LINE with a read-only shell CHECK where one exists; the writer
10
+ * sees the ledger with its plan; at every finish the harness runs the checks, marks each line exercised / failed / open / unverifiable;
11
+ * a FAILED line is evidence for the normal veto (R166), and a finish that would otherwise stand while a line is still OPEN is held ONCE
12
+ * with the open lines named. Sibling of the R174 blind spec checks (commands only, no lines, no hold on "unexercised").
13
+ * Everything decision-shaped is pure here; the orchestrator does the wiring.
14
+ */
15
+ const KINDS = ['threshold', 'contract', 'exactness', 'constraint', 'latency', 'artifact', 'command', 'other'];
16
+ export const REQ_LEDGER_SYSTEM = 'You extract the REQUIREMENT LEDGER of a task in a real terminal container BEFORE any solution exists. You are given only the TASK text ' +
17
+ 'and an ENVIRONMENT REPORT. List every requirement the task STATES that a hidden grader could check — numeric thresholds (recall ≥ 0.96), ' +
18
+ 'contract branches (a duplicate submission must not rewrite the ledger), exactness rules (positions must be exact), constraints (the DOM ' +
19
+ 'must not change), latency bounds (within 5 s after a respawn), required artifacts (a file at a path in a format), commands that must ' +
20
+ 'work. One line per requirement, most discriminating first, quoting or closely paraphrasing the task. For each, give a read-only shell ' +
21
+ 'CHECK that EXITS NON-ZERO with a printed reason when that requirement is NOT met (prefer the task\'s own artifacts, paths, commands and ' +
22
+ 'numbers; a check may run a program twice, diff against a baseline, or time a command; never create, modify or delete anything; no ' +
23
+ 'installs; under 20 seconds), or the word NONE when no shell check can decide it. Output ONLY lines of the form ' +
24
+ '`REQ <n> | <kind> | <requirement> | CHECK: <command or NONE>` where <kind> is one of threshold, contract, exactness, constraint, latency, ' +
25
+ 'artifact, command, other. Nothing else.';
26
+ export function buildRequirementLedgerPrompt(task, envReport, max) {
27
+ const parts = [`TASK:\n${(task || '').trim().slice(0, 6000)}`];
28
+ if (envReport && envReport.trim())
29
+ parts.push(`ENVIRONMENT REPORT (at task start):\n${envReport.trim().slice(0, 2500)}`);
30
+ parts.push(`Write at most ${max} REQ lines. Example:\nREQ 1 | contract | a second identical submission must not rewrite crm_leads.json | CHECK: cp /app/data/crm_leads.json /tmp/a.json && npm run -s submit >/dev/null 2>&1; cmp -s /app/data/crm_leads.json /tmp/a.json || { echo "ledger rewritten by a duplicate submit"; exit 1; }`);
31
+ return parts.join('\n\n');
32
+ }
33
+ /** Parse `REQ <n> | <kind> | <text> | CHECK: <cmd|NONE>` lines; tolerant of bullets/backticks; dedup by text; cap. Pure. */
34
+ export function parseRequirementLedger(text, max = 8) {
35
+ const out = [];
36
+ const seen = new Set();
37
+ for (const raw of (text || '').split('\n')) {
38
+ const m = raw.match(/^\s*(?:[-*]|\d+[.)])?\s*REQ\s*[-#]?\s*(\w+)\s*\|\s*([a-zA-Z_-]+)\s*\|\s*(.+?)\s*\|\s*CHECK:\s*(.*?)\s*$/i);
39
+ if (!m)
40
+ continue;
41
+ const kindRaw = m[2].toLowerCase();
42
+ const kind = (KINDS.includes(kindRaw) ? kindRaw : 'other');
43
+ const reqText = m[3].replace(/^`+|`+$/g, '').trim().slice(0, 240);
44
+ let check = m[4].replace(/^`+|`+$/g, '').trim();
45
+ if (!check || /^none\b/i.test(check))
46
+ check = null;
47
+ if (check && check.length > 400)
48
+ check = check.slice(0, 400);
49
+ const key = reqText.toLowerCase();
50
+ if (!reqText || seen.has(key))
51
+ continue;
52
+ seen.add(key);
53
+ out.push({ id: `R${out.length + 1}`, kind, text: reqText, check });
54
+ if (out.length >= max)
55
+ break;
56
+ }
57
+ return out;
58
+ }
59
+ export function initLedger(lines) {
60
+ return lines.map((l) => ({ ...l, status: l.check ? 'open' : 'unverifiable', runs: 0 }));
61
+ }
62
+ /** Apply one round of check results. passed → exercised; failed → failed; inconclusive (timeout, refused, no exit) leaves the status. Pure. */
63
+ export function updateLedger(entries, results) {
64
+ const by = new Map(results.map((r) => [r.id, r]));
65
+ return entries.map((e) => {
66
+ const r = by.get(e.id);
67
+ if (!r || !e.check)
68
+ return e;
69
+ const status = r.cls === 'passed' ? 'exercised' : r.cls === 'failed' ? 'failed' : e.status;
70
+ return { ...e, status, runs: e.runs + 1, lastResult: r.result.slice(0, 1200) };
71
+ });
72
+ }
73
+ export function ledgerCounts(entries) {
74
+ const c = { lines: entries.length, open: 0, exercised: 0, failed: 0, unverifiable: 0 };
75
+ for (const e of entries)
76
+ c[e.status] += 1;
77
+ return c;
78
+ }
79
+ /** May an OPEN (never exercised) line hold a finish that would otherwise stand? Once per session by default, never below the budget floor. Pure. */
80
+ export function ledgerHoldable(input) {
81
+ if (input.open <= 0)
82
+ return false;
83
+ if (input.holdsUsed >= input.maxHolds)
84
+ return false;
85
+ if (input.minRemaining > 0 && input.remainingFrac !== null && input.remainingFrac < input.minRemaining)
86
+ return false;
87
+ return true;
88
+ }
89
+ /** The ledger as the writer sees it at lift (with the plan). Pure. */
90
+ export function formatLedgerForWriter(entries) {
91
+ if (!entries.length)
92
+ return '';
93
+ const lines = entries.map((e) => `${e.id} [${e.kind}] ${e.text}${e.check ? `\n harness check: ${e.check}` : '\n (no shell check — prove it in your EndTurn attestation with the command you ran and its output)'}`);
94
+ return `REQUIREMENT LEDGER — every requirement the task STATES, extracted before your work. Each line must be EXERCISED (run the thing it names ` +
95
+ `and see the result) before you finish; the harness runs the checks at your finish and holds a finish with a line still open.\n${lines.join('\n')}`;
96
+ }
97
+ /** The ledger block the judge sees among the harness-run checks. Pure. */
98
+ export function formatLedgerForJudge(entries) {
99
+ if (!entries.length)
100
+ return '';
101
+ return `REQUIREMENT LEDGER (stated requirements, extracted from the TASK before any work; harness-run checks just now):\n` +
102
+ entries.map((e) => `${e.id} [${e.kind}] ${e.status.toUpperCase()} — ${e.text}${e.lastResult ? `\n ${e.lastResult.split('\n').slice(0, 3).join(' / ').slice(0, 300)}` : ''}`).join('\n');
103
+ }
104
+ /** The hold message when a finish would stand with OPEN lines. Pure. */
105
+ export function formatLedgerHoldMessage(input) {
106
+ const open = input.entries.filter((e) => e.status === 'open');
107
+ const failed = input.entries.filter((e) => e.status === 'failed');
108
+ const pct = input.remainingFrac === null ? '' : ` (${Math.round(input.remainingFrac * 100)}% of the budget remains)`;
109
+ const body = open.map((e) => `- ${e.id} [${e.kind}] ${e.text}\n exercise it now: ${e.check}${e.lastResult ? `\n last harness run: ${e.lastResult.split('\n').slice(0, 2).join(' / ').slice(0, 240)}` : ''}`).join('\n');
110
+ const failedBody = failed.length ? `\n\nAlready FAILED by a harness run (fix these too):\n${failed.map((e) => `- ${e.id} ${e.text}`).join('\n')}` : '';
111
+ return `EndTurn HELD (requirement ledger, hold ${input.holdIndex}/${input.maxHolds})${pct} — the task states requirements you have not exercised yet. ` +
112
+ `Run each one, read the result, fix what it shows, then call EndTurn again with the command and its output in your attestation.\n\n${body}${failedBody}`;
113
+ }
114
+ /** The state Jev reads: the task, the ledger lines to decide, the writer's attestation, and the harness outputs. Pure. */
115
+ export function buildLedgerJevState(input) {
116
+ const pending = input.entries.filter((e) => e.status === 'open' || e.status === 'unverifiable');
117
+ return {
118
+ task_instruction: String(input.task ?? '').slice(0, 6000),
119
+ requirements_to_decide: pending.map((e) => ({ id: e.id, kind: e.kind, requirement: e.text, harness_check: e.check ?? 'none (no shell check possible)', harness_result: e.lastResult ? e.lastResult.slice(0, 600) : 'not run / inconclusive' })),
120
+ writer_attestation: String(input.attestation ?? '').slice(0, 4000),
121
+ work_product_tail: String(input.workProduct ?? '').slice(-3000),
122
+ };
123
+ }
124
+ /** One noul per pending line: exercised AND met, on the evidence shown. Pure. */
125
+ export function buildLedgerJevQuestions(entries) {
126
+ const q = {};
127
+ for (const e of entries) {
128
+ if (e.status !== 'open' && e.status !== 'unverifiable')
129
+ continue;
130
+ q[`met_${e.id}`] = { type: 'noul', instructions: `Requirement ${e.id} (${e.kind}): "${e.text.slice(0, 200)}". Judging ONLY from the writer's attestation, the work product tail and the harness result shown, was this requirement actually EXERCISED (the writer ran the thing it names and observed the result) AND is it MET? Answer no if the attestation merely asserts it, names no command or output, or the evidence contradicts it.` };
131
+ }
132
+ return q;
133
+ }
134
+ /** Apply Jev's answers: a pending line at or above the threshold becomes exercised (provenance jev). Pure. */
135
+ export function applyLedgerJevAnswers(entries, answers, threshold = 0.7) {
136
+ if (!answers)
137
+ return { entries, closed: [], asked: 0 };
138
+ const closed = [];
139
+ let asked = 0;
140
+ const out = entries.map((e) => {
141
+ if (e.status !== 'open' && e.status !== 'unverifiable')
142
+ return e;
143
+ const p = answers[`met_${e.id}`];
144
+ if (typeof p !== 'number')
145
+ return e;
146
+ asked += 1;
147
+ if (p >= threshold) {
148
+ closed.push(e.id);
149
+ return { ...e, status: 'exercised', lastResult: `${e.lastResult ? e.lastResult + '\n' : ''}jev: met (${p.toFixed(2)}) on the attestation + harness evidence` };
150
+ }
151
+ return { ...e, lastResult: `${e.lastResult ? e.lastResult + '\n' : ''}jev: not shown met (${p.toFixed(2)})` };
152
+ });
153
+ return { entries: out, closed, asked };
154
+ }
155
+ //# sourceMappingURL=requirementLedger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requirementLedger.js","sourceRoot":"","sources":["../../src/training/requirementLedger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,MAAM,KAAK,GAAc,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AAEzH,MAAM,CAAC,MAAM,iBAAiB,GAC5B,yIAAyI;IACzI,2IAA2I;IAC3I,0IAA0I;IAC1I,uIAAuI;IACvI,wIAAwI;IACxI,0IAA0I;IAC1I,oIAAoI;IACpI,iHAAiH;IACjH,4IAA4I;IAC5I,yCAAyC,CAAC;AAE5C,MAAM,UAAU,4BAA4B,CAAC,IAAY,EAAE,SAA6B,EAAE,GAAW;IACnG,MAAM,KAAK,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/D,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE;QAAE,KAAK,CAAC,IAAI,CAAC,wCAAwC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IACzH,KAAK,CAAC,IAAI,CAAC,iBAAiB,GAAG,ySAAyS,CAAC,CAAC;IAC1U,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC;AAED,4HAA4H;AAC5H,MAA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
3
- "version": "4.124.10",
3
+ "version": "4.124.12",
4
4
  "description": "Core orchestration library implementing Claude CLI architecture patterns",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -47,8 +47,8 @@
47
47
  "@google/generative-ai": "^0.2.1",
48
48
  "@gradio/client": "^2.3.1",
49
49
  "@modelcontextprotocol/sdk": "^1.20.2",
50
- "@nexus-cortex/executors": "4.124.10",
51
- "@nexus-cortex/types": "4.124.10",
50
+ "@nexus-cortex/executors": "4.124.12",
51
+ "@nexus-cortex/types": "4.124.12",
52
52
  "@types/uuid": "^10.0.0",
53
53
  "ajv": "^8.12.0",
54
54
  "chokidar": "^3.6.0",