Repository navigation
Session proof warnings name the nonce cleanup statement - #952
Merged
Merged
Conversation
Signed-off-by: zlareb1 <[email protected]>
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.
Related: #892
Changelog category
Changelog entry
Session protection warnings distinguish releasing an admission nonce from verifying its removal.
Why
Nonce cleanup runs two database statements under one diagnostic stage. When its deadline expires, the warning cannot identify which statement was awaiting completion. Give each statement a fixed stage label.
Scope and risk
The change inlines a single-use private helper and labels the release and verification awaits separately. SQL, statement order, backend attestations, ownership checks, admission decisions, deadlines and refused-attempt cleanup retain their existing behavior. Warnings still exclude exception bodies, query text and request data. The underlying timeout remains unexplained.
Compatibility, rollout and rollback
Tests
.venv/bin/python -m pytest tests/unit/test_mirror_latch.py -q -n 0: 39 passed.git diff --checkpassed.AI assistance in the code
AI-generated: Codex wrote the change. Deterministic regressions and the AST comparison check the refusal, cleanup, timing and redaction behavior.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist