Skip to content

impl(backups): mesh restore-verification rotation + watchdog surface (#1841) #13463

Open

Description

@dezren39

Parent: #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.

Acceptance criteria

Activity

  1. added
    kind/feature
    task/small-fix
    epic/atlas-program
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.)

  5. added
    queue/claimed
    work/assigned
    on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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

    2. Gates — named, with current states

    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.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  8. added
    queue/queued
    and removed
    queue/claimed
    work/assigned
    on Nov 23, 2026
  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  10. 14 remaining items

  11. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 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
  12. added
    user/review
    meta/protocol-gap
    on Nov 27, 2026
  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    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.)

  14. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Triage recheck — lane oc-code-01, 2026-11-28 ~02:10Z. Verdict unchanged: keep open, parked on prerequisite.

  15. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    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.

  16. dezren39 commented on Nov 28, 2026

    @dezren39
    MemberAuthor

    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.

  17. added
    priority/normal
    status/parked
    and removed
    queue/claimed
    status/in-progress
    on Nov 28, 2026
  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census note — CEN-C13, 2026-11-29

    Full body + comments re-read firsthand for the 2026-11-29 census. (Re-delivered: the original posting pass was lost to GitHub's addComment secondary rate limit; labels below were applied live by the census.)

    Verdict: blocked — on the chain #14251 ← #14250 ← PR #14675.

    Blocker: the rotation runner/cycle/corruption-check need a leg's first snapshots + first restore verification: PR #14675 (#14247 runner) is OPEN with CHANGES_REQUESTED → #14250 first snapshots: none → #14251 first restore verification: none. #13462's slot additionally waits on #9094.

    Gaps: no priority label; status:in-progress was stale (the item is parked on a prerequisite, re-parked 8+ times); heavy triage churn — 19 comments, most repeating the same verdict.
    Strengths: body terms are precise (rotation cadence, drill shape, failure-must-file-issue rule); slice 1 genuinely landed (PR #13671 merged — watchdog mesh job + stalled-leg hermetic proof); every triage names the same exact gate chain and wake condition, so the block is unambiguous.

    Labels (applied by the census): added priority/normal, added status/parked, removed status/in-progress.

  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · triage recheck — lane oc-code-04, task 24588, 2026-11-29

    Verdict: keep open — rotation gated on live record prerequisites; no new packet this pass.

    Fresh state verified this run (gh REST):

    Disposition: parked on non-person gate — re-triage/route the rotation-runner + timer + registry slice and the cycle/corruption-evidence slice once #14251 records the first restore verification (needs #14250's first snapshots). Routing a duplicate packet before that would duplicate already-tracked prerequisite work. No implementation or live backup/restore operation in this pass.

  20. added
    effort/l
    on Nov 29, 2026
  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Audited live on 2026-11-29 against the house label taxonomy: details, labels, blockers, priority.

    Gaps found: no ## Acceptance criteria section in the body
    Strengths found: detailed body with scope and context a picker-up can start from; links a parent issue and/or design record; active discussion: 21 recent comment(s) skimmed
    Comment skim: comments mention blocking; comments show claim/progress (21 comments in the latest page).
    Actions taken by the census: appended ## Acceptance criteria section to the body (original text unchanged).

    Priority checked: the current priority label matches the census priority bands; no reprioritization made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lepic/atlas-programkind/featuremeta/protocol-gappriority/normalstatus/parkedtask/small-fixuser/reviewwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions