/** * Pure resource ledger for v3 goal attempts. * * Node state is not process state: early-release cancellation and revisit * supersession are intentionally journalled before the old worker has closed. * This fold tracks the stricter resource truth needed at run boundaries. */ import type { StoredEvent } from './journal.js'; export interface V3OpenWorkerAttempt { nodeId: string; instanceId?: string; attemptId: string; } /** * Return every dispatched worker attempt that has no durable post-close proof. * * `nodeCancelled(earlyReleaseLoser)` and `nodeInstanceSuperseded` deliberately * do not close an attempt: both are scheduling decisions that can precede the * outer ChildProcess `close` event by an arbitrary amount of time. */ export declare function openV3WorkerAttempts(events: readonly StoredEvent[]): V3OpenWorkerAttempt[]; export declare function hasOpenV3WorkerAttempts(events: readonly StoredEvent[]): boolean; //# sourceMappingURL=attempt-ledger.d.ts.map