Repository navigation
fix(auth): bind each local write to its exact proof - #187
Draft
marcus-pousette wants to merge 1 commit into
Draft
marcus-pousette wants to merge 1 commit into
marcus-pousette wants to merge 1 commit into
Conversation
marcus-pousette
marked this pull request as draft
July 11, 2026 22:35
Collaborator
Author
|
Temporarily marked draft while rebasing this proof-handoff foundation off the superseded #182/#183 branches and onto the lean #188–#191 auth stack. The proof contract/exact-body validation remain; preWriteState/scoped-write dependencies and obsolete tests are being removed before it is marked ready again. |
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 11, 2026 23:01
e39a074 to
1462d42
Compare
marcus-pousette
changed the base branch from
fix/auth-children-filter-redaction
to
fix/auth-outbound-read-guard
July 11, 2026 23:01
marcus-pousette
marked this pull request as ready for review
July 11, 2026 23:01
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 11, 2026 23:02
1462d42 to
d62a09a
Compare
This was referenced Jul 11, 2026
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 12, 2026 12:32
7e254df to
fde4928
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 12, 2026 12:34
d62a09a to
2b042a9
Compare
This was referenced Jul 12, 2026
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 13, 2026 14:07
fde4928 to
76db022
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 13, 2026 14:07
2b042a9 to
58c0e71
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 13, 2026 14:12
58c0e71 to
2a4f4b4
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
2 times, most recently
from
July 13, 2026 15:06
72cf530 to
7ac402b
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 13, 2026 15:14
2a4f4b4 to
a1f0048
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
2 times, most recently
from
July 13, 2026 15:30
c61c8b8 to
9d2b7e0
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
July 13, 2026 15:50
7ac402b to
dbc37dc
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
July 13, 2026 15:51
9d2b7e0 to
9c800f1
Compare
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
fix/atomic-local-auth-proof-handoff
branch
from
August 19, 2026 08:52
9c800f1 to
7f1c87a
Compare
marcus-pousette
force-pushed
the
fix/auth-outbound-read-guard
branch
from
August 20, 2026 11:30
f019796 to
df43e7c
Compare
marcus-pousette
force-pushed
the
fix/atomic-local-auth-proof-handoff
branch
from
August 20, 2026 11:30
7f1c87a to
e417013
Compare
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.
Critical issue
An operation signature did not bind its
proofRef. A relay could replace that reference with another token for the same key, and the verifier could search other candidate tokens when the reference was missing or unusable. That allowed the same signed operation to be reinterpreted under different authority.A local operation created without retained proof material could also be signed later during reconciliation, after the original write boundary.
One strict contract
Every authenticated operation carries exactly:
The token reference is selected before signing and is part of the sole
treecrdt/op-sig/v1input. Verification resolves only that referenced token.Only the
local_writeauthorization purpose may create a new proof. Reconcile and subscribe paths may reuse an exact cached/stored proof, but cannot mint one after the operation was committed.What changes
OpAuthandLocalWriteAuthProofcomplete, required types.authorizeLocalOps.requireProofRef, candidate-token fallback, and the optional proof-extractor adapter.NOT NULLplus length constraints in fresh SQLite/Postgres proof tables.Fast paths
Clean-slate choice
There is one wire/signature/store format. There is no old signature verifier, optional reference, nullable schema, migration, or downgrade path. Development proof data from the earlier format must be recreated.
Verification
Stack
Stacked on #191. #192-#196 consume this exact-proof contract.