feat: confidence score (0-5) + optional LLM judge - #24
Conversation
Tier-1 detectors get base 5; heuristic detectors base 3; LLM-authored findings default to 4. Optional BYOK LLM judge re-scores findings with a rationale; drop_ungrounded filters confidence <= 1. v18 migration adds confidence + judge_rationale to findings. New [confidence] config. Signed-off-by: Lohit Kolluri <lohitkolluri@gmail.com>
…ooltip Signed-off-by: Lohit Kolluri <lohitkolluri@gmail.com>
Codasaurus
This PR updates 31 files across Findings
Copy this into your AI coding agentPaste this prompt into Cursor, Copilot, or another coding agent: Changes
All files (31)
|
ContextBlast radiusSensitive path: Blast detailsHigh-sensitivity paths:
Top imports in this PR:
Bounded estimate from PR imports only. Related pull requests
|
ChecksBefore merge
Reviewer time ~35 min (4/5 · Complex · 31 files) CommandsType as plain text (GitHub Apps are not @-mentionable):
Full list: |
| | "risky-patterns" => 5, | ||
| "vulnerabilities" => 3, | ||
| "boilerplate" | "over-engineering" | "slop-detection" | "stale-api" | "graph" | ||
| | "guidelines" | "todo-leaks" | "policy" => 3, |
There was a problem hiding this comment.
Note · Unfinished TODO left in
Do this: Complete the implementation or remove the placeholder.
Why it matters
A TODO / FIXME marker was committed. Finish the work or remove the marker before merge.
detector: todo-leaks
source: tier1
snippet: | "guidelines" | "todo-leaks" | "policy" => 3,
Dismiss / fix commands
fingerprint: a44b36868e15
@codasaurus ignore a44b36868e15 · 👎 to dismiss
What
Every finding now carries a confidence score 0-5.
confidence+judge_rationale. Best-effort — LLM failure keeps base confidence, never fails the review.[confidence] drop_ungrounded = truedrops findings with confidence <= 1.findings.confidence(INTEGER),findings.judge_rationale(TEXT).cNcolored by tier, judge rationale in tooltip.Config
Notes
confidence/judge_rationale(serde-skipped when absent).postgres_smokerequires a live Postgres (env-only failure, not code).feat/review-comment-redesign(Phase 0, PR feat: baseline finding suppression + quality gates #23) since the judge runs after the baseline filter.Follows the 7-phase plan (0→3→1→2→4→5→6).