fix(auth): require document-wide grants for operation writes#188
Open
marcus-pousette wants to merge 2 commits into
Open
fix(auth): require document-wide grants for operation writes#188marcus-pousette wants to merge 2 commits into
marcus-pousette wants to merge 2 commits into
Conversation
This was referenced Jul 11, 2026
da5ddf4 to
bff75b8
Compare
ac53060 to
879801d
Compare
db233a2 to
d3f633a
Compare
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
Authorizing a write from the receiver's current tree ancestry is delivery-order dependent. One peer can accept an operation while its node appears inside a scope, then replay an earlier move that puts it outside; another peer receiving the move first rejects the same operation.
That can create both an authorization bypass and permanent op-set divergence.
What changes
maxDepthor exclusions.pending_context.Deployments that previously issued scoped write tokens need a coordinated migration because upgraded peers reject those writes.
Fast paths
Tests
The large negative diff is deliberate debloating: unsupported scoped-write tests and demo flows are removed rather than replaced with more machinery.
Stack
Stacked on #157.