Code Review
Analyze the provided code diff and produce a structured review covering:
- Correctness — logic errors, off-by-one mistakes, null-safety gaps
- Style — naming conventions, formatting, idiomatic usage
- Performance — unnecessary allocations, O(n²) patterns, missing indexes
- Security — injection vectors, credential leaks, auth bypasses
Output a markdown summary with severity ratings for each finding.