Repository navigation
Event storage proof failures identify their stage - #885
Merged
Merged
Conversation
Signed-off-by: zlareb1 <[email protected]>
Keep fixed diagnostic fields before cutover and native observation errors become public refusals. 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: #841
Changelog category
Changelog entry
Ordinary-event verification reports its last active proof stage and fixed error fields when it refuses analyst access.
Why
Cutover verification replaces failures with one public refusal. Native policy observers also discard transport and result-validation causes before that boundary. Diagnostics cannot distinguish writer discovery, observer transport, insert drain and census failures.
The existing refusal boundaries report a fixed stage, exception class and numeric database code when available. Native observer diagnostics report the HTTP status separately, without reading a rejected response body. A stage names the last active step, including context-manager cleanup after that step; it does not establish which predicate failed.
Scope and risk
Only cutover and native-observer diagnostics change. The diagnostic fields exclude error text, SQL, policies, credentials, identities and response rows. Logging uses the existing privacy filters. Extraction or logging failures cannot replace the original refusal.
Writer coverage, policy authority, table constraints, the finite insert drain, census, checked sessions, principals, timeouts, cancellation and owned cleanup retain their existing behavior. The change supplies evidence for diagnosis; it does not establish or repair a cause of a live refusal.
Compatibility, rollout and rollback
Tests
pytest -q tests/unit/test_event_cutover_diagnostics.py tests/unit/test_ch_observer_diagnostics.py.mypy server/core/ch_observer.py server/insights/store/event_cutover.pyandgit diff --checkpassed.AI assistance in the code
AI-generated: an agent wrote most of the diff. Checked the original refusal paths, unchanged proof controls, cleanup, redaction and causal regression results.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist