The clusters worth predicting
Five patterns account for most of what reviewers find in generated changes, and each is detectable at a different stage.
- Happy-path logic: no handling for empty input, timeouts, partial responses or retries.
- Invented APIs: methods and options that read plausibly and do not exist on the installed version.
- Swallowed failures: empty catch blocks, defaults returned instead of errors, logging that goes nowhere.
- Unsafe data flow: interpolation into markup, string-built SQL, user input reaching a shell.
- Residue and drift: debug statements, duplicated helpers, a test suite that was never written.