Versions 7 to 318
new file, 504 lines
8+
10+
29+
36+
55+
77+
84+
99+
107+
111+
115+
119+
129+
133+
134+ static restart(snapshot: LifecycleAuthoritySnapshot, externalFloor: number): LifecycleAuthorityModel {
146+
150+
181+
187+ if (!same(previous.fence, fence)) throw new Error("operation identifier reused with a different fence");
215+
220+ if (!authoritativePermit || authoritativePermit.id !== permit.id || authoritativePermit.status !== "active")
222+ if (!same(authoritativePermit, permit)) throw new Error("permit does not match the authoritative challenge");
245+
255+ if (project.phase === "blocked") throw new Error("authority rollback blocks lifecycle changes");
258+ if (previous.kind !== kind || previous.actor !== actor) throw new Error("conflicting lifecycle transition");
261+ if (project.transition?.status === "draining") throw new Error("conflicting lifecycle transition");
262+ if (project.phase === "deleted" && kind !== "restore") throw new Error("deleted project requires restore");
263+ if (project.phase !== "deleted" && kind === "restore") throw new Error("restore requires a deleted project");
276+
286+ if (!permit || permit.id !== receipt.permitId) throw new Error("receipt has no matching permit");
287+ if (!project.permit || project.permit.id !== receipt.permitId) throw new Error("permit is not the active hold");
317+
339+
345+
352+
364+
369+
377+
384+
388+
412+
464+
499+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 7 318 worker/project/lifecycle-permit-contract.ts --json
- JSON
- /christopher/abso-core/compare/7..318?file=worker%2Fproject%2Flifecycle-permit-contract.ts&format=json