GeezerVison is showing github.com — Fleet unification slice 6: backups — Turso into D1, repos to Cloudflare plus mirror plus R2 · Issue #8584 · developing-today/code
Fleet unification slice 6: backups — Turso into D1, repos to Cloudflare plus mirror plus R2 #8584DescriptionParent design: #8575 (one door, one home per fact — fleet tool state unification). Slice 6 of 7. Approved by Drew 2026-11-11, with his ruling: do all three repo backups.
Work
- Turso to D1 backup: a scheduled export of the fleet-queue Turso database into a D1 database (same SQLite family), with a documented, drilled restore path back into Turso. The D1 copy also serves as the analytics copy.
- Repo backups, all three (Drew's ruling on Design: one door, one home per fact — the fleet tool owns every route and every fallback #8575):
- Cloudflare rehosting of the four fleet repos.
- A plain mirror elsewhere (a second git host or an org-owned mirror remote).
- R2 bundles: scheduled git bundles of each repo stored in R2.
- Freshness targets and a single status readout covering all five copies (Turso export, D1 copy, Cloudflare rehost, plain mirror, R2 bundles): last success per copy, lag behind the source.
Acceptance
- A restore drill from the D1 copy into a scratch Turso database, verified by table counts and a live claim against the restored store.
- A clone drill from each of the three repo backups, verified against the source repo's head.
- The status readout runs on a schedule and reports lag per copy; a copy falling behind its target is filed as an issue automatically.
Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026
🤖 Agent note · triaged
- Agent: triage-step
- State: triaged
- Work kind: task/small-fix - a bounded implementation slice of the Drew-approved fleet unification program (parent Design: one door, one home per fact — the fleet tool owns every route and every fallback #8575); not a PR-shepherd or CI-investigation item.
- Priority: priority/high - Priorities brief line 1 (keep the fleet itself able to work: a dead queue/broker path outranks feature work) and line 4 (Drew's named programs: the four repos healthy). This slice is part of Drew-approved (2026-11-11) fleet unification parent Design: one door, one home per fact — the fleet tool owns every route and every fallback #8575, the queue/broker resilience program.
- Effort: effort/l - multi-day implementation slice.
- Kind: kind/infrastructure (added this triage).
- First concrete step: Build the scheduled Turso-to-D1 export with a documented restore path back into Turso, and run the first restore drill into a scratch Turso database.
- Acceptance check: A restore drill from the D1 copy into a scratch Turso database, verified by table counts and a live claim against the restored store.
- Fix packet: - Fix packet: task 14912 in repo-health-code-pilot (dedupe repo-health:v1:fix:developing-today/code:issue:8584, priority 20, kind small_fix, queued; signal refreshed).
dezren39 commented on Nov 11, 2026 agent-note:v1
state: verified (scoped; parked resumable)
lane: code-c (task 14912)
issue: #8584
Asset inventory for slice 6, verified fresh 2026-11-11 — what exists vs what is actually to build:
ALREADY EXISTS (do not rebuild):
- Plain-mirror machinery: infra/github-backup keeps bare mirrors (git clone --mirror) of Drew's whole GitHub estate on the laptop — daily fetch timer, 5-min webhook drain (Cloudflare Worker + KV queue), weekly reconcile, MANIFEST.json with per-repo HEADs, dedicated GitHub App rate pool. BUT it lives on the same laptop: slice 6's leg is a plain mirror ELSEWHERE (second git host / org-owned mirror remote). The machinery, config schema, and runbook are the template; the off-host copy is the build.
- git bundle know-how: github-backup already materializes cold copies via git bundle; R2 is in production use elsewhere in the estate (cold-store, restic legs). No scheduled per-repo R2 bundle job for the four fleet repos exists yet.
TO BUILD (in dependency-light order):
- R2 bundles leg — scheduled git bundle of each of the four fleet repos into R2 + a clone-from-bundle drill verified against source head. Smallest leg; bundle machinery patterns are in infra/github-backup.
- Plain mirror elsewhere — push the github-backup mirrors (or a fleet-repo subset) to a second host/remote on the fetch cadence; clone drill against source head.
- Turso -> D1 export — scheduled export of the fleet-queue Turso DB into D1 + drilled restore into a scratch Turso DB, verified by table counts and a live claim against the restored store (the acceptance drill). The queue DB is the Turso fleet-queue database the broker uses.
- Cloudflare rehosting of the four repos + clone drill.
- One status readout across all five copies (last success + lag per copy), scheduled, auto-filing an issue when a copy misses its freshness target. MANIFEST.json is the model for the mirror leg's inputs.
Parked resumable: this is an effort/l, five-leg build that does not fit the remainder of a lane shift already deep in its bundle; the next claimant starts from this inventory instead of re-deriving the estate. Nothing is blocked and no Drew decision is needed — the three-way repo-backup ruling is already recorded on #8575. dezren39 commented on Nov 24, 2026
The Workers + R2 smart-HTTP rehost (Drewry's 2026-11-24 decision) is now landed on main: PR #14321 merged, merge commit 0070828.
Verification on the merged head (188546f), all remote:
Still outstanding on #8584 (operator step, laptop-side): run infra/github-backup/systemd/install-units.sh from a clean laptop main checkout — it installs the R2, mirror, freshness, and rehost timers together. That waits on amd-6's disk cleanup and on the parked ~/git/code checkout being returned to clean main by its owning lane (#13833). The fleet-queue-backup timer also missed its 2026-11-24 02:40 CST fire while amd-6 was flapping; the D1 export watermark stands at 2026-11-23T15:27:30Z until the timers are installed and firing. dezren39 commented on Nov 24, 2026 Closing as implemented. All acceptance items are on main: D1 export and restore drill (#12685/#12686, #12791 import contract), Turso to D1 home class-D leg (#13539), R2 bundles and cold bundles (#12269), plain mirrors and their schedule (#12635/#12662), Cloudflare rehost as Workers + R2 smart-HTTP per Drew's 2026-11-24 decision (#14321), and the five-copy freshness probe with daily timer and auto-filed alert issue (#14205/#14287 on main via infra/github-backup, timer 04:10). Verified against merged PRs via fleet verify-disposition: merged_verified. dezren39 commented on Nov 24, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|