Skip to content

doc(atlas): decision record — embedded-replica integration shape (#11213 scope 1) - #12868

Merged
dezren39 merged 1 commit into
mainfrom
lane-du/11213-decision-record
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-du/11213-decision-record

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #11213 (scope item 1), #6666, #5755.

Lands the integration-shape decision record for persistent embedded replicas of the atlas core shards (#11213 scope item 1: "decide and record the integration shape"). Docs only — no code, no dependency changes.

Decision in brief:

  1. One sync owner per replica home; only it opens replica files for sync.
  2. Crate chosen by engine match, gated by a spike: the core shards are TursoDB-type (design §6), and Turso's Rust reference says to match the crate to the engine — default candidate is the turso crate (pull-only), not libsql. libsql is adopted only if a spike proves its replication works against a TursoDB-type primary.
  3. Reads never open a syncing replica file from a second process (vendor corruption warning): the replica transport is a new PipelineTransport impl in the sync-owning process; rusqlite LocalShardTransport stays for static files. This supersedes the earlier "serve the replica home via dir:" assumption.
  4. Secret tier refused fail-closed with a named error, pre-network.
  5. Sync crate pinned exactly and isolated behind the PipelineTransport seam (the turso crate is pre-1.0).

Also records the staged plan (spike → transport → discovery wiring → live verification) that replaces #11213's mis-sized 45-minute packet, which three earlier lanes parked as a packet defect.

Evidence was read fresh on main ced8e85f3 (seam line refs in the record) and from Turso's Rust reference (updated 2026-11-18).


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

@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:07
@dezren39
dezren39 merged commit bf322f9 into main Nov 23, 2026
1 check passed
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

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 22 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: 58f65103-083e-4fe5-ae8c-89f91cbe4ded
Commits

Reviewing files that changed from the base of the PR and between 98a5347 and 2f56129.

Files selected for processing: 1

  • doc/2026-11-23T04-10-00Z_decision_atlas_embedded_replica_integration/2026-11-23T04-10-00Z_decision_atlas_embedded_replica_integration.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant