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 — research(#9094): OpenCode DB backup economics — measured churn, growth model, scheme comparison by dezren39 · Pull Request #14513 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Research for #9094 (workstream B, #8983; unblocks #13462).

  • 7-day churn window Nov 17–24 read off the existing daily restic snapshots: 16–20 GiB/day compressed new blobs, time-invariant (VACUUM INTO re-chunking dominates, not true change).
  • Page-level truth Nov 17→24: 3.64M pages changed (13.87 GiB) + 2.05M appended (8.35 GiB).
  • Per-table dbstat (offline snapshot): session_message 36%, route_decision 32%, message 25%.
  • Growth: flat Nov 2–12 (freelist absorption, now 0 pages free), +3.37 GiB Nov 12–16, +8.96 GiB Nov 17–24 (≈1.28 GiB/day); 6-mo projection ≈264 GiB.
  • 3-scheme × 2-target table with measured restore times (laptop column fully measured: cp 105s, zstd -d 56s, restic restore 108s; Drive cells bounded-by-throughput with the failed direct-upload measurement recorded honestly).
  • Recommendation: keep restic leg + add daily zstd fast-restore path; residual filed as implementation issue under epic: Atlas program — unified search and memory index over every corpus #8983.
  • Sampler tool: bin/opencode-db-churn.mjs + 14 tests green (node --test).

Lane: oc-code-07 · Queue task 20300 · Closes nothing (research; implementation issue filed separately).

{
  "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-24T17:42:37Z",
    "session_id": "ses_e5df181cfecffeSrOU4q5rkv8k",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code/.agent-worktrees/oc-code-07-9094-churn",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code/.agent-worktrees/oc-code-07-9094-churn",
      "repo": "developing-today/code",
      "branch": "oc-code-07/9094-db-churn-harness",
      "sha": "6b1aa1d50600f9ee20f788a1028550bf6f1fe259"
    },
    "auth_subject": "oc-code-03",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
research(#9094): OpenCode DB backup economics — measured churn, growt…
6b1aa1d
…h model, scheme comparison

7-day restic-diff churn window (Nov 17-24): 16-20 GiB/day compressed new
blobs, time-invariant (VACUUM INTO re-chunking, not change). Page-truth:
3.64M changed + 2.05M appended pages over 7d. Per-table dbstat offline:
session_message 36%, route_decision 32%, message 25%. Growth 1.28 GiB/day
current; 6mo ~264 GiB projection. Recommends keep restic leg + add daily
zstd fast-restore path. Sampler: bin/opencode-db-churn.mjs + tests.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: da1927f6-e08c-4fe5-a8c3-5eb0a2a5ee68
Commits

Reviewing files that changed from the base of the PR and between 66858a2 and 122337e.

Files selected for processing: 3

  • bin/opencode-db-churn.mjs
  • bin/opencode-db-churn.test.mjs
  • doc/2026-11-24T17-45-00Z_research_opencode-db-backup-economics-9094/main.md
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 24, 2026
research(atlas): OpenCode DB backup economics — copy vs zstd vs restic-delta cost + growth model #9094
Closed
2 tasks
@dezren39
Merge remote-tracking branch 'origin/main' into oc-code-07/9094-db-ch…
122337e
…urn-harness
@dezren39
dezren39 merged commit 03f00b6 into main Nov 24, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the oc-code-07/9094-db-churn-harness branch November 24, 2026 17:47
This was referenced Nov 24, 2026
impl(backups): mesh leg — OpenCode session DB backup (gated on research #9094) #13462
Closed
Implement daily zstd full-copy leg for the OpenCode session DB (fast-restore path) #14515
Open
research_workflow.py check fails: missing doc/2026-11-23T22-00-25Z_research_roc-ecosystem/main.md on main #14098
Closed
dezren39 added a commit that referenced this pull request Nov 24, 2026
@dezren39
docs(research): file backup economics as a standalone record (#14098)
cb28612
Global check in run 45508998688 found the stateless report from PR #14513 under main.md. Apply DOCUMENTATION_PROTOCOL dirname.md naming and index it without changing report bytes or broadening managed-package discovery. Original and renamed Git blob: c5d8922.
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
fix(research): distinguish standalone records during package discovery #14657
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.