feat(reports): findings-by-origin breakdown (trust corroborated first)#19
Merged
Conversation
… first) Closes the last item from the user feedback (#3): separate findings by origin so the report makes the corroboration story explicit. A finding seen by BOTH a tool and the heuristic detector is CONFIRMED; detector-only heuristics are lower confidence. - New src/reports/summary.js: originBreakdown(findings) counts findings per source (Semgrep, OSV-Scanner, npm/pnpm/bun audit, Gitleaks, Trivy, Bandit, gosec, CSReview detector, subagent:<domain>) plus a `confirmed` (multi-source) count; labelForSource() maps source ids to friendly names. - Markdown report: new "Findings by origin (trust corroborated first)" metadata line beside the confidence breakdown. - HTML report: the same breakdown in the score-details summary. Tests: +5 (originBreakdown/labelForSource unit + MD/HTML integration). 181/181 - lint clean - typecheck 0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Findings-by-origin breakdown (trust corroborated first)
Closes the last open item from the user feedback (#3 — "separate findings by origin: semgrep, osv, npm audit, internal detector"). Both reports now make the corroboration story explicit: a finding seen by both a tool and the heuristic detector is CONFIRMED and should be trusted first; detector-only heuristics are lower confidence.
What changed
src/reports/summary.js(new):originBreakdown(findings)counts findings per originating source (Semgrep, OSV-Scanner, npm/pnpm/bun audit, Gitleaks, Trivy, Bandit, gosec, CSReview detector,subagent:<domain>) and aconfirmed(multi-source) count;labelForSource()maps source ids to friendly names.Findings by origin (trust corroborated first)line beside the existing confidence breakdown — e.g.2 CONFIRMED (tool+detector), Semgrep 2, Gitleaks 1, CSReview detector (heuristic) 40.DRY: one shared helper feeds both reports. No engine/detector change.
Tests: +5 (helper unit + MD/HTML integration). 181/181 · lint clean · typecheck 0.
🤖 Generated with Claude Code