Repository navigation
Description
Parent: #9093 (backup mesh) · Program: #8983 · Design: doc/2026-11-23T16-34-18Z_design_backup_mesh/note.md (landed with the #9093 design PR).
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
The OpenCode session database joins the mesh. It is large on purpose (21.37 GB measured 2026-11-12, ~5.1 GB zstd) and has no scheduled off-laptop backup today (#10297, closed as the research tracker). Storage price is not the constraint; churn rate, restore time, and upload bandwidth are.
Gate
This leg is gated on research #9094 (OpenCode DB backup economics: measured churn, per-table growth model, costed comparison of full copy / zstd copy / restic deltas). Do not implement a scheme before #9094's comparison lands; the scheme choice is #9094's deliverable. When #9094 closes, this issue proceeds with the chosen scheme unmodified.
Terms (from the design, whichever scheme #9094 picks)
- Targets: Google Drive + the laptop archive location (per the proto design §B); R2 joins only if research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094's costing says so.
- The DB is laptop-local state: it does NOT take a Turso home (size + churn break the appropriateness line, design §6).
Acceptance
- research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 closed with the scheme recorded; the chosen scheme implemented on a schedule.
- One full backup cycle completes; size/time recorded on this issue.
- Restore verification: the backup restored to a scratch path; the OpenCode DB integrity check passes and session row counts match the source manifest. Recorded on this issue.
- Schedule registry row updated in the implementation PR.
Activity
developing-today commentedon Nov 23, 2026
CODE-4905
dezren39 commentedon Nov 23, 2026
Triage result for the OpenCode session DB backup leg:
This keeps the scheme choice with the evidence that #9094 is producing and preserves #13462's restore-verification acceptance step.