R-893 option A (operator D20): a failed off-site restore puts the app's live volumes and definition back exactly and starts it; fit check before the stop; the held sentence made true (R-1169)
gates / gates (push) Successful in 1m11s

This commit is contained in:
admin committed 2026-10-20 09:17:00 +02:00
1 parent ae2bfb2f7a
commit 93fb251ea9
13 files changed
+752 -55

No files matched your search

+25 -1
View File
@@ -1,4 +1,28 @@
## Unreleased (2026-10-19) — the security-scan gate (R-986); no code change
## v0.336.0 — a failed off-site restore puts the app back exactly as it was and starts it (R-893 option A, operator D20); the held sentence says only what is certain (R-1169) (2026-10-20)
**MinAgent: 0.158.1** — the floor's, carried; no agent change. No golden (`09` §3 decision 250). Task: the night brief
part 2 of 2026-10-20, Part 2 (operator answer: „D20 A").
- **R-893 option A — the off-site restore of one app keeps a copy of the app's live volumes and puts it back on
failure** (`internal/backup/offbox_restore_undo.go`, `07` §6.3). Before anything stops, every volume the snapshot will
replace is measured (`du` on the named volume) and the copy is added to the restore's own free-space need (R-357's
exact rule): too little room → refused with `err.backup.restore_undo_no_space`, nothing stopped; an unmeasurable
volume → `err.backup.restore_undo_unmeasured`. Right after the stop each such volume is tarred (the nightly helper,
tmp + fsync + rename) into `<namespace>/backups/restore-undo/<app>/<stamp>/` — outside every capture set. A copy that
fails restarts the app as it was (`err.backup.restore_undo_copy_failed`). On ANY failure after the first volume or
the definition moved (file copy, volume replay — also at a count of 0, because the replay removes a volume before it
recreates it —, DB-only start, replay after a successful rollback) the box stops the app, pours the copies back (the
restore's own volume helper), removes a volume the snapshot added, writes the live definition back and starts the
app: „Nem változott semmi…" (`err.backup.restore_failed_put_back`; with placed files `…_put_back_files` says the files
stay; a start that fails `…_put_back_not_started`). The operator gets `backup_run_failures` leg `restore-put-back`
(no new event type). A put-back that fails keeps the copy for support and HOLDS the app (option C, unchanged); the
double failure (replay and rollback) holds as before and keeps the copy too. On success the copy is removed. Tests
(`r893_putback_test.go`, 7 new; `r893_mixed_restore_test.go` moved to option A's outcome) — all nine red-proved by a
mutation each (felhom.eu `audits/night2-2026-10-20/P2/`).
- **R-1169 — the held sentence** `err.backup.db_restore_failed_held_mixed` now says only what is certain (the restore
stopped half-way, the data could not be returned, the app stays stopped, the copy is kept, support helps). The
plain rolled-back case with placed files no longer says „your data is back as it was" — it uses `…_put_back_files`.
- **Earlier unreleased (2026-10-19) — the security-scan gate (R-986); no code change:**
- `controller_gates.py` registers `security-scan` (FAST set, so the pre-push hook and CI run it): the SHARED
`felhom.eu/scripts/security_scan_gate.py` — govulncheck (called vulnerabilities) on `controller/` and gitleaks on the