Module 4 · Lesson 9 of 12
Run an AI-Aware Review
Review the change against behavior and risk, not just whether it looks plausible or the checks are green.
# Run an AI-Aware Review
Generated code can be polished and still be wrong. Review it against the requested behavior and the surrounding system. Start with the diff: confirm every changed file is necessary, look for unrelated edits, and trace the important path from input to outcome.
Check correctness, edge cases, error handling, security, data handling, compatibility, and maintainability. Verify tests cover the behavior rather than merely compile. Ask whether the implementation follows local patterns and whether its abstractions make the system easier to change.
Treat explanations as claims to verify. If the agent says a test passed, inspect the command and its result. If it says there are no risks, do your own review of the affected boundary.
## Apply it
Use a short checklist: behavior, scope, tests, failure paths, security, readability. For each item, record evidence or an open question.
Practice: Review one agent diff and identify one claim you confirmed directly.
Sign in to keep track of the lessons you finish.