# Phase 1 — the R-408 hazard, live. VERDICT: **FAIL (the hazard is real and reachable)** **The customer-facing consequence is CONTAINED. The hazard itself is not.** ## What was established, all measured through the product's own endpoints | # | fact | how | |---|---|---| | 1 | **`restic stats` takes a repository lock** in 0.14.0 | clean-room: nothing else running, 4× `stats`, sampler read `locks=1` (`11-stats-locks-cleanroom.txt`) | | 2 | A customer **full**-restore runs `stats` in its preparation, so it holds a lock while holding **no** `acquireRunning` | `09-escalation-window.txt`, 20:50:29 | | 3 | The integrity check is therefore **not blocked** by a running restore and starts | `06-reverse.txt`, `skipped:false` | | 4 | It meets the lock and **`resticStep` escalates to `unlock --remove-all`** | `07-…txt` 20:50:31 + the sampler caught **`restore …` and `unlock --remove-all` in the SAME sample** at 20:50:51 | | 5 | The log calls it *"a stale exclusive lock left by a previous crash"* — **there was no crash** | `07-…txt` | | 6 | The check then could not verify the store; classified **Unreachable, NOT damage** → **no alarm, no customer mail**, due-ness not advanced | `07-…txt` 20:50:36 | ## The opposite direction is FENCED — and that was measured, not assumed Five restores fired into a running check at **5 / 15 / 25 / 35 / 40 s** offsets were **all refused** by `restoreOpBlocked` (`offbox_handlers.go:358`), and **zero** restic processes were sampled. So the hazard is reachable **only restore-first**. All five checks completed `ok:true` (39–52 s). ## A third pairing, same root cause The new R-87 proof **skips** correctly when the integrity check holds the flag (`skipped:true`), and **runs** during a customer restore (`stack:paperless-ngx`, `verdict:pass`) — because the restore holds no flag. Harmless (the proof uses `--no-lock` and never `unlockStale`), but it is the same missing-flag consequence in a third place. ## Instruments The lock sampler was **proven before any zero was believed**: `locks=0` while quiet, then **8 consecutive `locks=1` samples** across a real 43.9 s integrity check. Negative control: a string that cannot appear returned 0. **Filed as R-411.** Nothing was fixed (runbook §2.6).