Repository navigation
Description
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 pathpkgs/cold-store-reaper/scripts/export-turso.sh(with its libsql /dump repair filter), - streams the compressed dump (stream-zstd) into
restic backupagainst the dedicated repositoryrestic-turso-meshin the R2supabase-backupsbucket, 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 --prunepolicy 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
- Runner + units merged; targeted tests pass via remote dispatch (fixture restic repo receives one snapshot per DB with correct tags; manifest present; retention policy invoked with the design's keep numbers).
- Schedule registry row for the leg's timers lands in the same PR.
- No live export, R2 write, or credential access in this slice — live first light is the follow-on slice under impl(backups): mesh leg — Turso platform DBs (fleet-queue, fleet-platform, atlas) → R2 restic deltas #13455.
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
developing-today commentedon Nov 24, 2026
CODE-5249
dezren39 commentedon Nov 24, 2026
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.
dezren39 commentedon Nov 24, 2026
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.
impl(backups): class-A restic backup runner for turso mesh (#14247)
dezren39 commentedon Nov 24, 2026
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.
developing-today-fleet commentedon Nov 25, 2026
Intake review
Fleet monitor intake pass (protocol §5), 2026-11-25.
🤖 Agent note · handed off
developing-today-fleet commentedon Nov 26, 2026
Merge-watch update (code-f, 2026-11-26): refreshed PR #14675 through current main at
d279911a472eab27284f71d5f30063a5df73f34d; pushed headf72f808153a233db18096062862cf579ae1891da. The PR still contains the requested runner, timers, and registry rows; no implementation was added in this shepherd pass.git diff --check origin/main...HEADis clean and the focused diff remains limited to the eight intended files.\n\nThe new targeted fallback run 45904449816 failed inExecute 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-envis copied toRESTIC_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.developing-today-fleet commentedon Nov 26, 2026
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 headf72f808153a233db18096062862cf579ae1891da. The PR still contains the requested runner, timers, and registry rows; no implementation was added in this shepherd pass.git diff --check origin/main...HEADis 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-envis copied toRESTIC_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.developing-today commentedon Nov 27, 2026
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.
Merge latest origin/main into xaltha/14247-restic-runner
Merge pull request #14675 from developing-today/xaltha/14247-restic-r…
developing-today-fleet commentedon Nov 29, 2026
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-envis copied toRESTIC_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).
developing-today-fleet commentedon Nov 29, 2026
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.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found
## Acceptance criteriasection present.Strengths
Note
Actions taken by this census