@treeseed/dsh-chapters 0.1.23 → 0.2.0
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/README.md +2 -1
- package/cordis.patch.yml +54 -1
- package/docs/architecture.md +1 -466
- package/docs/backlog.md +234 -4
- package/docs/contract.md +127 -1
- package/docs/development.md +248 -12
- package/docs/host-compaction-seam.md +108 -0
- package/docs/knowledge-repo.md +532 -16
- package/docs/project-state.md +323 -0
- package/docs/verify.md +217 -0
- package/lib/archive.d.ts +49 -1
- package/lib/archive.js +56 -2
- package/lib/archive.js.map +1 -1
- package/lib/arrival.js +24 -10
- package/lib/arrival.js.map +1 -1
- package/lib/attach.d.ts +46 -0
- package/lib/attach.js +120 -0
- package/lib/attach.js.map +1 -0
- package/lib/auto-save.d.ts +145 -0
- package/lib/auto-save.js +318 -0
- package/lib/auto-save.js.map +1 -0
- package/lib/client.js +413 -11
- package/lib/client.js.map +1 -1
- package/lib/commands.d.ts +11 -1
- package/lib/commands.js +138 -7
- package/lib/commands.js.map +1 -1
- package/lib/compose.js +25 -6
- package/lib/compose.js.map +1 -1
- package/lib/continue-core.d.ts +24 -1
- package/lib/continue-core.js +41 -9
- package/lib/continue-core.js.map +1 -1
- package/lib/diag.d.ts +47 -0
- package/lib/diag.js +141 -0
- package/lib/diag.js.map +1 -0
- package/lib/engine-core.d.ts +51 -1
- package/lib/engine-core.js +70 -7
- package/lib/engine-core.js.map +1 -1
- package/lib/engine.d.ts +93 -0
- package/lib/engine.js +477 -36
- package/lib/engine.js.map +1 -1
- package/lib/enrich-queue.js +28 -2
- package/lib/enrich-queue.js.map +1 -1
- package/lib/enrich-wire.d.ts +92 -2
- package/lib/enrich-wire.js +135 -17
- package/lib/enrich-wire.js.map +1 -1
- package/lib/enrich.d.ts +27 -2
- package/lib/enrich.js +114 -18
- package/lib/enrich.js.map +1 -1
- package/lib/index.d.ts +59 -0
- package/lib/index.js +215 -2
- package/lib/index.js.map +1 -1
- package/lib/indexing.d.ts +7 -0
- package/lib/indexing.js.map +1 -1
- package/lib/injections.d.ts +1 -0
- package/lib/injections.js +38 -0
- package/lib/injections.js.map +1 -1
- package/lib/last-resort.d.ts +24 -0
- package/lib/last-resort.js +27 -0
- package/lib/last-resort.js.map +1 -0
- package/lib/prompt.d.ts +130 -0
- package/lib/prompt.js +255 -0
- package/lib/prompt.js.map +1 -0
- package/lib/registry.d.ts +39 -1
- package/lib/registry.js +76 -9
- package/lib/registry.js.map +1 -1
- package/lib/render.d.ts +31 -3
- package/lib/render.js +82 -3
- package/lib/render.js.map +1 -1
- package/lib/repair-run.d.ts +49 -0
- package/lib/repair-run.js +423 -0
- package/lib/repair-run.js.map +1 -0
- package/lib/repair.d.ts +200 -0
- package/lib/repair.js +354 -0
- package/lib/repair.js.map +1 -0
- package/lib/rules-commands.d.ts +22 -0
- package/lib/rules-commands.js +177 -20
- package/lib/rules-commands.js.map +1 -1
- package/lib/rules.d.ts +184 -7
- package/lib/rules.js +312 -27
- package/lib/rules.js.map +1 -1
- package/lib/save-core.d.ts +72 -0
- package/lib/save-core.js +220 -0
- package/lib/save-core.js.map +1 -0
- package/lib/session-rules.d.ts +222 -0
- package/lib/session-rules.js +454 -0
- package/lib/session-rules.js.map +1 -0
- package/lib/store.d.ts +22 -1
- package/lib/store.js +94 -17
- package/lib/store.js.map +1 -1
- package/lib/sync.js +13 -1
- package/lib/sync.js.map +1 -1
- package/lib/tools.d.ts +14 -0
- package/lib/tools.js +341 -91
- package/lib/tools.js.map +1 -1
- package/lib/types.d.ts +31 -1
- package/lib/types.js +12 -0
- package/lib/types.js.map +1 -1
- package/lib/version.d.ts +9 -0
- package/lib/version.js +10 -0
- package/lib/version.js.map +1 -0
- package/lib/warnings.d.ts +10 -0
- package/lib/warnings.js +18 -0
- package/lib/warnings.js.map +1 -0
- package/package.json +9 -3
package/lib/auto-save.js
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Door 5 — subagent settlement auto-save (issue #47).
|
|
3
|
+
*
|
|
4
|
+
* The host publishes a `subagent/end` lifecycle event for every settled child
|
|
5
|
+
* run (one-shot AND each residency epoch of a continuable child). This module
|
|
6
|
+
* turns each such settlement of a chapters-preset child into an archive through
|
|
7
|
+
* the SHARED save core (src/save-core.ts) — the same pipeline `/chapters-save`
|
|
8
|
+
* runs, never a second implementation.
|
|
9
|
+
*
|
|
10
|
+
* The seam facts this leans on are MEASURED, not assumed
|
|
11
|
+
* (spikes/subagent-end/FINDINGS.md, host-subagent-seam drift rows):
|
|
12
|
+
* - `end` fires synchronously from a microtask attached at spawn, strictly
|
|
13
|
+
* BEFORE the run holder's dispose continuation → a SYNCHRONOUS snapshot
|
|
14
|
+
* inside the listener sees the live child's complete log and header.
|
|
15
|
+
* - the child header is durable kernel state (`childSessionMeta`):
|
|
16
|
+
* `origin: 'subagent'`, `parentSession`, `agentPreset`, `delegationDepth`.
|
|
17
|
+
* The gate reads the HEADER, never an event scan (a synthetic child can
|
|
18
|
+
* complete turns without ever carrying `agent-preset/selected` — measured).
|
|
19
|
+
* - fallback arm: `sessionQuery.listEvents` + `listSessions` headers are
|
|
20
|
+
* ambient-readable after disposal (not capability-gated) — used only when
|
|
21
|
+
* the live handle is gone at emit.
|
|
22
|
+
*
|
|
23
|
+
* Containment is the signature-listener discipline: the emitter catches listener
|
|
24
|
+
* throws by contract, but we ALSO never let one lose knowledge silently — every
|
|
25
|
+
* non-archive is either a quiet, expected skip (wrong preset, no completed turn)
|
|
26
|
+
* or a LOUD warn (unreadable, save failed).
|
|
27
|
+
*/
|
|
28
|
+
import { diagnosticWarn } from "./diag.js";
|
|
29
|
+
import { formatWarnings } from "./warnings.js";
|
|
30
|
+
import { saveSession } from "./save-core.js";
|
|
31
|
+
import { lineageOf } from "./types.js";
|
|
32
|
+
const hasCompletedTurn = (events) => events.some((e) => e.type === 'turn/end');
|
|
33
|
+
/**
|
|
34
|
+
* The listener factory. Pure against injected reads — the real pipeline is wired
|
|
35
|
+
* by `wireSubagentAutoSave` below, and both are covered by
|
|
36
|
+
* tests/{unit,integration} rows. The callback itself is SYNCHRONOUS on the
|
|
37
|
+
* snapshot (that is the race-avoidance), chained asynchronously per child.
|
|
38
|
+
*/
|
|
39
|
+
export function makeSubagentEndListener(deps) {
|
|
40
|
+
// Per-child promise chain: repeated settlements of the SAME child serialize
|
|
41
|
+
// (the watermark makes the second save only see the first's records); distinct
|
|
42
|
+
// children never queue against each other. Same pattern as the signature listener.
|
|
43
|
+
const chains = new Map();
|
|
44
|
+
return (info) => {
|
|
45
|
+
try {
|
|
46
|
+
const id = info?.id;
|
|
47
|
+
if (typeof id !== 'string' || id === '') {
|
|
48
|
+
deps.warn('subagent auto-save: settlement event without a child session id — nothing archived');
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
// --- synchronous snapshot NOW: `end` strictly precedes disposal (measured).
|
|
52
|
+
let view;
|
|
53
|
+
try {
|
|
54
|
+
view = deps.liveChild(id);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
deps.warn(`subagent auto-save: live read failed for ${id}: ${String(error?.message ?? error)}`);
|
|
58
|
+
view = undefined;
|
|
59
|
+
}
|
|
60
|
+
const hadLiveHandle = view !== undefined;
|
|
61
|
+
const job = async () => {
|
|
62
|
+
let arm = 'live';
|
|
63
|
+
if (view === undefined && deps.durableChild !== undefined) {
|
|
64
|
+
try {
|
|
65
|
+
view = await deps.durableChild(id);
|
|
66
|
+
arm = 'durable';
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
deps.warn(`subagent auto-save: durable read failed for ${id}: ${String(error?.message ?? error)}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (view === undefined) {
|
|
73
|
+
deps.warn(`subagent auto-save: child ${id} unreadable at settlement (live handle ${hadLiveHandle ? 'read failed' : 'gone'}${deps.durableChild === undefined ? ', no durable arm available' : ', durable read empty'}) — its knowledge was NOT archived`);
|
|
74
|
+
deps.onSettled?.(id, 'skipped:unreadable');
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const suffix = arm === 'durable' ? '@durable' : '';
|
|
78
|
+
// Gates, in the order the docs state. Expected skips are quiet: this fires
|
|
79
|
+
// for EVERY subagent in the profile; a warn per non-chapters child would
|
|
80
|
+
// bury the anomalies that need a human.
|
|
81
|
+
if (view.header.origin !== 'subagent') {
|
|
82
|
+
deps.onSettled?.(id, `skipped:origin${suffix}`);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (view.header.agentPreset !== deps.presetId) {
|
|
86
|
+
deps.onSettled?.(id, `skipped:preset${suffix}`);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (!hasCompletedTurn(view.events)) {
|
|
90
|
+
deps.onSettled?.(id, `skipped:no-completed-turn${suffix}`);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
try {
|
|
94
|
+
const out = await deps.save(view);
|
|
95
|
+
// #58: 'payloadless' is an anomaly, not an expected skip — the child settled with a
|
|
96
|
+
// read that carried no bytes, so its knowledge is NOT archived. Loud, by the same
|
|
97
|
+
// containment rule as 'unreadable'. 'nothing-new'/'no-completed-turn' stay quiet.
|
|
98
|
+
if (out.skipped === 'payloadless') {
|
|
99
|
+
deps.warn(`subagent auto-save: ${id} settled with an archive that rendered nothing — NOT archived (a payload-less read, not a short conversation): ${out.warnings.join('; ')}`);
|
|
100
|
+
}
|
|
101
|
+
deps.onSettled?.(id, out.skipped === null ? `saved${suffix}` : `skipped:${out.skipped}${suffix}`);
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
deps.warn(`subagent auto-save: archiving ${id} failed: ${String(error?.message ?? error)} — its knowledge was NOT archived`);
|
|
105
|
+
deps.onSettled?.(id, `failed${suffix}`);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const prev = chains.get(id);
|
|
109
|
+
const next = prev === undefined ? job() : prev.then(job);
|
|
110
|
+
chains.set(id, next);
|
|
111
|
+
void next.catch(() => undefined).finally(() => { if (chains.get(id) === next)
|
|
112
|
+
chains.delete(id); });
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
// never-break containment, twice: the emitter catches us, we catch ourselves.
|
|
116
|
+
deps.warn(`subagent auto-save listener threw (contained): ${String(error?.message ?? error)}`);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Bind the listener to the host-plane services: `agents` for the live read,
|
|
122
|
+
* `sessionQuery` for the durable fallback, `saveSession` for the archive.
|
|
123
|
+
* Returns the callback to register with `ctx.on('subagent/end', …)`.
|
|
124
|
+
*
|
|
125
|
+
* ENRICHMENT DELIBERATELY ABSENT: settlement never runs the annotator — a
|
|
126
|
+
* ten-child fanout must not fire ten LLM drains; new chapters are pending work
|
|
127
|
+
* for the idle/afterPush ladders exactly like a `/chapters-save` that skipped
|
|
128
|
+
* the manual nudge. A test pins that nothing here calls runNow.
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* The ONE payload-bearing durable read (docs/contract.md § Durable reads, issue #58).
|
|
132
|
+
*
|
|
133
|
+
* Door 5 needs it because a continuable child is disposed before `subagent/end`; the repair door
|
|
134
|
+
* (`/chapters-repair`, #60) needs the same thing because re-deriving a chapter is worthless if the read
|
|
135
|
+
* returns metadata rows. Two copies of "read the log" is how 12 children were archived as empty shells
|
|
136
|
+
* and the seam still looked alive: `listEvents` succeeds, returns 10 correctly-typed
|
|
137
|
+
* `SessionEventRecord`s, and none of them has `data`. So this function is exported and pinned by a
|
|
138
|
+
* source-shape row that fails if a door starts reading the log by hand again.
|
|
139
|
+
*/
|
|
140
|
+
export async function readDurableSession(get, sessionId) {
|
|
141
|
+
const sq = get('sessionQuery');
|
|
142
|
+
if (sq?.readSession === undefined)
|
|
143
|
+
return undefined;
|
|
144
|
+
const read = await sq.readSession(sessionId);
|
|
145
|
+
const events = read?.events;
|
|
146
|
+
if (!Array.isArray(events) || events.length === 0)
|
|
147
|
+
return undefined;
|
|
148
|
+
// The header rides the same observation as the bytes being archived — origin/agentPreset/cwd are
|
|
149
|
+
// never inferred from a second scan (and never from the events, which is the r28 lesson).
|
|
150
|
+
return { events, header: read.session ?? {} };
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The seventh archive moment (#61, Amendment A): **a rooted child that has never archived.**
|
|
154
|
+
*
|
|
155
|
+
* Door 5 is keyed on `origin: 'subagent'`. A `ch-*` continuation child is NOT a subagent — its header
|
|
156
|
+
* says `origin: user` with a `parentSession` — so no moment was watching it at all. The field case was
|
|
157
|
+
* `ch-dc3be3ab`: 2,363 events, 414 tool calls, 2 completed turns, `chapters: []`, `reservations: {}`.
|
|
158
|
+
* Not a failed archive: one never attempted. Its knowledge sits in the log and is invisible to every
|
|
159
|
+
* search on the machine, which is precisely what this plugin exists to prevent.
|
|
160
|
+
*
|
|
161
|
+
* This is the PURE gate — the listener below only does I/O, so the decision is testable (and reviewable)
|
|
162
|
+
* without a host.
|
|
163
|
+
*/
|
|
164
|
+
export function shouldForceChildArchive(input) {
|
|
165
|
+
if (!input.enabled)
|
|
166
|
+
return { fire: false, reason: 'childAutoArchive is off in config' };
|
|
167
|
+
if (input.header.agentPreset !== 'chapters')
|
|
168
|
+
return { fire: false, reason: 'not a chapters-preset session' };
|
|
169
|
+
// door 5 owns delegation; two doors on one child would double-write the same span
|
|
170
|
+
if (input.header.origin === 'subagent')
|
|
171
|
+
return { fire: false, reason: 'owned by subagent settlement (door 5)' };
|
|
172
|
+
// Only a ROOTED child: a session with no parent anywhere is the user's own session, whose doors are
|
|
173
|
+
// 1–3 (a human, a button, pressure) and which this plugin must not archive behind their back.
|
|
174
|
+
const parent = input.header.parentSession ?? input.lineageParent ?? '';
|
|
175
|
+
if (parent === undefined || parent === '') {
|
|
176
|
+
return { fire: false, reason: 'no lineage (header, registry row, or ch- id) — a root session, doors 1–3 own it' };
|
|
177
|
+
}
|
|
178
|
+
if (input.anchor <= 0)
|
|
179
|
+
return { fire: false, reason: 'no completed turn yet' };
|
|
180
|
+
if (input.chapterCount === 0) {
|
|
181
|
+
return { fire: true, reason: 'never archived — the hole #61 measured (2,363 events, chapters: [])' };
|
|
182
|
+
}
|
|
183
|
+
if (input.completedTurnsAboveWatermark < input.minTurns) {
|
|
184
|
+
return { fire: false, reason: `${input.completedTurnsAboveWatermark} unarchived turn(s) < childAutoArchiveMinTurns=${input.minTurns}` };
|
|
185
|
+
}
|
|
186
|
+
return { fire: true, reason: `${input.completedTurnsAboveWatermark} completed turns past the watermark (seq ${input.lastArchivedSeq})` };
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* The listener. Save-only — creates NO session and compacts NO surface, so the "no
|
|
190
|
+
* continuation-creating actions mid-step" rule is not engaged (the same reasoning that let door 5
|
|
191
|
+
* exist). Fires only on `turn/end`, reads the LIVE session's own payload-bearing events, and is
|
|
192
|
+
* watermark-idempotent: a re-run finds `nothing-new` and writes nothing.
|
|
193
|
+
*/
|
|
194
|
+
export function makeChildArchiveListener(deps) {
|
|
195
|
+
const chains = new Map();
|
|
196
|
+
const section = (id, job) => {
|
|
197
|
+
const prev = chains.get(id) ?? Promise.resolve();
|
|
198
|
+
const next = prev.then(job, job);
|
|
199
|
+
chains.set(id, next.then(() => undefined, () => undefined));
|
|
200
|
+
};
|
|
201
|
+
return (session, event) => {
|
|
202
|
+
try {
|
|
203
|
+
if (event?.type !== 'turn/end')
|
|
204
|
+
return;
|
|
205
|
+
const s = session;
|
|
206
|
+
const id = s?.id;
|
|
207
|
+
const header = s?.header;
|
|
208
|
+
const cwd = header?.cwd;
|
|
209
|
+
if (id === undefined || header === undefined || cwd === undefined || typeof s?.snapshotEvents !== 'function')
|
|
210
|
+
return;
|
|
211
|
+
const events = [...(s.snapshotEvents())];
|
|
212
|
+
const anchor = [...events].reverse().find((e) => e.type === 'turn/end')?.seq ?? -1;
|
|
213
|
+
section(id, async () => {
|
|
214
|
+
// resolved ONCE per section: calling the getter twice would reopen the domain store inside a
|
|
215
|
+
// live turn boundary.
|
|
216
|
+
const store = await deps.store();
|
|
217
|
+
const state0 = await store.get(id);
|
|
218
|
+
const lastArchived = state0.chapters.reduce((m, c) => Math.max(m, c.endSeq), -1);
|
|
219
|
+
const completed = events.filter((e) => e.type === 'turn/end' && e.seq > lastArchived && e.seq <= anchor).length;
|
|
220
|
+
const gate = shouldForceChildArchive({
|
|
221
|
+
header,
|
|
222
|
+
lineageParent: state0.parentSession ?? (id.startsWith('ch-') ? 'continuation-id' : undefined),
|
|
223
|
+
chapterCount: state0.chapters.filter((c) => c.status !== 'superseded').length,
|
|
224
|
+
lastArchivedSeq: lastArchived,
|
|
225
|
+
anchor,
|
|
226
|
+
completedTurnsAboveWatermark: completed,
|
|
227
|
+
minTurns: deps.minTurns,
|
|
228
|
+
enabled: deps.enabled,
|
|
229
|
+
});
|
|
230
|
+
if (!gate.fire)
|
|
231
|
+
return;
|
|
232
|
+
const out = await saveSession({
|
|
233
|
+
events, sessionId: id, cwd, store, config: deps.wiring,
|
|
234
|
+
subagentOf: lineageOf(header),
|
|
235
|
+
});
|
|
236
|
+
if (out.records.length > 0) {
|
|
237
|
+
deps.ctx.logger?.info?.(`dsh-chapters: forced child archive ${id} (${out.records.length} chapter(s), seqs ${out.fromSeq}..${out.anchor}) — ${gate.reason}`);
|
|
238
|
+
// enrichment QUEUED, never run inline: this fires inside a live turn boundary.
|
|
239
|
+
deps.wiring.scheduler?.schedule(cwd, 'archive:save');
|
|
240
|
+
deps.onArchived?.(id, out.records.length);
|
|
241
|
+
}
|
|
242
|
+
else if (out.skipped !== 'nothing-new') {
|
|
243
|
+
// loud, per #61: a door that decided to archive and then did not must say why.
|
|
244
|
+
diagnosticWarn(deps.ctx.logger, 'child-archive', `${id} forced archive produced nothing (${out.skipped ?? 'unknown'}); ${formatWarnings(out.warnings, 3)}`);
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
diagnosticWarn(deps.ctx.logger, 'child-archive', `listener failed: ${String(error?.message ?? error)}`);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
export function wireSubagentAutoSave(ctx, store, wiring) {
|
|
254
|
+
const warn = (message) => {
|
|
255
|
+
// #54: the shared seam (logger warn + sink), not a second copy of the same three lines.
|
|
256
|
+
diagnosticWarn(ctx.logger, 'auto-save', message);
|
|
257
|
+
};
|
|
258
|
+
const liveChild = (sessionId) => {
|
|
259
|
+
const agents = ctx.get?.('agents');
|
|
260
|
+
const handle = agents?.get?.(sessionId);
|
|
261
|
+
const session = handle?.agent?.session ?? handle?.session;
|
|
262
|
+
if (session === undefined || typeof session.snapshotEvents !== 'function')
|
|
263
|
+
return undefined;
|
|
264
|
+
return { events: [...session.snapshotEvents()], header: (session.header ?? {}) };
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* The durable arm — and for a **continuable** child the ONLY arm, because the host disposes the
|
|
268
|
+
* handle before it emits `subagent/end` (`host-subagent-seam.test.ts` F4). It must return
|
|
269
|
+
* payload-bearing events, so it reads `sessionQuery.readSession` (cloned header +
|
|
270
|
+
* `snapshotSessionEvent` events, one call) and **not** `listEvents`, whose `SessionEventRecord`
|
|
271
|
+
* rows carry `seq`/`type`/`time`/`surface` and no `data` — the shape that archived 12 children
|
|
272
|
+
* as empty shells (#58; `docs/contract.md` § Durable reads).
|
|
273
|
+
*/
|
|
274
|
+
const durableChild = (sessionId) => readDurableSession((name) => { try {
|
|
275
|
+
return ctx.get?.(name);
|
|
276
|
+
}
|
|
277
|
+
catch {
|
|
278
|
+
return undefined;
|
|
279
|
+
} }, sessionId);
|
|
280
|
+
const save = async (child) => {
|
|
281
|
+
const cwd = child.header.cwd;
|
|
282
|
+
if (cwd === undefined || cwd === '')
|
|
283
|
+
throw new Error('subagent child session has no workspace cwd — nowhere reachable to write');
|
|
284
|
+
const out = await saveSession({
|
|
285
|
+
events: child.events,
|
|
286
|
+
sessionId: child.header.id ?? '',
|
|
287
|
+
cwd,
|
|
288
|
+
store,
|
|
289
|
+
config: wiring,
|
|
290
|
+
subagentOf: lineageOf(child.header),
|
|
291
|
+
});
|
|
292
|
+
// Lineage: the child stays its OWN root, and that is deliberate (#47 decision, re-checked
|
|
293
|
+
// under #58). Two candidate reasons to `linkChild` it to the parent were tested and both fail:
|
|
294
|
+
// a subagent is never an ANCESTOR of anything the parent walks, so `buildIndex` would still
|
|
295
|
+
// omit it from the parent's TOC; and `rootSession` is the STORE DIRECTORY (`archive.ts:110`,
|
|
296
|
+
// `engine-core.ts:310`), so linking would silently re-home every child chapter into the
|
|
297
|
+
// parent's tree. Cross-session reachability is search's job — `buildLocalCorpus` walks every
|
|
298
|
+
// tree under the store root — and rule ancestry already reads the kernel header's parentSession
|
|
299
|
+
// (`session-rules.ruleAncestorSet`), which the frontmatter records from the same source.
|
|
300
|
+
if (out.skipped === null && out.records.length > 0 && cwd !== '') {
|
|
301
|
+
wiring.scheduler?.schedule(cwd, 'archive:autoSave');
|
|
302
|
+
}
|
|
303
|
+
// #58: `writeArchive` already says "N event(s) rendered no output"; dropping that array was
|
|
304
|
+
// why an entire door of empty archives ran for days with a clean log. Surface every warning.
|
|
305
|
+
for (const w of out.warnings)
|
|
306
|
+
warn(`subagent auto-save: ${child.header.id ?? '?'}: ${w}`);
|
|
307
|
+
return { archived: out.records.length, skipped: out.skipped, warnings: out.warnings };
|
|
308
|
+
};
|
|
309
|
+
return makeSubagentEndListener({
|
|
310
|
+
presetId: wiring.presetId,
|
|
311
|
+
liveChild,
|
|
312
|
+
durableChild,
|
|
313
|
+
save,
|
|
314
|
+
warn,
|
|
315
|
+
onSettled: (id, outcome) => { ctx.logger?.info?.(`dsh-chapters: subagent ${id} settled → ${outcome}`); },
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
//# sourceMappingURL=auto-save.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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