fix(sqlite): isolate authenticated local commits#195
Open
marcus-pousette wants to merge 1 commit into
Open
Conversation
This was referenced Jul 12, 2026
ba21c50 to
6cc3ac6
Compare
cac68d8 to
0f717c6
Compare
This was referenced Jul 12, 2026
6cc3ac6 to
b148b40
Compare
0f717c6 to
00a95a6
Compare
b148b40 to
260817c
Compare
5e1addb to
21c9a88
Compare
260817c to
0b5e4a2
Compare
21c9a88 to
e054eaa
Compare
5158707 to
44948a1
Compare
e054eaa to
8069ef0
Compare
44948a1 to
6643f10
Compare
8069ef0 to
871d990
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
SQLite must not hold a savepoint while asynchronous authorization runs, and a committed authenticated operation must never be separated from its exact proof.
What changes
Authenticated local writes:
authorizeLocalOps, which returns one complete proofPolicy, codec, proof, database, and listener failures are terminal. Events are emitted only after commit.
Clean-slate choice
There is no optional proof hook, missing-reference branch, proofless authenticated commit, or old savepoint-across-auth path.
Fast paths
authSessionretain the single immediate SQL call.Verification
Stack
Stacked on #194 and completes the SQLite authenticated local-write path.