Study Finds Spread, Size and Change History Predict Defects in Code Diffs

Research dating back to 2000 on Bell Labs telephone switch software found that changes touching many subsystems, involving many edits, or fixing field faults were more likely to fail. Developer experience reduced the risk, while the number of deleted lines had no measurable effect. A 2013 follow-up by Kamei and colleagues tested similar signals across more than 250,000 changes from eleven projects, proposing that risky changes be flagged at check-in. The authors stressed that these models reveal correlations rather than proven causes. The article suggests that signals like these, which can be extracted from git, could help reviewers prioritize agent-generated diffs rather than reading them in file path order.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in