Skip to content

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

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17628-fqb-turso-pilot
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17628-fqb-turso-pilot

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Closes #17628

Pilot runbook/design record for the first database of the #13458 mesh class-D leg: doc/2026-11-30_pilot_fleet-queue-backup-d1-turso-home.md.

Covers all five scope items for fleet-queue-backup, grounded in the machinery already on main (PR #13539 — no code re-implemented):

  1. Export mechanics: D1 query-API read (keyset paging, _cf_KV excluded), staged logical transfer (no intermediate file), wrapper/command forms, credentials by Bitwarden name only.
  2. Turso backup-home target: d1-backup-<name> naming, wholesale staged replace with swap-marker commit point, import record in _d1_backup_home_meta holding counts of rows actually loaded.
  3. Restore verification: restore_drill_d1_home.py rebuild into a local SQLite scratch file, counts verified against the import record.
  4. Appropriateness line for this DB plus a three-question reason test for the next D1 database (pure-replica exclusion first).
  5. Cadence/retention (weekly Sun 03:40 + 30m delay, 14-day mesh rotation) and failure surfacing (previous import intact, service state, freshness watchdog laptop-backups: durable run record for pm-dashboard-backup + a freshness watchdog that names a stopped backup (design #1024, phase 3) #1841).

Acceptance item 3 of #17628: the live first export + drill is filed as follow-on #17640 (its only gate is provisioning the Turso home + vault token, per the 2026-11-29 census on #13458).

Verification: doc-only change; every command, path, timer value, meta-table name and secret name was read firsthand from the merged sources on main (infra/fleet-queue-backup/bin/export_to_turso.py, restore_drill_d1_home.py, systemd/*d1-home*, docs/RUNBOOK.md, doc/fleet-schedule-registry.md).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T21:00:37Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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: dcc6a7a6-79e0-4dbf-a4c7-54e8db9e1b4f

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

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)

0 participants