Repository navigation
Session protection proof failures identify their stage - #841
Merged
Merged
Conversation
Record only a fixed proof stage, exception class and numeric database code so backend uncertainty can be diagnosed without exposing error bodies. Keep the public refusal and owned cleanup unchanged. Signed-off-by: zlareb1 <[email protected]>
The model-stage inventory recognizes literal assignments to stage. Use proof_stage for privacy diagnostics so the model registry stays limited to model calls. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
9 tasks done
Signed-off-by: zlareb1 <[email protected]>
Keep diagnostics attached to the naturally attempted shape and size so a cost failure identifies its own incomplete parse or walk. Keep the original timing judge, inputs and limits. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]> # Conflicts: # tests/unit/test_code_regex_cost.py
9 tasks done
Signed-off-by: zlareb1 <[email protected]> # Conflicts: # tests/unit/test_code_regex_cost.py
Hold the existing single-window premise with the manual loop clock and flush explicitly. Keep the budget, batch limits, inputs and all assertions. Signed-off-by: zlareb1 <[email protected]>
9 tasks done
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: #864
Related: #861
Related: #854
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Session protection proof failures log their stage, exception class and numeric database code without logging exception bodies.
Why
A refused privacy proof returns one public error. Internal stage labels distinguish a failed engine, latch, Keeper or nonce check without exposing session content, credentials or database error text.
Scope and risk
The product change is confined to the mirror-latch store and its unit tests. The branch also includes the already-merged test changes from #861 and #864; all three supporting files exactly match main. Diagnostic logging is best effort: extraction or logging errors cannot replace the existing refusal. Stage labels identify the last active proof step; a deadline or context-manager exit can fail after that step. Privacy conditions, public errors, timeouts and owned nonce cleanup retain their behavior.
Compatibility, rollout and rollback
Tests
proof_stage; the LLM stage inventory and model registry are unchanged.git diff --checkpass.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (Codex wrote most of the diff); the complete diff, refusal paths, cleanup, redaction assertions and focused results were checked.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.