Skip to content

Evaluate single-writer SQLite sync and restore alternatives #10212

Open

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.

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. 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.

  4. 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.

  5. 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.

  6. removed their assignment
    on Nov 20, 2026
  7. 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.

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

    queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions