Common Mistakes in AI-Assisted Development
Code can look reasonable and pass tests while still solving the wrong problem or breaking something elsewhere. This list helps reviewers decide where to look.
The mistakes overlap. Use the list to guide a review, not to assign every problem to exactly one category. A missing explanation is a reason to check further, not proof that the author skipped the work.
Mistakes to look for
Searches and tests have limits. Code search can miss external consumers. A local benchmark may not reflect production. Review the setup before relying on the result.
Code and tests can share the same mistake
An agent may write code that retries after every timeout, then write a test whose mock returns a timeout before doing any work. The test passes, but it never checks the dangerous case: the server saves the operation and its response is lost.
Make the test exercise that case and inspect the saved state. Check that the mock or test environment has not assumed the behavior you need to verify.
Another agent can help review the test, but it may repeat the same assumption. The useful question is whether the check can actually expose the mistake.
Fixing the example is not always fixing the problem
A duplicate-prevention fix might make one test pass by suppressing every later request. It would also reject valid new requests.
Check the rule behind the fix. Try cases that should still succeed, cases that should fail, and relevant variations of the original problem. For retries, that might include process restarts, concurrent requests, and genuinely different operations.
One wrong assumption can spread
A mistaken assumption can end up in the design, code, tests, and PR description. It then looks settled because every document agrees with it.
Watch for requirements being lost during handoff, guesses being repeated as facts, and local fixes preserving a design that no longer works. When an assumption fails, revisit the decisions and code that depend on it.
Use the review process to turn these checks into a clear recommendation about the change.