GeezerVison is showing github.com — impl(backups): mesh restore-verification rotation + watchdog surface (#1841) · Issue #13463 · developing-today/code
impl(backups): mesh restore-verification rotation + watchdog surface (#1841) #13463DescriptionParent: #9093 (backup mesh) · Program: #8983 · Design: doc/2026-11-23T16-34-18Z_design_backup_mesh/note.md (landed with the #9093 design PR).
House rules: any schedule this creates lands its doc/fleet-schedule-registry.md row in the same PR; secrets by name only (Bitwarden at runtime, repo-archive pattern); builds/tests run via remote dispatch, never on the laptop or sandbox.
Scope
Backup-verified is not restore-verified. This issue owns the mesh's standing restore-verification rotation and its watchdog surface: every mesh leg is restore-verified on a schedule, and the #1841 laptop-backups watchdog reports mesh health (per-leg freshness + last restore verification per store) alongside the existing jobs. The per-leg issues (#13455, #13456, #13457, #13458, #13459, #13461, #13462) each carry their own first restore verification; this issue owns the recurring rotation after first light.
Terms (from the design)
- Rotation: one leg's restore verification per week, cycling through all legs and all three stores (R2, laptop, Drive), so every store's copy of every leg is restore-proven at least quarterly.
- A failed verification is a watchdog failure that names the leg and the store — and files/updates an issue, never just a log line.
- Drill shape follows the Full stack restore never drilled #10300 cold-restore drill and the Fleet unification slice 6: backups — Turso into D1, repos to Cloudflare plus mirror plus R2 #8584 D1 restore drill: restore to an isolated scratch target only, production stores are never written by a drill, credentials by name only.
- The existing monthly cold-store drill (cold-store-drill.timer) is the model and stays; the mesh rotation is additive.
Acceptance
- The watchdog reports mesh legs (freshness + completion evidence, same standard as the cold-store check added in PR fix(laptop-backups): watchdog covers cold-store-nightly with completion evidence (#9093 step 1) #10988) and a stale or failed leg reads as a watchdog failure naming it — demonstrated with one deliberately stalled test leg.
- The first full rotation cycle completes: every leg × every store restore-verified once, results recorded on this issue.
- A deliberately corrupted scratch snapshot is caught by the verification (integrity/row-count mismatch named), proving the check is not a rubber stamp.
- Schedule registry rows updated in the implementation PR.
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Claim — lane felix, 2026-11-23: triaging this issue (read-only verification of scope state, gates, and the smallest first slice). No implementation in this pass. dezren39 commented on Nov 23, 2026
Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 23, 2026 Triage — lane felix, 2026-11-23. Verdict: the surfaces this issue builds on already exist; the mesh scope itself is unstarted, and its full acceptance is gated on the leg issues' first snapshots. Nothing implemented in this pass; the issue stays open.
1. Already done in fact — the foundations, yes; the mesh scope, no
- The laptop-backups: durable run record for pm-dashboard-backup + a freshness watchdog that names a stopped backup (design #1024, phase 3) #1841 watchdog surface exists and is scheduled.
nixos/home/laptop-backups-watchdog.sh (+ laptop-backups-watchdog.test.sh) in this repo, deployed via nixos/home/laptop-backups.nix; laptop-backups: durable run record for pm-dashboard-backup + a freshness watchdog that names a stopped backup (design #1024, phase 3) #1841 is CLOSED (2026-10-31). laptop-backups-watchdog.timer runs 3×/day on the laptop and has its row in doc/fleet-schedule-registry.md. The watchdog is read-only, exits 1 with one line per violation naming the job — the shape this issue extends.
- The completion-evidence standard exists. PR fix(laptop-backups): watchdog covers cold-store-nightly with completion evidence (#9093 step 1) #10988 (merged 2026-11-17) extended that watchdog to cold-store-nightly with completion evidence — the exact standard acceptance item 1 cites ("same standard as the cold-store check added in PR fix(laptop-backups): watchdog covers cold-store-nightly with completion evidence (#9093 step 1) #10988").
- The drill machinery exists. The Full stack restore never drilled #10300 cold-restore drill (monthly
cold-store-drill.timer, registry row present) and the Fleet unification slice 6: backups — Turso into D1, repos to Cloudflare plus mirror plus R2 #8584 D1 restore drill (infra/fleet-queue-backup/bin/restore_drill.py, PR fix(fleet-queue-backup): follow the live D1 import contract (ingest + bookmark poll) (#8584) #12791): isolated scratch target, per-table row counts, production never written.
- Not done: no mesh-leg reporting in the watchdog, no rotation schedule, and no mesh snapshot exists yet to verify (see §2).
2. Gates — named, with current states
- Acceptance items 2–3 and any live demonstration are gated on the leg issues' first snapshots + first restore verifications. impl(backups): mesh leg — Turso platform DBs (fleet-queue, fleet-platform, atlas) → R2 restic deltas #13455 (class A), impl(backups): mesh leg — general Turso DBs → R2 restic deltas on the 14-day rotation #13456 (class B), impl(backups): mesh replication — R2 → laptop and R2 → Google Drive restic copies #13457 (R2 → laptop/Drive replication — required for the three-store cycle), impl(backups): mesh leg — D1 exports → Turso backup home (fleet-queue-backup D1 first) #13458 (class D), impl(backups): mesh leg — laptop-local DBs → Turso backup homes (inventory + appropriateness line) #13459 (class E), impl(backups): mesh coverage — embedding/shard stores restore without a re-embed pass #13461 (embeds) are all OPEN and unstarted as of today: one bot project-link comment each, no snapshots recorded, no mesh machinery on main (no
restic-turso-mesh reference anywhere in the tree). Per design §9, each leg's own first restore verification belongs to the leg issue; this issue owns only the recurring rotation after first light.
- impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462's rotation slot additionally waits on research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 (OPEN, status/parked + queue/parked). That gates only the class-F slot, not the rotation.
- Schedule rule applies. The rotation is a new recurring schedule. The watchdog timer already exists; the implementation PR must add the rotation timer/service rows to
doc/fleet-schedule-registry.md in the same PR (repo rule, restated in this issue's body).
3. Smallest correct first slice
Extend laptop-backups-watchdog.sh with a mesh section that reads per-leg run/verification records — freshness + last restore verification per store, to the PR #10988 completion-evidence standard — and fails naming a stale or failed leg. Prove it hermetically with the deliberately stalled test leg (acceptance item 1's demonstration) using the existing test suite's stubbing pattern (record path + PATH-resolved tools), and land the rotation schedule's registry rows in the same PR. This slice needs no live snapshot — fixtures stand in for leg records — and it builds the rotation mechanics. The first full cycle (acceptance item 2) can only complete after the leg issues produce their first snapshots and first verifications; that completion is owned by the leg issues + elapsed time, not by this issue alone. Owner of the first slice: the next implementation lane drawn for #13463.
Resume condition for the cycle-completion leg: at least one leg (class A #13455 is the natural first) has a snapshot in each store it targets and its first restore verification recorded on its own issue. dezren39 commented on Nov 23, 2026
Released by felix (outcome: free). Triage complete (record comment 7107575453): watchdog + drill foundations already exist (#1841 closed; PR #10988 standard; #10300/#8584 drills); mesh scope unstarted. First slice (watchdog mesh section + stalled-leg proof + registry rows) is unblocked and fixture-based; full-cycle acceptance resumes when at least one leg (class A #13455 first) has snapshots in its target stores and its first restore verification recorded on its own issue. #13462 slot separately waits on #9094. dezren39 commented on Nov 23, 2026 Progress note (slice 1, lane oc-code-03): the watchdog mesh surface is implemented and in review as PR #13671 — a mesh job in laptop-backups-watchdog.sh that reads one JSON restore-verification record per leg × store (~/backups/mesh/restore-verification/<leg>.<store>.json, legs class-a/class-b/replicate/class-d/class-e/embeds × stores r2/laptop/drive) and fails naming the leg and store for missing, unreadable, failed, future or >quarter-old (2200h) records. services.laptop-backups.watchdog.meshEnable (default false) and meshMaxAgeHours wire it into the module; no timer/schedule is created in this slice, so doc/fleet-schedule-registry.md is unchanged by it. Evidence: the suite's 18-pair fresh fixture passes, and a deliberately stalled class-a/laptop leg (verified 100 days ago while the rest are 10 days old) is named as leg=class-a store=laptop, alongside failure and missing-record cases.
Remaining on this issue, in order and each blocked by the leg issues' first verifications: the rotation runner (self-gating weekly script + timer + registry row) that writes these records, the first full-cycle results, and the corrupted-scratch-snapshot check. dezren39 commented on Nov 25, 2026 Triage refresh — lane oc-code-02, 2026-11-25. Verdict: keep open; no rotation implementation packet yet. Fresh state: watchdog mesh reporting is merged in #13671. The remaining recurring-rotation work is still gated: #14247 runner PR #14675 is open and is code-only (no live snapshots); #14250 first snapshots and #14251 first restore verification remain open without completion evidence. There is no rotation schedule/registry row yet. The prerequisite issues already track the next actionable work, so routing a duplicate packet now would be premature. Re-triage this issue after #14251 records first restore verification, then route the bounded rotation runner/timer/registry and cycle/corruption-evidence work. No implementation or live backup/restore operation was performed in this pass. dezren39 commented on Nov 25, 2026 Triage verdict (xaltha lane, queue task 23709, 2026-11-25): keep open — rotation still gated on live prerequisites.
Fresh state verified this run:
Routing: no new packet now — the prerequisites are already tracked by #14250/#14251. Re-triage #13463 once #14251 records the first restore verification; at that point route the rotation runner + timer + registry slice and the cycle/corruption-evidence slice. developing-today-fleet commented on Nov 25, 2026
ITEM-WORK-314 (Muse item lane, drawn via fleet agent next): the chained follow-on task 23778 (auto-spawned by task 23709's triage completion) is cancelled as false-premise. Its acceptance — record a verdict on this issue and route a follow-on — was already discharged minutes earlier by the parent task 23709 itself: verdict at comment 7160095196 (keep open; watchdog surface landed via PR #13671; rotation gated on #14250/#14251 first restore verification; no new packet now).
Wake condition stands as recorded there: re-triage #13463 once #14251 records the first restore verification; at that point route the rotation runner + timer + registry slice and the corruption-evidence slice. Leg issues #13455/#13456/#13457/#13458/#13459/#13461 verified still OPEN this pass, so the gate has not moved. No other live claim on this issue. developing-today-fleet commented on Nov 26, 2026 Triage refresh — GL lane (queue task 24588), 2026-11-26. Verdict: keep open — rotation still gated on live prerequisites; no new implementation packet.
Fresh state verified this run (all via fleet gh):
- impl(backups): mesh restore-verification rotation + watchdog surface (#1841) #13463 OPEN. No held/user label, no Drew-decision gate, no live competing claim (prior claims released/stale; this lane's queue claim is current).
- Watchdog surface slice already landed: PR fix(backups): watchdog reports mesh restore verification per leg and store (#13463) #13671 MERGED 2026-11-24 ("watchdog reports mesh restore verification per leg and store") — acceptance item 1's reporting surface + stalled-leg proof.
- Gates unchanged since the 2026-11-25 triages (comments 7156247119, 7160095196):
- impl(backups): mesh class-A restic backup runner — fleet-queue/fleet-platform/atlas → R2 restic-turso-mesh (#13455 slice 2) #14247 (class-A restic backup runner) OPEN, status/in-review; its PR impl(backups): class-A restic backup runner — fleet-queue/fleet-platform/atlas → restic-turso-mesh (#14247) #14675 still OPEN — code-only runner, no live snapshots yet.
- impl(backups): mesh class-A live first light — init restic-turso-mesh, first snapshots + delta measurement (#13455 slice 3) #14250 (class-A live first light — first snapshots) OPEN, status/needs-triage, no completion evidence.
- impl(backups): mesh class-A first restore verification — per-DB restore vs manifest (#13455 slice 4) #14251 (class-A first restore verification) OPEN, status/in-progress / queue/claimed, no first restore verification recorded yet.
- impl(backups): mesh leg — Turso platform DBs (fleet-queue, fleet-platform, atlas) → R2 restic deltas #13455 (class-A leg) OPEN, status/in-review.
- No rotation schedule /
doc/fleet-schedule-registry.md row exists yet, and none should be created until live records exist for the runner to write.
Disposition: queue task 24588 parked with a non-person ready condition — re-triage when #14251 records a first restore verification on its issue (which requires #14250's first snapshots). Routing a rotation-runner packet before that would duplicate the already-tracked prerequisite work on #14247/#14250/#14251. developing-today-fleet commented on Nov 27, 2026 Triage refresh — lane oc-code-04 (queue task 24588), 2026-11-27. Verdict: keep open — rotation still gated on live prerequisites; no new implementation packet.
Fresh state verified this run:
No implementation in this pass; no duplicate packet routed. Re-triage after #14251 closes with first-verification evidence. dezren39 commented on Nov 27, 2026 Triage refresh — xaltha lane 0752-B-D (queue task 24588), 2026-11-27. Verdict: keep open — rotation still gated on live prerequisites; no new implementation packet.
Fresh state verified this run (via fleet gh): #13463 OPEN; watchdog mesh surface already landed (PR #13671 merged). Gate unchanged since the 2026-11-25/26 triages: #14251 (class-A first restore verification) still OPEN / status/in-progress with no verification recorded; its prerequisite PR #14675 (#14247 runner) still OPEN. Wake condition stands: re-triage once #14251 records the first restore verification, then route the rotation runner + timer + registry slice. No implementation performed in this pass. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · escalated
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
- Found via: monitor reconciliation (Duty 4 protocol check)
- Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
- Expectation: holder posts an agent-note:v1 note or releases the item.
- Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
developing-today-fleet commented on Nov 27, 2026
Recheck — keep open, parked on prerequisite (lane code-i, queue task 24588).
Fresh verification this run: #13463 OPEN; watchdog surface slice landed (PR #13671 MERGED); gates unchanged — #14247 OPEN, #14250 OPEN, #14251 OPEN (last activity 18:44Z park note, still blocked upstream on PR #14675). No rotation schedule/registry can start until the first restore verification lands. No code changes made.
Resume condition: re-triage after #14251 closes. (This note also answers the 23:04Z fleet-monitor protocol-gap flag: holder pickup + checkpoint recorded here.) developing-today-fleet commented on Nov 28, 2026
Triage recheck — lane oc-code-01, 2026-11-28 ~02:10Z. Verdict unchanged: keep open, parked on prerequisite.
developing-today-fleet commented on Nov 28, 2026
Triage recheck — lane oc-code-04, task 24588, 2026-11-28 ~03:10Z. Verdict unchanged: keep open, parked on prerequisite.
Fresh verification: #13463 OPEN; watchdog surface landed (PR #13671 MERGED); gates unchanged — #14247 OPEN, #14250 OPEN, #14251 OPEN, prerequisite PR #14675 OPEN; 0 open PRs reference #13463. No rotation schedule/registry can start until the first restore verification lands. No code changes made.
Resume: re-triage after #14251 closes with first-verification evidence. dezren39 commented on Nov 28, 2026
Lane 0707-J re-park — queue task 24588 (2026-11-28, charlie ADVANCE). Verdict unchanged: keep open, gated on live prerequisites.
Premise + ownership check firsthand (gh CLI only, no clone): read issue + ALL 18 comments. Watchdog mesh surface slice landed (PR #13671 MERGED). Fresh gate check ~13:30Z today:
No rotation schedule/registry can start until the first per-leg restore verification is recorded, so there is no Git-API-authorable slice for #13463 in this lane. Task 24588 is parked on the prerequisite: #14251 closes with first-verification evidence. Wake: re-triage #13463, then route the rotation runner + timer + registry slice and the cycle/corruption-evidence slice.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|