Repository navigation
feat(sync): add a reliable inbound sync controller - #138
Open
marcus-pousette wants to merge 1 commit into
Open
marcus-pousette wants to merge 1 commit into
marcus-pousette wants to merge 1 commit into
Conversation
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
May 5, 2026 08:48
664668c to
7e98f4b
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
May 5, 2026 09:00
7e98f4b to
7249913
Compare
marcus-pousette
force-pushed
the
sync/app-facing-controller
branch
from
May 5, 2026 12:07
d7c5bb6 to
edcaec2
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
2 times, most recently
from
May 5, 2026 12:18
7709dfc to
2f4ba43
Compare
This was referenced May 5, 2026
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
June 1, 2026 20:33
2f4ba43 to
3470733
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
July 12, 2026 13:52
854fd22 to
1c4c0ff
Compare
marcus-pousette
changed the base branch from
sync/app-facing-controller
to
fix/sync-once-cancellation
July 12, 2026 13:52
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
July 12, 2026 14:09
a6ed58e to
91ca885
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
July 12, 2026 14:09
1c4c0ff to
a7f1677
Compare
marcus-pousette
marked this pull request as ready for review
July 12, 2026 14:22
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
July 12, 2026 15:23
91ca885 to
e3d69f3
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
July 12, 2026 15:23
a7f1677 to
b187784
Compare
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
July 13, 2026 16:05
e3d69f3 to
7f537fe
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
July 13, 2026 16:05
b187784 to
039505c
Compare
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
July 24, 2026 15:13
7f537fe to
88d5372
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
July 24, 2026 15:13
039505c to
4c769ae
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
August 19, 2026 08:53
4c769ae to
197d83b
Compare
Co-Authored-By: Codex GPT-5 (unknown context) <noreply@openai.com>
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
August 20, 2026 11:32
5cd76f4 to
8145916
Compare
marcus-pousette
force-pushed
the
sync/scoped-live-controller
branch
from
August 20, 2026 11:32
197d83b to
6d4bea5
Compare
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.
What this does
Adds
createInboundSync, a framework-agnostic controller for reconciling and subscribing the same filters across application-owned peer connections.addAttachedPeerintentionally registers an already-attached transport. The controller does not attach or detach it, which lets inbound and outbound behavior safely share one connection without ambiguous ownership.Contract
addAttachedPeerreleases only that exact registration; stale cleanup cannot remove a replacement with the same peer id.syncOnceis bidirectional reconciliation despite the inbound-oriented controller name.InboundSyncAggregateErrorwith exact peer, filter, and cause.subscribe(filters)is declarative and latest-call-wins, including reentrant observer calls.close()is terminal, idempotent, and drains active reconciliation plus subscriptionready/donework before resolving.Stack
Based on #204, which provides the underlying abortable protocol session. Playground adoption remains isolated in #205.
Size
Validation
@treecrdt/syncstack: 55/55git diff --checkpass