@wjarka/cezarion 0.17.0-dev.5413 → 0.17.0-dev.5423

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 (53) hide show
  1. package/dist/delegation/routes.d.ts +77 -77
  2. package/dist/delegation/transport.d.ts +4 -4
  3. package/dist/server/self-update-routes.d.ts +19 -19
  4. package/dist/workflows/run/compose.d.ts +4 -2
  5. package/dist/workflows/run/compose.js +46 -37
  6. package/dist/workflows/run/compose.js.map +1 -1
  7. package/dist/workflows/run/family-reconciler.d.ts +3 -6
  8. package/dist/workflows/run/family-reconciler.js +5 -18
  9. package/dist/workflows/run/family-reconciler.js.map +1 -1
  10. package/dist/workflows/run/human-waits.d.ts +2 -0
  11. package/dist/workflows/run/human-waits.js +1 -6
  12. package/dist/workflows/run/human-waits.js.map +1 -1
  13. package/dist/workflows/run/input-delivery.d.ts +2 -2
  14. package/dist/workflows/run/input-delivery.js +2 -2
  15. package/dist/workflows/run/input-delivery.js.map +1 -1
  16. package/dist/workflows/run/run-cancel.d.ts +4 -4
  17. package/dist/workflows/run/run-cancel.js +5 -6
  18. package/dist/workflows/run/run-cancel.js.map +1 -1
  19. package/dist/workflows/run/run-finish.d.ts +2 -1
  20. package/dist/workflows/run/run-finish.js +1 -1
  21. package/dist/workflows/run/run-finish.js.map +1 -1
  22. package/dist/workflows/run/run-recovery.d.ts +4 -3
  23. package/dist/workflows/run/run-recovery.js +5 -9
  24. package/dist/workflows/run/run-recovery.js.map +1 -1
  25. package/dist/workflows/run/step-loop.d.ts +2 -0
  26. package/dist/workflows/run/step-loop.js +1 -1
  27. package/dist/workflows/run/step-loop.js.map +1 -1
  28. package/dist/workflows/run/subagent-waits.d.ts +2 -0
  29. package/dist/workflows/run/subagent-waits.js +1 -2
  30. package/dist/workflows/run/subagent-waits.js.map +1 -1
  31. package/dist/workflows/run/turn-settler.d.ts +2 -3
  32. package/dist/workflows/run/turn-settler.js +1 -1
  33. package/dist/workflows/run/turn-settler.js.map +1 -1
  34. package/dist/workflows/run/wait-cancellation.d.ts +34 -0
  35. package/dist/workflows/run/wait-cancellation.js +54 -0
  36. package/dist/workflows/run/wait-cancellation.js.map +1 -0
  37. package/dist/workflows/run/wait-registry.d.ts +3 -24
  38. package/dist/workflows/run/wait-registry.js +4 -55
  39. package/dist/workflows/run/wait-registry.js.map +1 -1
  40. package/dist/workflows/run/wait-resolve.d.ts +1139 -0
  41. package/dist/workflows/run/wait-resolve.js +313 -0
  42. package/dist/workflows/run/wait-resolve.js.map +1 -0
  43. package/dist/workflows/run/wait-watches.d.ts +11 -1117
  44. package/dist/workflows/run/wait-watches.js +10 -233
  45. package/dist/workflows/run/wait-watches.js.map +1 -1
  46. package/dist/workflows/run/wake-admission.d.ts +4 -14
  47. package/dist/workflows/run/wake-admission.js +4 -34
  48. package/dist/workflows/run/wake-admission.js.map +1 -1
  49. package/dist/workflows/run.js +4 -4
  50. package/package.json +3 -3
  51. package/dist/workflows/run/wait-cancel.d.ts +0 -9
  52. package/dist/workflows/run/wait-cancel.js +0 -17
  53. package/dist/workflows/run/wait-cancel.js.map +0 -1
@@ -0,0 +1,313 @@
1
+ import { watchDeadline } from './wait-watches.js';
2
+ import { peerWaitResult } from '../wait-scope.js';
3
+ import { WAIT_KINDS } from './wait-kinds.js';
4
+ import { familyOf } from './run-guards.js';
5
+ import { chargesBudget, openWaits, waitInputId, waitResultText, settledWaitEntry, ciWatchRequest } from '../waits.js';
6
+ import { ciWaitResultSchema } from '../../contract/index.js';
7
+ import { ProcessWaitSupervisor } from '../../process-wait/supervisor.js';
8
+ import { agentTmpDirEnabled, resolveAgentTmpDir } from '../../runs/agent-tmpdir.js';
9
+ // Deadline timers stop through clearTimeout on waitTimers (disarm and dispose); this signal never fires.
10
+ const deadlineSignal = new AbortController().signal;
11
+ export class WaitResolve {
12
+ context;
13
+ host;
14
+ maxAutoContinues;
15
+ /** One CI watch per open CI wait, keyed by wait id. */
16
+ ciWatches = new Map();
17
+ /** A resolution whose checkpoint failed, retried by wait id. */
18
+ ciRetries = new Map();
19
+ /** Process waits' watches (hearsay-tools/cezarion#1446), by wait id. */
20
+ processWatches = new Map();
21
+ workerResolveRetries = new Set();
22
+ processSupervisor = new ProcessWaitSupervisor();
23
+ /** One timer per open timer wait, keyed by wait id. */
24
+ waitTimers = new Map();
25
+ constructor(context, host, maxAutoContinues) {
26
+ this.context = context;
27
+ this.host = host;
28
+ this.maxAutoContinues = maxAutoContinues;
29
+ }
30
+ /** Where a process wait's exit file may sit: the run's worktree (the checkout for a run without
31
+ * one) and, unless turned off, the Cezar temp directory its agent gets as `TMPDIR`. */
32
+ exitFileRoots(runId, run = this.context.store.getRun(runId)) {
33
+ return { worktree: run?.worktreePath ?? this.context.repoRoot, ...(agentTmpDirEnabled() ? { tmpDir: resolveAgentTmpDir(this.context.dataDir, runId) } : {}) };
34
+ }
35
+ /** Start what resolves an open wait: its CI watch, or its timer from the stored deadline. An
36
+ * overdue timer (restart) resolves at once. */
37
+ armWait(runId, wait) {
38
+ if (this.context.disposed() || wait.phase !== 'open')
39
+ return;
40
+ const watch = WAIT_KINDS[wait.kind].watch;
41
+ if (watch === 'ci') {
42
+ this.startCiWatch(runId, wait);
43
+ return;
44
+ }
45
+ if (watch === 'process') {
46
+ this.startProcessWatch(runId, wait);
47
+ return;
48
+ }
49
+ // Only the user's answer, or a cancel, ends a human wait: nothing to arm.
50
+ if (watch === 'none')
51
+ return;
52
+ if (this.waitTimers.has(wait.id))
53
+ return;
54
+ if (watch === 'worker') {
55
+ this.armWorkerDeadline(runId, wait);
56
+ return;
57
+ }
58
+ // A peer that already wrote or settled resolves it first, at registration and recovery alike.
59
+ if (watch === 'peer' && this.resolvePeerWait(runId, wait))
60
+ return;
61
+ // Native subagents live only in their session: with none, as at a restart, they stopped
62
+ // (hearsay-tools/cezarion#2431). At its deadline a lost session reads the same.
63
+ const interrupted = () => watch === 'subagent' && !this.host.subagentSessionLive(runId);
64
+ if (interrupted()) {
65
+ this.host.interruptSubagentWait(runId, wait.id);
66
+ return;
67
+ }
68
+ // A stopping, stopped or finishing run takes no self-generated wake: the timer stays open
69
+ // for that transition to cancel, as the monitoring timer did before it was a wait.
70
+ const fire = () => {
71
+ const run = this.context.store.getRun(runId);
72
+ if (!this.host.canProceedWithRun(runId, run))
73
+ return;
74
+ if (interrupted())
75
+ this.host.interruptSubagentWait(runId, wait.id);
76
+ else
77
+ this.settleWait(runId, wait.id);
78
+ };
79
+ const deadline = wait.deadline;
80
+ const due = Date.parse(deadline) - Date.now();
81
+ if (due <= 0) {
82
+ fire();
83
+ return;
84
+ }
85
+ const timer = watchDeadline({ deadline, delay: due }, deadlineSignal, () => {
86
+ if (this.waitTimers.get(wait.id)?.timer !== timer)
87
+ return;
88
+ this.waitTimers.delete(wait.id);
89
+ fire();
90
+ });
91
+ this.waitTimers.set(wait.id, { runId, timer });
92
+ }
93
+ /**
94
+ * A worker wait's deadline re-observes its family (hearsay-tools/cezarion#1235): the reconcile
95
+ * resolves it with `timeout`, keeping any outcome observed by then. A failed checkpoint is
96
+ * retried every second while the wait is still open, never dropped as an uncaught error. An
97
+ * outcome whose resolution failed to commit arms the same retry with `firstDelay` 1 second.
98
+ */
99
+ armWorkerDeadline(runId, wait, firstDelay) {
100
+ // A deadline-less (Cezar completion) wait ends only when its workers settle (hearsay-tools/cezarion#1301).
101
+ if (firstDelay === undefined && wait.deadline === undefined)
102
+ return;
103
+ const run = this.context.store.getRun(runId);
104
+ if (!run)
105
+ return;
106
+ const family = familyOf(run);
107
+ let warned = false;
108
+ const arm = (delay) => {
109
+ const timer = watchDeadline({ deadline: wait.deadline, delay }, deadlineSignal, () => {
110
+ if (this.waitTimers.get(wait.id)?.timer !== timer)
111
+ return;
112
+ this.waitTimers.delete(wait.id);
113
+ try {
114
+ this.host.reconcileWorkerWaits(family);
115
+ }
116
+ catch {
117
+ if (!warned)
118
+ console.warn('[cez] worker wait checkpoint failed; retrying in 1 second');
119
+ warned = true;
120
+ if (!this.context.disposed() && this.context.store.getRun(runId)?.waits?.some(entry => entry.id === wait.id && entry.phase === 'open'))
121
+ arm(1_000);
122
+ }
123
+ });
124
+ this.waitTimers.set(wait.id, { runId, timer });
125
+ };
126
+ arm(Math.max(0, firstDelay ?? Date.parse(wait.deadline) - Date.now()));
127
+ }
128
+ hasWorkerResolveRetry(waitId) { return this.workerResolveRetries.has(waitId); }
129
+ recordWorkerResolveRetry(waitId) { this.workerResolveRetries.add(waitId); }
130
+ /** Stop everything that could still resolve this wait. */
131
+ disarmWait(waitId) {
132
+ this.ciWatches.get(waitId)?.abort.abort();
133
+ this.ciWatches.delete(waitId);
134
+ const timer = this.waitTimers.get(waitId);
135
+ if (timer)
136
+ clearTimeout(timer.timer);
137
+ this.waitTimers.delete(waitId);
138
+ const retry = this.ciRetries.get(waitId);
139
+ if (retry)
140
+ clearTimeout(retry.timer);
141
+ this.ciRetries.delete(waitId);
142
+ this.workerResolveRetries.delete(waitId);
143
+ this.processWatches.get(waitId)?.abort.abort();
144
+ this.processWatches.delete(waitId);
145
+ }
146
+ /**
147
+ * Watch a process wait's command (hearsay-tools/cezarion#1446). Like a timer, its wake is the
148
+ * agent's own arrangement: a stopping, stopped or finishing run takes none, and the wait stays
149
+ * open for that transition to cancel.
150
+ */
151
+ startProcessWatch(runId, wait) {
152
+ if (this.context.disposed() || this.processWatches.has(wait.id) || wait.phase !== 'open')
153
+ return;
154
+ const abort = new AbortController();
155
+ const watch = { runId, abort };
156
+ this.processWatches.set(wait.id, watch);
157
+ const settle = (result) => {
158
+ if (this.context.disposed() || abort.signal.aborted || this.processWatches.get(wait.id) !== watch)
159
+ return;
160
+ this.processWatches.delete(wait.id);
161
+ const run = this.context.store.getRun(runId);
162
+ if (!this.host.canProceedWithRun(runId, run))
163
+ return;
164
+ this.settleWait(runId, wait.id, result);
165
+ };
166
+ const request = { pid: wait.pid, deadline: wait.deadline, roots: this.exitFileRoots(runId),
167
+ ...(wait.startToken === undefined ? {} : { startToken: wait.startToken }), ...(wait.exitFile === undefined ? {} : { exitFile: wait.exitFile }) };
168
+ void this.processSupervisor.watch(request, abort.signal).then(settle, (error) => settle({ outcome: 'error', observedAt: new Date().toISOString(),
169
+ diagnostic: (error instanceof Error ? error.message : String(error)).slice(0, 512) }));
170
+ }
171
+ startCiWatch(runId, wait) {
172
+ if (this.context.disposed() || this.ciWatches.has(wait.id) || wait.phase !== 'open')
173
+ return;
174
+ const abort = new AbortController();
175
+ const watch = { runId, abort };
176
+ this.ciWatches.set(wait.id, watch);
177
+ const current = () => !this.context.disposed() && !abort.signal.aborted && this.ciWatches.get(wait.id) === watch;
178
+ const settle = (result) => {
179
+ if (!current())
180
+ return;
181
+ const parsed = ciWaitResultSchema.safeParse(result);
182
+ const validated = parsed.success ? parsed.data : { outcome: 'error', headSha: wait.headSha,
183
+ observedAt: new Date().toISOString(), checks: [], totalChecks: 0, truncated: false,
184
+ diagnostic: 'CI watcher returned an invalid observation; inspect the PR and register a new wait.' };
185
+ this.ciWatches.delete(wait.id);
186
+ this.settleWait(runId, wait.id, validated);
187
+ };
188
+ void this.host.ciSupervisor().watch(ciWatchRequest(wait), abort.signal).then(settle, () => settle({ outcome: 'error', headSha: wait.headSha,
189
+ observedAt: new Date().toISOString(), checks: [], totalChecks: 0, truncated: false,
190
+ diagnostic: 'CI watcher unavailable; inspect the pull request and retry the wait.' }));
191
+ }
192
+ /** `resolveWait`, retried while its durable checkpoint is unavailable: a failed write may not
193
+ * drop the accepted intent or publish a false result. */
194
+ settleWait(runId, waitId, result) {
195
+ if (this.context.disposed())
196
+ return;
197
+ try {
198
+ this.resolveWait(runId, waitId, result);
199
+ }
200
+ catch {
201
+ if (this.ciRetries.has(waitId))
202
+ return;
203
+ console.warn('[cez] wait checkpoint unavailable; retaining result for retry.');
204
+ const timer = setTimeout(() => { this.ciRetries.delete(waitId); this.settleWait(runId, waitId, result); }, 1000);
205
+ timer.unref();
206
+ this.ciRetries.set(waitId, { runId, timer });
207
+ }
208
+ }
209
+ disarmRun(runId) {
210
+ for (const [id, watch] of this.ciWatches)
211
+ if (watch.runId === runId)
212
+ this.host.disarmWait(id);
213
+ for (const [id, entry] of this.waitTimers)
214
+ if (entry.runId === runId)
215
+ this.host.disarmWait(id);
216
+ for (const [id, retry] of this.ciRetries)
217
+ if (retry.runId === runId)
218
+ this.host.disarmWait(id);
219
+ for (const [id, watch] of this.processWatches)
220
+ if (watch.runId === runId)
221
+ this.host.disarmWait(id);
222
+ }
223
+ /** Re-arm the caller's recovery snapshot. Do not re-read between waits: an overdue
224
+ * deadline can resolve synchronously, but the remaining snapshot entries still arm. */
225
+ rearm(run) {
226
+ for (const wait of openWaits(run))
227
+ this.armWait(run.id, wait);
228
+ }
229
+ disposeWatches() {
230
+ for (const task of this.ciWatches.values())
231
+ task.abort.abort();
232
+ this.processSupervisor.close();
233
+ this.ciWatches.clear();
234
+ }
235
+ disposeRetries() {
236
+ for (const retry of this.ciRetries.values())
237
+ clearTimeout(retry.timer);
238
+ this.ciRetries.clear();
239
+ }
240
+ dispose() {
241
+ for (const entry of this.waitTimers.values())
242
+ clearTimeout(entry.timer);
243
+ this.waitTimers.clear();
244
+ }
245
+ /** The open peer waits of these runs whose named peer already wrote, settled or was deleted resolve now. */
246
+ resolvePeerWaits(runIds) {
247
+ for (const id of runIds)
248
+ for (const wait of WAIT_KINDS.peer.select(openWaits(this.context.store.getRun(id) ?? {})))
249
+ this.resolvePeerWait(id, wait);
250
+ }
251
+ /** Like a timer, the wake is the agent's own arrangement: a stopping or finishing run takes none,
252
+ * and the wait stays for that transition to cancel. True when the wait is no longer open. */
253
+ resolvePeerWait(runId, wait) {
254
+ const run = this.context.store.getRun(runId);
255
+ if (this.context.disposed() || !this.host.canProceedWithRun(runId, run))
256
+ return false;
257
+ const result = peerWaitResult(run, wait, this.context.store);
258
+ if (result)
259
+ this.settleWait(runId, wait.id, result);
260
+ return !!result && this.context.store.getRun(runId)?.waits?.find(entry => entry.id === wait.id)?.phase !== 'open';
261
+ }
262
+ /** Commit an open wait as resolved together with its lifecycle input (id = wait id, or an
263
+ * upgraded worker wait's `wakeInputId`), then queue the run's wake. A worker wait passes the
264
+ * entry as reconciled, with its outcomes and `result`. Throws when the checkpoint fails; a wait
265
+ * no longer open is ignored. */
266
+ resolveWait(runId, waitId, result, observed) {
267
+ const latest = this.context.store.getRun(runId)?.waits?.find(wait => wait.id === waitId);
268
+ if (!latest || latest.phase !== 'open')
269
+ return;
270
+ const state = this.host.active(runId);
271
+ const resolvedAt = new Date().toISOString();
272
+ const settled = settledWaitEntry(latest, result, observed, resolvedAt);
273
+ // The count includes a timer batch still awaiting its acknowledgement. A subagent wait charges
274
+ // by how it resolved, so the resolved entry is what this reads (hearsay-tools/cezarion#2431).
275
+ if (chargesBudget(settled) && this.host.countAutomaticWakes(runId) >= this.maxAutoContinues) {
276
+ this.host.cancelAutomaticAtCap(runId, [latest]);
277
+ if (state)
278
+ this.host.reparkWithoutWaits(runId, state);
279
+ else
280
+ this.host.waitOnUserWithoutSession(runId);
281
+ return;
282
+ }
283
+ const input = { id: waitInputId(settled), parentRunId: runId, source: 'lifecycle', createdAt: resolvedAt,
284
+ text: waitResultText(settled, { workerStatus: this.workerStatus }) };
285
+ this.context.store.commitWait(runId, settled, input);
286
+ try {
287
+ this.host.queueWaitWake(runId);
288
+ }
289
+ catch {
290
+ this.host.retryWaitAdmission(runId);
291
+ }
292
+ }
293
+ /** A worker's current status, as a worker wait's result names it. */
294
+ workerStatus = (workerId) => this.context.store.getRun(workerId)?.status ?? 'unavailable';
295
+ resolveWorkerWait(runId, entry, observed) {
296
+ // The deadline stays armed until the resolution is durable. A failed write is retried in a
297
+ // second, since nothing else may touch this family again before the deadline.
298
+ try {
299
+ this.resolveWait(runId, entry.id, undefined, observed);
300
+ }
301
+ catch {
302
+ if (!this.hasWorkerResolveRetry(entry.id))
303
+ console.warn('[cez] worker wait checkpoint failed; retrying in 1 second');
304
+ this.host.disarmWait(entry.id);
305
+ this.recordWorkerResolveRetry(entry.id);
306
+ this.armWorkerDeadline(runId, entry, 1_000);
307
+ return false;
308
+ }
309
+ this.host.disarmWait(entry.id);
310
+ return true;
311
+ }
312
+ }
313
+ //# sourceMappingURL=wait-resolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait-resolve.js","sourceRoot":"","sources":["../../../src/workflows/run/wait-resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAmB,MAAM,aAAa,CAAC;AACvI,OAAO,EAAE,kBAAkB,EAAqB,MAAM,sCAAsC,CAAC;AAG7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEpF,yGAAyG;AACzG,MAAM,cAAc,GAAG,IAAI,eAAe,EAAE,CAAC,MAAM,CAAC;AAoBpD,MAAM,OAAO,WAAW;IAWO,OAAO;IAAqC,IAAI;IAAoC,gBAAgB;IAVjI,uDAAuD;IAC9C,SAAS,GAAG,IAAI,GAAG,EAAqD,CAAC;IAClF,gEAAgE;IAC/C,SAAS,GAAG,IAAI,GAAG,EAAoD,CAAC;IACzF,wEAAwE;IACvD,cAAc,GAAG,IAAI,GAAG,EAAqD,CAAC;IAC9E,oBAAoB,GAAG,IAAI,GAAG,EAAU,CAAC;IACzC,iBAAiB,GAAG,IAAI,qBAAqB,EAAE,CAAC;IACjE,uDAAuD;IAC9C,UAAU,GAAG,IAAI,GAAG,EAAoD,CAAC;IAClF,YAA6B,OAAyB,EAAmB,IAAqB,EAAm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