Own the diff
Treat AI output like a classmate’s pull request. Helpful, but not trusted by default.
You are responsible for reviewing and validating generated code before you accept it. If you cannot explain a change in an interview, do not merge it yet.
What to review
Start with the diff, not the AI’s explanation. The explanation may sound clean while the code changes more than you asked for.
Check whether the change matches your goal, touches the right files, keeps existing behavior, and avoids risky shortcuts like hardcoded secrets or unsafe user input handling.