arXiv(opens in a new tab)cs.SEAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30300

Update from Hell: Can Coding Agents Survive Hidden Breakage in Dependency Upgrades?

Zijian Luo, Runzhi He, Pengfei Gao, Yu Kang, Zeqi Lin, Minghua Ma, Qingwei Lin, Saravan Rajmohan, Yongqiang Tian

Zijian Luo*, Runzhi He†, Pengfei Gao‡, Yu Kang‡, Zeqi Lin‡, Minghua Ma‡, Qingwei Lin‡, Saravan Rajmohan‡, and Yongqiang Tian*

*Monash University

Emails: jack.luo@monash.edu, yongqiang.tian@monash.edu

†Peking University

Email: rzhe@pku.edu.cn

‡Microsoft

Emails: gaopengfei@microsoft.com, kay@microsoft.com, Zeqi.Lin@microsoft.com, minghuama@microsoft.com, qlin@microsoft.com, saravar@microsoft.com

Abstract—Modern software systems rely heavily on third-party dependencies, but upgrading those dependencies remains a costly maintenance activity. Dependency upgrades do not always preserve the function signatures, type systems, APIs, or runtime semantics assumed by existing code. Consequently, developers often need to perform source code adaptations to accommodate dependency-induced changes. However, such code-level changes are often not explicitly communicated to project maintainers, posing a significant challenge to software reliability.

Meanwhile, coding agents have emerged as a new form of software development tool and are increasingly adopted by developers due to their automation capabilities. In this paper, we introduce DEPBENCH, a benchmark consisting of 203 real-world dependency-upgrade tasks across five package ecosystems spanning five language communities, each involving hidden code-level changes that require source code adaptation. We evaluate mainstream coding agents on DEPBENCH. The best completed configuration solves only 104/203 tasks (51.2%), with substantial variation across agent harnesses, models, and ecosystems, highlighting an important gap between current agent capabilities and real-world software maintenance needs.

Index Terms—dependency management, software maintenance, benchmark, automated program repair, large language models, coding agents

I. INTRODUCTION

Third-party dependency reuse is now routine in modern software engineering. Reuse improves productivity, but it also creates a continuous maintenance obligation: downstream projects must update dependencies to receive bug fixes, security patches, performance improvements, and compatibility with surrounding ecosystems. Empirical studies show that projects often lag behind available versions because upgrades are perceived as risky, low-priority, or costly [1]−[3][1]-[3]; security studies further show that vulnerable direct and transitive dependencies can propagate risk across package graphs [4][4].

Upgrades are risky because they can cause upgrade-induced breakage: a dependency version bump no longer preserves the function signatures, types, APIs, build constraints, or runtime semantics that downstream code assumes. The resulting project may fail to build, fail its tests, or silently produce the wrong behavior until its source is repaired. We study this problem as dependency-upgrade repair: a repository-level task in which an automated agent must preserve a dependency version bump and repair the source-level incompatibilities needed for the upgraded repository to pass validation.

Existing automation reduces but does not remove this repair burden. Tools such as Dependabot [5] and Renovate [6] detect outdated dependencies and open update pull requests, but they are primarily update-proposal systems: they can propose a version bump, yet they typically do not perform the non-trivial repository repair an upgrade requires. Safer-update tools such as UpCy [7] can reduce unsafe upgrade choices, but they do not turn a broken upgraded repository into a repaired one. Coding agents have recently emerged as a plausible way to automate this missing repair step, but their ability to fix upgrade-induced breakage remains largely untested.

Evaluating dependency-upgrade repair requires a benchmark with stronger validity guarantees than ordinary issue repair or dependency-update datasets. General repository-level benchmarks such as SWE-bench [8] evaluate issue resolution, dependency-update datasets such as BUMP [9] focus on reproducible breaking updates, and migration benchmarks such as MigrationBench [10], FreshBrew [11], and PyMigBench [12] target language or library migration settings. Recent work such as BeyondSWE [13] further argues that code-agent evaluation should include dependency-driven migration. However, a dependency-upgrade repair benchmark needs to isolate a causal, repository-level task: it should show that the held-out failure is tied to the dependency upgrade rather than to unrelated pull-request churn, and that the repair is necessary and sufficient under an executable task oracle. Existing benchmarks were not designed to enforce these properties together.

We present DEPBENCH, an executable repository-level benchmark that isolates dependency-upgrade repair. DEPBENCH is built from merged pull requests opened by dependency-update bots, but it does not treat a merged pull request as a task directly. Instead, each candidate undergoes patch decomposition, which separates dependency manifest and lockfile changes, the developer repair from the original pull request, and a held-out test patch reserved for evaluation. Every retained task must satisfy a four-state oracle. Starting from the same original pre-upgrade repository state, the oracle checks four patch combinations: the unmodified state must successfully install, build, and run the project-specific test command; the dependency-manifest and lockfile changes together with the held-out tests must expose a failure; adding the developer repair must make the same tests pass; and the developer repair with the held-out tests but without the manifest and lockfile changes must still fail. This contract certifies that the held-out failure is tied to the dependency upgrade, that the repair is needed together with the upgrade, and that the repair is sufficient under the task oracle. To reduce solution leakage during evaluation, the agent receives neither patch-derived repair descriptions nor the developer repair or held-out tests. The resulting DEPBENCH release contains 203 oracle-clean tasks across five ecosystems: 68 npm/yarn, 65 Maven/Java, 40 Go, 20 Cargo/Rust, and 10 Python tasks.

We evaluate mainstream coding agents in a full-upgrade setting: the agent starts from the base repository state and an upgrade instruction, while the developer repair and held-out tests remain hidden until the task verifier runs. The benchmark is far from saturated. The strongest completed agent configuration solves only 104/203 tasks, and performance varies sharply by model, harness, and ecosystem. The dominant failure mode is incomplete repository-wide migration: agents often identify a relevant dependency surface yet fail to propagate the upgraded dependency contract through wrappers, types, fixtures, generated artifacts, or behavioral outputs.

This paper makes the following contributions:

• We introduce DEPBENCH, the first executable, repository-level benchmark that isolates dependency-upgrade repair through patch decomposition, held-out test patches, and a four-state oracle across five package ecosystems.

• We develop a construction pipeline that combines dependency-update bot mining, path-based hunk classification, manual and LLM-assisted audit, leakage controls, and four-state oracle validation to produce oracle-clean release tasks.

• We evaluate mainstream coding agents under containerized, reproducible task verification and analyze how agent configurations, ecosystems, and failure modes shape performance on dependency-upgrade repair.

References (25)