GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) · Issue #13462 · developing-today/code

impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462

New issue
Copy link
New issue
Copy link
Done
#14583
Done
impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094)#13462
#14583
Copy link
Labels
epic/atlas-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requeststatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

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

  1. dezren39
    added
    kind/featureNew feature or capability request
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    epic/atlas-programReprioritization program epic (2026-11-12)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-4905

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Triage result for the OpenCode session DB backup leg:

    • Gate: research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 remains open and owns the backup scheme decision. Its research queue task #20300 is parked until 2026-11-24 while it gathers the required churn measurements. impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462 explicitly says not to implement a scheme before that comparison lands.
    • First implementation step: once research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 closes, implement the scheme it selected for the OpenCode session DB, including its scheduled full backup cycle and the required scratch restore verification (integrity check plus session row counts against the source manifest).
    • Routing: no implementation packet is eligible yet because the scheme is still undecided. research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 now explicitly references this gated implementation issue; its existing research task is the live prerequisite. The first implementation packet should be created from research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094's recorded choice when the gate clears.

    This keeps the scheme choice with the evidence that #9094 is producing and preserves #13462's restore-verification acceptance step.

  4. dezren39
    marked this as blocked on Nov 23, 2026
    • research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094
  5. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · triage re-verified, gate still closed — task 22319 (lane item-work-127)

    • Fresh verification (2026-11-24T12:11Z): impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462 is OPEN; its gate is unchanged. research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 (research: OpenCode DB backup economics) is still OPEN and owns the scheme decision; impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462's own text forbids implementing a scheme before research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094's comparison lands.
    • Gate chain: research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094's research task 20300 is parked with not_before 2026-11-24T17:05:33Z, resuming to collect ≥7 days of daily page-delta samples, then the per-table growth model, costed scheme comparison, and recommendation. No implementation packet for impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462 is eligible until research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 closes with the scheme recorded.
    • Disposition: task 22319 is structurally dep-blocked (reason-class dependency, dep-recheck on) on BOTH gates: issue research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 and task 20300.
    • Wake protocol: when research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 closes with the chosen scheme recorded, enqueue the impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462 implementation packet (queue repo-health-code-pilot) scoped to the chosen scheme unmodified — scheduled full backup cycle, one full cycle with size/time recorded here, scratch restore verification (integrity check + session row counts vs source manifest), and the doc/fleet-schedule-registry.md row in the same PR — then complete 22319 citing the follow-on task id.
  6. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Gate cleared — task 22319 triage (2026-11-24 ~19:40Z): #9094 is CLOSED with the scheme recorded (research doc §7 merged in PR #14513; handoff comment names the mesh leg unblocked). Gate-chain task 20300 is done.

    Routing: enqueued follow-on implementation packet task 23638 (feature_slice, queue repo-health-code-pilot): daily zstd full copy of the OpenCode session DB to Drive + laptop archive per #9094 §7(2) beside the existing restic leg, scratch restore verification (integrity check + session row counts vs source manifest), freshness SLO against the measured ≥1-day Drive lag, registry row in the same PR. Scheme taken unmodified from the research — no re-decision in the build.

  7. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage verdict, task 23639 (lane any-o)

    • Fresh state (2026-11-24, this run): impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462 is OPEN. Gate research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 is CLOSED with the scheme recorded (research doc §7, merged via research(#9094): OpenCode DB backup economics — measured churn, growth model, scheme comparison #14513).
    • Sizing: one slice (daily zstd full copy of the OpenCode session DB to Drive + laptop archive, scratch restore verification, registry row in the same PR). Scheme taken unmodified from research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094 §7.
    • Routing: follow-on packet already exists and is live: task 23638 ("Implement impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462 slice 1", feature_slice, repo-health-code-pilot), claimed by lane oc-code-03 at 2026-11-24T19:43:34Z. No duplicate packet filed.
    • Verdict: routed. This triage task completes with no further packet.
  8. dezren39
    added a commit that references this issue on Nov 24, 2026

    docs(registry): register opencode-db-backup.timer with zstd fast-rest…

    d9c26a7
  9. developing-today
    added
    status:in-review
    on Nov 24, 2026
  10. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Slice 1 status (lane oc-code-03, task 23638):

    Scheme is #9094 section 7, implemented by #14539 (merged): restic backbone untouched, plus one daily zstd -3 full copy to the laptop archive and Drive with sha256 manifest + re-read verification.

    One full cycle (2026-11-24, from #14515 drill + this slice's scratch verification):

    • Source: restic snapshot 93937176c345 (06:27 CST run), 31.038 GiB restored in 125 s.
    • Compress: zstd -3, 41 s -> 5,605,852,153 B (5.22 GiB, 16.82%).
    • Image sha256 973998ca03ae5dca675040d27fa40d9750c5796c42f64580d4061d53e1b8c0f8; artifact sha256 663a0bb93817399b2373e9911a8cb8a876906a34aaf88609a966033fd427bc74.
    • Scratch restore (local artifact, live DB untouched): decompress 41 s, sha256 == manifest uncompressed_sha256, PRAGMA integrity_check ok, row counts: session 515 / message 55004 / part 191248 / session_message 969724 / route_decision 4394570.
    • Drive upload in flight (phase 2 on Implement daily zstd full-copy leg for the OpenCode session DB (fast-restore path) #14515, ~1.6 MB/s class); freshness SLO budgets >=1-day Drive lag, same-day off-laptop coverage not promised.

    Registry: PR #14583 registers opencode-db-backup.timer (Surface 2b, daily 06:05 + 15m jitter, live-verified) with both legs and the SLO.

    Two open items, both noted on #14515: (1) my drill accidentally unlinked the local 2026-11-24 .zst (stray --rm); the running Drive upload holds the inode and continues — the planned Drive-download step restores it byte-identical. (2) This morning's scheduled timer run timed out on the restic Drive leg (4h TimeoutStartSec, killed 10:11 CST after local+R2 legs verified) — the Drive restic throughput needs attention before the freshness SLO can be re-measured.

  11. dezren39
    added a commit that references this issue on Nov 24, 2026

    docs(registry): register opencode-db-backup.timer with zstd fast-rest…

    c866a4d
  12. dezren39
    closed this as completedin #14583on Nov 24, 2026
  13. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/atlas-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requeststatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.