@cotal-ai/manager 0.171.3 → 0.171.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/dist/broker-transport.d.ts +126 -0
- package/dist/broker-transport.d.ts.map +1 -0
- package/dist/broker-transport.js +263 -0
- package/dist/broker-transport.js.map +1 -0
- package/dist/connector-inventory.d.ts +37 -0
- package/dist/connector-inventory.d.ts.map +1 -0
- package/dist/connector-inventory.js +73 -0
- package/dist/connector-inventory.js.map +1 -0
- package/dist/harness-resolution.d.ts +71 -0
- package/dist/harness-resolution.d.ts.map +1 -0
- package/dist/harness-resolution.js +111 -0
- package/dist/harness-resolution.js.map +1 -0
- package/dist/manager.d.ts +64 -199
- package/dist/manager.d.ts.map +1 -1
- package/dist/manager.js +241 -1534
- package/dist/manager.js.map +1 -1
- package/dist/preservation.d.ts +157 -0
- package/dist/preservation.d.ts.map +1 -0
- package/dist/preservation.js +583 -0
- package/dist/preservation.js.map +1 -0
- package/dist/readiness-wait.d.ts +64 -0
- package/dist/readiness-wait.d.ts.map +1 -0
- package/dist/readiness-wait.js +244 -0
- package/dist/readiness-wait.js.map +1 -0
- package/dist/start-doors.d.ts +51 -0
- package/dist/start-doors.d.ts.map +1 -0
- package/dist/start-doors.js +187 -0
- package/dist/start-doors.js.map +1 -0
- package/dist/status-and-models.d.ts +155 -0
- package/dist/status-and-models.d.ts.map +1 -0
- package/dist/status-and-models.js +290 -0
- package/dist/status-and-models.js.map +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { EpEnvelopeError, principalKey, rejectionText, STANDING_RENEWABLE_TTL_SEC } from "@cotal-ai/core";
|
|
2
|
+
import { existsSync, lstatSync, readdirSync } from "node:fs";
|
|
3
|
+
import { join, resolve } from "node:path";
|
|
4
|
+
import { credRenewIntervalMs } from "./credential-renewal.js";
|
|
5
|
+
import { inlineSnapshotPath } from "./launch.js";
|
|
6
|
+
import { withTimeout } from "./manager-timeout.js";
|
|
7
|
+
import { parseResumeControlArgs, readReleasedSeatReference, readSeatRecord, writeReleasedSeatReference, writeSeatRecord } from "./resume.js";
|
|
8
|
+
import { requireRuntimeReap } from "./runtime/index.js";
|
|
9
|
+
/** Preserving the manager for a restart: prepare, commit and abort, the cut that releases or tears down each seat, and adoption of released seats at the next start. */
|
|
10
|
+
export class Preservation {
|
|
11
|
+
deps;
|
|
12
|
+
constructor(deps) {
|
|
13
|
+
this.deps = deps;
|
|
14
|
+
}
|
|
15
|
+
// The Manager members these bodies read, under their Manager names. Each reads through its dep at
|
|
16
|
+
// use, so a field the Manager assigns later is current and a method a test replaces on the Manager
|
|
17
|
+
// is the one that runs.
|
|
18
|
+
get agents() { return this.deps.agents(); }
|
|
19
|
+
get auth() { return this.deps.auth(); }
|
|
20
|
+
get credRenewTimer() { return this.deps.credRenewTimer(); }
|
|
21
|
+
set credRenewTimer(value) { this.deps.setCredRenewTimer(value); }
|
|
22
|
+
get ep() { return this.deps.ep(); }
|
|
23
|
+
get execution() { return this.deps.execution(); }
|
|
24
|
+
get lifecycleInFlight() { return this.deps.lifecycleInFlight(); }
|
|
25
|
+
get maintenanceState() { return this.deps.maintenanceState(); }
|
|
26
|
+
set maintenanceState(value) { this.deps.setMaintenanceState(value); }
|
|
27
|
+
get managerInstanceId() { return this.deps.managerInstanceId(); }
|
|
28
|
+
get meshMode() { return this.deps.meshMode(); }
|
|
29
|
+
get preservationAttemptId() { return this.deps.preservationAttemptId(); }
|
|
30
|
+
set preservationAttemptId(value) { this.deps.setPreservationAttemptId(value); }
|
|
31
|
+
get preservationGeneration() { return this.deps.preservationGeneration(); }
|
|
32
|
+
set preservationGeneration(value) { this.deps.setPreservationGeneration(value); }
|
|
33
|
+
get preservationInventory() { return this.deps.preservationInventory(); }
|
|
34
|
+
set preservationInventory(value) { this.deps.setPreservationInventory(value); }
|
|
35
|
+
get preserveStopTimeoutMs() { return this.deps.preserveStopTimeoutMs(); }
|
|
36
|
+
get resumeCredRenewal() { return this.deps.resumeCredRenewal(); }
|
|
37
|
+
get space() { return this.deps.space(); }
|
|
38
|
+
get unverifiedStops() { return this.deps.unverifiedStops(); }
|
|
39
|
+
set unverifiedStops(value) { this.deps.setUnverifiedStops(value); }
|
|
40
|
+
get userMode() { return this.deps.userMode(); }
|
|
41
|
+
get workspaceRoot() { return this.deps.workspaceRoot(); }
|
|
42
|
+
awaitLifecycleDrain(...args) { return this.deps.awaitLifecycleDrain(...args); }
|
|
43
|
+
deprovision(...args) { return this.deps.deprovision(...args); }
|
|
44
|
+
dropInlineSnapshot(...args) { return this.deps.dropInlineSnapshot(...args); }
|
|
45
|
+
dropSeatRecord(...args) { return this.deps.dropSeatRecord(...args); }
|
|
46
|
+
executionRefusal(...args) { return this.deps.executionRefusal(...args); }
|
|
47
|
+
fileDigest(...args) { return this.deps.fileDigest(...args); }
|
|
48
|
+
logSeatReaped(...args) { return this.deps.logSeatReaped(...args); }
|
|
49
|
+
onAgentExit(...args) { return this.deps.onAgentExit(...args); }
|
|
50
|
+
recordContinuityAtStop(...args) { return this.deps.recordContinuityAtStop(...args); }
|
|
51
|
+
renewDaemonCreds(...args) { return this.deps.renewDaemonCreds(...args); }
|
|
52
|
+
resumeEntry(...args) { return this.deps.resumeEntry(...args); }
|
|
53
|
+
resumeEntryOf(...args) { return this.deps.resumeEntryOf(...args); }
|
|
54
|
+
runtimeFor(...args) { return this.deps.runtimeFor(...args); }
|
|
55
|
+
stopHandle(...args) { return this.deps.stopHandle(...args); }
|
|
56
|
+
teardownTarget(...args) { return this.deps.teardownTarget(...args); }
|
|
57
|
+
validateRetainedAuthority(...args) { return this.deps.validateRetainedAuthority(...args); }
|
|
58
|
+
watchExit(...args) { return this.deps.watchExit(...args); }
|
|
59
|
+
withProvisioner(fn) { return this.deps.withProvisioner(fn); }
|
|
60
|
+
preparationTask;
|
|
61
|
+
preservationFailures = [];
|
|
62
|
+
preservationTask;
|
|
63
|
+
preservationStarted = false;
|
|
64
|
+
/** The CHAT stream frontier at a preservation cut (issue #545), read through whichever local
|
|
65
|
+
* authority this mesh mode holds: open mode's own endpoint already has `$JS.API.STREAM.INFO`
|
|
66
|
+
* on the CHAT stream. Local and remote supervisor credentials also hold this metadata grant
|
|
67
|
+
* for transcript startup checks, but this preservation path retains its existing local-authority
|
|
68
|
+
* boundary. Static/user modes borrow the ephemeral `provisioner` profile the manager already
|
|
69
|
+
* mints per spawn. A remote-authority manager (`this.auth`
|
|
70
|
+
* undefined in static/user mode) has no local space authority to mint that provisioner with, so
|
|
71
|
+
* it prints one line and returns no floor — the inventory then carries none and resumed seats
|
|
72
|
+
* behave exactly as before this fix, not a silent partial degrade. */
|
|
73
|
+
async chatFrontierForPreservation() {
|
|
74
|
+
switch (this.meshMode) {
|
|
75
|
+
case "open":
|
|
76
|
+
return this.ep.chatFrontier();
|
|
77
|
+
case "static":
|
|
78
|
+
case "user":
|
|
79
|
+
if (!this.auth) {
|
|
80
|
+
console.error("! preservation: this manager holds no local space authority to read the chat frontier; retained seats replay their channel windows on resume");
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
return this.withProvisioner((prov) => prov.chatFrontier());
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/** Fence and build the inventory without stopping a child. The coordinator must durably persist
|
|
87
|
+
* this exact plan before calling commitPreservation with the same attempt id. */
|
|
88
|
+
preparePreservation(attemptId) {
|
|
89
|
+
if (this.execution === "none")
|
|
90
|
+
return Promise.reject(new EpEnvelopeError("unimplemented", this.executionRefusal()));
|
|
91
|
+
if (!attemptId.trim())
|
|
92
|
+
return Promise.reject(new Error("preservation attemptId is required"));
|
|
93
|
+
if (this.preservationAttemptId && this.preservationAttemptId !== attemptId)
|
|
94
|
+
return Promise.reject(new Error(`manager is fenced for preservation attempt ${this.preservationAttemptId}; refusing different attempt ${attemptId}`));
|
|
95
|
+
if (this.maintenanceState === "preserved" && this.preservationInventory)
|
|
96
|
+
return Promise.resolve({ ok: true, attemptId, state: "preserved", inventory: this.preservationInventory, failures: [] });
|
|
97
|
+
if (this.preparationTask)
|
|
98
|
+
return this.preparationTask;
|
|
99
|
+
if (this.maintenanceState === "active") {
|
|
100
|
+
// The fence lands before any await. Accepted work has already incremented lifecycleInFlight.
|
|
101
|
+
this.maintenanceState = "preserving";
|
|
102
|
+
this.preservationAttemptId = attemptId;
|
|
103
|
+
this.preservationGeneration++;
|
|
104
|
+
if (this.credRenewTimer) {
|
|
105
|
+
clearInterval(this.credRenewTimer);
|
|
106
|
+
this.credRenewTimer = undefined;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const generation = this.preservationGeneration;
|
|
110
|
+
const task = this.runPreparation(attemptId, generation);
|
|
111
|
+
let wrapped;
|
|
112
|
+
wrapped = task.finally(() => {
|
|
113
|
+
if (this.preservationGeneration === generation && this.preparationTask === wrapped)
|
|
114
|
+
this.preparationTask = undefined;
|
|
115
|
+
});
|
|
116
|
+
this.preparationTask = wrapped;
|
|
117
|
+
return wrapped;
|
|
118
|
+
}
|
|
119
|
+
assertPreservationGeneration(attemptId, generation) {
|
|
120
|
+
if (this.preservationAttemptId !== attemptId || this.preservationGeneration !== generation)
|
|
121
|
+
throw new Error(`preservation attempt ${attemptId} was abandoned before preparation completed`);
|
|
122
|
+
}
|
|
123
|
+
async runPreparation(attemptId, generation) {
|
|
124
|
+
await this.awaitLifecycleDrain();
|
|
125
|
+
this.assertPreservationGeneration(attemptId, generation);
|
|
126
|
+
// Read the chat frontier BEFORE any child stops (issue #545): a message posted between this
|
|
127
|
+
// read and the child's stop is delivered live now and again as `historical` on resume, a
|
|
128
|
+
// duplicate bounded to the cut window that the seat's own id dedup on `durable` channels
|
|
129
|
+
// absorbs, whereas a read taken after the stops would instead skip messages the seat never
|
|
130
|
+
// actually saw.
|
|
131
|
+
const backfillFloor = await this.chatFrontierForPreservation();
|
|
132
|
+
const inventory = this.preservationInventory ?? {
|
|
133
|
+
version: "cotal-manager-resume/v2",
|
|
134
|
+
space: this.space,
|
|
135
|
+
createdAt: new Date().toISOString(),
|
|
136
|
+
agents: [...this.agents.values()].map((a) => this.resumeEntry(a, backfillFloor)),
|
|
137
|
+
};
|
|
138
|
+
const failures = [];
|
|
139
|
+
for (const entry of inventory.agents) {
|
|
140
|
+
const error = this.inventoryReferenceError(entry);
|
|
141
|
+
if (error)
|
|
142
|
+
failures.push({
|
|
143
|
+
name: entry.name,
|
|
144
|
+
id: entry.identity.mode === "user" ? principalKey(entry.identity.owner, entry.identity.actor).key : entry.identity.id,
|
|
145
|
+
error,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// A later manager does not resume a delegated seat, and its close runs only inside its
|
|
149
|
+
// retirement, so a cut that holds one is refused before any child stops. A carried resume seat's
|
|
150
|
+
// private home is removed when its slot is freed, so a later manager would find nothing to fork.
|
|
151
|
+
for (const a of this.agents.values()) {
|
|
152
|
+
if (a.handedOff)
|
|
153
|
+
failures.push({ name: a.name, id: a.id, error: "a delegated seat is not resumed by a later manager; stop it before preserving" });
|
|
154
|
+
if (a.seatHome)
|
|
155
|
+
failures.push({ name: a.name, id: a.id, error: "a carried resume seat's private home is not kept for a later manager; stop it before preserving" });
|
|
156
|
+
if (a.once)
|
|
157
|
+
failures.push({ name: a.name, id: a.id, error: "a once seat runs its one task in this process, and a later manager would start it again; let its task end or stop it before preserving" });
|
|
158
|
+
}
|
|
159
|
+
const unverifiedStops = this.unverifiedStops.filter((stopped) => {
|
|
160
|
+
try {
|
|
161
|
+
if (!stopped.authoritative && stopped.handle.status() === "exited")
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
catch { /* fail closed below */ }
|
|
165
|
+
failures.push({
|
|
166
|
+
name: stopped.name,
|
|
167
|
+
id: stopped.id,
|
|
168
|
+
error: stopped.error ?? `an earlier stop on runtime "${stopped.handle.kind}" cannot prove the child is gone`,
|
|
169
|
+
});
|
|
170
|
+
return true;
|
|
171
|
+
});
|
|
172
|
+
this.assertPreservationGeneration(attemptId, generation);
|
|
173
|
+
// The prepared inventory must round-trip through the EXACT resume control parser (schema and
|
|
174
|
+
// byte cap) NOW, before any child stops: a cut that cannot resume must fail at prepare time,
|
|
175
|
+
// never after listener exposure.
|
|
176
|
+
try {
|
|
177
|
+
parseResumeControlArgs({ attemptId, inventory });
|
|
178
|
+
}
|
|
179
|
+
catch (e) {
|
|
180
|
+
failures.push({ name: "<inventory>", id: attemptId, error: `prepared inventory would be rejected at resume: ${rejectionText(e)}` });
|
|
181
|
+
}
|
|
182
|
+
this.preservationInventory = inventory;
|
|
183
|
+
this.preservationFailures = failures;
|
|
184
|
+
this.unverifiedStops = unverifiedStops;
|
|
185
|
+
return {
|
|
186
|
+
ok: failures.length === 0,
|
|
187
|
+
attemptId,
|
|
188
|
+
state: "prepared",
|
|
189
|
+
inventory,
|
|
190
|
+
failures: [...failures],
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/** Stop children only after the coordinator has persisted the prepared inventory. Same-attempt
|
|
194
|
+
* retries are idempotent; a different attempt is refused. */
|
|
195
|
+
commitPreservation(attemptId) {
|
|
196
|
+
if (this.execution === "none")
|
|
197
|
+
return Promise.reject(new EpEnvelopeError("unimplemented", this.executionRefusal()));
|
|
198
|
+
if (!this.preservationAttemptId || this.preservationAttemptId !== attemptId)
|
|
199
|
+
return Promise.reject(new Error(`preservation attempt ${attemptId} was not prepared by this manager`));
|
|
200
|
+
if (!this.preservationInventory)
|
|
201
|
+
return Promise.reject(new Error(`preservation attempt ${attemptId} has no prepared inventory`));
|
|
202
|
+
if (this.preservationFailures.length)
|
|
203
|
+
return Promise.resolve({
|
|
204
|
+
ok: false,
|
|
205
|
+
attemptId,
|
|
206
|
+
state: "preserving",
|
|
207
|
+
inventory: this.preservationInventory,
|
|
208
|
+
failures: [...this.preservationFailures],
|
|
209
|
+
});
|
|
210
|
+
if (this.maintenanceState === "preserved")
|
|
211
|
+
return Promise.resolve({ ok: true, attemptId, state: "preserved", inventory: this.preservationInventory, failures: [] });
|
|
212
|
+
if (this.preservationTask)
|
|
213
|
+
return this.preservationTask;
|
|
214
|
+
this.preservationStarted = true;
|
|
215
|
+
this.preservationTask = this.runPreservation(attemptId).finally(() => {
|
|
216
|
+
this.preservationTask = undefined;
|
|
217
|
+
});
|
|
218
|
+
return this.preservationTask;
|
|
219
|
+
}
|
|
220
|
+
/** Recover an abandoned prepare before any child stop. Once commit begins, preservation is
|
|
221
|
+
* irreversible and remains fenced until the coordinator records failure/recourse. */
|
|
222
|
+
abortPreservation(attemptId) {
|
|
223
|
+
if (this.execution === "none")
|
|
224
|
+
throw new EpEnvelopeError("unimplemented", this.executionRefusal());
|
|
225
|
+
if (this.preservationAttemptId !== attemptId)
|
|
226
|
+
throw new Error(`preservation attempt ${attemptId} is not the active manager attempt`);
|
|
227
|
+
if (this.preparationTask || this.lifecycleInFlight > 0)
|
|
228
|
+
throw new Error(`preservation attempt ${attemptId} is still preparing or draining accepted lifecycle work and cannot be aborted`);
|
|
229
|
+
if (this.preservationStarted || this.preservationTask || this.maintenanceState === "preserved")
|
|
230
|
+
throw new Error(`preservation attempt ${attemptId} has begun stopping children and cannot return to active mode`);
|
|
231
|
+
this.preservationGeneration++;
|
|
232
|
+
this.maintenanceState = "active";
|
|
233
|
+
this.preservationAttemptId = undefined;
|
|
234
|
+
this.preservationInventory = undefined;
|
|
235
|
+
this.preservationFailures = [];
|
|
236
|
+
if (this.auth && !this.credRenewTimer) {
|
|
237
|
+
this.credRenewTimer = setInterval(() => { void this.renewDaemonCreds(); }, credRenewIntervalMs(STANDING_RENEWABLE_TTL_SEC));
|
|
238
|
+
this.credRenewTimer.unref?.();
|
|
239
|
+
}
|
|
240
|
+
this.resumeCredRenewal?.();
|
|
241
|
+
// Exit watchers were suppressed while the fence stood: reconcile every child that died during
|
|
242
|
+
// preparation now, or its slot/credential footprint would linger unreaped after the abort.
|
|
243
|
+
for (const agent of [...this.agents.values()]) {
|
|
244
|
+
try {
|
|
245
|
+
if (agent.handle.status() === "exited")
|
|
246
|
+
this.onAgentExit(agent);
|
|
247
|
+
}
|
|
248
|
+
catch { /* status unavailable - the exit watcher fires again on real exit */ }
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/** In-process convenience that preserves the crash barrier by awaiting durable persistence between
|
|
252
|
+
* prepare and commit. Wire callers use the explicit two-phase admin operations. */
|
|
253
|
+
async preserveState(opts) {
|
|
254
|
+
const plan = await this.preparePreservation(opts.attemptId);
|
|
255
|
+
if (!plan.ok)
|
|
256
|
+
return { ok: false, attemptId: opts.attemptId, state: "preserving", inventory: plan.inventory, failures: plan.failures };
|
|
257
|
+
await opts.persistInventory(plan.inventory);
|
|
258
|
+
return this.commitPreservation(opts.attemptId);
|
|
259
|
+
}
|
|
260
|
+
async runPreservation(attemptId) {
|
|
261
|
+
const failures = [];
|
|
262
|
+
for (const a of [...this.agents.values()])
|
|
263
|
+
a.suppressCleanup = true;
|
|
264
|
+
await Promise.all([...this.agents.values()].map(async (a) => {
|
|
265
|
+
try {
|
|
266
|
+
// A preservation cut must not run the connector's logical leave/cleanup hooks.
|
|
267
|
+
a.handle.stop({ graceful: false });
|
|
268
|
+
}
|
|
269
|
+
catch (e) {
|
|
270
|
+
failures.push({ name: a.name, id: a.id, error: `stop failed: ${rejectionText(e)}` });
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
try {
|
|
274
|
+
await this.awaitHandleExit(a.handle);
|
|
275
|
+
if (this.agents.get(a.name) === a)
|
|
276
|
+
this.agents.delete(a.name);
|
|
277
|
+
}
|
|
278
|
+
catch (e) {
|
|
279
|
+
failures.push({ name: a.name, id: a.id, error: rejectionText(e) });
|
|
280
|
+
}
|
|
281
|
+
}));
|
|
282
|
+
if (failures.length === 0)
|
|
283
|
+
this.maintenanceState = "preserved";
|
|
284
|
+
return {
|
|
285
|
+
ok: failures.length === 0,
|
|
286
|
+
attemptId,
|
|
287
|
+
state: this.maintenanceState === "preserved" ? "preserved" : "preserving",
|
|
288
|
+
inventory: this.preservationInventory,
|
|
289
|
+
failures,
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
async awaitHandleExit(handle) {
|
|
293
|
+
if (!handle.waitForExit)
|
|
294
|
+
throw new Error(`runtime "${handle.kind}" cannot prove child exit (AgentHandle.waitForExit is not implemented)`);
|
|
295
|
+
await withTimeout(handle.waitForExit(), this.preserveStopTimeoutMs, `child did not exit within ${this.preserveStopTimeoutMs}ms`);
|
|
296
|
+
if (handle.status() !== "exited")
|
|
297
|
+
throw new Error(`runtime "${handle.kind}" reported exit completion but status is still running`);
|
|
298
|
+
}
|
|
299
|
+
inventoryReferenceError(entry) {
|
|
300
|
+
if (entry.launch.source.kind === "manifest" && !entry.launch.source.runId)
|
|
301
|
+
return "resolved manifest launch has no retained runId";
|
|
302
|
+
if (entry.launch.unresolvedLaunchOptionKeys?.length)
|
|
303
|
+
return `imperative launch options have no non-secret durable source (${entry.launch.unresolvedLaunchOptionKeys.join(", ")})`;
|
|
304
|
+
if (!entry.dependencies.some((path) => resolve(path) === resolve(entry.launch.source.configPath)))
|
|
305
|
+
return `launch config is not declared as a retained dependency: ${entry.launch.source.configPath}`;
|
|
306
|
+
if (entry.launch.source.kind === "inline" && resolve(entry.launch.source.configPath) !== resolve(inlineSnapshotPath(this.workspaceRoot, entry.identity.lifecycleUid)))
|
|
307
|
+
return `inline persona snapshot ${entry.launch.source.configPath} is not this lifecycle's snapshot path`;
|
|
308
|
+
if (entry.launch.source.kind === "manifest" && entry.launch.source.runId) {
|
|
309
|
+
const specPath = join(this.workspaceRoot, ".cotal", "run", `${entry.launch.source.runId}.json`);
|
|
310
|
+
if (!entry.dependencies.some((path) => resolve(path) === resolve(specPath)))
|
|
311
|
+
return `manifest source is not declared as a retained dependency: ${specPath}`;
|
|
312
|
+
}
|
|
313
|
+
const required = [...entry.dependencies];
|
|
314
|
+
if (entry.identity.mode === "static")
|
|
315
|
+
required.push(entry.identity.credential.path);
|
|
316
|
+
if (entry.identity.mode === "user") {
|
|
317
|
+
required.push(entry.identity.actorToken.path, entry.identity.sentinelCredential.path);
|
|
318
|
+
}
|
|
319
|
+
for (const path of required) {
|
|
320
|
+
try {
|
|
321
|
+
const st = lstatSync(path);
|
|
322
|
+
if (!st.isFile() || st.isSymbolicLink())
|
|
323
|
+
return `retained reference is not a regular non-symlink file: ${path}`;
|
|
324
|
+
}
|
|
325
|
+
catch (e) {
|
|
326
|
+
return `retained reference unavailable: ${path} (${rejectionText(e)})`;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if (process.platform !== "win32") {
|
|
330
|
+
const secrets = entry.identity.mode === "static"
|
|
331
|
+
? [entry.identity.credential.path]
|
|
332
|
+
: entry.identity.mode === "user"
|
|
333
|
+
? [entry.identity.actorToken.path, entry.identity.sentinelCredential.path]
|
|
334
|
+
: [];
|
|
335
|
+
for (const path of secrets)
|
|
336
|
+
if ((lstatSync(path).mode & 0o077) !== 0)
|
|
337
|
+
return `retained identity file is not private (expected 0600): ${path}`;
|
|
338
|
+
}
|
|
339
|
+
try {
|
|
340
|
+
if (this.fileDigest(entry.launch.source.configPath) !== entry.launch.source.configSha256)
|
|
341
|
+
return `launch config changed since it became effective: ${entry.launch.source.configPath}`;
|
|
342
|
+
if (entry.identity.mode === "static" && this.fileDigest(entry.identity.credential.path) !== entry.identity.credential.sha256)
|
|
343
|
+
return `retained credential changed after the cut: ${entry.identity.credential.path}`;
|
|
344
|
+
if (entry.identity.mode === "user" &&
|
|
345
|
+
(this.fileDigest(entry.identity.actorToken.path) !== entry.identity.actorToken.sha256 ||
|
|
346
|
+
this.fileDigest(entry.identity.sentinelCredential.path) !== entry.identity.sentinelCredential.sha256))
|
|
347
|
+
return `retained user identity files changed after the cut for ${entry.name}`;
|
|
348
|
+
if (entry.launch.source.kind === "manifest" && entry.launch.source.runId) {
|
|
349
|
+
const specPath = join(this.workspaceRoot, ".cotal", "run", `${entry.launch.source.runId}.json`);
|
|
350
|
+
if (!entry.launch.source.manifestSha256 || this.fileDigest(specPath) !== entry.launch.source.manifestSha256)
|
|
351
|
+
return `manifest source changed since it became effective: ${specPath}`;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
catch (e) {
|
|
355
|
+
return `retained reference cannot be hashed: ${rejectionText(e)}`;
|
|
356
|
+
}
|
|
357
|
+
return undefined;
|
|
358
|
+
}
|
|
359
|
+
fileDigestOrEmpty(path) {
|
|
360
|
+
try {
|
|
361
|
+
return this.fileDigest(path);
|
|
362
|
+
}
|
|
363
|
+
catch {
|
|
364
|
+
return "";
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/** Tear down every managed agent's footprint on an explicit destructive {@link stop}, or only the
|
|
368
|
+
* in-process seats a default stop cannot detach. A manager exit is
|
|
369
|
+
* a mass agent-exit, and without this its agents' footprints (creds files + `dm_`/`dlv_` durables + ACL
|
|
370
|
+
* rows) would orphan exactly as the per-agent exit path prevents. Stop each child gracefully, so its
|
|
371
|
+
* own shutdown runs before the runtime escalates, and AWAIT its deprovision — bounded per agent (`withTimeout`) and
|
|
372
|
+
* best-effort (`allSettled` + a loud log), so one slow/failed teardown can neither hang nor abort exit.
|
|
373
|
+
* The creds file is dropped even if the broker teardown fails (see {@link deprovision}). Deliberately
|
|
374
|
+
* touches NEITHER the lease NOR the endpoints — the caller owns those. */
|
|
375
|
+
async teardownManagedAgents(managed = [...this.agents.values()]) {
|
|
376
|
+
const failures = [];
|
|
377
|
+
const stopped = [];
|
|
378
|
+
for (const a of managed) {
|
|
379
|
+
// Free the slot and stop each the way an operator stop does. `stopHandle` is best-effort (never
|
|
380
|
+
// throws — see it), so one bad stop can't strand the rest, and every snapshot entry is
|
|
381
|
+
// deprovisioned below regardless. A hard kill never runs the seat's shutdown, so a helper that
|
|
382
|
+
// has left the process group keeps running after `cotal down`. The runtime still escalates to
|
|
383
|
+
// SIGKILL after its grace.
|
|
384
|
+
this.recordContinuityAtStop(a, "shutdown");
|
|
385
|
+
if (process.platform !== "win32" || a.handle.kind !== "pty") {
|
|
386
|
+
this.agents.delete(a.name);
|
|
387
|
+
this.dropSeatRecord(a);
|
|
388
|
+
}
|
|
389
|
+
const refused = this.stopHandle(a, true, { kind: "stopped-shutdown" });
|
|
390
|
+
if (refused === undefined)
|
|
391
|
+
stopped.push(a);
|
|
392
|
+
else
|
|
393
|
+
failures.push(`${a.name}: stop failed: ${refused}`);
|
|
394
|
+
}
|
|
395
|
+
// A runtime stop request is not exit proof. Do not release the manager lease or registration
|
|
396
|
+
// while any seat may still hold this instance's broker rails: that creates the exact orphan
|
|
397
|
+
// window where a successor sees a dead manager but live predecessor authority. Every shipped
|
|
398
|
+
// runtime now supplies waitForExit; absence or timeout is a failed shutdown, never a clean one.
|
|
399
|
+
// The slot delete above bypasses freeSlot, which is where the reap line lives, so say it
|
|
400
|
+
// here once this shutdown has proved the seat exited. A seat whose stop was refused, or
|
|
401
|
+
// whose exit wait did not prove it gone, is named only by the shutdown error below (#1423, #3404).
|
|
402
|
+
await Promise.all(stopped.map(async (a) => {
|
|
403
|
+
try {
|
|
404
|
+
await this.awaitHandleExit(a.handle);
|
|
405
|
+
if (process.platform === "win32" && a.handle.kind === "pty") {
|
|
406
|
+
this.agents.delete(a.name);
|
|
407
|
+
this.dropSeatRecord(a);
|
|
408
|
+
}
|
|
409
|
+
this.logSeatReaped(a, { kind: "stopped-shutdown" });
|
|
410
|
+
}
|
|
411
|
+
catch (e) {
|
|
412
|
+
failures.push(`${a.name}: ${rejectionText(e)}`);
|
|
413
|
+
}
|
|
414
|
+
}));
|
|
415
|
+
// Deprovision EVERY snapshot entry regardless of whether its stop failed (allSettled + a loud log).
|
|
416
|
+
await Promise.allSettled(managed.filter((a) => !a.suppressCleanup).map((a) => {
|
|
417
|
+
// Retired here on every mesh, the open mesh included, which runs no teardown of its own.
|
|
418
|
+
const settled = a.launch.source.kind !== "inline" || this.dropInlineSnapshot(a.name, a.lifecycleUid);
|
|
419
|
+
return this.deprovision({ ...this.teardownTarget(a), ...(settled ? { snapshotSettled: true } : {}) }).catch((e) => console.error(`deprovision ${a.name} (${a.id}) on shutdown: ${rejectionText(e)}`));
|
|
420
|
+
}));
|
|
421
|
+
if (failures.length)
|
|
422
|
+
throw new Error(`manager shutdown could not prove every seat exited: ${failures.join("; ")}`);
|
|
423
|
+
}
|
|
424
|
+
isProcessBoundSeat(agent) {
|
|
425
|
+
return agent.handle.kind === "pty" && typeof agent.handle.release !== "function";
|
|
426
|
+
}
|
|
427
|
+
/** Drop local custody of every seat that can outlive this process, and leave it running. A seat
|
|
428
|
+
* with a runtime reference is recorded first, so the next manager on this workspace adopts it, or
|
|
429
|
+
* retires it once its runtime proves it gone. The stopping manager keeps no watch on a released
|
|
430
|
+
* seat: its endpoint is closing, and a retirement it drove afterwards would run over a dead
|
|
431
|
+
* connection and race the next manager's. `stop` is every seat left for the caller to stop and
|
|
432
|
+
* retire now: an in-process seat, a seat the runtime already reports gone, and a seat whose record
|
|
433
|
+
* could not be written, because a released seat nobody can find again is the leak this stop must
|
|
434
|
+
* not create. */
|
|
435
|
+
releaseManagedAgents() {
|
|
436
|
+
const failures = [];
|
|
437
|
+
const stop = [];
|
|
438
|
+
for (const a of [...this.agents.values()]) {
|
|
439
|
+
if (this.isProcessBoundSeat(a)) {
|
|
440
|
+
stop.push(a);
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
let exited = false;
|
|
444
|
+
try {
|
|
445
|
+
exited = a.handle.status() === "exited";
|
|
446
|
+
}
|
|
447
|
+
catch {
|
|
448
|
+
// Status is not proof either way; the seat is released as any running seat is.
|
|
449
|
+
}
|
|
450
|
+
if (exited) {
|
|
451
|
+
stop.push(a);
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
const reference = a.handle.reference;
|
|
455
|
+
if (reference) {
|
|
456
|
+
try {
|
|
457
|
+
// A static manager records an adoptable seat at launch and keeps that record current. A
|
|
458
|
+
// user-mode manager records nothing until here.
|
|
459
|
+
if (this.userMode)
|
|
460
|
+
writeSeatRecord(this.workspaceRoot, { version: "cotal-seat-record/v1", instanceId: this.managerInstanceId, crashes: a.restart?.crashes ?? [], agent: this.resumeEntryOf(a) });
|
|
461
|
+
writeReleasedSeatReference(this.workspaceRoot, this.space, a.name, { version: "cotal-released-seat/v1", lifecycleUid: a.lifecycleUid, kind: reference.kind, id: reference.id });
|
|
462
|
+
}
|
|
463
|
+
catch (e) {
|
|
464
|
+
console.error(`! ${a.name}: the released seat could not be recorded (${rejectionText(e)}); this stop retires it instead`);
|
|
465
|
+
stop.push(a);
|
|
466
|
+
continue;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
try {
|
|
470
|
+
a.handle.release?.();
|
|
471
|
+
a.suppressCleanup = true;
|
|
472
|
+
this.agents.delete(a.name);
|
|
473
|
+
}
|
|
474
|
+
catch (e) {
|
|
475
|
+
failures.push(`${a.name}: ${rejectionText(e)}`);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return { failures, stop };
|
|
479
|
+
}
|
|
480
|
+
/** Take back user-mode seats a previous manager released while they were still running. A seat
|
|
481
|
+
* the runtime adopts is watched, and retired when that watch proves it gone. A seat the runtime
|
|
482
|
+
* has already reaped is retired now. Anything the runtime cannot prove is left recorded. */
|
|
483
|
+
async adoptReleasedSeats() {
|
|
484
|
+
const dir = join(this.workspaceRoot, ".cotal", "seat-records", this.space);
|
|
485
|
+
if (!existsSync(dir))
|
|
486
|
+
return;
|
|
487
|
+
for (const file of readdirSync(dir)) {
|
|
488
|
+
if (!file.endsWith(".runtime-ref"))
|
|
489
|
+
continue;
|
|
490
|
+
const name = file.slice(0, -".runtime-ref".length);
|
|
491
|
+
try {
|
|
492
|
+
await this.adoptReleasedSeat(name);
|
|
493
|
+
}
|
|
494
|
+
catch (e) {
|
|
495
|
+
console.error(`! ${name}: the released seat was not adopted: ${rejectionText(e)}`);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
async adoptReleasedSeat(name) {
|
|
500
|
+
const reference = readReleasedSeatReference(this.workspaceRoot, this.space, name);
|
|
501
|
+
const record = reference ? readSeatRecord(this.workspaceRoot, this.space, name) : undefined;
|
|
502
|
+
const identity = record?.agent.identity;
|
|
503
|
+
if (!reference || !record || identity?.mode !== "user" || identity.lifecycleUid !== reference.lifecycleUid)
|
|
504
|
+
return;
|
|
505
|
+
try {
|
|
506
|
+
await this.validateRetainedAuthority(record.agent);
|
|
507
|
+
}
|
|
508
|
+
catch (e) {
|
|
509
|
+
console.error(`! ${name}: the released seat's record was not adopted: ${rejectionText(e)}`);
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
const held = this.agents.get(name);
|
|
513
|
+
if (held?.lifecycleUid === reference.lifecycleUid)
|
|
514
|
+
return;
|
|
515
|
+
if (held)
|
|
516
|
+
return;
|
|
517
|
+
const runtime = this.runtimeFor(reference.kind);
|
|
518
|
+
if (typeof runtime.adopt !== "function" || reference.kind !== runtime.kind)
|
|
519
|
+
return;
|
|
520
|
+
let handle;
|
|
521
|
+
try {
|
|
522
|
+
handle = runtime.adopt(reference);
|
|
523
|
+
}
|
|
524
|
+
catch (e) {
|
|
525
|
+
try {
|
|
526
|
+
await requireRuntimeReap(runtime, reference);
|
|
527
|
+
}
|
|
528
|
+
catch {
|
|
529
|
+
// The runtime could not prove the seat gone. Leave the record for a later start.
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
console.error(`! ${name}: the released seat is gone (${rejectionText(e)}); retiring its lifecycle`);
|
|
533
|
+
handle = {
|
|
534
|
+
name,
|
|
535
|
+
kind: runtime.kind,
|
|
536
|
+
reference: { kind: runtime.kind, id: reference.id },
|
|
537
|
+
status: () => "exited",
|
|
538
|
+
stop: () => { },
|
|
539
|
+
interrupt: () => { },
|
|
540
|
+
waitForExit: () => Promise.resolve(),
|
|
541
|
+
attach: () => { throw new Error(`released seat ${name} has exited`); },
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
const launch = record.agent.launch;
|
|
545
|
+
const agent = {
|
|
546
|
+
name,
|
|
547
|
+
role: record.agent.role,
|
|
548
|
+
agent: launch.connector,
|
|
549
|
+
id: principalKey(identity.owner, identity.actor).key,
|
|
550
|
+
lifecycleUid: identity.lifecycleUid,
|
|
551
|
+
userOwner: identity.owner,
|
|
552
|
+
secretPaths: {
|
|
553
|
+
actorToken: identity.actorToken.path,
|
|
554
|
+
sentinelCreds: identity.sentinelCredential.path,
|
|
555
|
+
health: identity.health.path,
|
|
556
|
+
},
|
|
557
|
+
spawner: record.agent.spawner,
|
|
558
|
+
authorityParent: record.agent.authorityParent,
|
|
559
|
+
startedAt: Date.parse(record.agent.startedAt) || Date.now(),
|
|
560
|
+
handle,
|
|
561
|
+
launch: {
|
|
562
|
+
source: launch.source,
|
|
563
|
+
runtime: launch.runtime,
|
|
564
|
+
cwd: launch.cwd,
|
|
565
|
+
model: launch.model,
|
|
566
|
+
variant: launch.variant,
|
|
567
|
+
subscribe: launch.subscribe,
|
|
568
|
+
allowSubscribe: launch.allowSubscribe,
|
|
569
|
+
allowPublish: launch.allowPublish,
|
|
570
|
+
capabilities: launch.capabilities,
|
|
571
|
+
events: launch.events,
|
|
572
|
+
eventPayloads: launch.eventPayloads,
|
|
573
|
+
shareTools: launch.shareTools,
|
|
574
|
+
forkSource: launch.forkSource,
|
|
575
|
+
sessionId: launch.sessionId,
|
|
576
|
+
unresolvedLaunchOptionKeys: launch.unresolvedLaunchOptionKeys,
|
|
577
|
+
},
|
|
578
|
+
};
|
|
579
|
+
this.agents.set(name, agent);
|
|
580
|
+
this.watchExit(agent);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
//# sourceMappingURL=preservation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preservation.js","sourceRoot":"","sources":["../src/preservation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE1G,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,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