@nexus-cortex/core 4.108.2 → 4.108.4
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/.env.defaults +22 -0
- package/dist/config/RuntimeConfigRegistry.d.ts.map +1 -1
- package/dist/config/RuntimeConfigRegistry.js +1 -0
- package/dist/config/RuntimeConfigRegistry.js.map +1 -1
- package/dist/config/SettingsLoader.d.ts.map +1 -1
- package/dist/config/SettingsLoader.js +1 -0
- package/dist/config/SettingsLoader.js.map +1 -1
- package/dist/config/SettingsSchema.d.ts +1 -0
- package/dist/config/SettingsSchema.d.ts.map +1 -1
- package/dist/config/SettingsSchema.js +9 -0
- package/dist/config/SettingsSchema.js.map +1 -1
- package/dist/config/effectiveConfig.d.ts.map +1 -1
- package/dist/config/effectiveConfig.js +1 -0
- package/dist/config/effectiveConfig.js.map +1 -1
- package/dist/orchestrator/CortexOrchestrator.d.ts +6 -0
- package/dist/orchestrator/CortexOrchestrator.d.ts.map +1 -1
- package/dist/orchestrator/CortexOrchestrator.js +82 -16
- package/dist/orchestrator/CortexOrchestrator.js.map +1 -1
- package/dist/orchestrator/compactionResume.d.ts +27 -1
- package/dist/orchestrator/compactionResume.d.ts.map +1 -1
- package/dist/orchestrator/compactionResume.js +74 -2
- package/dist/orchestrator/compactionResume.js.map +1 -1
- package/dist/orchestrator/compactionResumeTemplate.d.ts +9 -1
- package/dist/orchestrator/compactionResumeTemplate.d.ts.map +1 -1
- package/dist/orchestrator/compactionResumeTemplate.js +20 -2
- package/dist/orchestrator/compactionResumeTemplate.js.map +1 -1
- package/dist/system-messages/SystemReminderInjector.d.ts +3 -1
- package/dist/system-messages/SystemReminderInjector.d.ts.map +1 -1
- package/dist/system-messages/SystemReminderInjector.js +5 -2
- package/dist/system-messages/SystemReminderInjector.js.map +1 -1
- package/package.json +3 -3
|
@@ -28,8 +28,34 @@ export interface CompactionResumeInput {
|
|
|
28
28
|
taskText: string;
|
|
29
29
|
helperModelId?: string;
|
|
30
30
|
rebuild?: string;
|
|
31
|
-
memorySource?: 'checkpoint' | 'dropped' | 'none';
|
|
31
|
+
memorySource?: 'checkpoint' | 'dropped' | 'rolled' | 'none';
|
|
32
|
+
workspaceState?: string;
|
|
32
33
|
}
|
|
33
34
|
/** The `<system-reminder>` prepended to the compacted history. */
|
|
34
35
|
export declare function buildCompactionResumeReminder(i: CompactionResumeInput): string;
|
|
36
|
+
/** Recover the ORIGINAL TASK text from a prior compaction reminder (the task message itself is gone after the first compaction). */
|
|
37
|
+
export declare function extractTaskFromReminder(reminderText: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* The task, from the first plain user message if it still exists, else from the newest compaction reminder in the history,
|
|
40
|
+
* else the pinned copy the orchestrator kept from an earlier compaction.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveTaskText(messages: any[], pinned: string, maxChars?: number): string;
|
|
43
|
+
/** Resume-memory size: ~10% of the compaction threshold, clamped to [1500, 6000] tokens (a forced 14K test window gets ~1.5K). */
|
|
44
|
+
export declare function resumeMemoryTargetTokens(threshold: number): number;
|
|
45
|
+
/**
|
|
46
|
+
* v3 (4.108.3, from the live proof): a checkpoint may be REUSED at compaction only if it already covered every message being
|
|
47
|
+
* dropped. The v2 rule compared token distance, which goes negative once a compaction shrinks the history — so one stale checkpoint
|
|
48
|
+
* was replayed into every later reminder and the model's progress after it was erased each time (27 compactions, 0 fresh memories).
|
|
49
|
+
*/
|
|
50
|
+
export declare function coversAll(covered: WeakSet<object> | undefined, dropped: any[]): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* v3: when the checkpoint is stale, the new summary must ROLL the prior memory forward — the helper sees the prior memory as the
|
|
53
|
+
* first message, then the newly dropped messages, and writes one memory covering both (otherwise each compaction forgets the last).
|
|
54
|
+
*/
|
|
55
|
+
export declare function buildRollingSeedMessage(priorText: string): any;
|
|
56
|
+
/** 4.108.4: the resume file is a first-class memory — index it in `.cortex/MEMORY.md` exactly as MemoryWrite would. */
|
|
57
|
+
export declare const MEMORY_INDEX_HEADER = "# Memory\n\nCurated index \u2014 one line per memory; detail lives in `.cortex/memory/<name>.md`\n(use MemoryRecall to load one).\n";
|
|
58
|
+
export declare function memoryIndexLine(name: string, description: string): string;
|
|
59
|
+
/** Pure: replace any existing line for `name` (matched by its `(memory/<name>.md)` marker) with `line`; empty content gets the header. */
|
|
60
|
+
export declare function upsertMemoryIndex(content: string, name: string, line: string | null): string;
|
|
35
61
|
//# 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,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,QAAQ,SAAO,GAAG,MAAM,CAS7E;AAED,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAGvD;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,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,G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E,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;AAED,uHAAuH;AACvH,eAAO,MAAM,mBAAmB,wIACkG,CAAC;AAEnI,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,0IAA0I;AAC1I,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAM5F"}
|
|
@@ -58,17 +58,89 @@ 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)'
|
|
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';
|
|
62
64
|
const memory = i.resumeText.trim()
|
|
63
65
|
? `RESUME MEMORY (written by ${i.helperModelId ?? 'the helper model'} ${src}):\n${i.resumeText.trim()}`
|
|
64
66
|
: 'RESUME MEMORY: unavailable (the helper summary failed); rely on the files on disk and the recent messages below.';
|
|
65
67
|
const task = i.taskText.trim()
|
|
66
68
|
? `ORIGINAL TASK (verbatim — this is still the goal):\n${i.taskText.trim()}`
|
|
67
69
|
: 'ORIGINAL TASK: not recoverable from history; re-read any task file in the working directory.';
|
|
70
|
+
const ws = i.workspaceState && i.workspaceState.trim()
|
|
71
|
+
? `WORKSPACE STATE (read from disk at this compaction — your own edits so far):\n${i.workspaceState.trim()}\n`
|
|
72
|
+
: '';
|
|
68
73
|
const tail = (i.rebuild && i.rebuild.trim()
|
|
69
74
|
? i.rebuild.trim()
|
|
70
75
|
: 'Continue from the CURRENT state: files already written are on disk (re-read before editing), commands already run need not be repeated, ' +
|
|
71
76
|
'and completed sub-goals in the resume memory are done. Do not restart from scratch.') + '</system-reminder>';
|
|
72
|
-
return `${head}\n${memory}\n${task}\n${tail}`;
|
|
77
|
+
return `${head}\n${memory}\n${ws}${task}\n${tail}`;
|
|
78
|
+
}
|
|
79
|
+
/** Recover the ORIGINAL TASK text from a prior compaction reminder (the task message itself is gone after the first compaction). */
|
|
80
|
+
export function extractTaskFromReminder(reminderText) {
|
|
81
|
+
const m = reminderText.match(/ORIGINAL TASK \(verbatim[^\n]*\):\n([\s\S]*?)\n(?:REBUILD PROTOCOL|Continue from the CURRENT state)/);
|
|
82
|
+
return m && m[1] ? m[1].trim() : '';
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The task, from the first plain user message if it still exists, else from the newest compaction reminder in the history,
|
|
86
|
+
* else the pinned copy the orchestrator kept from an earlier compaction.
|
|
87
|
+
*/
|
|
88
|
+
export function resolveTaskText(messages, pinned, maxChars = 6000) {
|
|
89
|
+
const direct = extractFirstUserText(messages, maxChars);
|
|
90
|
+
if (direct)
|
|
91
|
+
return direct;
|
|
92
|
+
for (let i = (messages ?? []).length - 1; i >= 0; i--) {
|
|
93
|
+
const m = messages[i];
|
|
94
|
+
if (isCompactionResumeMessage(m)) {
|
|
95
|
+
const t = extractTaskFromReminder(textOf(m));
|
|
96
|
+
if (t)
|
|
97
|
+
return t;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return pinned || '';
|
|
101
|
+
}
|
|
102
|
+
/** Resume-memory size: ~10% of the compaction threshold, clamped to [1500, 6000] tokens (a forced 14K test window gets ~1.5K). */
|
|
103
|
+
export function resumeMemoryTargetTokens(threshold) {
|
|
104
|
+
if (!(threshold > 0))
|
|
105
|
+
return 6000;
|
|
106
|
+
return Math.max(1500, Math.min(6000, Math.floor(threshold * 0.1)));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* v3 (4.108.3, from the live proof): a checkpoint may be REUSED at compaction only if it already covered every message being
|
|
110
|
+
* dropped. The v2 rule compared token distance, which goes negative once a compaction shrinks the history — so one stale checkpoint
|
|
111
|
+
* was replayed into every later reminder and the model's progress after it was erased each time (27 compactions, 0 fresh memories).
|
|
112
|
+
*/
|
|
113
|
+
export function coversAll(covered, dropped) {
|
|
114
|
+
if (!covered)
|
|
115
|
+
return false;
|
|
116
|
+
return (dropped ?? []).every((m) => !!m && typeof m === 'object' && covered.has(m));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* v3: when the checkpoint is stale, the new summary must ROLL the prior memory forward — the helper sees the prior memory as the
|
|
120
|
+
* first message, then the newly dropped messages, and writes one memory covering both (otherwise each compaction forgets the last).
|
|
121
|
+
*/
|
|
122
|
+
export function buildRollingSeedMessage(priorText) {
|
|
123
|
+
const text = 'PRIOR RESUME MEMORY (already summarizes everything before the messages that follow — carry every DONE / OUTSTANDING / DECISION ' +
|
|
124
|
+
'item forward unless the messages below supersede it):\n' + String(priorText ?? '').trim();
|
|
125
|
+
return {
|
|
126
|
+
uuid: `resume-seed-${Date.now().toString(36)}`,
|
|
127
|
+
timestamp: new Date().toISOString(),
|
|
128
|
+
type: 'user',
|
|
129
|
+
message: { role: 'user', content: [{ type: 'text', text }] },
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/** 4.108.4: the resume file is a first-class memory — index it in `.cortex/MEMORY.md` exactly as MemoryWrite would. */
|
|
133
|
+
export const MEMORY_INDEX_HEADER = '# Memory\n\nCurated index — one line per memory; detail lives in `.cortex/memory/<name>.md`\n(use MemoryRecall to load one).\n';
|
|
134
|
+
export function memoryIndexLine(name, description) {
|
|
135
|
+
return `- [${name}](memory/${name}.md) — ${description.replace(/\s+/g, ' ').trim()}`;
|
|
136
|
+
}
|
|
137
|
+
/** Pure: replace any existing line for `name` (matched by its `(memory/<name>.md)` marker) with `line`; empty content gets the header. */
|
|
138
|
+
export function upsertMemoryIndex(content, name, line) {
|
|
139
|
+
const base = content && content.trim() ? content : MEMORY_INDEX_HEADER;
|
|
140
|
+
const marker = `(memory/${name}.md)`;
|
|
141
|
+
const lines = base.split('\n').filter((l) => !l.includes(marker));
|
|
142
|
+
if (line)
|
|
143
|
+
lines.push(line);
|
|
144
|
+
return lines.join('\n').replace(/\n{3,}/g, '\n\n').replace(/\n*$/, '\n');
|
|
73
145
|
}
|
|
74
146
|
//# 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,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,wBAAwB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC1E,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,MAAM,CAAC,OAAY;IAC1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,eAAe,CAAC,IAAY,EAAE,WAAmB;IAC/D,OAAO,MAAM,IAAI,YAAY,IAAI,UAAU,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AACvF,CAAC;AAED,0IAA0I;AAC1I,MAAM,UAAU,iBAAiB,CAAC,OAAe,EAAE,IAAY,EAAE,IAAmB;IAClF,MAAM,IAAI,GAAG,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC;IACvE,MAAM,MAAM,GAAG,WAAW,IAAI,MAAM,CAAC;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
/** The skill's §2 template, addressed to the helper model. `{{CONVERSATION}}` is replaced with the history text. */
|
|
10
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
11
|
/** The skill's §4 wake protocol, spoken to the resumed agent. */
|
|
12
|
-
export declare function buildRebuildInstructions(
|
|
12
|
+
export declare function buildRebuildInstructions(opts?: {
|
|
13
|
+
sessionPath?: string;
|
|
14
|
+
}): string;
|
|
13
15
|
/**
|
|
14
16
|
* Pressure rung: the checkpoint band. `pct` = fraction of the compaction threshold at which the FIRST checkpoint is
|
|
15
17
|
* written (default 0.75, env CORTEX_COMPACTION_CHECKPOINT_PCT); after that a refresh happens every `stepPct` of the
|
|
@@ -19,4 +21,10 @@ export declare function buildRebuildInstructions(): string;
|
|
|
19
21
|
export declare function resolveCheckpointBand(currentTokens: number, threshold: number, env?: NodeJS.ProcessEnv): number;
|
|
20
22
|
/** Fill the prompt template. */
|
|
21
23
|
export declare function renderResumeMemoryPrompt(conversationText: string, targetTokens: number): string;
|
|
24
|
+
/**
|
|
25
|
+
* 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
|
|
26
|
+
* the LAST rung before the threshold (one whole-conversation helper call per cycle, not one per band — each call summarizes the
|
|
27
|
+
* whole history, which at a 747K threshold is a ~$0.1 helper call). Returns max(band at the post-compaction level, lastBand − 1).
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveRearmBand(tokensAfter: number, threshold: number, env?: NodeJS.ProcessEnv): number;
|
|
22
30
|
//# sourceMappingURL=compactionResumeTemplate.d.ts.map
|
|
@@ -1 +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,
|
|
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,CAAC,IAAI,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAiBhF;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"}
|
|
@@ -43,13 +43,20 @@ CONVERSATION HISTORY:
|
|
|
43
43
|
|
|
44
44
|
Write the resume memory now (sections 0–6, nothing else):`;
|
|
45
45
|
/** The skill's §4 wake protocol, spoken to the resumed agent. */
|
|
46
|
-
export function buildRebuildInstructions() {
|
|
46
|
+
export function buildRebuildInstructions(opts) {
|
|
47
|
+
// 4.108.4: name the in-session recall rail — the memory is the INDEX, the session record is the STORE (every dropped
|
|
48
|
+
// turn is still on disk, append-only), mirroring the operator's resume-session §5 "retrieve before reconstruct".
|
|
49
|
+
const recall = '(6) Detail this memory lacks is recoverable VERBATIM: ' +
|
|
50
|
+
(opts?.sessionPath ? `the session record at ${opts.sessionPath} (append-only JSONL — grep it with Bash for a command, path or error text), and ` : '') +
|
|
51
|
+
'the tools SearchConversationHistory / GetConversationSegment / RequestHistoricalContext / ListCompactionBoundaries ' +
|
|
52
|
+
'(reach them via SearchTools if they are not in your current tool list). Retrieve before you reconstruct.';
|
|
47
53
|
return ('REBUILD PROTOCOL — do these in order before new work: ' +
|
|
48
54
|
'(1) Re-read the WORK ORDER above; that is still the goal. ' +
|
|
49
55
|
'(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
56
|
'(3) Do NOT redo anything listed as DONE in §1; do NOT retry anything listed as REJECTED in §3. ' +
|
|
51
57
|
'(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.'
|
|
58
|
+
'(5) If something in this memory contradicts what you observe, the observation wins — note the discrepancy and continue. ' +
|
|
59
|
+
recall);
|
|
53
60
|
}
|
|
54
61
|
/**
|
|
55
62
|
* Pressure rung: the checkpoint band. `pct` = fraction of the compaction threshold at which the FIRST checkpoint is
|
|
@@ -77,4 +84,15 @@ function clampPct(raw, dflt, lo = 0.3, hi = 0.99) {
|
|
|
77
84
|
export function renderResumeMemoryPrompt(conversationText, targetTokens) {
|
|
78
85
|
return RESUME_MEMORY_PROMPT.replace('{{TARGET_TOKENS}}', String(targetTokens)).replace('{{CONVERSATION}}', conversationText);
|
|
79
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* 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
|
|
89
|
+
* the LAST rung before the threshold (one whole-conversation helper call per cycle, not one per band — each call summarizes the
|
|
90
|
+
* whole history, which at a 747K threshold is a ~$0.1 helper call). Returns max(band at the post-compaction level, lastBand − 1).
|
|
91
|
+
*/
|
|
92
|
+
export function resolveRearmBand(tokensAfter, threshold, env = process.env) {
|
|
93
|
+
if (!(threshold > 0))
|
|
94
|
+
return 0;
|
|
95
|
+
const lastBand = resolveCheckpointBand(threshold * 0.999999, threshold, env);
|
|
96
|
+
return Math.max(resolveCheckpointBand(tokensAfter, threshold, env), Math.max(0, lastBand - 1));
|
|
97
|
+
}
|
|
80
98
|
//# sourceMappingURL=compactionResumeTemplate.js.map
|
|
@@ -1 +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;
|
|
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,CAAC,IAA+B;IACtE,qHAAqH;IACrH,iHAAiH;IACjH,MAAM,MAAM,GACV,wDAAwD;QACxD,CAAC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AO,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,gCAAgC;AAChC,MAAM,UAAU,wBAAwB,CAAC,gBAAwB,EAAE,YAAoB;IACrF,OAAO,oBAAoB,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;AAC/H,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,WAAmB,EACnB,SAAiB,EACjB,MAAyB,OAAO,CAAC,GAAG;IAEpC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,qBAAqB,CAAC,SAAS,GAAG,QAAQ,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IAC7E,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"}
|
|
@@ -56,7 +56,9 @@ export declare class SystemReminderInjector {
|
|
|
56
56
|
* @returns a `<harness-note>` string, or null when disabled / not a git repo
|
|
57
57
|
* and nothing stale to report.
|
|
58
58
|
*/
|
|
59
|
-
buildGitContextSection(projectPath: string
|
|
59
|
+
buildGitContextSection(projectPath: string, opts?: {
|
|
60
|
+
force?: boolean;
|
|
61
|
+
}): string | null;
|
|
60
62
|
/**
|
|
61
63
|
* PM delegation hint for the auto-research subagent feature (AUTORESEARCH_AGENTS).
|
|
62
64
|
* Returns null when the feature is off, or when running INSIDE a subagent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemReminderInjector.d.ts","sourceRoot":"","sources":["../../src/system-messages/SystemReminderInjector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,GACb,eAAe,GACf,eAAe,GACf,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,gBAAgB,CAAuB;IAE/C;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB,CAA6D;IAEvF,qBAAqB,CAAC,EAAE,EAAE,MAAM;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,GAAG,IAAI;IAI3E;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"SystemReminderInjector.d.ts","sourceRoot":"","sources":["../../src/system-messages/SystemReminderInjector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,GACb,eAAe,GACf,eAAe,GAC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,EAAE,QAAQ,EAAE,GAAG,cAAc;IAe5D;;;OAGG;IACH,mBAAmB,IAAI,cAAc;IAUrC;;;OAGG;IACH,mCAAmC,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc;IAarF;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO;IAK9C;;;OAGG;IACH,kBAAkB,IAAI,IAAI;CAG3B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAalE"}
|
|
@@ -38,8 +38,11 @@ export class SystemReminderInjector {
|
|
|
38
38
|
* @returns a `<harness-note>` string, or null when disabled / not a git repo
|
|
39
39
|
* and nothing stale to report.
|
|
40
40
|
*/
|
|
41
|
-
buildGitContextSection(projectPath) {
|
|
42
|
-
|
|
41
|
+
buildGitContextSection(projectPath, opts) {
|
|
42
|
+
// `force` (4.108.4): the compaction reminder builds this note ONCE regardless of the per-turn lever — a bench keeps
|
|
43
|
+
// CORTEX_GIT_CONTEXT=false to spare per-turn prompt mass, but right after a compaction the model has just lost its
|
|
44
|
+
// own edit history and this is the cheapest factual replacement.
|
|
45
|
+
if (!opts?.force && process.env.CORTEX_GIT_CONTEXT === 'false')
|
|
43
46
|
return null;
|
|
44
47
|
const git = (args) => {
|
|
45
48
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemReminderInjector.js","sourceRoot":"","sources":["../../src/system-messages/SystemReminderInjector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiC7C;;GAEG;AACH,MAAM,OAAO,sBAAsB;IACzB,aAAa,GAAkB,IAAI,CAAC;IACpC,gBAAgB,GAAkB,IAAI,CAAC;IAE/C;;;;;OAKG;IACK,kBAAkB,GAAwD,IAAI,CAAC;IAEvF,qBAAqB,CAAC,EAA8C;QAClE,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CAAC,WAAmB;
|
|
1
|
+
{"version":3,"file":"SystemReminderInjector.js","sourceRoot":"","sources":["../../src/system-messages/SystemReminderInjector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiC7C;;GAEG;AACH,MAAM,OAAO,sBAAsB;IACzB,aAAa,GAAkB,IAAI,CAAC;IACpC,gBAAgB,GAAkB,IAAI,CAAC;IAE/C;;;;;OAKG;IACK,kBAAkB,GAAwD,IAAI,CAAC;IAEvF,qBAAqB,CAAC,EAA8C;QAClE,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CAAC,WAAmB,EAAE,IAA0B;QACpE,oHAAoH;QACpH,mHAAmH;QACnH,iEAAiE;QACjE,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC;QAE5E,MAAM,GAAG,GAAG,CAAC,IAAc,EAAiB,EAAE;YAC5C,IAAI,CAAC;gBACH,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,EAAE;oBACvD,QA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;QAEzB,OAAO;YACL,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC;YACjD,WAAW,EAAE,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC;SACvD,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAAC,KAAiB;QAClC,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QACpE,OAAO,WAAW,KAAK,IAAI,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5B,CAAC;CACF;AAYD;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAoB;IACxD,IAAI,SAAS,GAAG,iBAAiB,GAAG,CAAC,IAAI;+BACZ,GAAG,CAAC,OAAO,oBAAoB,CAAC;IAE7D,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;QACb,SAAS,IAAI,+BAA+B,GAAG,CAAC,IAAI,iBAAiB,CAAC;IACxE,CAAC;IAED,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;QACf,SAAS,IAAI,2BAA2B,GAAG,CAAC,MAAM,yBAAyB,CAAC;IAC9E,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/core",
|
|
3
|
-
"version": "4.108.
|
|
3
|
+
"version": "4.108.4",
|
|
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.
|
|
51
|
-
"@nexus-cortex/types": "4.108.
|
|
50
|
+
"@nexus-cortex/executors": "4.108.4",
|
|
51
|
+
"@nexus-cortex/types": "4.108.4",
|
|
52
52
|
"@types/uuid": "^10.0.0",
|
|
53
53
|
"ajv": "^8.12.0",
|
|
54
54
|
"chokidar": "^3.6.0",
|