pub fn classify_modification(
path: &Path,
old_content: &str,
new_content: &str,
) -> (ModificationKind, ChangeImportance)Expand description
Classify what kind of modification happened to a file and its review importance.
This is the core engine behind “147 files changed → 11 things worth reviewing”: it separates noise (formatting, imports, comments) from signal (logic changes).
Returns (kind, importance, confidence) where confidence is 0.0–1.0. AST-backed classification gets high confidence (0.9+), token-fallback gets medium (0.6–0.7).