## Problem Cora review produces false positives when reviewing intentional code changes that static analysis already verified: - `match_same_arms` merge (e.g., `"suggestion" | "info" => X` + `_ => X` → `_ => X`) flagged as "drops explicit matching" - Dead code removal flagged as "Error" when zero callers exist - These are valid changes verified by `cargo clippy` and Rust compiler ## Root Cause Cora LLM prompt only sees the diff — it doesn't know that: 1. `cargo clippy` already verified the change (clippy suggested the merge) 2. The compiler verified no callers exist (dead code) 3. Pattern matching is still exhaustive ## Solution Inject static analysis context into the cora review prompt: - Include relevant clippy lint names/outputs for changed code - For dead code: note that compiler verified zero callers - For pattern merges: note that clippy `match_same_arms` triggered the change ## Acceptance Criteria - [ ] Cora review prompt includes clippy context when available - [ ] False positive rate reduced (measure: review same PR before/after) - [ ] No increase in false negatives (don't miss real issues) ## Related - Part of v0.3 milestone (#8) - Related to #114 (context chain)
Activity
Merge pull request #145 from codecoradev/feat/static-analysis-context