Skip to content

Show missing evidence for analysis preview rules and signals - #439

Merged
maximelb merged 2 commits into
masterfrom
analyze-preview-diagnostics
Oct 12, 2026
Merged

maximelb merged 2 commits into
masterfrom
analyze-preview-diagnostics

Conversation

@maximelb

@maximelb maximelb commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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

@maximelb
maximelb merged commit 314d825 into master Oct 12, 2026
6 checks passed
@maximelb
maximelb deleted the analyze-preview-diagnostics branch October 12, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants