Repository navigation
Syncables: expose PostgreSQL collections through a read-only Atomic peer - #685
Draft
michielbdejong wants to merge 2 commits into
Draft
michielbdejong wants to merge 2 commits into
michielbdejong wants to merge 2 commits into
Conversation
added 2 commits
October 23, 2026 16:19
Maintain signed native identities and Loro state, journal projection progress, and follow accepted collection revisions through an optional loopback companion. Add native replica, WebSocket and PostgreSQL acceptance coverage. Claude-Session: codex://threads/01a16979-c3bd-74c1-984d-e550ea9ff075 Codex-Session: codex://threads/01a16979-c3bd-74c1-984d-e550ea9ff075
Keep an existing subscription only when the newly authenticated agent can still read the drive, and cover allowed and denied identity switches. Claude-Session: codex://threads/01a16979-c3bd-74c1-984d-e550ea9ff075 Codex-Session: codex://threads/01a16979-c3bd-74c1-984d-e550ea9ff075
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Syncables can now serve one accepted PostgreSQL collection as a native Atomic drive without Git. The new
atomic-peercommand follows local snapshot revisions and feeds an optional Rust companion pinned to the existingatomic_libcore. PostgreSQL remains authoritative; an embedded redb projection maintains stable identities, self-verifying genesis, signed changes, persistent Loro documents/version vectors and a durable pending journal/checkpoint.The loopback WebSocket peer supports authentication, permission-checked retrieval, initial reconciliation, delta sync, subscriptions and reconnect. It requires explicitly selected owner signing authority and reader agents, rejects all incoming mutations (including valid owner-signed commits), and advertises only implemented capabilities. Source records and bundled schemas are native wrappers containing exact JSON-AD text, hashes, revision/OAD provenance and schema links; numbers are preserved without native numeric coercion. Membership absence retains documents and identities for reappearance.
Adds build/run and representation documentation plus a dedicated native compatibility CI job. Existing replication destination definitions remain configuration only; target-drive imports, provider writeback and typed native column mapping are outside this prototype.
Validation:
Related to #684. Keeping this draft and the issue open pending CI and one explicitly selected live collection/reader check. The Atomic drive skill was located, but its public identity helper reports no bootstrap configuration in this cloud workspace; the live drive selection and authorized signing access are still unavailable. No real provider records, owner keys or provider credentials were accessed.
Claude-Session: codex://threads/01a16979-c3bd-74c1-984d-e550ea9ff075
Codex-Session: codex://threads/01a16979-c3bd-74c1-984d-e550ea9ff075