Repository navigation
Show missing evidence for analysis preview rules and signals - #439
Merged
Merged
Conversation
lcbill
approved these changes
Oct 12, 2026
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.
Email analysis previews can depend on evidence that is unavailable during standalone analysis. The table output summarized nested fields, leaving operators unable to see which rules and signals were affected.
Print each unmatched rule's ID and unavailable evidence, plus each top signal's missing-context status and evidence, on stderr. JSON stdout continues to preserve the complete response. Escape terminal controls in rule IDs, respect quiet mode, and handle previews whose verdict is unavailable without failing after printing the response.
Validation: focused CLI contract tests pass; the new table regression fails against the previous implementation. Full unit and microbenchmark suite: 5127 passed, 5 existing skips. No service behavior changes; the only risk is extra diagnostic lines in the terminal report.
Manual verification: analyze a sample EML with table output and confirm rule/signal evidence is visible on stderr; repeat with JSON output and verify the response document is unchanged.
🤖 Generated with Claude Code