Recover native controllers from durable metadata without local markers

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-30 11:54:10 -05:00
1 parent a86902833f
commit 59ff89a18f
26 files changed
+982 -116

No files matched your search

@@ -412,6 +412,15 @@ describeEmbeddedPostgres("native harness backup expiration", () => {
expect(await exists(session.current)).toBe(false);
});
it("retains incomplete native snapshot publications even after the issue closes", async () => {
const session = await seedSession({ finalization: { phase: "committed" } });
await db.update(heartbeatRuns).set({ runnerProfileJson: { nativeControllerRecovery: {
schema: "paperclip.native-controller-recovery.v1", checkpoint: null,
} } }).where(eq(heartbeatRuns.id, session.runId));
expect(await service().tick()).toMatchObject({ expired: 0, skipped: { native_recovery_incomplete: 1 } });
expect(await exists(session.current)).toBe(true);
});
it.each([
["committed", "resuming_session"],
["terminal_failure", "blocked"],