design-instance-restore-658
Restore a deleted instance with its own data (#658).
What: the instance create door accepts "restore": true (CLI flag --restore requested from the CLI repo). The owner of a deleted plain instance creates it again on the same hostname and wakes with whatever data it kept. Every create without restore behaves exactly as before, never-reuse rule included.
How:
- Provenance recorded at create:
host_allocations.restore_originis set only by a plain instance-door create that wrote its hostname mark fresh, with the history active and lifetimes on. A restore's allocation carriesrestore_of. - Delete keeps proven evidence:
record_retirements.record_bodyplusrestorable, set only when the tombstone over exactly that body is proven (N1 landed, or record_seq + 1 observed before deletion). - One function,
restoreProof, decides every restore by the plan's admission table: R1, then S1, then pending R1, then duplicate, then R2, R8, R4, R8, R8, R7, R5, R6. Another owner only ever sees S1 or R1. It runs early at the door, before any holder check, and again inside the create hold before admit and planCreateLocked. - Limits (Paul's rulings): own region only, plain instances only, instances created and deleted after this release only.
Docs: docs/site/cli.md "Bringing back a deleted instance" (copy approved by Paul, twice).
Tests: proof table (69 cases, 66 generated precedence pairs), 20 door witnesses, origin and retirement-evidence tests, a guard simulation with an independent oracle, and the fixed unmarked-predecessor trace. The trace discriminates the rejected rev 3 timestamp rule. The simulation runs niced in CI, about 36 s.
Review: spec rev 5 (Astra R1-R3, approved by Paul), plan rev 4 (Astra R1-R3, Paul's cuts). Tasks 3-6 Astra READY. Whole-branch Astra READY AFTER FIXES, fixes applied and re-reviewed. Findings under docs/superpowers/notes/reviews/instance-restore-658/. Record-write census layer instancerestore658 (3 units, classes approved by Astra). Root-read census clean (make census-card).
Filed alongside, not fixed here: #661 (leftover move staging can overwrite a newer replica), #664 (non-HA instance in a multi-box region can wake on an older local copy).
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed abbca3a44 Merge main into design-instance-restore-658
- paul@keymail.dev pushed f09461396 notes #658: per-task and whole-branch Astra findings, SDD ledger
- paul@keymail.dev pushed d8d3ec532 docs: restore accepts, not recovers; hint not always (#658)
- paul@keymail.dev pushed e99738ce7 docs: restoring a deleted instance (#658)
- paul@keymail.dev pushed 85f425ec3 console: simulate restore provenance (#658)
- paul@keymail.dev pushed e2a33b0a1 console: restore proof before holder checks, admission first (#658)
- paul@keymail.dev pushed b908ffb95 console: restore a deleted instance through the create door (#658)
- paul@keymail.dev pushed 55229427e console: restore proof fails closed on corrupt reads (#658)
- paul@keymail.dev pushed f2dbba608 console: one proof decides every restore (#658)
- paul@keymail.dev pushed 6fdc6b199 provision: record-write census for instance restore (#658)
- paul@keymail.dev pushed 5e78782ec console: keep proven evidence of a retired record (#658)
- paul@keymail.dev pushed 25eab9396 console: record a restore origin on a fresh create (#658)
- paul@keymail.dev pushed 39266bed8 console: restore columns on allocations and retirements (#658)
- paul@keymail.dev pushed b361f4e15 notes #658 Task 1: fix round 1 (N2 superseded void, minor citations)
- paul@keymail.dev pushed bbfacc812 notes #658 Task 1: retirement inventory, sibling warm file, account ids
- paul@keymail.dev pushed e6930baee plan #658 rev 4: plan round 3 fixes (Paul's go, no fourth round)
- paul@keymail.dev pushed 0cd5df8d6 plan #658: Astra plan round 3 findings (NOT READY)
- paul@keymail.dev pushed 769a26fa2 plan #658 Task 0: approved copy deck (Paul, 2026-11-08)
- paul@keymail.dev pushed f663b1e9a plan #658: Astra plan review brief, round 3
- paul@keymail.dev pushed aede9e338 plan #658 rev 3: one admission table (Paul's cut after round 2)
- paul@keymail.dev pushed dfcd7af6f plan #658: Astra plan round 2 findings (NOT READY)
- paul@keymail.dev pushed 41527362c plan #658: Astra plan review brief, round 2
- paul@keymail.dev pushed d50195c6a plan #658 rev 2: answer Astra plan round 1
- paul@keymail.dev pushed b769582f3 plan #658: Astra plan review brief, round 1
- paul@keymail.dev pushed 2dab3aa0b plan #658: instance restore implementation plan
- paul@keymail.dev pushed 8e6f714c9 spec #658 rev 5: approved by Paul
- paul@keymail.dev pushed 20730f9da spec #658 rev 5: round 3 READY AFTER FIXES, guard fixture added
- paul@keymail.dev pushed 2176ad6b3 spec #658: Astra review brief, round 3
- paul@keymail.dev pushed a4279dec3 spec #658 rev 4: record restore provenance at the original create
- paul@keymail.dev pushed b813ec7fe spec #658: Astra round 2 findings (NOT READY)