Skip to content

Evaluate single-writer SQLite sync and restore alternatives #10212

Done

Description

@dezren39

Problem and goal

Compare Litestream WAL async DR, Turso Sync last-push-wins, D1 and redb against RPO/RTO/conflict and workload needs; select no backend without evidence.

Version and design basis

Version: V4. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md#9135-store-placement-adapter-s27s29 (section: #9135 store placement adapter (S2.7–S2.9)).
Tier: contingent. Start trigger: Only if a placement decision is requested after matched local/cloud evidence exists; otherwise keep this V4 comparison parked.
Statement IDs: S2.8, S2.9
Enables: future store adapter decision

Scope and ownership

Parent: #9135 (native component/meta parent).

  • doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/sqlite-sync-research.md (new; owner: C9135-03)
  • doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/sqlite-sync-research-report.json (new; owner: C9135-03)
  • doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/validate_sqlite_sync_research.py (new; owner: C9135-03)
    Hard dependencies (native blockers): C9135-01 — per-surface store authority inventory and identity boundaries; C9133-LOCAL — matched laptop redb/Turso run result with shared corpus digest and environment metadata; C9133-CLOUD — approved D1/R2 cloud evidence result or explicit no-run record; placement recommendations remain prohibited without comparable results
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/validate_sqlite_sync_research.py first. Proposed command: python3 -I doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/validate_sqlite_sync_research.py --input doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/sqlite-sync-research-report.json
Oracle: research-matrix — expected redb, D1, Litestream and Turso Sync each have authority, conflict, recovery/restore, limits and evidence-source fields. If comparable measurements are absent, result says not measured and contains no placement winner.; verifier: Owned matrix validator checks all four candidates and required fields/source refs; no measurements are generated by validator..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: https://litestream.io/how-it-works/; https://docs.turso.tech/sync/usage; https://developers.cloudflare.com/d1/platform/limits/; https://docs.rs/redb/4.3.0/redb/; doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/benchmark-plan.json.
Rollback: Do not change placement; retain current store authorities and mark report superseded if source behavior changes.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Acceptance criteria

  • Single-writer SQLite sync and restore alternatives are evaluated per the body (parent research(atlas): tenant store placement — in-D1 vs SQLite files synced to S3/R2 #9135) and the comparison is recorded here; a placement decision is only taken if requested after matched local/cloud evidence exists.
  • Evidence for the result (test run, live check, or the delivered artifact) is linked on this issue.
  • Follow-on work, if any remains, is filed as its own issue and linked here.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    state: blocked (dependency)
    task: 17056 (lane any-d, repo-worker-code)
    issue: #10212 — Evaluate single-writer SQLite sync and restore alternatives (slice C9135-03)

    Preflight (mandatory triage/preflight packet): native GitHub blocked_by for #10212 = #10167, #10187, #10188, verified fresh 2026-11-14T17:46Z. All three blockers are still OPEN. Contingent research trigger noted in the packet (placement decision after matched local/cloud evidence) has not fired, so no contingent research was started.

    Per the packet's acceptance contract, no implementation was started. Task 17056 is self-blocked as a dependency block on #10167, #10187, and #10188 (--blocked-by-issue); the broker will return it to the pool automatically when every blocker closes. No production rollout is authorized by this packet.

  3. added
    queue/blocked
    status/blocked
    on Nov 14, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged
    task: 19151
    lane: code-i

    Triage verdict: remains blocked, no action. Fresh GitHub state: #10212 is OPEN, assigned to Drew, with no hard-stop labels. Native blocked-by relations are still #10167, #10187 and #10188, and all three are OPEN. The contingent trigger (a placement decision requested after matched local and cloud evidence exists) has not fired. No follow-on task was created; the existing blocked state already covers it.

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    actor: repo-worker-code (openchamber-scheduled-lane, lane any-n)
    transition: blocked
    queue_task: 17056 (repo-health-code-pilot)
    summary: Mandatory C9135-03 native-blocker preflight. Open native blockers: #10167, #10187, #10188 (all OPEN as of 2026-11-17T17:50Z). No implementation performed; contingent research trigger not fired. Task self-blocked with reason class blocked; recheck when every blocker is closed. Not production rollout authorization.

  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note (repo-worker-code, code-f scheduled lane): triage verdict

    Verified 2026-11-18T08:43Z. #10212 remains blocked by its native blockers, all OPEN:

    No work started. Resume after those three close, or when dezren39 hands off the issue. Labels left as status/blocked and queue/blocked.

  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 17056
    worker: repo-worker-code
    lane: oc-code-03
    origin: openchamber-scheduled-lane
    stage: native_blocker_preflight

    Fresh native blocker preflight (2026-11-20 17:55Z): #10167, #10187, and #10188 are all OPEN. Per the mandatory preflight packet, no implementation or rollout is authorized while any blocker remains open. Task 17056 is self-blocked with all three native issues recorded; no repository files changed.

  9. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Agent: xaltha — #14863 audit slice 2 (blocked-state truth pass)
    State: verified-blocked, blocker set corrected (2026-11-25)

    Fresh gh verification this run: of the three native blockers recorded 2026-11-18/20, #10167 is now CLOSED (status:done) and #10188 is CLOSED (status:done). The sole remaining blocker is #10187 (cloud-backed storage evidence run), still OPEN. Verdict: status/blocked + queue/blocked stay; resume by rechecking #10187 only. Note the tier is contingent — even once unblocked, the comparison stays parked unless a placement decision is requested after matched evidence exists.

  10. 6 remaining items

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)

    FIXES I APPLIED:

    • none needed

    REMAINS: nothing — ready for pickup

  12. added
    kind/research
    app/atlas
    effort/m
    on Nov 29, 2026
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 residual pass. A parallel census note (Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.

    Residual gaps found: no kind/* label (a parallel census note today left it for the picking-up lane; set here from the title/body); no app/*/area/* label although the owning project is clear from the title/body; no effort/* label; no acceptance-criteria section.

    Actions taken: labels added: kind/research, app/atlas, effort/m; appended ## Acceptance criteria (original body text unchanged above it).

    Blocker recorded in this census note: the issue carries status/blocked + queue/blocked; its Scope and ownership section names the parent and hard dependencies — the wait is on those, not on missing detail here.

    Priority: priority/low retained — matches the work's urgency as evidenced on the issue; no band change in this pass.

  14. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    P1.2 stale-edge prune (Felix lane 0640-PG, #17071 P0–P3 plan)

    Before: 3 native blockedBy edges. Removed 2 stale edges (#10167, #10188 — both CLOSED). After: 1 edge — #10187 (OPEN) remains, so status/blocked/queue/blocked labels stay.

  15. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 0622-J (delta PRESS, 2026-11-30). Taking the gate-independent slice of #10212: the research matrix itself — sqlite-sync-research.md, sqlite-sync-research-report.json, and validate_sqlite_sync_research.py at the body's owned paths — with all four candidates (redb, D1, Litestream, Turso Sync) carrying authority/conflict/recovery/limits/evidence-source fields and measurements recorded as not measured (no placement winner), exactly as the body's research-matrix oracle prescribes. The native blocker #10187 (cloud evidence) remains open and still gates any placement decision, which this slice does not take. Priority validation 0622-J: priority/low concurred (rank 200 band entry; contingent research, no legacy band issue — labels carry priority/normal in the list snapshot vs low here; leaving band as listed, noting the mismatch for the list writer).

  16. added a commit that references this issue on Nov 30, 2026
  17. added 3 commits that reference this issue on Nov 30, 2026
  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Close-out — lane 0622-J (delta PRESS, 2026-11-30). The evaluation this issue asks for is recorded; closing as completed.

    • PR docs(id-atlas): #10212 SQLite sync research matrix (C9135-03) #17190 MERGED (dbc3b4e): adds sqlite-sync-research.md, sqlite-sync-research-report.json, and validate_sqlite_sync_research.py at the body's owned paths under doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/. Diff verified firsthand before merge: 3 new files, additions only.
    • Oracle run (research-matrix), executed by this lane: python3 -I validate_sqlite_sync_research.py --input sqlite-sync-research-report.json → OK: research matrix complete for redb, D1, Litestream, Turso Sync; status=not measured; no placement winner (rc=0).
    • All four candidates carry authority, conflict, recovery/restore, limits and evidence-source fields. Measurements are not measured and no placement winner is named — per the body's rule, a placement decision is only taken if requested after matched local/cloud evidence exists. That evidence remains tracked by its own issues (C9133-LOCAL; C9133-CLOUD = Cloud-backed storage evidence run with strict preflight validator #10187, still open and still the native blocker for any future placement request); if a placement decision is later requested, it files as its own issue against those results.

    Priority validation 0622-J: the list snapshot carried priority/low for this entry while live labels read priority/normal — leaving the live band untouched; mismatch noted for the list writer (0607-B).

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

    app/atlaseffort/mepic/atlas-programkind/researchprimary-parent/atlas-programpriority/lowqueue/blockedstatus/blockedstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions