Repository navigation
Session proof refusals report elapsed phases and deadline expiry - #892
Merged
Merged
Conversation
Record fixed phase timings and distinguish normal channel close from latch reads. Keep proof deadlines, cleanup and fail-closed decisions unchanged. Signed-off-by: zlareb1 <[email protected]>
This was referenced Nov 18, 2026
Merged
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: #876
Changelog category
Changelog entry
Session-protection proof refusals report elapsed phases and whether their outer security deadline expired.
Why
A timeout warning names the last proof phase but cannot show how much time earlier phases used or whether the outer deadline expired. A successful latch read followed by a slow channel close can also retain the latch label. These ambiguities prevent a timeout from identifying the work that consumed its budget.
Scope and risk
The existing safe warning adds total elapsed milliseconds, current-phase milliseconds, cumulative completion times for fixed proof phases and the actual outer timer's expiry flag. Normal channel close has its own fixed stage. Both absence and positive-state proofs use the same diagnostic helper.
The warning retains only fixed phase names, numeric durations, the expiry boolean, exception class and integer database code. It adds no query text, identifiers, credentials, response content or exception messages. Diagnostic failures cannot replace the existing privacy refusal. Connection setup remains one aggregate phase; these observations do not identify a transport or backend cause by themselves.
Compatibility, rollout and rollback
Tests
AI assistance in the code
Checklist