How to review AI-generated code
Review an AI-generated change the way you would any unfamiliar contribution. Start with the intended behavior, inspect the diff, and verify it through the same entry point a customer or operator will use.
Keep the review tied to the problem
Ask for a small change with a clear example of what should happen. Read the diff for edits beyond that scope, new dependencies, and configuration changes. Make sure a test would actually fail if the reported bug still existed. A passing test only helps when its assertion matches the behavior you care about.
Check system boundaries
For a change that stores data or calls another service, check how it handles validation, permissions, failed requests, and retries. Try normal and invalid input in a test environment. Review migrations and deployment order separately so an interrupted rollout stays recoverable.
Leave a decision someone can use
Document what you reviewed, what you verified, and what still needs an owner’s decision. Ask for a smaller patch if the change is too broad to verify. Keep credentials and customer data out of review materials.
See the AI code review service and billing details.