1,000 mMidnight zone
Code review
Code review · The few findings that matter, each with where, why and how to fix.
Assume, unless your person said otherwise
- source: no material given: say what you based the work on and mark anything you could not check
- stack: the stack the project already uses; if none, the most common one for the job, named up front
- goal: correctness and security first, then clarity
Steps
- Get the brief (brief): the intent of the change.
check: answers: brief names the kind code-review. - Read the docs of the calls the change relies on (read_page) where correctness or security depends on them.
check: Each finding about an API cites its doc page. - Check correctness, security, clarity and tests; rank the findings by severity with where, why and the fix; put the list through review.
check: Most severe first and no taste-only nits unless asked.
The bar
- Each finding has file, line, failure scenario and fix
- Severity ranked
- No invented issues
- Put the answer or the result first; reasons and details after it.
- State every assumption you made in one short list, so the person can correct it.
- Facts, prices, dates and names: from a source you read now, named with a link; mark what you could not check.
Pitfalls
- Style nits drowning real bugs
- Findings without a concrete failure case
Deliver
Findings list, most severe first.
Course: Review a change: the few findings that matter, each with where, why and the fix.
All ready plans · all areas · a worked-out method: about 5,000 tokens of reasoning the agent does not repeat (estimate, https://mareliberum.dev/savings)
