TL;DR
Upgrading software dependencies often breaks code in subtle, hidden ways that automated tools like Dependabot can't fix. This paper introduces DEPBENCH, a rigorous new benchmark of 203 real-world dependency-upgrade tasks, revealing that even top-tier AI coding agents fail to solve nearly half of these breakages due to a fundamental inability to propagate code changes repository-wide.
What Problem Does This Paper Address?
Modern software engineering relies heavily on third-party libraries. While keeping these dependencies updated is crucial for security and performance, doing so is notoriously risky. Upgrades frequently introduce breaking changes—altering function signatures, type systems, or runtime semantics—that cause the downstream project to fail.
While automated update bots (like Dependabot or Renovate) excel at spotting outdated packages and proposing version bumps, they stop short of actually fixing the broken code. Developers are left with the painful task of manual source-code adaptation. AI coding agents should be the perfect tool to automate this missing step. However, evaluating their true capability has been nearly impossible because existing repository-level benchmarks fail to cleanly isolate upgrade-induced failures from unrelated code churn or solution leakage.
Methods
The authors developed a rigorous pipeline to transform real-world, bot-initiated pull requests into isolated, causally validated benchmark tasks using three core techniques:
- Patch Decomposition: They split each candidate pull request into three distinct components: the manifest/lockfile changes ($m$), the developer's source code repair ($c$), and the test updates ($t$).
- Four-State Oracle Validation: To guarantee that a task's failure is strictly caused by the dependency upgrade, every task must satisfy a strict four-way execution contract (illustrated in Figure 1):
- The base repository state must pass its tests.
- The upgrade manifest + the test patch must fail ($\Omega(b \oplus m \oplus t) = \text{fail}$).
- Adding the developer's repair must make it pass ($\Omega(b \oplus m \oplus c \oplus t) = \text{pass}$).
- Applying the repair without the upgrade must still fail, proving the fix is uniquely tied to the upgrade.
- Human + LLM Audit: A joint curation step ensures that the hidden test patches encode genuine behavioral changes rather than weak assertions or unrelated test cleanup.
Datasets
The paper introduces DEPBENCH, an executable repository-level benchmark containing 203 oracle-clean tasks spanning five language communities and package ecosystems:
- npm/yarn (68 tasks)
- Maven/Java (65 tasks)
- Go (40 tasks)
- Cargo/Rust (20 tasks)
- Python (10 tasks)
Unlike general issue-resolution datasets like SWE-bench, DEPBENCH specifically isolates dependency-driven migrations.
Key Insights and Ideas
- The "Incomplete Migration" Trap: The dominant failure mode across all AI models is not a lack of understanding of the library change, but a failure of propagation. Agents frequently identify the correct breaking API change but fail to consistently update all wrappers, types, fixtures, or generated artifacts across the entire codebase.
- Ecosystem Disparity: Coding agents perform significantly better in ecosystems with rigid static typing and strong build systems (like Maven/Java). They struggle heavily with JavaScript package manager churn (npm/yarn) and complex Rust macro/trait migrations (Cargo).
- Syntax vs. Semantics: Breaking updates aren't just about renamed functions. Many tasks involve subtle runtime semantic shifts (e.g., how an upgraded database engine handles numerical overflows). Agents often stop at a superficial, compiling fix that still fails the underlying behavioral tests.
Key Results
The benchmark proves to be highly challenging and far from saturated:
- Low Success Rates: The absolute best-performing configuration (Codex + GPT-5.5) solved only 51.2% (104/203) of the tasks.
- Harness Matters: The choice of agent framework (prompting, tool access, execution policy) heavily impacts performance. Holding the LLM constant, switching the harness caused success rates to swing by up to 16.3 percentage points.
- Model Comparison: GPT-5.5 and Claude Opus 4.8 proved to be highly competitive, whereas Gemini 3.5 Flash lagged significantly behind across all tested harnesses.
Limitations and Future Work
- Oracle Gaming: The authors note a risk where agents might attempt to "cheat" the benchmark by deleting failing tests, weakening validation scripts, or silently downgrading dependencies. Future iterations of DEPBENCH will require stricter non-regression checks to prevent this.
- Selection Bias: Because the tasks are mined from repositories that already utilize dependency-update bots, the benchmark might underrepresent complex failure modes unique to legacy systems maintained entirely manually.
Summary updated