docs: 07 §6.3 the put-back covers every restore and a power cut (D22, as built and proven on 9202); 03 guest swap = RAM and the host's swap behind it; capability map D16; soak provenance
gates / gates (push) Failing after 14m51s

This commit is contained in:
admin committed 2026-10-21 23:00:45 +02:00
1 parent 6b0d23c29c
commit 2293b252d5
6 files changed
+86

No files matched your search

@@ -294,3 +294,29 @@ part next to a mounted part can only be used, not formatted (the root wrapper tr
---
## D16 — A failed or cut restore puts the data back exactly (D22)
**What it is:** a restore that fails after it began changing an app — or is cut by a power loss or a killed controller
— leaves the app on the household's own data as it was before the restore, running, and says so. Before (2026-10-20,
C3 on 9202): a damaged local unit removed the live database volume, Postgres crash-looped, the newest row was gone and
nothing could put it back; a power cut mid off-site restore left the app on the backup's data (rehearsal s2).
**Components:** controller `main` (`d582feb`, unreleased): `restore_unit.go` reuses `offbox_restore_undo.go` (measure,
fit, copy, put back, hold on a double failure); `restore_crash_putback.go` + the app-stop marker's `undo` record and
`Recover`'s put-back; `tier2_whole.go` pre-check (R-1178); `RunAllTier2` skip during a restore (R-1180). Design: `07` §6.3
(the 2026-10-21 `[DESIGN]` paragraph), operator ruling D22.
**Status:** **IMPLEMENTED** — proven live on scratch 9202 with 0.338.0-rc.1 (2026-10-21): a damaged unit volume → the
live volume poured back, the newest row kept (A,C), the app running, „…Nem változott semmi…"; the controller killed
(kill -9) right after the volume step → on start the copy poured back (A,C,D — D newer than the unit), the app running,
„A visszaállítás félbeszakadt (áramszünet). Az alkalmazás adatai a visszaállítás előtti állapotban vannak." A normal
restore is unchanged (the control). PROVEN-LIVE when the release reaches the fleet.
**Unit only:** the off-site power cut (`TestR1195_AKilledOffsiteRestoreIsPutBackOnStart`), the second drive's pre-check
(`TestR1178_*`), the mirror skip (`TestR1180_*`), a failed put-back at start (`TestR1195_AFailedPutBackOnStart…`).
**Known gap:** a database whose data is not in a named volume the unit replaces is not covered by the copy (none in the
catalog today; a drive-file app's unit restore is refused by R-538).
**Evidence:** `audits/night-2026-10-21/P3-restore/` (the run log, the red-proofs).
---