Repository navigation
fix(auth): bind outbound ops to validated capability snapshots - #191
Draft
marcus-pousette wants to merge 2 commits into
Draft
marcus-pousette wants to merge 2 commits into
marcus-pousette wants to merge 2 commits into
Conversation
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 11, 2026 22:56
d7baa47 to
be3fafc
Compare
marcus-pousette
force-pushed
the
fix/auth-safe-oplog-projection
branch
from
July 11, 2026 23:01
9b37f32 to
54181f6
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 11, 2026 23:01
be3fafc to
7e254df
Compare
marcus-pousette
force-pushed
the
fix/auth-safe-oplog-projection
branch
from
July 12, 2026 12:18
54181f6 to
3c84eae
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 12, 2026 12:32
7e254df to
fde4928
Compare
marcus-pousette
changed the base branch from
fix/auth-safe-oplog-projection
to
refactor/sync-protocol-helpers
July 12, 2026 12:32
marcus-pousette
force-pushed
the
refactor/sync-protocol-helpers
branch
from
July 13, 2026 14:07
89efe4d to
48660f0
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
3 times, most recently
from
July 13, 2026 15:06
72cf530 to
7ac402b
Compare
marcus-pousette
force-pushed
the
refactor/sync-protocol-helpers
branch
2 times, most recently
from
July 13, 2026 15:50
160a171 to
7268598
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 13, 2026 15:50
7ac402b to
dbc37dc
Compare
This was referenced Jul 13, 2026
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
August 19, 2026 08:52
dbc37dc to
f019796
Compare
marcus-pousette
force-pushed
the
refactor/sync-protocol-helpers
branch
from
August 19, 2026 08:52
7268598 to
6221d9b
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
August 20, 2026 11:30
f019796 to
df43e7c
Compare
This was referenced Aug 20, 2026
marcus-pousette
marked this pull request as draft
August 31, 2026 13:38
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.
Problem
A peer's capabilities can change while backend reads, filtering, signing, or transport sends are awaiting. Outbound work must not be selected under one authority snapshot and be sent after that snapshot is replaced.
The original draft also had no way to correlate
HelloAckwith a specificHello, which forced transport-wide waiter queues and handshake serialization.What changes
Hello.exchangeId;HelloAckechoes it exactly.SyncError.exchangeIdto reject only the failed exchange.(transport, exchangeId).Clean-slate choice
This is a wire reset. There is no parser or state-machine fallback for Hello/Ack messages without exchange IDs. The direct correlation removes the global waiter, refresh queue, Hello serialization tail, capability-handler tail, inbound-Hello generation, and crossed-Hello fallback.
Fast paths left
Verification
The rewrite removes 258 net lines from the previous PR head, including 101 net production lines from
sync.ts.Stack
Stacked on #201. #181 provides transport ownership and terminal-error foundations.