@nexus-cortex/core 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 (51) hide show
  1. package/.env.defaults +27 -0
  2. package/dist/config/RuntimeConfigRegistry.d.ts.map +1 -1
  3. package/dist/config/RuntimeConfigRegistry.js +3 -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 +3 -0
  7. package/dist/config/SettingsLoader.js.map +1 -1
  8. package/dist/config/SettingsSchema.d.ts +3 -0
  9. package/dist/config/SettingsSchema.d.ts.map +1 -1
  10. package/dist/config/SettingsSchema.js +27 -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 +3 -0
  14. package/dist/config/effectiveConfig.js.map +1 -1
  15. package/dist/middleware/HelperModelMiddleware.d.ts +1 -1
  16. package/dist/middleware/HelperModelMiddleware.d.ts.map +1 -1
  17. package/dist/middleware/HelperModelMiddleware.js +4 -4
  18. package/dist/middleware/HelperModelMiddleware.js.map +1 -1
  19. package/dist/middleware/helpers/HelperMiddlewareAdapter.interface.d.ts +7 -2
  20. package/dist/middleware/helpers/HelperMiddlewareAdapter.interface.d.ts.map +1 -1
  21. package/dist/middleware/helpers/HelperMiddlewareAdapter.interface.js +10 -0
  22. package/dist/middleware/helpers/HelperMiddlewareAdapter.interface.js.map +1 -1
  23. package/dist/middleware/helpers/adapters/ChatCompletionsAPIHelperAdapter.d.ts +1 -1
  24. package/dist/middleware/helpers/adapters/ChatCompletionsAPIHelperAdapter.d.ts.map +1 -1
  25. package/dist/middleware/helpers/adapters/ChatCompletionsAPIHelperAdapter.js +2 -2
  26. package/dist/middleware/helpers/adapters/ChatCompletionsAPIHelperAdapter.js.map +1 -1
  27. package/dist/middleware/helpers/adapters/GenerateContentAPIHelperAdapter.d.ts +1 -1
  28. package/dist/middleware/helpers/adapters/GenerateContentAPIHelperAdapter.d.ts.map +1 -1
  29. package/dist/middleware/helpers/adapters/GenerateContentAPIHelperAdapter.js +2 -2
  30. package/dist/middleware/helpers/adapters/GenerateContentAPIHelperAdapter.js.map +1 -1
  31. package/dist/middleware/helpers/adapters/MessagesAPIHelperAdapter.d.ts +1 -1
  32. package/dist/middleware/helpers/adapters/MessagesAPIHelperAdapter.d.ts.map +1 -1
  33. package/dist/middleware/helpers/adapters/MessagesAPIHelperAdapter.js +2 -2
  34. package/dist/middleware/helpers/adapters/MessagesAPIHelperAdapter.js.map +1 -1
  35. package/dist/middleware/helpers/adapters/ResponsesAPIHelperAdapter.d.ts +1 -1
  36. package/dist/middleware/helpers/adapters/ResponsesAPIHelperAdapter.d.ts.map +1 -1
  37. package/dist/middleware/helpers/adapters/ResponsesAPIHelperAdapter.js +2 -2
  38. package/dist/middleware/helpers/adapters/ResponsesAPIHelperAdapter.js.map +1 -1
  39. package/dist/orchestrator/CortexOrchestrator.d.ts +6 -0
  40. package/dist/orchestrator/CortexOrchestrator.d.ts.map +1 -1
  41. package/dist/orchestrator/CortexOrchestrator.js +86 -15
  42. package/dist/orchestrator/CortexOrchestrator.js.map +1 -1
  43. package/dist/orchestrator/compactionResume.d.ts +22 -0
  44. package/dist/orchestrator/compactionResume.d.ts.map +1 -1
  45. package/dist/orchestrator/compactionResume.js +61 -3
  46. package/dist/orchestrator/compactionResume.js.map +1 -1
  47. package/dist/orchestrator/compactionResumeTemplate.d.ts +28 -0
  48. package/dist/orchestrator/compactionResumeTemplate.d.ts.map +1 -0
  49. package/dist/orchestrator/compactionResumeTemplate.js +91 -0
  50. package/dist/orchestrator/compactionResumeTemplate.js.map +1 -0
  51. package/package.json +3 -3
@@ -27,7 +27,29 @@ export interface CompactionResumeInput {
27
27
  resumeText: string;
28
28
  taskText: string;
29
29
  helperModelId?: string;
30
+ rebuild?: string;
31
+ memorySource?: 'checkpoint' | 'dropped' | 'rolled' | 'none';
30
32
  }
31
33
  /** The `<system-reminder>` prepended to the compacted history. */
32
34
  export declare function buildCompactionResumeReminder(i: CompactionResumeInput): string;
35
+ /** Recover the ORIGINAL TASK text from a prior compaction reminder (the task message itself is gone after the first compaction). */
36
+ export declare function extractTaskFromReminder(reminderText: string): string;
37
+ /**
38
+ * The task, from the first plain user message if it still exists, else from the newest compaction reminder in the history,
39
+ * else the pinned copy the orchestrator kept from an earlier compaction.
40
+ */
41
+ export declare function resolveTaskText(messages: any[], pinned: string, maxChars?: number): string;
42
+ /** Resume-memory size: ~10% of the compaction threshold, clamped to [1500, 6000] tokens (a forced 14K test window gets ~1.5K). */
43
+ export declare function resumeMemoryTargetTokens(threshold: number): number;
44
+ /**
45
+ * v3 (4.108.3, from the live proof): a checkpoint may be REUSED at compaction only if it already covered every message being
46
+ * dropped. The v2 rule compared token distance, which goes negative once a compaction shrinks the history — so one stale checkpoint
47
+ * was replayed into every later reminder and the model's progress after it was erased each time (27 compactions, 0 fresh memories).
48
+ */
49
+ export declare function coversAll(covered: WeakSet<object> | undefined, dropped: any[]): boolean;
50
+ /**
51
+ * v3: when the checkpoint is stale, the new summary must ROLL the prior memory forward — the helper sees the prior memory as the
52
+ * first message, then the newly dropped messages, and writes one memory covering both (otherwise each compaction forgets the last).
53
+ */
54
+ export declare function buildRollingSeedMessage(priorText: string): any;
33
55
  //# sourceMappingURL=compactionResume.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compactionResume.d.ts","sourceRoot":"","sources":["../../src/orchestrator/compactionResume.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,wBAAwB,wCAAwC,CAAC;AAE9E,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAGrF;AAmBD,8FAA8F;AAC9F,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAE/D;AAED;;;GAGG;AACH,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AS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC7D;AAED,kEAAkE;AAClE,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAkB9E;AAED,oIAAoI;AACpI,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAO,GAAG,MAAM,CAWxF;AAED,kIAAkI;AAClI,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGlE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,CAGvF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAU9D"}
@@ -58,14 +58,72 @@ export function pickDropped(all, kept) {
58
58
  export function buildCompactionResumeReminder(i) {
59
59
  const head = `${COMPACTION_RESUME_MARKER} at turn ${i.turn}: ${i.droppedCount} older message(s) (~${Math.max(0, i.tokensBefore - i.tokensAfter)} tokens) ` +
60
60
  `were removed from your context to stay within the model window; ${i.keptCount} recent message(s) were kept verbatim.]`;
61
+ const src = i.memorySource === 'checkpoint' ? 'at the pre-compaction checkpoint (whole conversation)'
62
+ : i.memorySource === 'rolled' ? 'from the removed messages, carrying the earlier resume memory forward'
63
+ : 'from the removed messages';
61
64
  const memory = i.resumeText.trim()
62
- ? `RESUME MEMORY (written by ${i.helperModelId ?? 'the helper model'} from the removed messages — decisions, artifacts, what worked, what failed, open plan):\n${i.resumeText.trim()}`
65
+ ? `RESUME MEMORY (written by ${i.helperModelId ?? 'the helper model'} ${src}):\n${i.resumeText.trim()}`
63
66
  : 'RESUME MEMORY: unavailable (the helper summary failed); rely on the files on disk and the recent messages below.';
64
67
  const task = i.taskText.trim()
65
68
  ? `ORIGINAL TASK (verbatim — this is still the goal):\n${i.taskText.trim()}`
66
69
  : 'ORIGINAL TASK: not recoverable from history; re-read any task file in the working directory.';
67
- const tail = 'Continue from the CURRENT state: files already written are on disk (re-read before editing), commands already run need not be repeated, ' +
68
- 'and completed sub-goals in the resume memory are done. Do not restart from scratch.</system-reminder>';
70
+ const tail = (i.rebuild && i.rebuild.trim()
71
+ ? i.rebuild.trim()
72
+ : 'Continue from the CURRENT state: files already written are on disk (re-read before editing), commands already run need not be repeated, ' +
73
+ 'and completed sub-goals in the resume memory are done. Do not restart from scratch.') + '</system-reminder>';
69
74
  return `${head}\n${memory}\n${task}\n${tail}`;
70
75
  }
76
+ /** Recover the ORIGINAL TASK text from a prior compaction reminder (the task message itself is gone after the first compaction). */
77
+ export function extractTaskFromReminder(reminderText) {
78
+ const m = reminderText.match(/ORIGINAL TASK \(verbatim[^\n]*\):\n([\s\S]*?)\n(?:REBUILD PROTOCOL|Continue from the CURRENT state)/);
79
+ return m && m[1] ? m[1].trim() : '';
80
+ }
81
+ /**
82
+ * The task, from the first plain user message if it still exists, else from the newest compaction reminder in the history,
83
+ * else the pinned copy the orchestrator kept from an earlier compaction.
84
+ */
85
+ export function resolveTaskText(messages, pinned, maxChars = 6000) {
86
+ const direct = extractFirstUserText(messages, maxChars);
87
+ if (direct)
88
+ return direct;
89
+ for (let i = (messages ?? []).length - 1; i >= 0; i--) {
90
+ const m = messages[i];
91
+ if (isCompactionResumeMessage(m)) {
92
+ const t = extractTaskFromReminder(textOf(m));
93
+ if (t)
94
+ return t;
95
+ }
96
+ }
97
+ return pinned || '';
98
+ }
99
+ /** Resume-memory size: ~10% of the compaction threshold, clamped to [1500, 6000] tokens (a forced 14K test window gets ~1.5K). */
100
+ export function resumeMemoryTargetTokens(threshold) {
101
+ if (!(threshold > 0))
102
+ return 6000;
103
+ return Math.max(1500, Math.min(6000, Math.floor(threshold * 0.1)));
104
+ }
105
+ /**
106
+ * v3 (4.108.3, from the live proof): a checkpoint may be REUSED at compaction only if it already covered every message being
107
+ * dropped. The v2 rule compared token distance, which goes negative once a compaction shrinks the history — so one stale checkpoint
108
+ * was replayed into every later reminder and the model's progress after it was erased each time (27 compactions, 0 fresh memories).
109
+ */
110
+ export function coversAll(covered, dropped) {
111
+ if (!covered)
112
+ return false;
113
+ return (dropped ?? []).every((m) => !!m && typeof m === 'object' && covered.has(m));
114
+ }
115
+ /**
116
+ * v3: when the checkpoint is stale, the new summary must ROLL the prior memory forward — the helper sees the prior memory as the
117
+ * first message, then the newly dropped messages, and writes one memory covering both (otherwise each compaction forgets the last).
118
+ */
119
+ export function buildRollingSeedMessage(priorText) {
120
+ const text = 'PRIOR RESUME MEMORY (already summarizes everything before the messages that follow — carry every DONE / OUTSTANDING / DECISION ' +
121
+ 'item forward unless the messages below supersede it):\n' + String(priorText ?? '').trim();
122
+ return {
123
+ uuid: `resume-seed-${Date.now().toString(36)}`,
124
+ timestamp: new Date().toISOString(),
125
+ type: 'user',
126
+ message: { role: 'user', content: [{ type: 'text', text }] },
127
+ };
128
+ }
71
129
  //# sourceMappingURL=compactionResume.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compactionResume.js","sourceRoot":"","sources":["../../src/orchestrator/compactionResume.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,qCAAqC,CAAC;AAE9E,oFAAoF;AACpF,MAAM,UAAU,uBAAuB,CAAC,MAAyB,OAAO,CAAC,GAAG;IAC1E,MAAM,CA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oC,EAAE,OAAc;IAC5E,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAC3B,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACtF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,SAAiB;IACvD,MAAM,IAAI,GACR,iIAAiI;QACjI,yDAAyD,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7F,OAAO;QACL,IAAI,EAAE,eAAe,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;QAC9C,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;KAC7D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * HB-COMPACTION-RESUME v2 (4.108.2, 2026-09-12) — the resume-memory PROTOCOL, ported from the operator's own
3
+ * `resume-session` skill (the routine used in Claude Code sessions for months: checkpoint BEFORE compaction,
4
+ * rebuild from the checkpoint AFTER). Three pieces:
5
+ * 1. `RESUME_MEMORY_PROMPT` — what the helper model writes at the pressure rung / at compaction (the skill's §2 template).
6
+ * 2. `buildRebuildInstructions` — the post-compaction wake protocol injected with the memory (the skill's §4).
7
+ * 3. `resolveCheckpointBand` — the pressure rung: checkpoint at N% of the compaction threshold, refreshed per band.
8
+ */
9
+ /** The skill's §2 template, addressed to the helper model. `{{CONVERSATION}}` is replaced with the history text. */
10
+ export declare const RESUME_MEMORY_PROMPT = "You are writing a RESUME MEMORY for an autonomous coding agent whose conversation context is about to be\ncompacted (older messages removed). The agent that continues will have ONLY this memory, the original task, and the\nmost recent few messages. Write it so that agent can continue with NO loss of useful work. Be concrete: real paths,\nreal commands, real values, verbatim error text. Never paraphrase a constraint. Target ~{{TARGET_TOKENS}} tokens.\n\nUse EXACTLY these sections:\n\n## 0. WORK ORDER \u2014 the task, VERBATIM\nQuote the user's task/instructions word for word (every constraint, every literal). If the task evolved, quote each user message in order.\n\n## 1. STATE \u2014 DONE (with evidence)\nBullet list of what is COMPLETE: files created/edited (absolute paths + what changed), commands run and their results,\ntests/verifications that passed, sub-goals satisfied. Mark anything only partially done as PARTIAL with what remains.\n\n## 2. STATE \u2014 OUTSTANDING, in order, with the exact next commands\nOrdered list of what remains. For each: the concrete next action (a command line, a file to edit and how, a check to run).\nThe first item is what the agent should do immediately after reading this.\n\n## 3. DECISIONS and REJECTED APPROACHES\nChoices made and why; approaches tried that FAILED, with the error text, so they are not repeated.\n\n## 4. ARTIFACTS and POINTERS\nEvery path that matters (source files, outputs, logs, temp dirs), key line numbers, environment facts (installed tools,\nversions, ports, credentials locations \u2014 never the secret values), and any external state (services started, containers).\n\n## 5. TRAPS\nGotchas discovered (environment quirks, flaky commands, wrong assumptions corrected). One line each.\n\n## 6. CURRENT WORK \u2014 the last few actions\nWhat was happening right before this memory was written (last tool calls and their results), so the agent can pick up mid-step.\n\nCONVERSATION HISTORY:\n{{CONVERSATION}}\n\nWrite the resume memory now (sections 0\u20136, nothing else):";
11
+ /** The skill's §4 wake protocol, spoken to the resumed agent. */
12
+ export declare function buildRebuildInstructions(): string;
13
+ /**
14
+ * Pressure rung: the checkpoint band. `pct` = fraction of the compaction threshold at which the FIRST checkpoint is
15
+ * written (default 0.75, env CORTEX_COMPACTION_CHECKPOINT_PCT); after that a refresh happens every `stepPct` of the
16
+ * threshold (default 0.10). Returns the band index the current token count is in (0 = below the first rung), so the
17
+ * caller checkpoints exactly once per band.
18
+ */
19
+ export declare function resolveCheckpointBand(currentTokens: number, threshold: number, env?: NodeJS.ProcessEnv): number;
20
+ /** Fill the prompt template. */
21
+ export declare function renderResumeMemoryPrompt(conversationText: string, targetTokens: number): string;
22
+ /**
23
+ * v3 (4.108.3): the band to re-arm the rung at AFTER a compaction. The memory is fresh at that moment, so later cycles need only
24
+ * the LAST rung before the threshold (one whole-conversation helper call per cycle, not one per band — each call summarizes the
25
+ * whole history, which at a 747K threshold is a ~$0.1 helper call). Returns max(band at the post-compaction level, lastBand − 1).
26
+ */
27
+ export declare function resolveRearmBand(tokensAfter: number, threshold: number, env?: NodeJS.ProcessEnv): number;
28
+ //# sourceMappingURL=compactionResumeTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compactionResumeTemplate.d.ts","sourceRoot":"","sources":["../../src/orchestrator/compactionResumeTemplate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oHAAoH;AACpH,eAAO,MAAM,oBAAoB,4gEAkCyB,CAAC;AAE3D,iEAAiE;AACjE,wBAAgB,wBAAwB,IAAI,MAAM,CASjD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,CAOR;AAQD,gCAAgC;AAChC,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAE/F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,CAIR"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * HB-COMPACTION-RESUME v2 (4.108.2, 2026-09-12) — the resume-memory PROTOCOL, ported from the operator's own
3
+ * `resume-session` skill (the routine used in Claude Code sessions for months: checkpoint BEFORE compaction,
4
+ * rebuild from the checkpoint AFTER). Three pieces:
5
+ * 1. `RESUME_MEMORY_PROMPT` — what the helper model writes at the pressure rung / at compaction (the skill's §2 template).
6
+ * 2. `buildRebuildInstructions` — the post-compaction wake protocol injected with the memory (the skill's §4).
7
+ * 3. `resolveCheckpointBand` — the pressure rung: checkpoint at N% of the compaction threshold, refreshed per band.
8
+ */
9
+ /** The skill's §2 template, addressed to the helper model. `{{CONVERSATION}}` is replaced with the history text. */
10
+ export const RESUME_MEMORY_PROMPT = `You are writing a RESUME MEMORY for an autonomous coding agent whose conversation context is about to be
11
+ compacted (older messages removed). The agent that continues will have ONLY this memory, the original task, and the
12
+ most recent few messages. Write it so that agent can continue with NO loss of useful work. Be concrete: real paths,
13
+ real commands, real values, verbatim error text. Never paraphrase a constraint. Target ~{{TARGET_TOKENS}} tokens.
14
+
15
+ Use EXACTLY these sections:
16
+
17
+ ## 0. WORK ORDER — the task, VERBATIM
18
+ Quote the user's task/instructions word for word (every constraint, every literal). If the task evolved, quote each user message in order.
19
+
20
+ ## 1. STATE — DONE (with evidence)
21
+ Bullet list of what is COMPLETE: files created/edited (absolute paths + what changed), commands run and their results,
22
+ tests/verifications that passed, sub-goals satisfied. Mark anything only partially done as PARTIAL with what remains.
23
+
24
+ ## 2. STATE — OUTSTANDING, in order, with the exact next commands
25
+ Ordered list of what remains. For each: the concrete next action (a command line, a file to edit and how, a check to run).
26
+ The first item is what the agent should do immediately after reading this.
27
+
28
+ ## 3. DECISIONS and REJECTED APPROACHES
29
+ Choices made and why; approaches tried that FAILED, with the error text, so they are not repeated.
30
+
31
+ ## 4. ARTIFACTS and POINTERS
32
+ Every path that matters (source files, outputs, logs, temp dirs), key line numbers, environment facts (installed tools,
33
+ versions, ports, credentials locations — never the secret values), and any external state (services started, containers).
34
+
35
+ ## 5. TRAPS
36
+ Gotchas discovered (environment quirks, flaky commands, wrong assumptions corrected). One line each.
37
+
38
+ ## 6. CURRENT WORK — the last few actions
39
+ What was happening right before this memory was written (last tool calls and their results), so the agent can pick up mid-step.
40
+
41
+ CONVERSATION HISTORY:
42
+ {{CONVERSATION}}
43
+
44
+ Write the resume memory now (sections 0–6, nothing else):`;
45
+ /** The skill's §4 wake protocol, spoken to the resumed agent. */
46
+ export function buildRebuildInstructions() {
47
+ return ('REBUILD PROTOCOL — do these in order before new work: ' +
48
+ '(1) Re-read the WORK ORDER above; that is still the goal. ' +
49
+ '(2) Trust the files on disk over this memory: verify the state of every artifact in §4 (ls / cat / git status / the check commands in §2) before acting on it. ' +
50
+ '(3) Do NOT redo anything listed as DONE in §1; do NOT retry anything listed as REJECTED in §3. ' +
51
+ '(4) Start with §2 item 1. ' +
52
+ '(5) If something in this memory contradicts what you observe, the observation wins — note the discrepancy and continue.');
53
+ }
54
+ /**
55
+ * Pressure rung: the checkpoint band. `pct` = fraction of the compaction threshold at which the FIRST checkpoint is
56
+ * written (default 0.75, env CORTEX_COMPACTION_CHECKPOINT_PCT); after that a refresh happens every `stepPct` of the
57
+ * threshold (default 0.10). Returns the band index the current token count is in (0 = below the first rung), so the
58
+ * caller checkpoints exactly once per band.
59
+ */
60
+ export function resolveCheckpointBand(currentTokens, threshold, env = process.env) {
61
+ if (!(threshold > 0) || !(currentTokens > 0))
62
+ return 0;
63
+ const pct = clampPct(env.CORTEX_COMPACTION_CHECKPOINT_PCT, 0.75);
64
+ const step = clampPct(env.CORTEX_COMPACTION_CHECKPOINT_STEP, 0.10, 0.02, 0.5);
65
+ const ratio = currentTokens / threshold;
66
+ if (ratio < pct)
67
+ return 0;
68
+ return 1 + Math.floor((ratio - pct) / step + 1e-9); // epsilon: 0.85-0.75 is 0.0999… in binary
69
+ }
70
+ function clampPct(raw, dflt, lo = 0.3, hi = 0.99) {
71
+ const n = Number(String(raw ?? '').trim());
72
+ if (!Number.isFinite(n) || n <= 0)
73
+ return dflt;
74
+ return Math.min(hi, Math.max(lo, n));
75
+ }
76
+ /** Fill the prompt template. */
77
+ export function renderResumeMemoryPrompt(conversationText, targetTokens) {
78
+ return RESUME_MEMORY_PROMPT.replace('{{TARGET_TOKENS}}', String(targetTokens)).replace('{{CONVERSATION}}', conversationText);
79
+ }
80
+ /**
81
+ * v3 (4.108.3): the band to re-arm the rung at AFTER a compaction. The memory is fresh at that moment, so later cycles need only
82
+ * the LAST rung before the threshold (one whole-conversation helper call per cycle, not one per band — each call summarizes the
83
+ * whole history, which at a 747K threshold is a ~$0.1 helper call). Returns max(band at the post-compaction level, lastBand − 1).
84
+ */
85
+ export function resolveRearmBand(tokensAfter, threshold, env = process.env) {
86
+ if (!(threshold > 0))
87
+ return 0;
88
+ const lastBand = resolveCheckpointBand(threshold * 0.999999, threshold, env);
89
+ return Math.max(resolveCheckpointBand(tokensAfter, threshold, env), Math.max(0, lastBand - 1));
90
+ }
91
+ //# sourceMappingURL=compactionResumeTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compactionResumeTemplate.js","sourceRoot":"","sources":["../../src/orchestrator/compactionResumeTemplate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oHAAoH;AACpH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAkCsB,CAAC;AAE3D,iEAAiE;AACjE,MAAM,UAAU,wBAAwB;IACtC,OAAO,CACL,wDAAwD;QACxD,4DAA4D;QAC5D,iKAAiK;QACjK,iGAAiG;QACjG,4BAA4B;QAC5B,yHAAyH,CAC1H,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,aAAqB,EACrB,SAAiB,EACjB,MAAyB,OAAO,CAAC,GAAG;IAEpC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IACvD,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,gCAAgC,EAAE,IAAI,CAAC,CAAC;IACjE,MAAM,IAAI,GAAG,QAAQ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7E,OAAO,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;AACjG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/core",
3
- "version": "4.108.1",
3
+ "version": "4.108.3",
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.108.1",
51
- "@nexus-cortex/types": "4.108.1",
50
+ "@nexus-cortex/executors": "4.108.3",
51
+ "@nexus-cortex/types": "4.108.3",
52
52
  "@types/uuid": "^10.0.0",
53
53
  "ajv": "^8.12.0",
54
54
  "chokidar": "^3.6.0",