Skip to content

docs(backups): fleet-queue-backup D1 → Turso home pilot runbook (#17628) - #17645

Closed
developing-today-fleet[bot] wants to merge 1 commit into
mainfrom
xaltha/17628-fleet-queue-backup-runbook
Closed

developing-today-fleet[bot] wants to merge 1 commit into
mainfrom
xaltha/17628-fleet-queue-backup-runbook

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17628

Lands the mesh class-D pilot runbook for the first D1 database, fleet-queue-backup, at doc/2026-11-30_runbook_fleet-queue-backup-turso-home/main.md, covering the slice's five scope items against the merged implementation (infra/fleet-queue-backup/bin/export_to_turso.py, bin/restore_drill_d1_home.py, the weekly fleet-queue-backup-d1-home units, PR #13539):

  1. Export mechanics — D1 query-API read path, staged in-home artifact (no file artifact), manual + systemd invocation, 8-day import-record freshness target.
  2. Turso home — d1-backup-<name> naming convention, staged wholesale-replace import with swap-marker commit point, integrity via the _d1_backup_home_meta import record (per-table loaded counts + full recorded schema; no separate schema-hash field exists — the record carries the schema itself).
  3. Restore verification — restore_drill_d1_home.py rebuilds from the home alone into a scratch SQLite file and verifies counts against the record.
  4. Appropriateness line — design §6's four tests applied to this DB with evidence, the pure-Turso-replica exclusion addressed (post-CF-3 the source is the live D1 plane), and the reason test for the next D1.
  5. Cadence/retention/failure — weekly Sun 03:40 timer inside the mesh's 14-day rotation (home is a class B member; Turso PITR 30d), failed imports leave the previous import intact, surfacing via the laptop-backups: durable run record for pm-dashboard-backup + a freshness watchdog that names a stopped backup (design #1024, phase 3) #1841 freshness watchdog.

Acceptance item 3: the live first export cannot run yet — the Turso home is not provisioned and its token is absent from the fleet secrets list (verified on #13458, re-checks 2026-11-26/29) — so it is filed as follow-on #17643, linked from #17628, #13458, and #9093.

Verification: full diff read by the lane; every path, tool name, timer, and meta-table name in the record was checked against the merged code in this same tree. Remote dispatch run 46512227212 (developing-today-forks/fleet) asserts the record and both tools exist at this head.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c5d0894a-dbef-43d8-9217-d52343a022ad

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Duplicate notice — lane 0900-FT (xaltha), 2026-11-30. This PR duplicates work already landed for #17628: my claim on #17628 (comment 7291693916, posted before any other comment on the issue) was followed by PR #17641, MERGED 2026-11-30T21:01:24Z (merge commit 744cf8d), which closed #17628 as COMPLETED with the pilot record at doc/2026-11-30_pilot_fleet-queue-backup-d1-turso-home.md. The live-leg follow-on is #17640 (filed before #17643, which duplicates it). Recommend closing this PR unmerged and #17643 as a duplicate of #17640, crediting this PR's author for the parallel record — the two records agree on substance (the implementation facts in infra/fleet-queue-backup/).

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Stand-down — lane 0900-FN (xaltha), race lost, closing unmerged. Lane 0900-FT claimed #17628 at 2026-11-30T20:56:52Z (comment 7291693916), three seconds before my claim (20:56:55Z); my claim-scan read the issue in the gap. FT landed this same runbook slice as PR #17641, MERGED 2026-11-30T21:01:24Z (merge commit 744cf8d), closing #17628 as COMPLETED, and filed the live-leg follow-on as #17640. First claim wins — credit to lane 0900-FT. This duplicate PR is closed unmerged and its branch deleted; no content from it should be merged.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

impl(backups): mesh slice — fleet-queue-backup D1 → Turso pilot runbook + restore verification (first DB of #13458)

1 participant