Skip to content

impl(backups): mesh class-A restic backup runner — fleet-queue/fleet-platform/atlas → R2 restic-turso-mesh (#13455 slice 2) #14247

Backlog

Description

@dezren39

Parent: #13455 (mesh leg — Turso platform DBs → R2 restic deltas) · Grandparent: #9093 (backup mesh) · Program: #8983 · Design: doc/2026-11-23T16-34-18Z_design_backup_mesh/note.md
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

Slice 2 of #13455: the restic execution leg, as code only (no live run in this slice). A runner that, per the class-A stagger planner merged in PR #13476 (pkgs/cold-store-reaper/scripts/turso-mesh-class-a.py):

  • exports each class-A DB (fleet-queue, fleet-platform, atlas) via the proven path pkgs/cold-store-reaper/scripts/export-turso.sh (with its libsql /dump repair filter),
  • streams the compressed dump (stream-zstd) into restic backup against the dedicated repository restic-turso-mesh in the R2 supabase-backups bucket, tagged per DB,
  • builds the export manifest with the slice-1 manifest builder and stores it alongside the snapshot,
  • applies retention keep-daily 7 / keep-weekly 8 / keep-monthly 12 (design §5) via restic forget --prune policy flags.

Plus the systemd service/timer units implementing the planner's staggered weekly assignment, and the doc/fleet-schedule-registry.md row in the same PR.

Terms

  • Testable without live Turso, R2, or credentials: tests run the runner against a local restic repository fixture and a fixture dump; the live backend is selected by configuration (repo URL + password key by name only).
  • Failure of one DB's backup does not block the others; each DB's run reports its own exit status.

Acceptance

Filed by triage of #13455 (task 22703, lane felix, 2026-11-24). If a queue packet for this slice already exists from the 2026-11-24 triage routing, point it at this issue rather than duplicating.

Refs #13455 - slice 2 of the mesh leg; owns the restic execution-leg remainder.

Acceptance criteria

  • A mesh class-A restic backup runner exists for fleet-queue/fleet-platform/atlas to R2, runs on its schedule, and a restore or dry-run verification is recorded.
  • The change is verified against current main (CI, a fleet Actions exec session, or a recorded manual check) — the verification, not just the change, is named on this issue.
  • No unrelated issues are folded in; follow-ups discovered during the work are filed as their own issues and linked here.

Refs #14675 — open implementation PR for this slice; current blocking review findings are documented in the issue comments.

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Refs #13455 — remaining work for the mesh leg (slice 2 of 4, per triage 7127688724 on #13455). Routed by triage task 22703 on lane oc-code-08, 2026-11-24.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Claim (xaltha lane, 2026-11-24): implementing slice 2 on branch xaltha/14247-restic-runner — restic runner script + fixture tests, systemd units for the planner's staggered weekly assignment (atlas Sat / fleet-platform Sun / fleet-queue Mon), and the fleet-schedule-registry rows in the same PR. Code only, no live export/R2/credentials, per the issue's acceptance.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Progress (xaltha lane, 2026-11-24): PR #14675 open — restic runner + fake-restic fixture tests, staggered systemd units (atlas Sat / fleet-platform Sun / fleet-queue Mon), schedule-registry rows in the same PR. Verification via remote dispatch fallback (fleet-command.yml, TLS #13185 blocks direct dispatch): run 45513245748 SUCCESS. Code only, no live export/R2/credentials, per acceptance.

  5. added
    kind/infrastructure
    priority/normal
    effort/l
    status/needs-triage
    meta/enriched
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Intake review

    Fleet monitor intake pass (protocol §5), 2026-11-25.

    • Still live: no merged PR or commit found in this pass that explicitly resolves this issue; it remains open and unheld unless labels say otherwise.
    • Notes: Acceptance criteria were appended to the body (original text preserved verbatim above the new section).
    • Risks: scope creep is the main risk — the acceptance criteria bound this to the named slice; anything larger should be split and linked, not folded in.
    • Suggested approach: pick this up through the queue/triage path, verify the premise against current main first, then implement the smallest slice that satisfies the criteria.

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 02:14 CST
    • Found via: monitor reconciliation
    • Task: intake enrichment (protocol §5)
    • Expectation: effort class per labels; done = meta/enriched applied with the criteria above
    • Links: n/a
  7. added
    queue/claimed
    status/in-progress
    work/assigned
    and removed
    status/needs-triage
    on Nov 26, 2026
  8. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Merge-watch update (code-f, 2026-11-26): refreshed PR #14675 through current main at d279911a472eab27284f71d5f30063a5df73f34d; pushed head f72f808153a233db18096062862cf579ae1891da. The PR still contains the requested runner, timers, and registry rows; no implementation was added in this shepherd pass. git diff --check origin/main...HEAD is clean and the focused diff remains limited to the eight intended files.\n\nThe new targeted fallback run 45904449816 failed in Execute target command; prior reports recorded the same fallback failure on main, but I did not inspect execution logs. A read-only diff review also found two blockers, recorded as a changes-requested review on PR #14675: (1) --password-env is copied to RESTIC_PASSWORD_ENV, which restic does not consume as the password; (2) the manifest path reads the whole dump into memory before compression, contrary to the stated streaming guarantee. The review requests fixes and tests. I am not merging until those are resolved and focused verification is green.

  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Correction to my previous progress note: this comment is the same update with proper paragraph formatting.

    Merge-watch update (code-f, 2026-11-26): refreshed PR #14675 through current main at d279911a472eab27284f71d5f30063a5df73f34d; pushed head f72f808153a233db18096062862cf579ae1891da. The PR still contains the requested runner, timers, and registry rows; no implementation was added in this shepherd pass. git diff --check origin/main...HEAD is clean and the focused diff remains limited to the eight intended files.

    The new targeted fallback run 45904449816 failed in Execute target command; prior reports recorded the same fallback failure on main, but I did not inspect execution logs. A read-only diff review found two blockers, recorded as a changes-requested review on PR #14675: (1) --password-env is copied to RESTIC_PASSWORD_ENV, which restic does not consume as the password; (2) the manifest path reads the whole dump into memory before compression, contrary to the stated streaming guarantee. The review requests fixes and tests. I am not merging until those are resolved and focused verification is green.

  10. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    Refs #14675 — this open PR is the implementation work for slice 2 tracked by this issue. It remains under review for the password-env handoff and bounded-memory manifest findings.

  11. removed
    queue/claimed
    on Nov 28, 2026
  12. added a commit that references this issue on Nov 29, 2026
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (lane CEN-C14)

    Verified firsthand (body + all comments). State: slice 2's implementation exists as open PR #14675 (restic runner + fake-restic fixture tests, staggered systemd units, schedule-registry rows), refreshed through current main on 2026-11-26 with the diff still limited to the eight intended files.

    What stands between here and merged (named): two changes-requested findings from the 2026-11-26 review — (1) --password-env is copied to RESTIC_PASSWORD_ENV, which restic does not consume as the password; (2) the manifest path reads the whole dump into memory before compression, contrary to the slice's streaming guarantee. Fixes + tests for both, then focused verification green. The earlier fallback-run failure was recorded as matching a failure already present on main, not attributed to this PR.

    Blockers: none external. Census action: no label change. Verdict: ready (fix the two review findings on PR #14675).

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The slice boundary is explicit (code only — no live run in this slice), the house rules travel with it (schedule changes land their fleet-schedule-registry row in the same PR; secrets by name only; remote dispatch only), and the runner composes proven parts (the class-A stagger planner from PR #13476; export-turso.sh with its libsql /dump repair filter). kind/infrastructure + priority/normal already set.

    GAPS: Nothing in the issue. The implementation PR #14675 is open and under review (password-env handoff + bounded-memory manifest findings) — that review is the current gate for the whole class-A chain (#14250's first light waits on this runner).

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry. PR #14675's review findings are the next step.

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

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found

    • None in metadata: kind/infrastructure, priority/normal, effort/l, status + work/assigned all present; ## Acceptance criteria section present.

    Strengths

    Note

    Actions taken by this census

    • Verified complete — no changes needed.
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/lkind/infrastructuremeta/enrichedpriority/normalstatus/in-progresswork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions