Raw view: Review the current diff

No invisible, zero-width, or bidi-control characters detected.

---
description: Review the working-tree diff (or a given range) for bugs, edge cases, missing tests, and maintainability issues
argument-hint: [range, e.g. main...HEAD or HEAD~3; default: uncommitted changes]
allowed-tools: Bash(git diff *), Bash(git log *), Bash(git show *), Read, Grep, Glob
---

Review these changes as a senior engineer. Read-only: do not edit anything.

Range requested: $ARGUMENTS (empty means uncommitted changes against HEAD)

Uncommitted changes:
!`git diff HEAD --stat`
!`git diff HEAD`

If a range was given, run `git diff <range>` and review that instead of the output above.

Procedure:
1. For every changed file, read the whole file, not just the hunks; check callers of any changed function with Grep.
2. Look for, in order: correctness (null/undefined, off-by-one, inverted conditions, unawaited async, swallowed errors, unclosed resources), edge cases (empty, single, max, unicode, concurrency, timezones), error handling that leaves invalid state, test coverage for the new behavior, duplication of logic that already exists elsewhere, dead code.
3. Skip anything a formatter or linter would catch.

Output exactly:

## Review (<N> files, +A/-D)
### Critical
- `path:line` - problem. consequence. Fix: ...
### Warnings
- ...
### Suggestions
- ...
### Tests
- Covered: ...
- Missing: <name the test you would write>
### Verdict
APPROVE / APPROVE WITH NITS / REQUEST CHANGES - one sentence.

Omit empty sections. One finding per bullet, each with a file:line you can point to. If the diff is clean, say so in two lines.