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

Manuscript Offprint

arXiv:2610.09267

Who Broke Me? Execution-Guided Repair of Behavioral Dependency Breaks

Juntao Chen, Tingting Bi, Yanlin Wang, Patanamon Thongtanunam

JUNTAO CHEN, The University of Melbourne, Australia

TINGTING BI*, The University of Melbourne, Australia

YANLIN WANG, Sun Yat-sen University, China

PATANAMON THONGTANUNAM, The University of Melbourne, Australia

Dependency upgrades can break downstream projects without changing the library interface. Such behavioral breaking changes are difficult for developers to fix, because the failing test does not always point to the root API, the upstream API that causes the break. Existing LLM-based repair methods obtain evidence for the repair from compiler feedback or library documentation. However, a behavioral break produces no compiler feedback and is often undocumented. Agents that receive no upgrade evidence also usually do not retrieve upstream evidence themselves, and most of their failed repairs do not identify the root API.

The library diff provides useful upstream evidence, but the root API must first be identified to select the relevant part of the diff. We present BBCFixer, a repair method that runs the failing test under the old and new library versions, ranks the calls whose return value differs to identify a candidate root API, and filters the library diff with that candidate. To evaluate repairs of behavioral breaks, we further introduce BBCBench, a benchmark of 100 behavioral dependency breaks in Python and JavaScript.

We compare BBCFixer on BBCBench with two baselines: (1) Pure Agent, an agent that receives no upgrade evidence, and (2) BDU updater, a method that mines library documentation. BBCFixer raises the average pass rate by up to 17% relative to Pure Agent and needs up to 27% fewer agent steps per successful repair. BBCFixer thus provides a way to select the upstream evidence behind a behavioral break, so that an LLM agent can repair behavioral breaking changes more effectively and efficiently.

CCS Concepts: • Software and its engineering → Software maintenance tools.

Additional Key Words and Phrases: breaking changes, software supply chain, software evolution, large language models, LLM agents, automated program repair

1 Introduction

Modern software depends heavily on third-party libraries, whose upgrades deliver security fixes, bug fixes, and new functionality. Yet developers often postpone these upgrades: 81.5% of the systems studied by Kula et al. [14] retain outdated dependencies. One reason is that a new library version can introduce breaking changes that cause existing downstream code to fail [2, 3].

Breaking changes are commonly categorized as syntactic or behavioral [3, 11]. A syntactic breaking change alters the library interface, for example by removing an API or changing its signature. Such changes produce compiler or import errors that identify the affected symbol and direct developers toward the upgrade [23]. A behavioral breaking change is more implicit and harder to diagnose: the interface remains intact, but the run-time behavior changes. The downstream project still builds, but the break instead appears as a failing test whose error may not point to the library or API that causes the break. Such breaks are difficult for developers to fix in practice. In the real-world bug reports studied by Mostafa et al., 18% of the client bugs caused by behavioral backward incompatibilities remain unfixed, although most developers try to fix them [23]. Therefore, this paper focuses on the repair of these behavioral dependency breaks.

∗^{*}Corresponding author.

Authors' Contact Information: Juntao Chen, The University of Melbourne, Melbourne, Australia, juntao.chen@student.unimelb.edu.au; Tingting Bi, The University of Melbourne, Melbourne, Australia, tingting.bi@unimelb.edu.au; Yanlin Wang, Sun Yat-sen University, Guangzhou, China, wangylin36@mail.sysu.edu.cn; Patanamon Thongtanunam, The University of Melbourne, Melbourne, Australia, patanamon.t@unimelb.edu.au.

Chen et al.

Recent work repairs breaking changes either with single-call LLM pipelines [19, 30, 39] or with LLM agents [6, 28, 33, 36]. Both pipelines and agents need evidence that connects the downstream failure to the upstream change, and obtain it from compiler feedback or library documentation. For example, Byam prompts the LLM with the compilation errors of the broken build [30], and BDUpdater mines breaking change records from the upstream repository [36]. Neither source works for a behavioral break. Compiler feedback is absent in behavioral breaks, and documentation is unreliable: Mostafa et al. find that only 27.7% of the behavioral backward incompatibilities they detect are documented [23].

Challenge 1: in repairing breaking changes with LLM agents, cost matters in practice. One library update breaks many downstream projects, and each must be repaired separately [28]. At this scale, the cost of each agent run dominates the total cost [12], so low-priced models are the practical choice. Higher-priced models also do not consistently give better cost-efficiency in LLM-based program repair [16]. Mining documentation adds to this cost. In our experiments (Section 4.2), BDUpdater raises the cost of each successful repair by up to 132%. The search for documentation consumes the agent steps that the repair itself needs. As a result, recent work either lacks the evidence that a behavioral break requires, or searches for it at a high cost.

Challenge 2 is not merely generating a patch, but selecting the evidence that makes the required adaptation apparent. This evidence must be condensed before the agent begins, rather than mined by the agent during the run. The failure is observed in a downstream test, whereas its explanation resides in the upstream version history. We call this separation the evidence-selection gap. In our Pure Agent setting (Section 3.3), the agent receives no upgrade evidence but can inspect the repository and the installed library. However, most agent runs consult neither textual nor code-level information about the upgraded library, and failure to identify the relevant upstream behavioral change is the dominant failure pattern (Section 4.1).

The library diff provides a direct source of upstream evidence but requires selection, because the full diff is far too large for an agent to read (Section 2.2). The diff covers changes to many library APIs, and a failing downstream test often reaches several of them. However, the break is caused by the behavior change of one of them, the root API. The root API is hard to identify, because the failing test makes many calls into the library and the error message often does not name the API. Our key insight is therefore to use differential execution as a selector for upstream evidence. Differential execution runs the same failing test under the old and new library versions and reveals the library calls whose return value differs. Prior work uses differential execution to detect incompatibilities [21, 25, 35, 41], whereas we use it to select evidence for repair. We propose BBCFixer, which ranks these diverging calls, takes the highest-ranked one as the first divergence, and uses its API as a candidate root API. BBCFixer then filters the library diff with that candidate and gives the repair agent the first divergence and the filtered library diff as evidence. BBCFixer turns a large upstream version change into compact, downstream-specific repair evidence before the agent begins its search. In this way, the agent can spend its steps on the repair itself and keep its context small. BBCFixer therefore lowers the cost of each successful repair compared with mining documentation.

Furthermore, evaluating repairs of behavioral breaks also requires a suitable benchmark. Existing dependency-upgrade benchmarks contain few confirmed behavioral breaks (Section 3.2.1), and most of them also lack either reference fixes or a public harness that reproduces each case. A reference fix serves as the oracle: its test changes encode the correct new behavior, so they can check an agent's repair. We therefore construct BBCBench to address these problems. BBCBench contains 100 behavioral dependency breaks in real Python and JavaScript projects, each with a reference fix and a reproducible harness for the repair task.

We then compare BBCFixer with two baselines (i.e., Pure Agent and BDUpdateer) (Section 3.3) on BBCBench, using two budget models, qwen3-coder and GLM-4.5-Air, over three rounds. We run three rounds because the outcome of a single run varies between repetitions. BBCFixer raises the pass rate above both settings under both models in every round. BBCFixer raises the average pass rate by up to 17% over Pure Agent and by up to 53% over BDUpdateer. BBCFixer also needs fewer agent steps per successful repair: up to 27% fewer than Pure Agent and up to 58% fewer than BDUpdateer.

In summary, this paper makes the following contributions:

Problem formulation and empirical finding. We characterize the repair of behavioral breaking changes as an evidence-selection problem. Our trajectory analysis shows that repository access alone does not lead the agent to retrieve the necessary upstream evidence and most failing runs never identify the root API.

Approach. We propose BBCFixer, a repair method that uses differential execution to rank the calls whose return value differs, identify a candidate root API, and filter the library diff with that candidate. The first divergence and the filtered library diff then serve as repair evidence for the agent.

Benchmark. We construct BBCBench, a benchmark of 100 confirmed behavioral dependency breaks in real Python and JavaScript projects. Each case includes a reproducible harness and a reference fix whose test changes encode the intended post-upgrade behavior.

Evaluation and implications. We evaluate BBCFixer on BBCBench against Pure Agent and BDUpdateer. BBCFixer achieves a higher average pass rate under both models, with fewer agent steps and lower cost per successful repair. The gain of BBCFixer depends on how the evidence is built and concentrates on the cases whose evidence points to the labeled root API. The evaluation indicates that building failure-specific evidence is a useful complement to improving the agent itself.

References (30)