Reviewing the AI's Diff
Writing Prompts That Work got you a scoped request and, a few seconds later, a diff. This page is about the minute after that, which is the minute interviewers watch most closely. Anyone can get the AI to produce code. The round is testing whether you notice when that code is wrong, and a candidate who catches the one bad line and says so out loud has shown the exact skill it exists to measure.
Read Every Line, in a Fixed Order
Read every line of every diff, and read the parts in the same order each time. A fixed order stops you from skimming the parts that matter most, and it makes review fast enough that you won't be tempted to skip it. Most interview diffs are 10-60 lines, which takes about a minute to read properly.
Start with the list of changed files, before any code. If you asked for a change in discounts.py and four files
changed, you already have a question to answer. Next read the test changes, because a test edited to match the new
output is the most damaging mistake and the easiest to miss once you're deep in the logic. Then read the logic line by
line, asking of each one: what input makes this wrong? Finish with the edges of the diff: imports, new dependencies,
deleted lines and anything renamed.
Size is part of the review. If a diff is over about 150 lines, don't try to read it. Reject it and ask for the first step only. A big diff isn't a sign the AI worked hard; it means the prompt left too much room, and you'll miss things in it that you'd catch in a small one.