AI
Research models how bugs spread across concurrent AI coding agent changes
A new framework applies epidemic-style math to predict fault propagation when multiple coding agents work simultaneously in shared repositories.
When multiple AI coding agents operate in the same codebase simultaneously, bugs can cascade between their interdependent changes in ways that traditional code review cannot detect. Researchers have now developed a mathematical framework to model and predict these propagation patterns.
The core problem#
The challenge emerges because human reviewers typically examine code changes one at a time, yet a defect introduced by one agent can silently embed itself in another's concurrent work. When engineers then fix the original bug, the repository may still harbor the hidden fault—now nested in a separate, ostensibly vetted change. This dynamic creates blind spots in quality assurance that become more pronounced as agent-driven development scales.
A branching process model#
The research team applied complexity theory and epidemiological concepts to map how faults travel through concurrent modifications. They model the problem as a branching process, tracking fault movement across contention—the relationship between two open changes that simultaneously edit the same file. Much like a reproduction number in infectious disease, the framework identifies a critical threshold: when each faulty change propagates the defect to more than one other change on average, spread becomes self-sustaining.
Each repository has a reference threshold—the probability per contention link above which a fault would sustain itself indefinitely in a network with that repository's typical contention patterns.
What the data revealed#
The researchers analyzed 33,105 agent-authored pull requests across 2,731 repositories. They found that thirteen repositories with reference thresholds below 5%—where even a single-in-twenty faulty link would trigger self-perpetuating spread—contained 42.5% of all concurrent changes. The structural conditions enabling rapid fault propagation are concentrated where much agent-generated work occurs.
Why traditional review falls short#
Reviewing each change in isolation cannot expose these systemic vulnerabilities. Engineers must look beyond individual modifications to understand the graph structure created by concurrent work. The good news is that this information already exists in standard repository records; teams simply need to compute and monitor these propagation risk metrics to keep human oversight effective in agentic workflows.

