betaFeedback

WorksComputer Science

Improving Repair Agents with Cause-Chain Diagnoses

Abstract

Repair agents resolve a growing share of real-world issues. Starting with the same information as a developer reading a bug report, they have to find out how the program fails before actually fixing it. We present FORECAST, which provides repair agents with a diagnosis of the failure. From the executions of passing and failing tests, FORECAST infers a cause chain, a short sequence of execution features, such as conditions or data flow, that explains how the failing runs diverge. FORECAST appends this cause chain to the issue an agent receives. It thus works with any agent that builds its prompts from the issue, without modifying the agent. We evaluate FORECAST on all 300 issues of SWE-bench Lite with five repair agents and two models, the commercial Claude Haiku 4.5 and the open-weight Qwen3.5. With the cause-chain diagnosis, every agent resolves significantly more issues. Over all agents, the share of resolved issues rises from 48.5% to 70.9% for Haiku 4.5 and from 31.2% to 56.1% for Qwen3.5. The open-weight model with the diagnosis thus surpasses the commercial model without it. The gains persist across repeated runs and for agents that already run the tests the diagnosis is derived from.

Introduction

Repair agents built on large language models (LLMs) have changed what automated program repair can do. Given an issue report and a repository, agents such as SWE-agent [92], AutoCodeRover [97], or Agentless [87] explore the code, edit it, run it, and submit a patch. They resolve a substantial share of real GitHub issues of benchmarks such as SWE-bench [22]. Before an agent can fix a failure, however, it has to understand it. All it starts from is the issue text, a user’s description of a symptom that may or may not hint at the cause. Much of an agent’s effort thus goes into reconstructing what goes wrong, by reading code, adding print statements, and writing reproduction scripts. When that reconstruction fails, so does the repair. The classic aid for this reconstruction is fault localization. Figure 1 shows its best-known form, statistical fault localization [3, 23]. It correlates the lines that tests execute with their outcomes and ranks Line 6 of the middle() function as most suspicious. Some agents receive such a ranking [9, 97]. The ranking is valuable, but it only tells where to look, not why the program fails. Line 6 is also executed by a passing test. What distinguishes the failing run is that it reaches Line 6 with y smaller than x. The passing run reaches it with x equal to y, and returning y is only correct in the latter case. Developers rarely profit from a ranking of locations alone [57]. What they need, and build when they debug, is an account of how the failure comes about. This account is a cause-effect chain from the circumstances of the failing run to the failure [93]. Such failure explanations are largely missing between debugging and repair [69].

Figure 1. Statistical fault localization [23]. The middle() function takes three values and returns the one that is neither the smallest nor the largest. Execution of Line 6 correlates most closely with the failure.

In this paper, we present FORECAST, which provides repair agents with such an account before they start. FORECAST runs the failing tests and then the passing tests that share covered code with them. It records fine-grained execution features [71], such as which branches are taken, which conditions hold, how values compare, where variables are defined and used, and which functions are called. It merges all runs into a traced relevance tree, a call tree whose nodes collect the features observed in passing and in failing runs. At every function where the two differ, it selects the feature, or the conjunction or disjunction of features, that separates them most sharply. Read in the order of execution and simplified, these features form a cause chain. A cause chain is a short sequence of conditions, data flows, values, and calls that mark where the failing run departs from the passing ones on its way to the failure. Each cause comes with the file and line where it was observed and a discriminability that quantifies how sharply it separates failing from passing runs. We speak of causes because each of them is verified empirically to separate the failing from the passing runs. We speak of a chain because the causes are ordered by execution, not because FORECAST proves that one causes the next. Whether removing a cause would prevent the failure could only be established by experiments that alter the program state [93], which FORECAST does not perform. The cause chain instead provides evidence of where and how the failing run departs from the passing ones, from which an agent can form and check its own hypotheses. FORECAST appends this cause-chain diagnosis of the failure to the issue description an agent receives. The agent itself is not modified. Whatever the agent does with the issue, it now does with the diagnosis, which makes FORECAST applicable to any agent that builds its prompts from an issue. Computing a cause-chain diagnosis requires no LLM. Once computed, the diagnosis can serve any number of repair attempts, agents, and models. FORECAST considers a test that reproduces the failure as given, for instance, developer-written tests, failing builds, and bug reports that ship with a test. Obtaining such a test is left to other work.

We evaluate FORECAST on all 300 issues of SWE-BENCH LITE [22] with five repair agents of different designs (MINI-SWE-AGENT, SWE-AGENT, AUTOCODEROVER, REPAIRAGENT, and AGENTLESS). Each agent runs with the commercial CLAUDE HAIKU 4.5 and with the open-weight QWEN3.5, once with the cause-chain diagnosis and once without it, which makes 6,000 repair attempts in total. We derive the diagnoses from the benchmark’s developer tests.

Our evaluation yields four main results. First, the cause-chain diagnosis makes every agent better. All five agents resolve significantly more issues with the diagnosis than without it, with either model. Over all agents, the share of resolved issues rises from 48.5% to 70.9% with CLAUDE HAIKU 4.5 and from 31.2% to 56.1% with QWEN3.5. This lifts the open-weight model above the commercial model without the diagnosis. Even REPAIRAGENT, which already runs the very tests the diagnosis is derived from, gains more than any other agent. Second, the gains are robust. The agents do lose some issues they resolve without the diagnosis, but for each of them, they gain about 11 others with CLAUDE HAIKU 4.5 and 30 with QWEN3.5. When we repeat the runs, every run with the diagnosis resolves significantly more issues than every run without it. Third, the gains stem from what the cause chain says about the failure at hand. Given the cause chain of another issue, the agents resolve about as many issues as without any diagnosis, so an unrelated diagnosis neither helps nor causes detectable harm. With the causes in random order or reduced to their locations, the agents lose most of the gain. Finally, the cause-chain diagnosis keeps fixes small and saves LLM tokens. The changes to existing code remain as small as without the diagnosis. The tokens spent per resolved issue fall by 60% with Claude Haiku 4.5 and 50% with Qwen3.5. Computing a diagnosis needs no LLM and takes a median of 40 minutes of machine time per issue.

Overall, we make the following contributions:

A novel approach for inferring cause-chain diagnoses. We introduce a technique that infers a cause-chain diagnosis from passing and failing test executions. It merges all runs into a traced relevance tree and compares the failing runs with the passing runs at every call. It then combines the features that separate the failing from the passing runs into conjunctions and disjunctions and adds the calls that only failing runs make. Finally, it orders the resulting causes as they occur in the execution. The resulting cause chain tells where in the execution, and in which order, the failing run departs from the passing ones.

A way to enhance repair agents without modifying them. FORECAST appends the cause-chain diagnosis to the issue an agent receives. The diagnosis thus reaches every agent that builds its prompts from the issue, whatever the agent’s actual design is.

An extensive evaluation of FORECAST. We enhance five repair agents of different designs with our cause-chain diagnoses and evaluate them on all 300 issues of SWE-bench Lite with a commercial and an open-weight model, 6,000 repair attempts in total. We repeat the runs to measure how much they vary, and we run thirteen variants of the diagnosis that withhold or substitute its parts.

A replication package. FORECAST, the evaluation scripts, and every diagnosis and repair run are publicly available [70].

The remainder of this paper is structured as follows. § 2 introduces the repair agents we enhance. § 3 explains execution features and their role in fault localization and debugging, as introduced by our prior work on EFDD [71]. § 4 presents our approach to infer cause-chain diagnoses from execution features. § 5 describes how we enhance repair agents with these diagnoses. § 6 details the implementation of our approach. § 7 evaluates how the diagnoses change the effectiveness, fix quality, and cost of five repair agents, how repeatable these changes are, and which parts of the diagnosis they stem from. We address potential threats to validity in § 8 and review related work in § 9. Finally, § 10 concludes the paper and suggests directions for future research.

Repair Agents

Automated program repair aims to reduce the manual effort required to fix bugs in software systems. Traditional repair approaches relied on pre-defined templates or mutation operators to generate patches [35, 50]. Large language models (LLMs) have since enabled a new generation of repair agents. These agents understand bug reports, navigate codebases, and generate fixes autonomously, without domain-specific knowledge or hand-crafted repair templates.

A repair agent has to understand the bug report or issue description, localize the fault in the codebase, generate candidate patches, and validate them by running tests or other checks. The quality of its output depends on how accurately it understands the failure and locates the root cause of the bug. Its effectiveness is therefore often limited by the quality of information it receives about the failure. Vague bug reports or insufficient context can lead to incorrect or overfitted patches. Such patches pass the immediate tests but fail to address the underlying issue or introduce new bugs.

In this work, we enhance repair agents with the cause-chain diagnoses of FORECAST. These diagnoses describe the chain of causes that leads to a failure, so that an agent does not have to reconstruct it from the issue alone. We focus on five established repair agents of different designs.

AutoCodeRover. AutoCodeRover [97] is an autonomous program repair agent that combines code search with LLM-based patch generation. It operates in two main phases. In a context retrieval phase, it uses a combination of static analysis and search techniques to identify relevant code elements. In a repair phase, it generates and validates patches. AutoCodeRover navigates large codebases through search APIs over the program structure, which retrieve classes, methods, and code snippets by name. The agent iteratively refines its understanding by analyzing class definitions, method signatures, and their relationships. It uses this knowledge to guide its search for bug-related code. Once relevant code locations are identified, AutoCodeRover uses an LLM to generate patches that are then validated against the test suite. Its search is driven by the names of classes and methods. A cause-chain diagnosis names the functions and lines where the failing run departs from the passing ones and thus gives it concrete starting points.

Agentless. Agentless [87] takes a lightweight, three-phase approach to program repair that achieves competitive results with minimal complexity. Agent-based systems engage in extended interactions with the environment. Agentless instead performs localization, repair, and patch validation in a fixed pipeline. In the localization phase, it narrows the repository down hierarchically, from suspicious files to classes and functions and finally to the lines to edit. To do so, it prompts the LLM with the repository structure and the code, combined with embedding-based retrieval of files. The repair phase then samples multiple candidate patches for these locations in a simple search-and-replace format. Finally, the validation phase runs regression tests and reproduction tests that Agentless generates itself, and selects among the remaining candidates by majority vote. With this design, Agentless resolved about 27% of SWE-bench Lite at a fraction of the cost of contemporary agents, while its steps remain easy to interpret. Each of its phases starts from the issue. A cause-chain diagnosis appended to the issue thus reaches localization, repair, and the generation of reproduction tests alike. Since Agentless already generates and runs a test that reproduces the issue, it also lets us study whether a diagnosis adds value beyond what such a test provides.

SWE-agent. SWE-agent [92] introduces the concept of Agent-Computer Interfaces (ACI) for the interaction between LLM-based agents and software engineering environments. Rather than providing the agent with raw shell access, SWE-agent designs specialized commands and feedback mechanisms that suit the agent’s capabilities and limitations. For example, it includes custom file viewing commands that provide line numbers and pagination, search functionality tailored to code navigation, and edit commands with built-in validation. The ACI design allows SWE-agent to work more effectively within the constraints of LLM context windows and reasoning capabilities. SWE-agent operates in an interactive loop. It reads the issue description, explores the codebase using its specialized commands, formulates hypotheses about the bug location, generates edits, and validates them by running tests. Much of this loop is spent on finding where to look, which is what a cause-chain diagnosis can shorten.

Mini-SWE-agent. Mini-SWE-agent [77], by the authors of SWE-agent, takes the opposite stance on the agent-computer interface and deliberately provides none. The LLM interacts with the repository through shell commands alone, and each command runs independently of the previous ones. The whole interaction is kept as a single linear history of messages. The agent explores the codebase, edits files, and runs tests with ordinary command-line tools until it submits its changes as a patch. Because it adds no specialized tools or heuristics of its own, Mini-SWE-agent shows how much a repair depends on the information the LLM receives. It is thus a direct probe of what a cause-chain diagnosis contributes.

RepairAgent. RepairAgent [9] is an autonomous repair agent that treats the LLM as an agent that plans and executes its own actions. It acts through a set of repair tools for reading and searching code, extracting tests, running them, and writing and trying candidate fixes. Its prompt is updated dynamically with the outcome of every action. A finite state machine guides which tools the agent may use as it moves between understanding the bug, collecting the information needed to fix it, and trying out fixes. Throughout, the agent states and revises explicit hypotheses about the bug. RepairAgent was evaluated on the Defects4J Java benchmark, where it fixed 164 bugs, including 39 that prior techniques had not fixed. It already runs and inspects the test suite as part of its repair loop. RepairAgent thus lets us study whether a cause-chain diagnosis adds value beyond the information an agent can extract from the tests itself.

Despite their different designs, all five agents have to identify the root cause of a failure from limited information. By enhancing these agents with the cause-chain diagnoses of FORECAST, we aim to improve their ability to generate correct fixes and to reduce the exploration they need to get there.

Execution Features

Execution features are observable properties of program behavior, captured during test execution, that characterize how the program behaves under different inputs. Unlike static code analysis, they describe what actually happens when the program runs, which provides concrete evidence that can distinguish between executions.

In fault localization and debugging, execution features are the foundation for understanding why some tests pass while others fail. By comparing the execution features observed in passing and in failing tests, we can identify the behaviors that are unique to failures. These behaviors pinpoint the conditions under which bugs manifest. This discriminative approach has proven effective in automated debugging [71], as it captures detailed program state and control flow information beyond code coverage. FORECAST uses a catalog of execution features organized into several categories by the type of program behavior they capture.

Structural Features. These features describe which parts of the code are executed. Line execution features record whether specific source code lines are covered during a test run, and function call features track which functions are invoked. Loop features capture whether a loop is executed and also how often it iterates (never, once, or multiple times).

Control Flow Features. These features capture decisions made during program execution. Branch features record which branches of conditional statements are taken (then-branch versus else-branch). Condition features capture the Boolean evaluation of specific conditions in the code. For example, a condition feature might record that x>0x > 0 evaluated to TRUE at a particular line.

Data Flow Features. These features track how data moves through the program. Def-use features capture relationships between variable definitions and their subsequent uses, recording where a variable was assigned and where that value was later accessed. Return value features monitor what functions return, including comparisons against zero or None. Variable predicate features evaluate properties of variables such as whether they are zero, positive, negative, or None. Scalar pair features compare two variables or a variable against a predefined value, recording relationships like equality, ordering, or inequality.

Property Features. These features evaluate higher-level properties of program values. String property features check characteristics like whether a string is ASCII-only, contains digits, contains special characters, or is empty. Length features measure the length of collections and strings, categorizing them as empty, singleton, or multi-element. These features may seem less directly actionable than structural or control flow features. They can, however, identify symptomatic behaviors that help characterize bug manifestations, particularly in programs that process text or collections.

Execution features are useful because they can discriminate between outcomes. A feature is discriminative if it appears in both passing and failing tests but with different values or frequencies. For example, a condition token.isnumeric() may evaluate to TRUE in all passing tests but to FALSE in all failing tests. This feature then perfectly discriminates between the two outcomes. Such discriminative features characterize how failing executions differ from passing ones, which often points towards the root cause. However, it is worth noting that a feature can also be a consequence of the fault rather than its origin.

FORECAST builds upon the execution feature infrastructure of our prior work on Execution Feature Driven Debugging (EFDD) [71]. EFDD showed that fault localization benefits from execution features beyond line coverage. It learns a decision tree that separates passing from failing runs by the features each run exhibits as a whole. FORECAST instead compares the runs at every call of a traced relevance tree. Its causes thus say not only which features discriminate, but also where and in which order they occur on the way to the failure.

Inferring Cause-Chain Diagnoses

The core of FORECAST infers a cause-chain diagnosis from the executions of passing and failing tests. Its cause chain consists of execution features that separate the failing from the passing runs, ordered as they occur on the way from the start of a test to its failure. Fault localization techniques identify suspicious code locations. A cause chain instead describes how the failing execution departs from the passing ones. Its causes are verified empirically, as observations that separate the failing from the passing runs. That they cause one another is not verified, so a cause chain is evidence for an agent to act upon, not a proof of why the program fails. This section describes how FORECAST infers cause-chain diagnoses in four stages. It builds traced relevance trees, extracts discriminative features, combines atomic features into complex predicates, and simplifies the resulting cause chain for actionability. Figure 2 gives an overview of these stages and of the collection of traces they start from.

Figure 2. Diagnosis pipeline of FORECAST. Given a program and its failing and passing tests 1, FORECAST instruments the program and traces the tests 2 (§ 6), builds a traced relevance tree from the traces 3 (§ 4.2), extracts the features that separate the failing from the passing runs at its comparable nodes 4 (§ 4.3), combines them into conjunctions and disjunctions 5 (§ 4.6), and simplifies the result 6 (§ 4.7) into a cause chain 7.

Running Example

Throughout this section, we use a simple expression parser as a running example to illustrate how FORECAST infers a cause-chain diagnosis. The parser evaluates arithmetic expressions but contains a subtle bug in the subtraction operator (Figure 3).

Expression parser with subtraction bug

Figure 3. Expression parser with subtraction bug. Line 19 in arithmetic.py incorrectly uses addition (+) instead of subtraction (-). parse() reverses the tokens (Line 21), so the parser reads an expression from right to left. Yellow highlights indicate lines referenced in the final diagnosis. Red highlights show the bug location and failing tests.

The bug on Line 19 causes the Sub class to add instead of subtract, so that expressions like 2−32 - 3 evaluate to 5 instead of -1. FORECAST analyzes the execution traces of passing tests (like 2+32 + 3) and failing tests (like 2−32 - 3). From these traces, it automatically infers a cause-chain diagnosis of this failure.

Traced Relevance Trees

To compare passing and failing runs at every call of the program, FORECAST constructs a traced relevance tree, a unified call tree across all test executions. A call tree usually describes a single execution. The traced relevance tree instead merges the executions of passing and failing tests into a single structure, so that their paths can be compared directly.

4.2.1 Tree Construction. Each node in the traced relevance tree represents a function together with the sequence of calls that leads to it from the root. The children of a node are the functions it calls. A function that is reached along two different call paths thus has two nodes. The tree unifies the traces of all test runs. Runs that follow the same call path share its nodes, while divergent paths create separate branches. For each function invocation, the tree tracks two sets of feature vectors:

Enter features (ϕenter\phi_{\mathrm{enter}}): Features observed in the caller since its previous call boundary, recorded when the function is entered, that is, what leads up to the call

Exit features (ϕexit\phi_{\mathrm{exit}}): Features observed in the function since its last nested call returned (or since its entry), recorded when it returns, that is, what the function does before it returns

Algorithm 1 Building Traced Relevance Trees

1: function BuildTree(failing,passing)\mathrm{BuildTree}(failing, passing) 2: root←\quad root \gets empty tree with root node 3: \quad for each executionexecution in failingfailing, then in passingpassing do 4: current←root\qquad current \gets root 5: features←\qquad features \gets empty feature vector (tagged with test result) 6: \qquad for each event∈executionevent \in execution do 7: \qquad\quad extract features from eventevent into featuresfeatures 8: \qquad\quad if eventevent is function entry then 9: \qquad\qquad if executionexecution is passing and currentcurrent has no child for this function then 10: \qquad\qquad\quad skip the events up to the matching exit ▹\triangleright no failing run reaches it 11: features←\qquad\qquad\quad features \gets empty feature vector (tagged with test result) ▹\triangleright discards them 12: \qquad\qquad\quad continue 13: \qquad\qquad else if the function is not currentcurrent’s own then ▹\triangleright direct recursion stays at currentcurrent 14: current←\qquad\qquad\quad current \gets child node for this function, created if missing 15: \qquad\qquad end if 16: \qquad\qquad Keep(current.enter_features,execution,features)\mathrm{Keep}(current.enter\_features, execution, features) 17: features←\qquad\qquad features \gets empty feature vector (tagged with test result) 18: \qquad\quad else if eventevent is function exit then 19: \qquad\qquad Keep(current.exit_features,execution,features)\mathrm{Keep}(current.exit\_features, execution, features) 20: features←\qquad\qquad features \gets empty feature vector (tagged with test result) 21: current←\qquad\qquad current \gets parent node, unless a direct recursive call returns 22: \qquad\quad end if 23: \qquad end for 24: \quad end for 25: \quad return rootroot 26: end function

27: function Keep(vectors,execution,v)\mathrm{Keep}(vectors, execution, v) ▹\triangleright at most two vectors per run and node 28: \quad if vectorsvectors holds fewer than two vectors of executionexecution then 29: \qquad append vv to vectorsvectors 30: \quad else 31: \qquad replace the later vector of executionexecution in vectorsvectors by vv ▹\triangleright first and most recent call 32: \quad end if 33: end function

With these two sets, FORECAST observes both what leads into a function and what the function does before it returns, either of which may contribute to a failure. Each feature vector is tagged with its test result (Passing or Failing), which the subsequent discriminative analysis needs.

Algorithm 1 illustrates the tree construction process. It processes the failing executions first, so that they span the tree. It then folds in the passing executions only along the call paths the failing ones take (§ 6), since a node that no failing run reaches cannot be compared. The algorithm collects the features of all other events, such as branches, conditions, or variable updates, in the current vector. At every call boundary, it saves that vector to the entered node’s enter features or the exited node’s exit features and starts a fresh one. Each vector thus holds only the local features observed between two call boundaries. A passing run may call a function that no failing run reaches. It then records neither the features inside that call nor those collected before it, which would be the entry features of a node that does not exist. Once the call returns, it continues with a fresh vector. A caller’s features are recorded and compared at the caller’s own node. The call tree already encodes the path that leads to a node, so carrying these features into every descendant would only duplicate them. A directly recursive call stays at its caller’s node, so that a function calling itself does not deepen the tree. A function that is called again through other functions gets a node of its own.

A function that a single run calls many times would contribute one entry and one exit vector per call. Hot code in one run could then outweigh all other runs. FORECAST therefore keeps, per node and run, at most two entry and two exit vectors, namely those of the first call and of the most recent one, which each further call replaces. Every run thus stays represented at every node it reaches, with a bounded weight. The counts that enter the discriminability score (§ 4.3) are therefore counts of such observations, at most two per run and node, rather than of tests.

Comparable Node Marking

Not all nodes in the traced relevance tree contribute to distinguishing between passing and failing tests. FORECAST identifies comparable nodes, the nodes at which passing and failing runs can be compared, together with the calls that lead to them. The marking proceeds recursively and bottom-up, so that only relevant execution paths are analyzed.

A node is marked as comparable if it exhibits local comparability or propagated comparability. A node is locally comparable when at least one feature is observed in both passing and failing test vectors at that node, in either its enter or its exit features. The values of this feature in the two groups can then be compared. For example, a condition token.isnumeric() may evaluate to TRUE in some passing tests but to FALSE in failing tests. The node then exhibits local comparability. A node has propagated comparability when any of its child nodes is comparable, which indicates that the failure manifests in a deeper call. This preserves the entire call chain that leads to comparable functions in the analysis.

The algorithm first recursively processes all children to mark comparable nodes in the subtrees and then evaluates the current node’s local comparability. For this local evaluation, it collects the features that appear in the passing and in the failing enter vectors at this node, and likewise for the exit vectors. If the passing and failing features of the enter or of the exit vectors intersect, passing and failing runs can be compared at this node, and it is marked comparable. Whether a feature actually separates the runs is decided only when it is scored (§ 4.3). A node whose features take the same values in both groups contributes no cause.

The recursive marking thus focuses FORECAST on the execution paths relevant to the failure. Functions that only passing or only failing runs reach are excluded, because there is nothing to compare them against. Calls that only failing runs make are reported as divergences instead (§ 4.3). The bottom-up propagation preserves the entire call chain that leads to a comparable function. The cause chain can thus follow the calls from the start of the test to the failure.

Extracting Relevant Features

Once the comparable nodes are identified, FORECAST extracts the features that best separate passing from failing tests. It does so independently at each comparable node and examines both enter and exit features to capture state changes throughout the execution path.

Cause Chain Extraction

FORECAST traverses the traced relevance tree in depth-first order and extracts discriminative features at each comparable node, which yields a cause chain in the order of execution. At each comparable node, FORECAST first extracts the most discriminative cause from the enter features, which describe what leads up to the call. Next, it recursively processes all comparable child nodes to capture deeper execution contexts where the failure may further manifest. Finally, it extracts the most discriminative cause from the exit features, which describe what the function does before it returns.

This ordering of enter features, children, and exit features follows the order of execution along every call path. What leads into a function comes first, followed by the causes from nested function calls, and finally what the function does before it returns. Since the tree is built from the failing runs first, the children of a node are visited in the order in which the failing runs first call them. Sibling calls thus also appear in the order in which they occur. Because the tree merges all runs, a cause chain is an ordered collection of observations rather than the trace of one particular run. With several failing tests, two causes at different nodes may stem from different failing runs. With a single failing test, as in the median instance of our evaluation, all of them stem from the same run.

Non-comparable nodes contribute no causes, so only execution features that actually differ between passing and failing tests appear in the final cause chain. The recursive structure lets the cause chain contain both coarse-grained causes in outer functions and fine-grained causes in inner functions. Together, they show how the failure propagates through the call stack.

Feature Representation

Features in FORECAST represent observable program properties of seven kinds. These are conditions (Boolean predicates such as tokens[0] in '*/'), variables (scalar comparisons such as value != 0), and scalar pairs (relationships between variables such as left == right). They also include branches (control flow decisions), def-use relationships (data flow such as “variable tokens defined at Line 62 used at Line 69”), functions (calls and returns), and lines (statement execution). Each feature can take one of three values, True, False, or Undefined (if the feature was not observed during execution). This distinguishes a condition that evaluates to false from one that is never reached.

Discriminability Scoring

To quantify how well a feature distinguishes failing from passing tests, FORECAST employs the Matthews Correlation Coefficient (MCC), a balanced measure suitable for imbalanced datasets:

MCC⁡=tp⋅tn−fp⋅fn(tp+fp)(tp+fn)(tn+fp)(tn+fn)(1)\operatorname{MCC} = \frac{tp \cdot tn - fp \cdot fn}{\sqrt{(tp + fp)(tp + fn)(tn + fp)(tn + fn)}} \tag*{(1)}

Here, tptp (true positives) counts failing observations where the feature is True, and fpfp (false positives) counts passing observations where the feature is True. Likewise, fnfn (false negatives) counts failing observations where the feature is not True, and tntn (true negatives) counts passing observations where the feature is not True. MCC ranges from −1-1 to +1+1. A value of +1+1 indicates perfect positive correlation (the feature is always true in failing tests and never in passing tests), 00 indicates no correlation, and −1-1 indicates perfect negative correlation. The counts are counts of observations, at most two per run and node (Section 4.2), rather than of tests. The score is therefore an observation-level discriminability. It describes how sharply a feature separates the observed failing from the observed passing executions. It is neither a probability nor a confidence that the feature causes the failure.

For ternary features (which can be True, False, or Undefined), FORECAST treats Undefined values as belonging to the “not observed” category. Consider the positive hypothesis “feature = True indicates failure”. For it, tptp counts failing observations where the feature is True, and fpfp counts passing observations where it is True. Likewise, fnfn counts failing observations where the feature is False or Undefined, and tntn counts passing observations where it is False or Undefined. For the negative hypothesis “feature = False indicates failure”, the roles are reversed, with tptp counting failing observations where the feature is False.

FORECAST computes MCC scores for both the positive and negated forms of each feature and selects the form with the higher discriminability. This bidirectional evaluation lets a feature become a cause both when it holds and when it does not hold in the failing runs. A negated cause states that the feature was observed and evaluated to FALSE, never Algorithm 2 Extracting Discriminative Features

1: function ExtractFeatures(feature_vectors)
2:     passing ← {}, failing ← {}
3:     total_passing ← 0, total_failing ← 0
4:     for each fv ∈ feature_vectors do
5:         if fv.result = Passing then
6:             total_passing ← total_passing + 1
7:         else
8:             total_failing ← total_failing + 1
9:         end if
10:        for each (feature, value) ∈ fv.features do
11:            increment passing[feature][value] or failing[feature][value]
12:            track which test vectors exhibit this feature with this value
13:        end for
14:    end for
15:    candidates ← []
16:    for each observed feature do
17:        mcc_pos ← MCC(failing[T], passing[T], total_failing, total_passing)
18:        mcc_neg ← MCC(failing[F], passing[F], total_failing, total_passing)
19:        if mcc_pos ≥ mcc_neg then
20:            candidates.add(Atom(feature, mcc_pos))
21:        else
22:            candidates.add(notAtom(feature, mcc_neg))
23:        end if
24:    end for
25:    return candidates
26: end function

merely that it was not observed. For example, if failures always occur when x == 0 evaluates to FALSE, the negated form achieves a higher MCC than the positive form.

Algorithm 2 presents the feature extraction process. It counts how often each feature takes each value (TRUE, FALSE, UNDEFINED) in the passing and in the failing observations. It also records which vectors exhibit each value, so that combinations can later be scored by set operations (intersection for AND, union for OR). From these counts, it computes the MCC of the positive hypothesis (feature = TRUE indicates failure) and of the negated one (feature = FALSE indicates failure). It keeps the hypothesis with the higher discriminability as an atomic cause, or atom. A feature that is TRUE and FALSE in the same shares of failing and passing observations cannot separate them and is skipped.

Divergences

A failing run can also leave the behavior of the passing runs altogether by calling a function that no passing run calls. The node of such a callee holds only failing observations. With no passing observation to compare against, none of its features can be scored, and Algorithm 2 discards it. However, the call itself is where the failing execution departs from the passing ones, and thus a cause candidate in its own right. After extracting the entry cause of a comparable node, FORECAST therefore inspects the node’s children. For every child that only failing runs reach, it adds a divergence to the cause chain, stating that the failing run called gg from ff, which no passing run called. A divergence is scored with the same MCC as every other cause, for the hypothesis “the run makes this call”. This hypothesis holds in no passing run and in every failing run that makes the call. A call that all failing runs make thus reaches a discriminability of 1.00. The subsequent causes describe what follows such a call. Ties in discriminability are therefore broken in favor of divergences when the cause chain is cut to its maximal length (§ 4.7).

Combining Atoms

Individual features often explain a failure only incompletely. A bug may only manifest when multiple conditions hold simultaneously (conjunction) or when any of several conditions occurs (disjunction). FORECAST therefore systematically explores feature combinations to find more discriminative causes.

Combination Strategy

For each node in the traced relevance tree, FORECAST begins with the set of atoms with the highest discriminability scores. If these atoms achieve perfect discriminability (MCC=1.0\mathrm{MCC} = 1.0), no combination is necessary. Otherwise, the algorithm explores pairwise combinations:

Conjunction (AND): Both features must be true for the combined predicate to hold

Disjunction (OR): Either feature being true satisfies the combined predicate

For each combination, FORECAST computes the discriminability by determining which test vectors satisfy the combined predicate. For conjunctions, it intersects the sets of vectors where each component is true, and for disjunctions, it takes their union.

Algorithm 3 illustrates the combination process. For each best atom below perfect discriminability, the algorithm scores its conjunction and its disjunction with every other atom. To do so, it intersects or unites the sets of vectors in which the two features hold, which directly gives the passing and failing observations that satisfy the combined predicate. A combination becomes a candidate only if it strictly improves on the atom, and the most discriminative candidate is returned.

Multi-Candidate Combination

Several candidate causes may reach the same maximal discriminability after the initial combination of atoms. FORECAST then attempts to combine them to find an even more discriminative compound cause. This arises when features correlate with failures independently, but their combination discriminates better.

The multi-candidate combination first identifies all candidates, atoms or already combined predicates, with equal maximal discriminability. It then tests pairwise combinations of these candidates with both AND and OR, computing the discriminability of the conjunction and of the disjunction of each pair. A combination is accepted only if it strictly improves discriminability beyond the individual candidates. If no combination improves, the tie-breaking selection described below decides.

The algorithm limits exploration to pairs among the first six candidates. This avoids exponential complexity while still capturing common multi-feature failure conditions. Combinations that share features are skipped as redundant, since, for example, combining x>0x > 0 with (x>0)(x > 0) AND (y<5)(y < 5) would be subsumed.

When already combined candidates are joined, each of them keeps its own operator. For example, joining (A AND B) with (C OR D) by AND yields A AND B AND (C OR D), which is both the formula that is scored and the one that is reported. Joining a conjunction by AND or a disjunction by OR needs no parentheses, as both are associative.

This strategy lets FORECAST find complex failure conditions that require multiple independent features to characterize the bug fully. An example is “failure occurs when input is non-numeric AND the operator is subtraction”, which neither feature alone might strongly predict.

Example: Combining Features

Returning to our expression parser example (Figure 3), FORECAST extracts atoms at every comparable node. Consider the entry features of the node of parse_add_sub() that parse() calls on Line 23. Its direct recursive calls also stay at this node (§ 4.2). No atom separates the runs well there. The strongest atom, ϕ1\phi_1, states that the condition token == "+" on Line 66 evaluates to FALSE. The next atoms are weaker still, among them ϕ2\phi_2 for variable s, which is defined on Line 17 and used on Line 19 of parse() before the call. The algorithm therefore explores combinations:

MCC⁡(ϕ1)=0.284MCC⁡(ϕ2)=0.152MCC⁡(ϕ1∨ϕ2)=0.337\begin{aligned} \operatorname{MCC}(\phi_1) &= 0.284 \\ \operatorname{MCC}(\phi_2) &= 0.152 \\ \operatorname{MCC}(\phi_1 \lor\phi_2) &= 0.337 \end{aligned}

The disjunction improves over both atoms, so it becomes the entry cause of this node. It still separates the runs only weakly, however. Since it stays below the minimum discriminability (§ 4.7), it does not enter the final cause chain. Combining atoms thus sharpens the cause found at a node, but it cannot create a separation that the observations at the node do not support.

Simplifying Cause Chains

The extraction at individual nodes may yield several equally discriminative candidates per node, and the resulting cause chain may contain weak, redundant, or too many causes. FORECAST therefore simplifies it in five steps, which the following subsections describe in the order in which they are applied.

Tie-Breaking for Equal Discriminability

Several candidates at a node may reach the same maximal discriminability without combinations improving it (§ 4.6). FORECAST then reduces them to the single cause most useful for repair agents. It applies the following tie-breaking criteria lexicographically in this order:

Simplicity: Prefer atoms over conjunctions and disjunctions. Simpler causes with fewer constituent features are easier to understand and act upon. A single condition like value != 0 is preferred over a conjunction like (value != 0 AND (Line 69 executed) if both have equal discriminability.

Positivity: Prefer non-negated features. Statements about what is happening provide more directly actionable information than statements about what is not happening. For example, token == '-' is preferred over NOT (token == '+') when explaining a subtraction bug.

Support: Prefer features that occur more frequently in failing tests. Higher support indicates that the feature is consistently present when failures occur, which makes it a more reliable indicator. Support is measured as the ratio of failing observations exhibiting the feature to all failing observations.

Actionability: Prefer feature types that provide more actionable information based on their semantic content. For example, conditions like token == '-' or def-use relationships like self.left defined at Line 8 used at Line 19 provide more specific guidance for repair. Generic observations like Line 42 executed or symptomatic properties like string is ASCII provide less.

For causes with several atoms (conjunctions and disjunctions), complexity is measured by the number of constituent atoms, and the negation count sums all negated atoms. Support is averaged across the atoms, and actionability is their mean rank. Table 1 ranks the feature types by actionability, following prior studies [71] showing that certain program properties are more useful for fault localization. Conditions and def-use relationships rank highest, because they directly describe control flow decisions and data dependencies that often pinpoint bug locations. String properties rank lowest, as they typically describe symptoms rather than causes.

RankFeature Types
6 (Highest)Conditions, Def-Use, Variable comparisons
5Scalar pairs, Return values
4None checks, Function errors, Lines, Function calls
3Loops, Length predicates
2Branch decisions
1 (Lowest)String properties (ASCII, digits, special chars, empty)

Table 1. Feature Actionability Ranking. Higher ranks indicate more actionable information for repair.

Discriminability Threshold

A cause chain should contain only causes that clearly separate the failing from the passing runs. FORECAST therefore discards every cause whose discriminability lies below a minimum threshold, by default 0.6. Causes below it separate the runs only moderately or weakly and would compete with stronger causes for the limited length of the cause chain (Section 4.5.5). If no cause reaches the threshold, FORECAST keeps all causes, since an empty cause chain would wrongly state that no observed feature separates the runs. The agent then judges these weaker causes by their discriminability, with a caveat if even the strongest one reaches at most 0.1 (Section 5).

Duplicate Elimination

Causes may appear multiple times in the cause chain, either as exact duplicates or in semantically equivalent forms. FORECAST computes a unique key for each cause based on its type (Atom, Conjunction, Disjunction) and its constituent features. It maintains the set of keys seen so far and skips any cause whose key has already been encountered. Each distinct piece of information thus appears only once in the final cause chain.

Subsumption Elimination

FORECAST removes a cause whose features overlap with those of another one, depending on their discriminability. When causes have equal discriminability, the simpler cause is always preferred. Let cause D1D_1 with features F1F_1 and cause D2D_2 with features F2F_2 have the same discriminability, with F1⊂F2F_1 \subset F_2. Then D2D_2 is subsumed by

Algorithm 4 Simplifying Cause Chains

1: function Simplify(candidates, min_threshold, max_length) ▷ tied best candidates per node
2:     causes ← []
3:     for each tied ∈ candidates do ▷ in temporal order
4:         causes.add(most useful cause in tied) ▷ simplicity, positivity, support, actionability
5:     end for
6:     filtered ← causes meeting minimum discriminability
7:     if filtered is empty then
8:         filtered ← causes ▷ Keep all if none meet threshold
9:     end if
10:    result ← []
11:    for each cause ∈ filtered do
12:        if cause is exact duplicate of previous cause then
13:            continue
14:        end if
15:        if simpler cause with equal discriminability in result then
16:            continue ▷ Subsumed by equal-disc simpler cause
17:        end if
18:        if cause with better discriminability subsumes cause then
19:            continue ▷ Subsumed by higher-disc cause
20:        end if
21:        remove from result any causes subsumed by cause
22:        result.add(cause)
23:    end for
24:    if |result| > max_length then
25:        result ← top-k by discriminability, divergences first on ties (preserve temporal order)
26:    end if
27:    return result
28: end function

D1D_1 and removed. For example, if both A and A AND B have discriminability 1.00, A is retained, as it explains as much with less complexity.

The features of one cause may contain those of another while their discriminability differs. The more discriminative cause is then kept regardless of complexity. For instance, if A has discriminability 0.75 and A AND B has 1.00, A is removed. If A AND B has 0.80 and B alone has 1.00, the conjunction is removed.

Chain Length Management

To keep cause chains comprehensible, FORECAST limits their length. From the causes that remain after the previous steps, it selects the top-kk most discriminative ones (by default k=10k = 10) while preserving their temporal order. Among equally discriminative causes, divergences are selected first, since the causes observed after such a call describe what follows it.

Algorithm 4 summarizes these steps. Because duplicates and subsumed causes are removed before the top-kk are selected, they do not occupy its slots, so distinct causes with slightly lower discriminability can be included instead.

Complete Diagnosis Example

Returning to the expression parser from Figure 3, we now trace how FORECAST constructs the complete cause-chain diagnosis for its two failing tests. After extracting features at all comparable nodes and combining atoms, FORECAST obtains an initial cause chain of 19 causes, among them one divergence. Only four of them reach the minimum discriminability of 0.6. The other 15 separate the runs at most weakly and are filtered out.

Examples are the disjunction of § 4.6 (0.337) and the condition tokens and tokens[0] in '*/' on Line 52 evaluating to FALSE (0.316). The four remaining causes are distinct, and none subsumes another, so the final cause chain is:

  1. Condition token == "+" on Line 66 of parse.py evaluates to FALSE (disc: 0.61)

  2. Function parse_add_sub() on Line 69 does not return None (disc: 0.61)

  3. The failing run called Sub.evaluate() from Mul.evaluate(), which no passing run called (disc: 0.66)

  4. self.left defined on Line 8 of arithmetic.py is used on Line 24 (disc: 1.00)

This cause chain describes how the failing runs differ from the passing ones. The first two causes stem from a different node than the disjunction of § 4.6. At this node, parse_add_sub() is called again to parse a parenthesized subexpression. Of the failing tests, only 2 * (1 - 1) reaches it, and of the passing ones, 1 + (2 * 3) and (1 + 2) * 3. In the failing run, the parenthesized expression is a subtraction. The token on Line 66 is therefore not + (step 1), and the function returns a Sub object from Line 69 (step 2). The passing runs parse a multiplication or an addition there. Both causes reach only 0.61, because every call of parse_add_sub() is a separate observation. The failing run calls it twice at this node, once for 1 - 1 and once, recursively, for the remaining 1, which contains no operator. The multiplication then evaluates the subtraction, a call that no passing run makes (step 3). The left operand of this multiplication is the constant 2, which it evaluates directly after reading self.left on Line 24. The left operand of the passing (1 + 2) * 3, in contrast, is a sum (step 4). The cause chain does not name Line 19 itself. The passing test 1 - 0 executes this line, too, and because adding and subtracting zero give the same result, its run takes the same path as the failing ones. Instead, the cause chain leads from the parsing of the minus sign to the Sub object and to the call of Sub.evaluate() that only a failing run makes, the method that contains the fault.

Enhancing Repair Agents

How does FORECAST integrate its cause-chain diagnoses into arbitrary repair agents? The integration is agent-agnostic. Repair agents differ in how they perform fault localization, plan their actions, or post-process responses. FORECAST nevertheless injects the cause-chain diagnosis at a single well-defined point: the issue description the agent receives. From this description, the agent builds every prompt it sends to the underlying LLM.

General Repair Agent Pipeline

Despite their architectural differences, modern LLM-based repair agents share a common abstract pipeline. Figure 4 illustrates this pipeline and shows where FORECAST intervenes.

Abstract repair agent pipeline

Figure 4. Abstract repair agent pipeline. Given an issue ①, a repair agent performs pre-computation such as fault localization ④, constructs a prompt ⑤, queries the LLM ⑥, and post-processes its response ⑦ into a patch ⑧. FORECAST ③ computes a diagnosis from the program and its tests ② and appends it to the issue, so the diagnosis reaches every prompt the agent constructs from it.

The pipeline consists of four stages. In pre-computation, before or while constructing its prompts, an agent gathers information about the failure. This may include fault localization, which identifies the files and lines likely responsible for the failure. It may also include the retrieval of relevant code context or building an understanding of the project structure, with or without the LLM. For example, AutoCodeRover and RepairAgent receive a spectrum-based fault localization, Agentless narrows the repository down to files and functions, and SWE-agent issues exploratory commands through its agent-computer interface. In prompt construction, the agent assembles this information into a textual prompt. The prompt typically contains the problem description, relevant code snippets, and instructions for the repair task. In the LLM query, the prompt is sent to the LLM, which responds with one or more suggested fixes. In post-processing, the agent extracts the patch, may validate it against tests, and may rank or filter candidates. Moreover, these steps may be repeated, based on the agent’s design.

Diagnosis Injection

FORECAST intercepts the pipeline at its input. Before the agent starts, FORECAST appends a structured Failure Diagnosis block to the issue description. This block contains the cause chain inferred by the algorithm of § 4, serialized as plain text. Since an agent builds its prompts from the issue, the block appears exactly once in every prompt that presents the issue to the LLM. The injection is transparent to the agent, and none of its stages requires any modification. The agent operates exactly as it would without FORECAST but receives a richer issue description. A cause-chain diagnosis, however, does not always contain causes, and the ways it can fall short are not equivalent.

The inference may run without finding any feature that separates the failing execution from the passing ones. The resulting cause chain is then empty. We report that emptiness rather than suppress it. An empty cause chain states that the executions are indistinguishable over everything FORECAST observes. Consequently, the failing run neither reaches different code nor takes a different branch than the runs that pass. That is a constraint on where the fault can be, so the injected block says so. It directs the agent towards what such a result leaves open. This includes values entering from outside the traced code, behavior that is absent rather than wrong, and results that differ although the same code ran. From the agent’s side, leaving the prompt unchanged would be indistinguishable from never having consulted FORECAST at all.

A cause chain may also exist while each of its causes separates the executions only marginally, with a discriminability of at most 0.1. The block then reports the cause chain together with its highest discriminability. It asks the agent to treat the cause chain as a starting point rather than as the identified cause. Presenting a weak signal in the same terms as a strong one would invite the agent to chase noise. The two thresholds serve different purposes. The minimum discriminability of 0.6 (§ 4.7) decides which causes a cause chain keeps when strong ones exist. If none exists, the strongest available causes are kept rather than leaving the agent without a diagnosis. The caveat marks only cause chains whose strongest cause is nearly uncorrelated with the failure. Causes between 0.1 and 0.6 still separate the runs moderately and are shown with their discriminability, from which the agent can judge their strength.

The issue is left unchanged only when no cause-chain diagnosis is produced at all. This happens when collection itself fails, so that we observe nothing about how the executions compare. The agent then degrades to its baseline behavior. Reporting indistinguishable executions in that case would assert a finding we never made.

Prompt Structure

To make the augmentation concrete, consider the issue an agent receives for the expression parser of Figure 3. In FORECAST mode, the problem statement is followed by a Failure Diagnosis block in Markdown:

[problem statement]
## Failure Diagnosis
The following diagnosis shows the cause-effect chain leading to the test failure:
1. Condition "token == ’+’" at expr/parse.py:66 evaluates to False (discriminability: 0.61)
LEADS TO
2. Function parse_add_sub in expr/parse.py:69 does not return None (discriminability: 0.61)
LEADS TO
3. The failing run called expr/arithmetic.py:Sub.evaluate from expr/arithmetic.py:Mul.evaluate, which
   no passing run called (discriminability: 0.66)
LEADS TO
4. Variable "self.left" defined at expr/arithmetic.py:8 is used at expr/arithmetic.py:24 (discriminability:
   1.00)

Every cause names the file and line where it was observed and carries its discriminability. Divergences (§ 4.3) name the calling and the called function. Apart from the notes for empty and weak cause chains, the block ends with the cause chain itself and adds no instruction on how to use it. The instructions the agent gives its model thus remain the only ones the model receives. Wherever the agent places the issue in a prompt, be it a system message, a task description, or a retrieval query, the cause-chain diagnosis follows it there.

Generality

FORECAST treats the issue description as an opaque string and appends the diagnosis block to it, leaving the agent’s own prompts untouched. The approach thus applies to any agent that (1) takes a textual issue description and (2) builds its LLM prompts from it. It requires no assumptions about the agent’s internal structure, the specific LLM, or the programming language of the subject program. Different agents may nevertheless benefit differently from the injected information, which § 7 measures for five agents of different designs.

Implementation

FORECAST is implemented as an open-source Python package. Its modules mirror the pipeline stages of § 4 and § 5, namely instrumentation, trace collection, tree construction, diagnosis inference, and agent integration. Repair agents, model backends, fault localization formulas and techniques, and subject types are all registered through a plugin interface, so adding a new one requires no change to the core pipeline.

Instrumentation and Trace Collection. Instrumentation builds on SFLKit [74], which rewrites the source of the program under test so that it reports whatever we want to observe. Such events include a function being entered or left, a branch being taken, a condition being evaluated, or a variable being defined or used. The rewriting only inserts calls that report these events. Apart from its runtime cost, it thus leaves the program’s behavior unchanged, except for programs that inspect their own source or depend on timing. Every test runs in isolation and produces its own trace, labeled with the test’s outcome so that tests can be traced in parallel without any coordination between them. The traces are then grouped by outcome and handed to the tree builder.

Keeping Tracing Affordable. Tracing a program is far more expensive than merely running it, because a trace records every single observation rather than a summary. Left unchecked, individual tests in our subjects produced traces of hundreds of gigabytes and exhausted their time budget before finishing.

The dominant cost turned out not to be the tests themselves. Every test is executed in a fresh, isolated environment. The first test to run in such an environment pays for whatever one-time initialization the project performs. One of our subjects, for instance, builds a cache of the fonts installed on the system, scanning and parsing each of them. That work is negligible when it happens once. Since each test starts from a clean environment, however, it is repeated for every test, and under instrumentation, it is recorded in full. On one subject, the same test took 66 seconds and produced 1.1 GB in a fresh environment, against 4 seconds and 54 MB once the initialization had already happened. FORECAST therefore performs this initialization once, while preparing the subject’s environment and before instrumenting it. The cost is thus paid a single time and never observed.

Beyond that, FORECAST bounds what a single run may record, since its analysis never needs the full detail. Predicates over values ask coarse questions, such as whether a string is empty or contains a digit. Recording a bounded prefix of a value (by default 1 KB) is therefore enough, and lengths are observed separately and remain exact. Loop features distinguish only whether a loop ran never, once, or more than once, so observing more than two iterations of a loop adds nothing at all. These bounds matter for programs that move large values or run exhaustive and nested loops, and they are inexpensive insurance elsewhere. A configurable size budget (by default 2 GB per trace before compression) additionally cuts a trace off once it grows too large. Because observations are recorded whole, a truncated trace remains readable and describes a prefix of the run. Finally, traces are compressed with gzip as they are written, which is effective because they are highly repetitive.

The second lever is to trace fewer tests. A cause-chain diagnosis only compares executions at functions that both a passing and a failing run reach (§ 4.2). A passing test that shares no executed code with the failing tests therefore cannot influence the result and would only cost a traced run. FORECAST identifies those tests from plain coverage, which is cheap to collect, and traces only the passing tests whose execution overlaps the failing ones. It prefers the tests that cover most of the failing code. Among equally overlapping tests, it prefers those that execute the least code besides it, since these give the sharpest contrast and are also the cheapest to trace. An optional cap keeps only the highest-ranked ones. Measuring coverage costs a run of its own, so for few candidate tests, FORECAST skips the selection and traces them all. The selection never empties the set of passing tests. Should no candidate overlap the failing code, or should coverage fail, a bounded prefix of the candidates is traced instead. A cause-chain diagnosis without passing runs would have nothing to contrast against. For the same reason, when an instance lists no passing test at all, FORECAST runs the repository’s tests closest to the failing ones and uses those that pass.

Diagnosis Inference. Tree construction merges all traces into a single call tree, following function entries and exits while accumulating the observations made between them. The failing traces span the tree. Passing traces are then folded in only along the call paths the failing runs take, since a node that no failing run reaches cannot be comparable. They can be processed in parallel and merged. The diagnosis stage then realizes the algorithms of § 4. It marks comparable nodes bottom-up by testing whether passing and failing runs share any observation at a node. It extracts cause chains depth-first, processing entry observations, then nested calls, then exit observations, so that the cause chain follows the order of execution. Discriminability is scored with the Matthews correlation coefficient, which is undefined when a feature or its complement is constant across all runs. Such features carry no information and are scored as uncorrelated. Feature combinations are evaluated by intersecting (and) or uniting (or) the sets of observations that satisfy each atom. To keep the search tractable, every pair contains one of the strongest atoms, and tied candidates are combined only among the first six. The resulting cause-chain diagnosis is serialized to JSON, Markdown, or plain text.

Agent Integration. The integration layer appends the serialized cause chain to the issue description an agent receives (§ 5) and leaves the agent itself unmodified. Because the cause-chain diagnosis enters at that single point, an agent’s own fault localization, planning, and patch generation stay untouched. An agent that receives no diagnosis behaves exactly as its baseline. Every prompt in which an agent presents the issue to the model therefore carries the cause chain exactly once. Agents that query the model many times, such as SWE-agent and AutoCodeRover, thus stay guided throughout their repair loop. All model calls of all agents pass through one FORECAST model interface, which records every request and its token usage uniformly. Every patch is judged by the official SWE-bench harness, never by the agent.

Evaluation

We evaluate how much FORECAST improves repair agents, where the improvement comes from, and what it costs. To this end, we address the following research questions:

RQ1: Effectiveness. To what extent does the cause-chain diagnosis of FORECAST improve the repair success of existing repair agents, and does the improvement persist across repeated runs?

RQ2: Diagnosis Components. Which parts of the cause-chain diagnosis matter, and how does it compare to other debugging aids?

RQ3: Fix Quality. How does the cause-chain diagnosis affect the minimality, applicability, and correctness of the generated fixes?

RQ4: Efficiency. What does computing a cause-chain diagnosis cost, and how does the diagnosis change the tokens, cost, and time of the repair?

Experimental Setup

Study Design. To answer our research questions, we conduct a controlled, paired experiment. We run each repair agent in two modes whose inputs differ in exactly one factor: the presence of a cause-chain diagnosis. In the baseline mode, the agent receives only the inputs it was originally designed for, namely the issue description and access to the repository under test. In the FORECAST mode, the agent receives the identical inputs plus the cause-chain diagnosis (§ 4), injected into its prompt (§ 5). The agent, the benchmark, the underlying model, and all decoding parameters stay fixed between the two modes. This isolates the effect of the diagnosis on repair effectiveness ((RQ1)), fix quality ((RQ3)), and efficiency ((RQ4)). Two further experiments examine this effect. We repeat the runs of both modes to measure how much their outcomes vary from run to run and whether the benefit persists in each repetition ((RQ1)). We also replace the diagnosis with variants that withhold or substitute parts of it ((RQ2)).

Benchmark. We evaluate on SWE-bench Lite ([22]), a curated subset of 300 real-world GitHub issues drawn from 12 popular open-source Python projects. Each instance provides an issue description (problem statement), the repository pinned at the buggy base commit, and a hidden developer test patch that adds the tests exercising the fix. It also provides two sets of test identifiers. FAIL_TO_PASS lists the tests that must change from failing to passing for the issue to be resolved. PASS_TO_PASS lists the tests that must keep passing to guard against regressions. We use SWE-bench Lite because it is the de facto standard for evaluating LLM-based repair agents and remains representative of real maintenance tasks. It is also small enough to run every agent in both modes within our compute budget. We detail the resulting subject characteristics in § 7.2.

Repair Agents. We study five widely used, structurally diverse repair agents. AutoCodeRover [97] combines program-structure-aware code search with spectrum-based fault localization. Agentless [87] follows a fixed localize–repair–validate pipeline without an autonomous agent loop and validates its patches with reproduction tests it generates from the issue. SWE-agent [92] drives an LLM through an agent-computer interface to navigate, edit, and test the repository interactively. mini-SWE-agent [77] is a minimal autonomous agent by the authors of SWE-agent that interacts with the repository through shell commands alone. RepairAgent [9] drives its repair through hypotheses about the bug and runs of the developer’s tests. We include Agentless and RepairAgent specifically because they already work with tests in their baseline mode, which lets us control for test access (see below). These agents span the spectrum from agentless pipelines to fully autonomous agents. Improvements that hold across all of them are thus unlikely to be artifacts of a single architecture.

We run SWE-agent, mini-SWE-agent, and Agentless unmodified, from the authors’ published code at a pinned version. SWE-agent and mini-SWE-agent use the configurations their authors use for SWE-bench. Agentless replays its published SWE-bench pipeline stage by stage, with localization, 40 sampled patches, regression and generated reproduction tests, and reranking. Agentless deviates in two respects. Its embedding-based file retrieval relies on an embedding model that our models do not offer. File localization is therefore left to the language model alone, a configuration Agentless supports. In addition, each of its steps may answer in up to 4,096 tokens rather than its original 300 to 1,024. With the original limits, a model that reasons before it answers is cut off. Localization then names no file, and repair and test samples end inside their edit or test. Both modes run with the raised limits.

AutoCodeRover’s code is not openly licensed, so we completely re-implement it from its paper. The re-implementation comprises stratified context retrieval over the paper’s seven search APIs and method-level spectrum-based fault localization, which the agent sees before retrieval. It also comprises patch generation with a retry loop that checks format, applicability, syntax, and the tests. FORECAST computes fault localization itself as an Ochiai ranking [1] over the very test executions in traces, and provides its five top-ranked methods in both modes. AutoCodeRover’s baseline thus already receives a test-based localization signal derived from the same data as the cause-chain diagnosis. The tests its retry loop runs are the instance’s FAIL_TO_PASS and PASS_TO_PASS tests with the developer’s test patch applied, again in both modes. Like RepairAgent below, AutoCodeRover thus has access to the tests from which the diagnosis is derived.

Each agent runs inside the instance’s SWE-bench Docker image. SWE-agent, mini-SWE-agent, and Agentless receive only the issue, as in their original setting, and the developer’s tests stay hidden from them. The inputs of the baseline and FORECAST modes of an agent differ in exactly one factor: the injected cause-chain diagnosis. FORECAST computes it from the tests before the repair starts.

Controlling for Test-Suite Access. FORECAST derives its cause-chain diagnosis from the passing and failing test executions. Any improvement could therefore merely reflect that the agent receives additional information extracted from tests, rather than the value of the cause-chain diagnosis itself. To guard against this confound, we include two agents whose baselines already exploit tests, one for each of the two settings in which an agent may work. Agentless represents the setting in which an issue comes without a failing test. In both modes, it generates reproduction tests from the issue and selects one that reproduces the issue by majority vote. To choose among its candidate patches, it runs this test together with the repository’s existing tests that pass before any change. Its baseline thus already has a failing test derived from the issue, as a developer or a test generator would write it. RepairAgent [9] represents the setting in which the developer’s tests are available. It is an autonomous, test-driven repair agent that runs and inspects the test suite as part of its repair loop. In its baseline mode, it thus already has full, unrestricted access to the same tests from which FORECAST builds its diagnosis. AutoCodeRover, which validates its patches against these tests as well, complements it. If FORECAST still improves these agents, the gain cannot be attributed to mere access to tests, since their baselines already exploit them. It instead reflects what the cause-chain diagnosis adds to the test outcomes, namely how the failing execution differs from the passing ones.

RepairAgent was originally proposed and evaluated on the Defects4J [24] Java benchmark, and its tools are Defects4J commands for Java projects. We therefore port it to Python. We keep its design, including the dynamic prompt, the three-state machine with hypothesis tracking, its tool set, its middleware, and its budget of 40 commands. We also keep its prompts, adapted from Java to Python. We re-target its tools to the SWE-bench image, where they run the FAIL_TO_PASS and PASS_TO_PASS tests with the developer’s test patch applied. By default, RepairAgent receives perfect fault localization: the lines the developer changed. On SWE-bench Lite, this would reveal the fix. We therefore use its alternative of an existing fault localization tool, the same spectrum-based ranking that AutoCodeRover receives, and show RepairAgent the ten top-ranked methods. We run it in the same two modes and with the same models as the other agents.

Underlying Models. We run every agent, in both modes, with each of two large language models. Anthropic’s Claude Haiku 4.5 (claude-haiku-4-5-20251001) [6] is a commercial model that we access through its API. Qwen3.5 27B (qwen3.5:27b) is an open-weight model that we serve locally with Ollama. Each agent keeps the decoding settings of its published configuration, so that it behaves as its authors evaluated it. Agentless, for instance, samples candidate patches at temperature 0.8. Some configurations set both a temperature and a nucleus-sampling threshold. Claude Haiku 4.5 then receives only the temperature, as its API accepts only one of the two. Qwen3.5 runs with a context window of 131,072 tokens and with its thinking mode disabled, as Claude Haiku 4.5 does not think unless asked to. The two modes of an agent share the model and its settings, so the measured difference stems from the injected cause-chain diagnosis rather than from model or configuration differences. Every LLM call of every agent passes through FORECAST’s model interface, which records its tokens. We price the tokens of Claude Haiku 4.5 at Anthropic’s list prices, independent of any discounts. These are $1 per million input and $5 per million output tokens, and $1.25 and $0.10 per million tokens written to and read from the prompt cache. Qwen3.5, which we serve locally, incurs no charge per token, although its hardware and energy are not free, so we compare its runs by their tokens. Two agents have a budget. SWE-agent and mini-SWE-agent stop a run once it has cost $3, or after 150 model calls and 250 steps, respectively. SWE-agent then submits the changes made so far, whereas mini-SWE-agent submits nothing. For Qwen3.5, the agents count its tokens at the same prices, without prompt caching, which Ollama does not provide. Its budget thus amounts to about three million tokens per run. Runs of Claude Haiku 4.5, whose prompts are mostly read from the cache, can use several times as many.

Diagnosis and Execution Environment. For every instance, FORECAST first derives a cause-chain diagnosis from the program’s passing and failing executions. We run each FAIL_TO_PASS and PASS_TO_PASS test inside the official SWE-bench per-instance Docker image, which fixes the operating system, interpreter, and dependency versions. The traces are thus collected in the same environment in which patches are later validated. The developer test patch is applied before tracing so that the failing tests are present and exercise the buggy code. We instrument the application code with SFLKit [74] to record fine-grained execution features [71]. Test files, configuration files, and test helpers are explicitly excluded from instrumentation, so the resulting diagnoses point at the code under repair rather than at the tests. From the collected event traces, FORECAST builds a traced relevance tree and derives the cause-chain diagnosis (§ 4). The diagnosis is cached and reused across both the prompt-generation and the repair stages. Tests are executed with a 120 s per-test timeout and up to four parallel workers.

Some instances list several hundred PASS_TO_PASS tests, and tracing all of them is not affordable. We therefore apply the trace bounds and the coverage-based test selection of § 6 throughout, in both modes and for every subject, so that the comparison remains controlled. Instances with at most 25 candidate passing tests are traced in full (which is true for 101 instances of SWE-bench Lite). For the others, coverage is measured for at most 200 candidates, those in the failing tests’ files first, and the 120 top-ranked overlapping tests are traced (166 instances). Where coverage of the failing tests could not be measured, all measured candidates are traced (31 instances), and where coverage failed altogether, the first 120 are traced (2 instances). For the six instances that list no PASS_TO_PASS test, FORECAST recovers passing tests from the repository as described in § 6. In total, we trace 1,040 failing and 16,720 passing test executions, a median of 1 failing and 42.5 passing tests per instance. The selection uses only the tests, including those of the developer’s test patch, and never the developer’s fix. It thus gives the diagnosis no information beyond the tests themselves. With these bounds, FORECAST produced a cause-chain diagnosis for every one of the 300 instances, and no diagnosis relies on the developer’s fix.

Repair Pipeline. Each repair attempt proceeds through a fixed pipeline of six stages. (1) FORECAST first collects execution events for the failing and passing tests, (2) builds the traced relevance tree, and (3) diagnoses to obtain the cause chain. (4) The prompt stage assembles the agent’s native prompt and, in FORECAST mode, injects the cause-chain diagnosis. (5) The run stage is a single LLM-driven repair attempt that produces a unified-diff patch (pass@1). (6) The evaluate stage applies the patch inside the instance’s Docker image and executes the full FAIL_TO_PASS and PASS_TO_PASS suites. Stages (1)–(3) run once per instance, before any repair, and all agents and both models receive the same diagnosis. Only the FORECAST mode receives it. The fault localization of AutoCodeRover and RepairAgent, computed from the same traces, is provided in both modes. Each repair attempt is limited to six hours. An attempt that yields no verdict counts as unresolved, as does one in which the agent fails. In the main experiment, each agent, mode, and model is run once per instance, resulting in a total of 6,000 repair attempts. The repeated runs and the variants of the diagnosis come on top of these and are described below.

Repeated Runs. The agents do not behave deterministically. Some of them sample at a positive temperature, and even greedy decoding can vary with batching on the serving side. A second run of the same configuration may therefore resolve different instances. To measure this variation, we run every agent with QWEN3.5 twice more in each mode, with the same cause-chain diagnoses and settings and on all 300 instances. Together with the main experiment, each agent and mode thus has three runs with QWEN3.5. With CLAUDE HAIKU 4.5, whose tokens we pay for, we repeat only the FORECAST mode, once per agent. This shows how much the FORECAST mode varies with the commercial model. The runs of a mode are interchangeable, so we measure the gain of the diagnosis between every FORECAST run and every baseline run of an agent.

Variants of the Diagnosis. To find out which parts of the cause-chain diagnosis the agents benefit from, we replace the cause chain in the Failure Diagnosis block with variants (Table 2). Each variant withholds or substitutes some of the information of the cause chain. Everything else stays as in the FORECAST mode. A variant that injects something other than a cause chain introduces it with a sentence of its own, for instance “The following tests fail on the current code, with their output:”.

VariantWhat the agent receives instead of the chainAgents
Foreignthe chain of another instance of the same projectboth
Unorderedthe same causes in a random order, as a list without LEADS TOboth
Locationsonly the file, line, or function each cause names, with its discriminabilityboth
No divergencesthe chain recomputed without divergences (147 instances)both
Atomsthe chain recomputed without conjunctions and disjunctions (125 instances)both
Test outputthe failing tests and their output on the unchanged codeMINI-SWE-AGENT
SBFLthe ten methods spectrum-based fault localization ranks highestMINI-SWE-AGENT
Chain and test outputthe chain, followed by the failing tests and their outputMINI-SWE-AGENT
Wordingthe chain, introduced as observations and joined by THENboth
k=5k = 5, k=20k = 20the chain recomputed with at most 5 or 20 instead of 10 causesboth
t=0.4t = 0.4, t=0.8t = 0.8the chain recomputed with a minimal discriminability of 0.4 or 0.8 instead of 0.6both

Table 2. Variants of the diagnosis. Each variant replaces the cause chain in the Failure Diagnosis block and leaves everything else as in the FORECAST mode. The recomputed variants run only on the instances whose chain they change.

Three variants test whether the content of the cause chain matters. Foreign injects the cause chain of another instance of the same project. It is a negative control that is as structured and plausible as a real diagnosis but says nothing about the failure at hand. The donor of an instance is a single fixed one; it is the instance half the list further on in the sorted list of the project’s instances, wrapping around at the end. Every instance thus receives the cause chain of another instance of its own project. Unordered presents the same causes in a random order, as a list without LEADS TO, and thus tests whether their order of execution matters. Each instance gets one random permutation, seeded by the instance, which always differs from the order of execution, and the causes appear as an unnumbered list. Locations keeps only the file, line, or function each cause names, with its discriminability. It thus tests whether the conditions, values, and data flows of the causes add to where they were observed.

Two variants recompute the cause chain from the traced relevance tree without one kind of cause. No divergences omits the calls that only failing runs make. Atoms omits conjunctions and disjunctions, so that each cause is a single feature. Only the 147 and 125 instances whose cause chain contains such a cause are affected. For the others, the prompt is the same as in the FORECAST mode, and we take its outcome.

Three variants compare the cause chain with information that is available without FORECAST. Test output injects the failing tests and their output, such as tracebacks and assertion messages. This output is recorded on the unchanged code with the developer’s test patch applied and cut to about 4,000 characters, about the size of a long cause chain. SBFL injects the ten methods that spectrum-based fault localization over the same executions ranks highest, the ranking that AutoCodeRover and RepairAgent receive in both modes. Chain and test output injects the cause chain followed by the test output, to find out whether the two complement each other.

Wording keeps the cause chain but introduces it as observations that distinguish the failing from the passing runs, in the order in which they occur. It also joins the causes by THEN instead of LEADS TO. It thus tests whether the agents benefit from the presentation of the causes as a cause-effect chain (§ 8.3). Finally, we vary the two parameters of the simplification (§ 4). These are the maximal number of causes (k=5k = 5 and k=20k = 20 instead of 10) and the minimal discriminability (t=0.4t = 0.4 and t=0.8t = 0.8 instead of 0.6). Changing the parameters may lead FORECAST to consider different features. A recomputed cause chain can therefore differ from the evaluated one in more than its length, and the same holds for the cause chains without divergences or combinations. As for these, only the instances whose cause chain changes are run again (283, 282, 290, and 288 instances for k=5k = 5, k=20k = 20, t=0.4t = 0.4, and t=0.8t = 0.8, respectively).

We run the variants with Qwen3.5, which we serve locally, and with two agents. MINI-SWE-AGENT interacts with the repository through shell commands alone and never sees the developer’s tests. The injected block is thus the only information it receives from them, which makes it a direct probe of what the block conveys. REPAIRAGENT runs the developer’s tests and receives the spectrum-based ranking in both modes, so it shows what a variant adds to the information an agent already has. For the same reason, REPAIRAGENT does not run the test output, SBFL, and chain and test output variants, whose added information its baseline already receives.

Metrics. Across all research questions, we compare the baseline and FORECAST mode of each agent on identical instances. We report both the absolute and the relative change, so that improvements are interpretable independently of an agent’s starting point. Our primary outcome is whether an instance is resolved. For that, the agent’s patch must apply cleanly to the repository, turn every FAIL_TO_PASS test from failing to passing, and leave every PASS_TO_PASS test passing. This is the official SWE-BENCH resolution criterion. We evaluate every patch by applying it inside the instance’s Docker image and running both test sets there. Resolution is thus judged in the same environment that we use to collect the cause-chain diagnosis.

For RQ1, we report the number and percentage of resolved instances, both per agent and aggregated across agents. We contrast each agent in FORECAST mode with its baseline to isolate the benefit of the diagnosis. For the change in percentage points, we give a 95% confidence interval from a paired bootstrap over the instances with 10,000 resamples. Both modes of an agent run on the same instances. We therefore test whether their resolution rates differ with the exact two-sided McNemar test [48] on the paired per-instance outcomes. Over all agents of a model, the outcomes for the same instance are not independent. We therefore test the totals with the exact two-sided sign test over the instances, which counts the instances that more agents resolve with the diagnosis and those that fewer agents resolve with it. With twelve comparisons (five agents plus their combined resolve-rate and two models), we apply the Bonferroni correction and multiply each pp-value by the number of comparisons. We consider a difference significant if the corrected pp-value is below 0.05. In the tables, we underline the differences that are significant.

To assess fix quality (RQ3), we characterize the generated patches by their minimality and their applicability. We measure minimality as the number of changed lines (added plus removed) and the number of distinct files a patch modifies. Applicability is the fraction of generated patches that apply cleanly to the repository without error. Smaller, cleanly applicable patches are easier to review and less likely to carry unrelated changes. Agents that work in the repository sometimes leave files behind that they created for themselves, such as reproduction scripts. We count those new files separately and measure minimality over the changes to files that exist in the repository.

For efficiency (RQ4), we weigh the computational overhead of producing a cause-chain diagnosis against the repair cost. We measure the overhead as the wall-clock time of the event-collection, tree-building, and diagnosis stages. We measure the repair cost as the LLM tokens consumed and the end-to-end repair time per instance. For all of these measures, we report the distribution across instances rather than only aggregates. The effect of the diagnosis on outliers, such as unusually large patches or expensive diagnoses, thus remains visible. We additionally record the discriminability of each diagnosis. This observation-level score quantifies how sharply its cause chain separates the observed passing from the observed failing executions § 4. We use it to characterize the diagnoses that the agents actually receive.

For the repetitions of RQ1, we additionally report the resolved instances of each run and their mean over the runs of an agent and mode. We compare every FORECAST run of an agent with every baseline run of the same agent with the McNemar test, as in the main experiment. These are nine comparisons per agent with Qwen3.5 and two with Claude Haiku 4.5. With these 55 comparisons, we again apply the Bonferroni correction. Since parts of the repair agents are non-deterministic, two runs of the same mode may also disagree on some instances. One run resolves an instance that the other does not, and vice versa. The number of such instances shows how much the outcome varies from run to run by chance alone. We judge the difference between a variant and the FORECAST mode against this variation. For RQ2, we compare each variant of an agent with each of the agent’s three FORECAST runs on the paired per-instance outcomes, again with the exact McNemar test, and report its change against their mean. With 23 variants and agents (13 with mini-SWE-agent and 10 with RepairAgent) and three runs each, we apply the Bonferroni correction over 69 comparisons. We consider a variant significantly different from the FORECAST mode if it differs significantly from each of its three runs. A variant that resolves significantly fewer instances withholds or replaces information the agents benefit from.

Subjects

Table 3 summarizes our subjects, the 300 instances of SWE-bench Lite from 12 projects, and the cause-chain diagnoses FORECAST derives for them. Django and SymPy alone contribute 191 instances, whereas six projects contribute six or fewer. For 299 instances, the diagnosis is a non-empty cause chain. For the remaining one (pallets__flask-4992), no traced feature separates the failing from the passing executions. The agents receive the corresponding note instead (§ 5). Most cause chains reach the maximal length of ten causes (a median of 10, with quartiles of 5 and 10). In 274 instances (91%), the strongest cause separates the failing from the passing executions perfectly, with a discriminability of 1.00. With a median of one failing test per instance, such a perfect separation means that the cause holds in every failing and in no passing observation at its node. It does not mean that the cause would separate further runs as well. Only four cause chains are weak in the sense of § 5, reaching at most 0.1, and they are presented to the agents with the corresponding caveat. Nine more reach between 0.1 and the minimal discriminability of 0.6. The simplification keeps their causes (§ 4.7), and they are presented without a caveat. The cause chains contain 2,367 causes in total. Of these, 1,445 (61%) are single features, 238 (10%) are conjunctions or disjunctions of features, and 684 (29%) are divergences, calls that only failing runs make. Half of the cause chains (147) contain at least one divergence.

ProjectInst.FailPassCausesDisc. 1.00Time (min)Haiku 4.5 (%) BaseHaiku 4.5 (%) FORECASTQwen3.5 (%) BaseQwen3.5 (%) FORECAST
astropy682171063343.373.333.350.0
django1147165,841101024558.679.636.062.8
flask3512222413.340.020.020.0
matplotlib23292,01062210845.275.733.064.3
pylint6820846633.356.723.340.0
pytest17351,30010175338.871.827.154.1
requests642556106936.743.323.340.0
scikit-learn23551,199720958.374.847.067.0
seaborn4425634660.070.045.075.0
sphinx1623388911537.562.527.542.5
sympy771004,23110737639.762.122.147.5
xarray5153921051240.056.020.052.0
Total3001,04016,720102744048.570.931.256.1

Table 3. Subjects and their diagnoses. Per project of SWE-bench Lite: instances, traced failing and passing test executions, median number of causes per chain, chains with a discriminability of 1.00, and median time to compute a diagnosis. The last four columns give the share of resolved repair attempts over all five agents, without (Base) and with (FORECAST) the diagnosis.

A cause-chain diagnosis describes how the failing execution differs from the passing ones. It does not predict where the fix goes, and the two need not coincide. To characterize how close the diagnoses come to the fix nonetheless, we compare them with the developer patches of SWE-bench Lite, which FORECAST itself never sees. In 166 instances (55%), some cause of the cause chain is located in a file that the developer patch changes. In 37 instances (12%), a cause names a line within one of the patch’s hunks. Naming code that the fix changes, however, is not the same as stating the fix. We therefore inspected every cause chain with a cause that states a condition on a line the developer patch edits or a value that only the lines the patch adds contain. Four cause chains contain such a cause, and in none of them does the cause state the fix, that is, the new behavior that the patch introduces.

rq1: Effectiveness

Table 4 contrasts every agent with and without the cause-chain diagnosis. With either model, every one of the five agents resolves more instances when it receives the diagnosis. All ten differences are significant (p<0.05p < 0.05 after Bonferroni correction), as are the totals over all agents. The gains far outnumber the losses. Over all agents, the diagnosis lets an agent resolve 371 (Claude Haiku 4.5) and 387 (Qwen3.5) instances that it does not resolve without it. It costs an agent only 35 and 13 instances that it resolves without it. For every instance an agent loses with the diagnosis, it thus gains about 11 (Claude Haiku 4.5) or 30 (Qwen3.5).

ModelAgentBaselineFORECASTΔΔ95% CIGainedLost
Haiku 4.5Mini-SWE-Agent168 (56.0%)201 (67.0%)+11.0+20%[+6.7, +15.7]4310
SWE-Agent160 (53.3%)214 (71.3%)+18.0+34%[+13.0, +23.0]617
AutoCodeRover179 (59.7%)210 (70.0%)+10.3+17%[+6.0, +15.0]409
RepairAgent133 (44.3%)268 (89.3%)+45.0+102%[+39.3, +50.7]1361
Agentless87 (29.0%)170 (56.7%)+27.7+95%[+22.0, +33.7]918
All agents727 (48.5%)1,063 (70.9%)+22.4+46%[+19.6, +25.2]37135
Qwen3.5 27BMini-SWE-Agent121 (40.3%)196 (65.3%)+25.0+62%[+20.0, +30.0]783
SWE-Agent69 (23.0%)163 (54.3%)+31.3+136%[+26.0, +36.7]951
AutoCodeRover133 (44.3%)193 (64.3%)+20.0+45%[+15.3, +24.7]622
RepairAgent50 (16.7%)170 (56.7%)+40.0+240%[+34.3, +45.7]1211
Agentless95 (31.7%)120 (40.0%)+8.3+26%[+4.7, +12.3]316
All agents468 (31.2%)842 (56.1%)+24.9+80%[+22.3, +27.5]38713

Table 4. Resolved instances of SWE-bench Lite (n=300n = 300) per agent and model, without (Baseline) and with (FORECAST) the diagnosis. Δ: change in percentage points relative to the baseline, with the 95% bootstrap confidence interval of the former. Gained and Lost: instances only the FORECAST mode or only the baseline resolves. Underlined changes are significant (p<0.05p < 0.05).

Lost Instances. To see why an agent fails to repair an instance with the cause-chain diagnosis, we inspected all 48 such runs, 35 with Claude Haiku 4.5 and 13 with Qwen3.5. In 15 of them, the agent fixes only part of the problem, for instance, one of two affected methods, and in 13, it produces no patch. In 8, it changes the right place in the wrong way, and in 7, it changes another place than the developer patch. Three runs fail only on a flaky test that the patch does not touch. In 28 of the 48 runs, the cause chain names a file the developer patch changes. This is about as often as for all instances (55%), so the losses are not concentrated on cause chains that point elsewhere.

Test Access. The cause-chain diagnosis is derived from the developer’s failing and passing tests, which SWE-agent, mini-SWE-agent, and Agentless never see. Their gains could therefore merely reflect information from tests rather than the value of the cause chain. We include RepairAgent and Agentless to control for this (§ 7.1). In both modes, RepairAgent runs exactly the developer’s tests as often as its budget allows. It is also told which methods spectrum-based fault localization over the same executions ranks highest. Still, RepairAgent gains most of all agents, 45.0 percentage points with Claude Haiku 4.5 and 40.0 with Qwen3.5, and loses a single instance with each model. AutoCodeRover also validates its patches against these tests and receives the same fault localization, and it gains 10.3 and 20.0 percentage points. For both agents, these tests also decide whether an instance is resolved. Their absolute rates are therefore not comparable to those of the other agents, although this holds for both of their modes alike. Without the diagnosis, RepairAgent finds a fix that passes the tests within its budget of 40 commands for 133 and 50 instances. With the diagnosis, it finds one for 270 and 172 instances, of which the official evaluation confirms 268 and 170. Its gain could thus partly reflect that the diagnosis lets it reach a passing fix within its budget. Without the diagnosis, however, it finds most of its fixes early, after a median of 12 (Claude Haiku 4.5) and 9 (Qwen3.5) of its 40 commands. Only 15 of 133 and 6 of 50 fixes come after the 30th command, so a larger budget would likely add few fixes. Without RepairAgent, the share of resolved instances over the other four agents rises from 49.5% to 66.3% with Claude Haiku 4.5 and from 34.8% to 56.0% with Qwen3.5. Without both RepairAgent and AutoCodeRover, it rises from 46.1% to 65.0% and from 31.7% to 53.2%, each significantly (sign test, p<0.05p < 0.05). Agentless has no developer test, but in both modes, it generates a test that reproduces the issue and runs it on every candidate patch. It thus controls for having a reproduction test, although the diagnosis may also improve the tests it generates. Agentless still gains 27.7 and 8.3 percentage points. The most direct control is the test-output variant, which gives mini-SWE-agent the failing tests and their output instead of the cause chain. It recovers only 40% of the gain (§ 7.4). The benefit thus does not stem from access to tests alone.

Localization. The cause-chain diagnosis also helps where it does not point to the code the developer fixed. Over all agents, the instances whose cause chain names a file the developer patched (166, § 7.2) gain 23.7 (Claude Haiku 4.5) and 26.6 (Qwen3.5) percentage points. The remaining 134 instances gain 20.7 and 22.8 percentage points. A cause chain thus helps even when none of its causes lie in the file that needs to change. We attribute this to what the chain conveys besides locations. It shows which code the failing test exercises, where its execution departs from the passing ones, and which values and branches differ. That narrows down where to look and what to look for, even when the fault-triggering code itself lies elsewhere along the way. Consistently, the agents need fewer tokens per resolved instance with the diagnosis in nine of the ten configurations (§ 7.6).

Agentless. The gain of Agentless depends strongly on the model. With Claude Haiku 4.5, it gains 27.7 percentage points, the second largest gain with this model, but with Qwen3.5, it gains only 8.3, the smallest of all. Some instances end with an internal error in at least one of its configurations. On the others (286 with Claude Haiku 4.5 and 292 with Qwen3.5), it resolves 85 without and 170 with the cause-chain diagnosis, and 95 and 120, and both differences are significant (p<0.05p < 0.05). Its fixed pipeline localizes from the repository structure and samples its patches in a single pass. We suspect that this leaves the weaker model little room to follow the diagnosis once a step has gone astray.

Success Rate. Over all five agents, the cause-chain diagnosis raises the share of resolved repair attempts from 48.5% to 70.9% with Claude Haiku 4.5 (+22.4 percentage points, +46% relative). With Qwen3.5, it raises the share from 31.2% to 56.1% (+24.9 percentage points, +80% relative, Table 4). Per agent, the absolute gains range from 8.3 to 45.0 percentage points, and the relative ones from 17% to 240%.

Weaker Model, Larger Gains. The cause-chain diagnosis helps the weaker model more. Qwen3.5 gains more than Claude Haiku 4.5 with three of the five agents, and relatively more with four. The diagnosis more than compensates for the weaker model. Four of the five agents resolve clearly more instances with Qwen3.5 and the diagnosis than with Claude Haiku 4.5 alone. These are mini-SWE-agent (65.3% against 56.0%), AutoCodeRover (64.3% against 59.7%), RepairAgent (56.7% against 44.3%), and Agentless (40.0% against 29.0%). SWE-agent resolves about as many (54.3% against 53.3%), a difference within the variation between repeated runs. Over all agents, Qwen3.5 with the diagnosis (56.1%) surpasses Claude Haiku 4.5 without it (48.5%), and it does so without RepairAgent as well (56.0% against 49.5%). A locally served open-weight model with FORECAST thus may repair more than a commercial model without it.

Agents. The cause-chain diagnosis also reorders the agents. Without the diagnosis, RepairAgent resolves fewer instances than the other autonomous agents. With it and Claude Haiku 4.5, RepairAgent becomes the most effective of all agents, resolving 89.3% of the instances. Its loop alternates between hypotheses about the bug and test runs that check them. This loop may be particularly suited to a diagnosis that supplies such hypotheses. SWE-agent with Qwen3.5 more than doubles its rate, from 23.0% to 54.3%. That agent, however, rarely ends a run by itself with Qwen3.5. In FORECAST mode, 254 of its 300 runs (against 223 in the baseline) end at the budget of about three million tokens. SWE-agent then submits the changes made so far. With the diagnosis, 129 of these submissions resolve the instance, against 10 in the baseline. In these runs, the agent made a resolving change before the budget ran out but did not end the run.

Instances. With Claude Haiku 4.5, at least one of the five agents resolves 226 instances (75.3%) without and 283 (94.3%) with the cause-chain diagnosis. With Qwen3.5, at least one agent resolves 180 (60.0%) and 248 (82.7%). With the diagnosis, the agents resolve 57 (Claude Haiku 4.5) and 70 (Qwen3.5) instances that no agent resolves without it. Conversely, there are no such instances with Claude Haiku 4.5 and two with Qwen3.5. The gains are not confined to some projects either. Across all agents, the diagnosis raises the resolution rate in each of the 12 projects with Claude Haiku 4.5, and in 11 with Qwen3.5, where the three Flask instances stay unchanged (Table 3).

Repeated Runs. In the main experiment, each configuration ran once per instance. We therefore examine how much a second and a third run differ from the first, and whether the gain of the cause-chain diagnosis persists in each of them (§ 7.1). Table 5 lists the resolved instances of every run. Runs of the same agent and mode differ by at most 7 resolved instances. Over all agents and averaged over its three runs, Qwen3.5 resolves 31.1% of the instances without the diagnosis and 56.8% with it, against 31.2% and 56.1% in the main experiment. With Claude Haiku 4.5, the repeated FORECAST mode resolves 71.5% of the instances over all agents, against 70.9% in the main experiment. In all 55 comparisons, the FORECAST run resolves significantly more instances than the baseline run of the same agent (p<0.05p < 0.05 after Bonferroni correction). The gains range from 23 instances (Agentless with Qwen3.5) to 137 (RepairAgent with Claude Haiku 4.5). Two runs of the same mode nonetheless disagree on individual instances. With Qwen3.5, two such runs of an agent disagree on 16 to 73 instances, and with Claude Haiku 4.5 on 12 to 29. In the FORECAST mode with Qwen3.5, for instance, they disagree on up to 73 instances with mini-SWE-agent and 52 with RepairAgent. With Claude Haiku 4.5, the gains rest on a single baseline run.

ModelAgentBaseline 1Baseline 2Baseline 3Baseline MeanFORECAST 1FORECAST 2FORECAST 3FORECAST MeanGain Min.Gain Max.
Haiku 4.5mini-SWE-agent168168.0201202201.5+33+34
SWE-agent160160.0214217215.5+54+57
AutoCodeRover179179.0210212211.0+31+33
RepairAgent133133.0268270269.0+135+137
Agentless8787.0170171170.5+83+84
Qwen3.5 27Bmini-SWE-agent121119114118.0196198201198.3+75+87
SWE-agent69727371.3163167168166.0+90+99
AutoCodeRover133130133132.0193196192193.7+59+66
RepairAgent50495651.7170175174173.0+114+126
Agentless95909794.0120122122121.3+23+32

Table 5. Resolved instances in every run of an agent and mode, the main experiment as run 1, and their mean. The smallest and largest gains, in instances, over every pair of a FORECAST and a baseline run of the agent are underlined, where the gain is significant for every pair (p<0.05p < 0.05).

RQ1: Every agent resolves significantly more issues with the cause-chain diagnosis, in every run

With either model, all five agents repair significantly more instances of SWE-bench Lite with the cause-chain diagnosis than without it. The share of resolved instances rises from 48.5% to 70.9% with Claude Haiku 4.5 and from 31.2% to 56.1% with Qwen3.5, and without RepairAgent from 49.5% to 66.3% and from 34.8% to 56.0%. For each instance the agents lose with the diagnosis, they gain about 11 (Claude Haiku 4.5) and 30 (Qwen3.5). The gain is significant between every FORECAST run and every baseline run of each agent in our repetitions. The benefit persists for agents that already run the very tests the diagnosis is derived from, and for cause chains that do not point at the fixed file. With the diagnosis, the open-weight model repairs more than the commercial model without it.

Diagnosis Components

With the variants of Table 2, we examine which parts of the cause-chain diagnosis the agents benefit from. Table 6 compares each variant with the three runs of the FORECAST mode of the agent (§ 7.3).

VariantMINI-SWE-AGENT ResolvedΔ\DeltaREPAIRAGENT ResolvedΔ\Delta
Baseline118.051.7
FORECAST198.3173.0
Foreign119−79.354−119.0
Unordered150−48.396−77.0
Locations125−73.366−107.0
No divergences192−6.3160−13.0
Atoms186−12.3169−4.0
Test output150−48.3
SBFL126−72.3
Chain and test output234+35.7
Wording197−1.3169−4.0
k=5k = 5195−3.3172−1.0
k=20k = 20198−0.3168−5.0
t=0.4t = 0.4199+0.7167−6.0
t=0.8t = 0.8194−4.3173±0.0\pm0.0

Table 6. Resolved instances with each variant of the diagnosis (Qwen3.5, n=300n = 300), and the change against the mean of the three FORECAST runs of the agent (Table 5). Baseline and FORECAST give the mean over their three runs. Underlined changes are significant against each of the three FORECAST runs (p<0.05p < 0.05). Instances where a variant does not change keep the outcome of the FORECAST mode of the main experiment.

Content. Foreign, Unordered, and Locations resolve significantly fewer instances than each FORECAST run with both agents. With the cause chain of another instance of the same project, mini-SWE-agent resolves 119 instances and RepairAgent 54. This is about as many as the 118.0 and 51.7 of their baseline runs on average, and neither differs significantly from any of these runs (p≥0.05p \ge0.05). A completely wrong diagnosis thus causes no detectable harm. The agents gain nothing from it, but they also do not resolve fewer instances than without any diagnosis. The same causes in a random order and without LEADS TO keep 40% of the gain with mini-SWE-agent and 37% with RepairAgent. The locations of the causes alone keep 9% and 12%. The prompts with a foreign cause chain are as long as those with the instance’s own cause chain (a median of 2,305 against 2,289 characters). Those with the locations alone are shorter (1,892), so the length of the prompt alone does not explain these losses.

Information Available without FORECAST. The failing tests and their output let mini-SWE-agent resolve 150 instances, 40% of the gain of the cause chain. The ranking of spectrum-based fault localization lets it resolve 126 (10%). Both resolve significantly fewer than each run with the cause chain. The test output is the most direct control for the information the cause-chain diagnosis draws from the developer’s tests. The cause chain followed by the test output lets mini-SWE-agent resolve 234 instances. This is 35.7 more than the cause chain alone on average and significantly more than each FORECAST run.

Kinds of Causes, Wording, and Parameters. The remaining variants differ from the mean of the FORECAST runs by at most 13 instances, and none differs significantly from any FORECAST run. Without divergences, MINI-SWE-AGENT resolves 6.3 and REPAIRAGENT 13.0 fewer instances on average, and without conjunctions and disjunctions 12.3 and 4.0 fewer. On the 147 instances whose cause chain contains a divergence, MINI-SWE-AGENT resolves 94 without divergences against 98 to 102 in the FORECAST runs, and REPAIRAGENT 71 against 81 to 85. On the 125 instances whose cause chain contains a conjunction or disjunction, the agents resolve 74 against 81 to 84 and 67 against 68 to 69 without them. On these affected instances alone, no difference is significant either (paired McNemar tests against each FORECAST run, Bonferroni over 12 tests for two agents, two variants, and three runs). Still, REPAIRAGENT without divergences resolves 10 to 14 fewer, a drop that is not negligible. The experiment thus cannot resolve effects of this size. It detects no effect of divergences and combinations, which does not show that they have none. The neutral wording changes the number of resolved instances by 1.3 and 4.0 on average, and the other parameters of the simplification by at most 6.

Discussion. The variants thus support three properties of the cause-chain diagnosis. It is specific to the failure at hand (Foreign). It states the conditions, values, and data flows of its causes rather than only their locations (Locations). It presents its causes in the order of execution (Unordered). Unordered also drops the numbering and LEADS TO. Wording, however, keeps the order, replaces LEADS TO by THEN, and performs the same, so the loss stems from the order, not from the connector. The order of the observations from the start of the test to the failure thus matters empirically. This supports presenting them as a chain that leads to the failure, although it does not establish that each of them causes the next. The further capabilities of FORECAST, namely divergences, combinations of features, and the parameters of the simplification, make a cause-chain diagnosis more complete and more expressive. Our experiments do not show, however, that they contribute to repair success on their own. An unrelated diagnosis causes no detectable harm, whereas the effect of a related but misleading one remains untested.

RQ2: The benefit stems from what the cause chain says about the failure at hand

With the cause chain of another instance, the agents resolve about as many instances as without any diagnosis, so an unrelated diagnosis neither helps nor causes detectable harm. With the causes unordered or reduced to their locations, the agents lose most of the gain. With MINI-SWE-AGENT, neither the failing tests’ output nor a ranking of suspicious methods matches the cause chain. Together with the test output, however, the cause chain lets mini-SWE-agent resolve 35.7 more instances on average. Omitting divergences or combinations, wording the cause chain neutrally, or varying its parameters has no detectable effect.

Fix Quality

Table 7 characterizes the patches the agents produce.

ModelAgentModePatchesAppliedNew filesChanged lines: All patchesChanged lines: Both
Haiku 4.5mini-SWE-agentBaseline299100%07 (4–15)6
Haiku 4.5mini-SWE-agentFORECAST293100%06 (4–12)5
Haiku 4.5SWE-agentBaseline294100%129 (4–21)7
Haiku 4.5SWE-agentFORECAST296100%48 (4–15)6
Haiku 4.5AutoCodeRoverBaseline293100%06 (3–10)5
Haiku 4.5AutoCodeRoverFORECAST269100%05 (3–8)4
Haiku 4.5RepairAgentBaseline133100%04 (2–8)4
Haiku 4.5RepairAgentFORECAST270100%06 (3–10)4
Haiku 4.5AgentlessBaseline191100%05 (2–8)4
Haiku 4.5AgentlessFORECAST280100%06 (3–10)4
Qwen3.5 27Bmini-SWE-agentBaseline21797.2%06 (2–16)6
Qwen3.5 27Bmini-SWE-agentFORECAST284100%37 (4–11)6
Qwen3.5 27BSWE-agentBaseline110100%154 (2–7)4
Qwen3.5 27BSWE-agentFORECAST282100%2068 (3–19)6
Qwen3.5 27BAutoCodeRoverBaseline29399.7%06 (3–10)5
Qwen3.5 27BAutoCodeRoverFORECAST284100%05 (3–10)4
Qwen3.5 27BRepairAgentBaseline50100%02 (2–5)2
Qwen3.5 27BRepairAgentFORECAST172100%03 (2–5)3
Qwen3.5 27BAgentlessBaseline286100%04 (2–7)4
Qwen3.5 27BAgentlessFORECAST290100%04 (2–8)4

Table 7. Generated patches. Patches: runs that end with a non-empty patch. Applied: share of these that apply cleanly. New files: patches that also add files the agent created for itself. Changed lines: added plus removed lines in existing files, median (first–third quartile), over all patches and over the instances both modes resolve (Both).

Applicability. Applicability hardly differs between the modes. Every patch of every agent applies cleanly, except for six patches of mini-SWE-agent and one of AutoCodeRover with Qwen3.5, all in the baseline. All five agents derive their patches from edits they have already applied to a working copy, or check that they apply. A patch that does not apply is therefore rare in either mode. What differs is whether an agent produces a patch at all. RepairAgent only reports a fix that passes its tests. With the cause-chain diagnosis, it produces a patch twice (Claude Haiku 4.5) and more than three times (Qwen3.5) as often. Qwen3.5 with SWE-agent produces 282 instead of 110 patches, and with mini-SWE-agent 284 instead of 217. AutoCodeRover is the only agent that produces fewer patches with the diagnosis (269 against 293 with Claude Haiku 4.5, 284 against 293 with Qwen3.5), yet more of them are correct. With Claude Haiku 4.5, 78% of its patches resolve the instance with the diagnosis, against 61% without it, and with Qwen3.5, 68% against 45%.

Minimality. The cause-chain diagnosis does not make the changes to existing code larger. On the instances that both modes resolve, the median patches of the two modes differ by at most two lines for every agent and model. In eight of ten configurations, the median patch with the diagnosis is the same size or smaller. Over all patches, the medians differ by at most four lines, and the median patch modifies a single existing file in every configuration. In some configurations, such as RepairAgent with Claude Haiku 4.5, the median over all patches grows slightly with the diagnosis. These medians include the many instances that only the FORECAST mode resolves, which need not be the easiest ones.

The one notable difference concerns files the agents create for themselves. SWE-agent instructs its model to write a script that reproduces the issue, and before it submits, it asks the model to remove such scripts again. With Qwen3.5 in FORECAST mode, 206 of 282 patches still carry such files, namely test and debugging scripts and, in some cases, a summary of the fix. These runs ended at their budget, where SWE-agent submits the current changes without that review (§ 7.3). The files touch no existing code and do not affect the verdict. A developer would still have to remove them, however, so they are a genuine cost of this configuration. Counting them, the median patch of this configuration grows from 8 to 139 changed lines. For all other configurations, new files are rare in both modes.

Semantic Correctness. A patch that resolves an instance passes the tests of SWE-bench Lite, but it may still miss what the developers intended. We therefore examined two configurations, mini-SWE-agent with Qwen3.5 and RepairAgent with Claude Haiku 4.5, which resolve the most instances. For each, we drew 50 of the instances that the FORECAST mode resolves, uniformly at random with a fixed seed, and compared each patch with the developer patch. One author judged every patch, not blind to the mode but with the same criteria in both modes. The leakage inspection of § 7.2 followed the same protocol. With mini-SWE-agent, 43 of the 50 patches are semantically correct; that is, they behave as the developer patch does. The other 7 are plausible, passing the tests but missing part of the intent. With RepairAgent, 45 are correct and 5 plausible, and in neither sample is a patch unrelated to the issue. The baseline also resolves 30 and 26 of the sampled instances. On these, the FORECAST mode yields 24 correct patches with either agent, and the baseline 25 and 22. Of the patches for instances that only the FORECAST mode resolves, 19 of 20 and 21 of 24 are correct. We also inspected the cause chains of the same samples by hand. In 16 and 12 instances, the cause chain contains a cause on the way to the fault. In another 9 instances each, it contains a cause in a file the developer patched, but away from the changed code. About half of the sampled cause chains thus contain no cause near the fault, and yet the agents gain throughout. The cause chain therefore does not help by pointing at the cause. It helps by conveying which code the failing test exercises, where it runs depart from the passing ones, and which values and branches differ (§ 7.3).

RQ3: The cause-chain diagnosis does not enlarge changes to existing code

With the cause-chain diagnosis, patches apply as reliably as without it, change as few lines of existing code, and modify a single file in the median. At the same time, agents produce a patch more often, and their patches more often resolve the issue. The exception is SWE-agent with Qwen3.5, whose patches more often carry scripts it created for itself when its runs end at the budget. In two samples of 50 resolved instances, 43 and 45 patches are semantically correct, and none is unrelated to the issue.

RQ4: Efficiency

We weigh the cost of computing a cause-chain diagnosis (Figure 5) against its effect on the tokens, cost, and time of the repair (Table 8 and Figure 6).

ModelAgentTokens / run BaseTokens / run FORECASTTokens / resolved BaseTokens / resolved FORECASTCost BaseCost FORECASTCost / resolved BaseCost / resolved FORECAST
Haiku 4.5MINI-SWE-AGENT1.54M0.78M2.75M1.17M$85.64 | $48.57$0.51 | $0.24
SWE-AGENT3.16M1.74M5.93M2.44M$184.30 | $100.54$1.15 | $0.47
AUTOCODEROVER0.46M0.25M0.77M0.36M$183.75 | $112.82$1.03 | $0.54
REPAIRAGENT0.21M0.15M0.48M0.17M$74.05 | $65.01$0.56 | $0.24
AGENTLESS0.19M0.35M0.64M0.61M$93.67 | $197.51$1.08 | $1.16
All agents1.11M0.66M2.30M0.92M$621.41 | $524.45$0.85 | $0.49
QWEN3.5 27BMINI-SWE-AGENT2.00M0.62M4.96M0.95M––––
SWE-AGENT2.19M2.84M9.52M5.24M––––
AUTOCODEROVER0.22M0.39M0.51M0.60M––––
REPAIRAGENT0.17M0.18M1.04M0.32M––––
AGENTLESS0.17M0.21M0.54M0.52M––––
All agents0.95M0.85M3.05M1.51M––––

Table 8. LLM tokens and cost of the repair, per agent and model, without (Base) and with (FORECAST) the diagnosis. Columns give the mean tokens per run, tokens per resolved instance, and, for Claude Haiku 4.5, the cost at Anthropic’s list prices in total and per resolved instance. Qwen3.5 runs locally and costs nothing per token.

Figure 5. Wall-clock time to compute a diagnosis per instance, per step (collection includes instrumentation) and in total. Summed over all 300 instances, the steps take 83.6, 242.8, 4.3, and 330.7 hours.

Figure 6. Repair time per run (logarithmic scale), per model and agent, without (Baseline) and with (FORECAST) the diagnosis, excluding the time to compute the diagnosis. Boxes span the first to third quartile, with the median as a line and the mean as a yellow circle. Whiskers reach 1.5 times the interquartile range. ACR: AutoCodeRover.

Cost of the Diagnosis. Computing a cause-chain diagnosis requires no LLM call. It takes a median of 40 minutes of wall-clock time per instance (a mean of 66 minutes), and less than an hour for 191 of the 300 instances. The time varies strongly with the project. The median is below ten minutes for six projects, but 76 minutes for SymPy and 108 minutes for Matplotlib. For 21 instances, it takes more than three hours, up to 10.9 hours for the slowest one. Tracing the tests accounts for a quarter of the total time. Three quarters go to building the traced relevance tree, which merges all observations of all runs. Inferring the cause chain from the finished tree takes a median of 21 seconds. Tree construction is thus the obvious target for optimization. In our evaluation, it ran in a single process per instance on servers shared with other workloads, although passing runs can be folded in in parallel (§ 6).

For a single repair attempt, computing the diagnosis takes longer than the repair itself for all agents but Agentless, whose runs take about 50 minutes on average (Figure 6). A cause-chain diagnosis, however, depends only on the failure, not on the agent or the model. In our evaluation, each diagnosis served ten configurations. In practice, it can serve any number of repair attempts, agents, or models, as well as the developer. Moreover, computing it costs machine time, not developer time, and it can start as soon as a failing test exists, before any repair.

Cost of the Repair. On the LLM side, the cause-chain diagnosis makes most repairs cheaper (Table 8). With Claude Haiku 4.5, MINI-SWE-AGENT, SWE-AGENT, and AUTOCODEROVER need about half as many tokens per run, and REPAIRAGENT needs more than a quarter less. MINI-SWE-AGENT and SWE-AGENT also finish their runs in 40 to 45% less time (Figure 6). Over all agents, the tokens per resolved instance fall by 60%, from 2.3 to 0.9 million. The LLM cost falls from $621 to $524 (−16%). Since the agents resolve more, the cost per resolved instance falls from $0.85 to $0.49 (−42%). The only exception, AGENTLESS, nearly doubles its tokens per run. With QWEN3.5, MINI-SWE-AGENT needs less than a third of the tokens per run and a fifth per resolved instance. SWE-AGENT, in contrast, exhausts its budget in most runs in both modes, and in more runs with the diagnosis (254 against 223, § 7.3), so that it spends more. AutoCodeRover, too, spends more tokens with the diagnosis with Qwen3.5 (0.39 against 0.22 million per run on average), although fewer with Claude Haiku 4.5. Over all agents, Qwen3.5 consumes 11% fewer tokens with the diagnosis, and the tokens per resolved instance halve, from 3.1 to 1.5 million.

Amortization. A cause-chain diagnosis is computed once per failure and serves every repair attempt for it. In our main experiment alone, each diagnosis served the ten configurations of five agents and two models. For these ten, the median of 40 minutes amounts to about 4 minutes per configuration, against the full 40 minutes for a single repair attempt.

RQ4: The cause-chain diagnosis costs machine time but saves LLM tokens. A cause-chain diagnosis costs a median of 40 minutes of machine time per failure, mostly for building the traced relevance tree, but no LLM tokens. Any number of repair attempts can reuse it. In return, the tokens per resolved instance fall in nine of ten configurations, over all agents, by 60% with Claude Haiku 4.5 and 50% with Qwen3.5. With Claude Haiku 4.5, the cost per resolved instance falls by 42%. Whether these savings outweigh the machine time depends on how often a diagnosis is reused and on the price of computation.

Threats to Validity

Internal Validity

Bounded Tracing. FORECAST does not observe an execution in full. It records a bounded prefix of large values, at most two iterations of any loop, and at most a fixed amount of trace per run (§ 6). We chose the first two bounds so that the features we analyze are unaffected. Value predicates are coarse, lengths are observed exactly, and loop features distinguish only never, once, and more than once. The size budget, however, is a genuine loss. A run that exceeds it is analyzed only up to that point, so a cause that manifests very late in a long execution can be missed. This can only cost us causes, never invent them, so it works against FORECAST rather than in its favor.

Warmed Environments. We perform each subject’s one-time initialization before instrumenting it (§ 6). The traced runs therefore no longer execute that initialization, and FORECAST cannot observe it. A fault that manifests only while a project sets itself up, for instance while it builds a cache, would be invisible to us, and the runs we compare would agree on it trivially. We consider this an acceptable trade. The alternative is to record the same initialization once per test, which in our subjects dominated both the size of the traces and the time to collect them. Some subjects would then have been infeasible to evaluate at all. As with the size budget, the effect is to withhold evidence from FORECAST, not to supply it with any.

Test Selection. We do not trace every passing test, only those that execute code the failing tests also execute (§ 6). FORECAST compares executions only at functions that both a passing and a failing run reach. Tests that share no code with the failing ones therefore cannot contribute to a cause-chain diagnosis, and dropping them cannot change the cause chains. For instances with many passing tests, however, we also cap the number of tests whose coverage we measure (200) and that we trace (120, § 7.1). The tests beyond these caps may share code with the failing ones, and their absence can change a cause chain. Moreover, the selection relies on coverage measured once, and flaky or environment-dependent tests could be classified differently on another run. The selection never consults the developer patch.

Data Contamination. The repositories and fixes of SWE-bench are public, and both models may have seen them during training. This affects both modes of an agent alike and may raise their absolute resolution rates. It does not explain, however, why the same agent with the same model resolves more with the cause-chain diagnosis than without it. We cannot rule out that a cause chain pointing into familiar code helps a model recall a fix it has seen. This would make the gains on a public benchmark larger than on unseen issues.

External Validity

Subjects. We evaluate on the 300 issues of SWE-bench Lite, which come from 12 Python projects, with five agents and two models. Issues from other projects, issues that require changes across many files, other programming languages, and other models may benefit more or less from a cause-chain diagnosis. The agents, however, differ widely in their designs, from fixed pipelines to autonomous loops, and the models differ in size and origin. Every agent resolves significantly more issues with the diagnosis, with both models. SWE-bench Lite shares 93 instances with the human-validated SWE-bench Verified. On these, the share of resolved instances over all agents rises from 65.8% to 86.7% with Claude Haiku 4.5 and from 45.2% to 73.3% with Qwen3.5. Since these are the same public instances, this speaks to the quality of the issue specifications, not to data contamination. Both models run without thinking, and models that reason before they answer may benefit more or less from a cause-chain diagnosis. The variants of the diagnosis ran only with Qwen3.5 and two agents, and their results may differ for other agents and models.

Agent Fidelity. Two of our agents are not their authors’ code. AutoCodeRover is completely re-implemented from its paper, and RepairAgent is ported from Java to Python. Both follow their papers’ designs and parameters. Differences in prompts and tool behavior may still make them more or less effective than the originals, so their absolute resolution rates should not be compared with published ones. This does not affect our comparison, which is between the two modes of the same implementation. SWE-Agent, mini-SWE-agent, and Agentless run unmodified, apart from Agentless’s file retrieval, which we omit in both modes, and its larger answer length.

Availability of Failing Tests. FORECAST derives its cause-chain diagnosis from failing and passing tests. In our evaluation, the failing tests are the developer tests of SWE-bench Lite. SWE-agent, mini-SWE-agent, and Agentless do not see them, so in the FORECAST mode, the diagnosis is the only information they receive that stems from these tests. RepairAgent and AutoCodeRover run these tests in both modes. The test-output variant shows the failing tests and their output instead of the cause chain. Both show that access to these tests does not explain the benefit (§ 7.3 and 7.4). In practice, FORECAST requires a test that reproduces the failure. Where an issue comes without one, such a test has to be written first, by a developer or by a technique that generates it from the issue [29, 52]. Generating such tests is a research problem of its own. Evaluating diagnoses derived from generated tests is beyond the scope of this paper, which takes the reproducing test as given.

Construct Validity

Cost Accounting. We report costs only for Claude Haiku 4.5, at Anthropic’s list prices. Qwen3.5, which we serve locally, costs no fee per token, and we compare it by tokens. The budgets of SWE-agent and mini-SWE-agent, however, are defined in dollars. For Qwen3.5, they therefore count its tokens at Claude Haiku 4.5’s prices without prompt caching. These budgets thus bind after fewer tokens with Qwen3.5 than with Claude Haiku 4.5. This shapes the behavior of SWE-agent with Qwen3.5 (§ 7.3), in both modes alike. We measured the time to compute a cause-chain diagnosis on servers shared with other workloads, and it may be lower on dedicated hardware.

Resolution. We count an instance as resolved when the agent’s patch makes the failing tests of SWE-bench Lite pass and keeps the passing ones passing, as SWE-bench does. A patch that passes these tests can still differ from what the developers intended, and a patch that fails them can still be a reasonable fix. This affects both modes of an agent alike, and Section 7.5 shows that the cause-chain diagnosis does not change the size or the applicability of the patches. For two samples of 50 resolved instances, we compared the patches with the developer patches by hand and found most of them semantically correct (Section 7.5), but we did not inspect every patch. A single, unblinded author judged them so that the judgments may be biased, and the small samples allow counts, not precise rates.

Wording of the Diagnosis. The block presents the cause chain as a cause-effect chain and joins its causes by LEADS TO (§ 5). Only its causes are verified empirically, however, as observations that separate the runs. That one cause brings about the next is not verified. An agent may therefore trust a cause more than its evidence warrants. Our main results measure the effect of the cause-chain diagnosis as worded. The wording variant of § 7.4 presents the same chain in neutral terms, as observations joined by THEN. It changes the number of resolved instances by at most 4 on average, not significantly, whereas presenting the causes out of order loses most of the gain. We therefore keep the term cause chain for a representation whose order matters, not as a claim that each of its causes brings about the next. The agents also see the discriminability of every cause, which may likewise invite more trust than it warrants. It reaches 1.00 in 91% of the cause chains, often because a single failing test makes a perfect separation easy.

Conclusion Validity

Nondeterminism. LLM-based agents are nondeterministic. Some of them sample at a positive temperature, and even greedy decoding can vary with batching on the serving side. The main experiment runs every configuration once per instance so that an individual instance may be resolved or not by chance. The McNemar test compares the paired outcomes of the two modes. It treats each outcome as fixed, however, and thus does not quantify how much a repeated run would differ. We therefore repeat both modes of every agent twice with Qwen3.5, and the FORECAST mode once with Claude Haiku 4.5 (§ 7.3). With Claude Haiku 4.5, the gains still rest on a single baseline run. Each of the ten comparisons, however, is significant on its own after Bonferroni correction (p<0.05p < 0.05). Since all agents work on the same instances, their outcomes for an instance are not independent. We therefore test the totals over all agents with a sign test over the instances, and they are significant with both models. Each variant of the diagnosis ran once, and we compare it with each of the three runs of the FORECAST mode. Its difference to the FORECAST mode can thus be judged against the variation between these runs.

Related Work

Test-based Program Repair. Automated program repair generates patches that make the failing tests of a program pass while keeping the passing ones passing [35, 50]. GenProg evolves such patches by genetic programming from code that already exists in the program [34, 82]. SPR explores a staged search space of transformations and synthesizes the conditions they need [42]. Prophet ranks the candidate patches by a model of correct code that it learns from past fixes [43]. SemFix and Angelix instead derive the constraints a fix has to satisfy by symbolic execution and synthesize code that satisfies them [49, 53]. Getafix learns fix patterns from the fixes developers made before [8], and neural approaches such as CoCoNuT translate buggy code into fixed code [47, 95]. For Python, FixKit makes several of these techniques available under a common interface [73]. A patch that passes the tests is not necessarily correct, however. Tests specify the intended behavior only partially, and many plausible patches overfit to them [60, 66]. These techniques all start from fault localization, and how well they repair depends on how well it localizes [59]. FORECAST gives a repair technique more than a location, namely an account of how the failing run departs from the passing ones.

LLM-based Program Repair. Large language models have shifted automated program repair from templates and search to the generation of patches [88, 89] and to conversational repair that feeds test results back to the model [90]. On repository-level benchmarks such as SWE-bench [22, 55], repair is mostly performed by agents. SWE-agent [92] and mini-SWE-agent [77] let the model act on the repository through an agent-computer interface or a plain shell, and OpenHands [78] provides a general platform for such agents. AutoCodeRover [97] retrieves context through code search and spectrum-based fault localization, and SpecRover [64] additionally infers the intended behavior to guide and review its patches. RepairAgent [9] drives the repair through hypotheses and test runs. Agentless [87] shows that a fixed pipeline of localization, repair, and validation can compete with autonomous agents. Other work trains models for this task [81], studies how agents proceed [10], or examines whether the issues they resolve are really solved [79]. FORECAST proposes no new agent and instead improves the input of existing ones, for all five agents we evaluate.

Fault Localization. Spectrum-based fault localization ranks program elements by how strongly their execution correlates with failing tests [2, 3, 23, 86], using formulas such as Ochiai [1] and DStar [85]. It builds on the observation that differences in program spectra correlate with the exposure of faults [20]. Mutation-based fault localization instead mutates the program and observes which mutants change the outcome of the failing tests [51, 56]. Later work enriches the spectra with further kinds of program behavior [65, 75], such as the sequences of calls an object receives [14] or the likely invariants that differ between passing and failing runs [7]. Other work learns rankings from many signals [37, 100] or from detailed coverage graphs [45], or it refines the ranking with the outcome of repair attempts [44]. LLMs also localize faults, with or without tests [11, 27, 61, 91]. Results on artificial faults do not carry over to real ones [58]. For Python, spectrum-based techniques have been evaluated on the real faults of BugsInPy [84]. All of these techniques produce a ranking of locations, which repair tools consume as candidate edit locations. Developers, however, profit little from such rankings alone [57], and practitioners expect more than current techniques deliver [31]. A cause-chain diagnosis of FORECAST instead tells how the failing execution differs from the passing ones. In our evaluation, it helps agents even when it names no file the developer changed (§ 7.3). This includes AutoCodeRover and RepairAgent, which receive a spectrum-based ranking both with and without the diagnosis.

Slicing and Propagation. Program slicing reduces a program to the statements that can influence a value at a given point [83], and dynamic slicing does so for a single execution [33]. A slice of the failing output contains the fault but is often large, and its effectiveness has been compared empirically with that of spectrum-based techniques [76]. Other work follows how an infected program state propagates along the control flow towards the failure [98]. A cause chain of FORECAST also follows the failure along the execution, but keeps only the steps in which the failing run differs from the passing ones and states how it differs.

Explaining Failures. Model-based diagnosis explains the misbehavior of a system by the components whose failure is consistent with the observations [62]. Statistical debugging identifies the predicates over branches and return values whose outcome predicts failure [38, 40] and connects them to faulty control-flow paths [21]. Dynamic invariants describe the relations among values that hold in passing runs [17]. Delta debugging isolates failure-inducing inputs [94]. Applied to program states, it isolates the cause-effect chain from the input to the failure [13, 93], but this requires experiments that transplant states between a passing and a failing run. BugEx generates tests that pass and fail close to a given failure and reports the branches and states that correlate with the failure [63]. Hypothesizer helps developers to find and test hypotheses about a failure [5]. Input-centric approaches learn the properties of inputs under which a program fails [16, 26], and they require a specification of the input structure. FORECAST builds on the execution features of our prior work [68, 71]. This work showed that features such as conditions, values, and def-use pairs localize faults better than coverage alone and can also serve as failure oracles [72]. In EFDD, the diagnosis is a decision tree over the features of whole runs. FORECAST instead compares the runs at every call and organizes the features that separate them into a cause chain along the calls of the program, using only the existing tests. Like context-aware statistical debugging [21], it thus connects discriminative predicates along the execution. It does so over a call tree merged from all runs, however, and with features beyond branches and return values. FORECAST also approximates the cause-effect chains from input to failure that we proposed earlier [67], without any experiments on the program state. However, it does not verify that it causes cause one another. We argued that such failure explanations should become a first-class artifact of program repair [69]. FORECAST realizes this idea for repair agents and measures its effect.

Execution Information for LLMs. LLMs reason about program execution unreliably [19, 39], and several approaches therefore supply execution information to them. Self-debugging lets a model explain its code and react to test results [12]. LDB segments a single execution into blocks and lets the model check the intermediate values [99]. NExT and TRACED train models on execution traces [15, 54]. AutoSD lets a model state hypotheses about a bug and test them with a debugger [28], as InspectCoder does interactively [80]. DAIRA gives SWE-AGENT a tracer for the reproduction scripts the agent writes and has the model turn their call traces into structured reports [41]. These approaches expose single executions to the model and leave it to the model to find what is wrong. ContrastRepair pairs a failing test with a similar passing one in the prompt [32], but it contrasts the two tests, not their executions. FORECAST instead contrasts all passing and failing executions it traces and hands the model only the differences, ranked by how sharply they separate the two. Its cause-chain diagnosis is computed without any LLM, so every cause is an observation of the program rather than a narrative the model has invented.

Reproducing Failures. Where an issue comes without a failing test, LLM-based test generation can reproduce it from the issue description [4, 29, 30, 52, 96]. The generated tests can then serve as the failing tests from which FORECAST derives its cause-chain diagnosis. The passing tests that FORECAST contrasts with the failing ones can be generated as well, by search-based test generators such as EvoSuite [18] and, for Python, Pynguin [46]. An LLM can help such generators past coverage plateaus [36]. Whether generated tests serve a diagnosis as well as the developer’s tests do remains open. Fault localization and repair already become less effective with the tests users provide than with those of the developer’s fix [25].

Conclusion and Future Work

Repair agents start from an issue description that tells them what goes wrong, but not how. From the executions of passing and failing tests, it infers a cause chain of execution features that separate the failing from the passing runs. It appends this cause-chain diagnosis to the issue the agent receives, without modifying the agent. On the 300 issues of SWE-bench Lite, the diagnosis lets each of five repair agents of different designs resolve significantly more issues, with both a commercial and an open-weight model. Over all agents, the share of resolved issues rises from 48.5% to 70.9% with Claude Haiku 4.5 and from 31.2% to 56.1% with Qwen3.5. The gains persist across repeated runs, for agents that already run the tests the diagnosis is derived from, and for diagnoses that do not point at the code the developer changed. They vanish when the cause chain is replaced by that of another issue, which causes no detectable harm either. The changes to existing code remain as small as before, and the LLM tokens spent per resolved issue fall by 60% with Claude Haiku 4.5 and 50% with Qwen3.5. With the diagnosis, the open-weight model resolves more issues than the commercial model without it.

These results open several directions for future work:

Issues without failing tests. In practice, an issue often comes without a test that reproduces it. Combining FORECAST with test generation from issue descriptions [29, 52] would make it applicable to such issues. It would also let us study how the quality of generated tests affects the cause-chain diagnosis.

Faster diagnoses. Building the traced relevance tree takes three-quarters of the time to compute a cause-chain diagnosis, and it ran in a single process in our evaluation. Folding in passing runs in parallel and tracing fewer but more informative tests could reduce the median of 40 minutes substantially.

Other languages and benchmarks. Execution features also relate to faults in Java [68]. Porting FORECAST to further languages and evaluating it on further benchmarks would show how far its benefits generalize.

Diagnoses beyond the prompt. A cause chain describes how the failing execution departs from the passing ones, and a correct fix is likely to remove some of these differences. Checking whether a patch does so could validate candidate patches beyond the tests. The same cause-chain diagnosis can also help developers debug by hand.

Data Availability

FORECAST and all evaluation scripts are open source under the Apache 2.0 license. The current version is available at https://github.com/smyth193/forecast, and FORECAST can be installed as a package using pip install forecast-repair. For long-term availability, we have archived the evaluation data, including every diagnosis and run, on Zenodo [70].

Acknowledgments

This research was partially funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) — ZE 509/7–2 and GR 3634/4–2 Emperor (261444241) and by the European Union (ERC S3, 101093186 and ERC PROSA, 101247971). Views and opinions expressed are, however, those of the authors only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.

References

References

  1. [1]Rui Abreu, Peter Zoeteweij, and Arjan J. C. van Gemund. 2006. An Evaluation of Similarity Coefficients for Software Fault Localization. In Proceedings of the 12th Pacific Rim International Symposium on Dependable Computing (PRDC ’06). IEEE Computer Society, USA, 39–46. doi:10.1109/PRDC.2006.18
  2. [2]Rui Abreu, Peter Zoeteweij, Rob Golsteijn, and Arjan J. C. van Gemund. 2009. A practical evaluation of spectrum-based fault localization. J. Syst. Softw. 82, 11 (Nov. 2009), 1780–1792. doi:10.1016/j.jss.2009.06.035
  3. [3]Rui Abreu, Peter Zoeteweij, and Arjan J. C. van Gemund. 2007. On the Accuracy of Spectrum-based Fault Localization. In Proceedings of the Testing: Academic and Industrial Conference Practice and Research Techniques - MUTATION (TAICPART-MUTATION ’07). IEEE Computer Society, USA, 89–98. doi:10.1109/TAIC.PART.2007.13
  4. [4]Toufique Ahmed, Jatin Ganhotra, Avraham Shinnar, and Martin Hirzel. 2026. Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selection. arXiv:2508.06365 [cs.SE]. doi:10.48550/arXiv.2508.06365arxiv.org/abs/2508.06365
  5. [5]Abdulaziz Alobaidi and Thomas D. Latoza. 2023. Hypothesizer: A Hypothesis-Based Debugger to Find and Test Debugging Hypotheses. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (San Francisco, CA, USA) (UIST ’23). Association for Computing Machinery, New York, NY, USA, Article 73, 14 pages. doi:10.1145/3586183.3606781
  6. [6]Anthropic. 2025. Introducing Claude Haiku 4.5. https://www.anthropic.com/news/claude-haiku-4-5.
  7. [7]Tien-Duy B. Le, David Lo, Claire Le Goues, and Lars Grunske. 2016. A learning-to-rank based fault localization approach using likely invariants. In Proceedings of the 25th International Symposium on Software Testing and Analysis (Saarbrücken, Germany) (ISSTA 2016). Association for Computing Machinery, New York, NY, USA, 177–188. doi:10.1145/2931037.2931049DOI
  8. [8]Johannes Bader, Andrew Scott, Michael Pradel, and Satish Chandra. 2019. Getafix: learning to fix bugs automatically. Proc. ACM Program. Lang. 3, OOPSLA, Article 159 (Oct. 2019), 27 pages. doi:10.1145/3360585
  9. [9]Islem Bouzenia, Premkumar Devanbu, and Michael Pradel. 2025. RepairAgent: An Autonomous, LLM-Based Agent for Program Repair. In 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). 2188–2200. doi:10.1109/ICSE55347.2025.00157DOI
  10. [10]Islem Bouzenia and Michael Pradel. 2025. Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories. In 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE). 2846–2857. doi:10.1109/ASE63991.2025.00234DOI
  11. [11]Xiaohui Chang, Dongcheng Li, and W. Eric Wong. 2025. Large Language Models for Software Fault Localization: a Survey. In 2025 12th International Conference on Dependable Systems and Their Applications (DSA). 111–120. doi:10.1109/DSA66321.2025.00024DOI
  12. [12]Xinyun Chen, Maxwell Lin, Nathanael Schaerli, and Denny Zhou. 2024. Teaching Large Language Models to Self-Debug. In International Conference on Learning Representations, B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun (Eds.), Vol. 2024. 8746–8825. https://proceedings.iclr.cc/paper_files/paper/2024/file/2460396f2d04d21885997dd1612ac56b-Paper-Conference.pdf
  13. [13]Holger Cleve and Andreas Zeller. 2005. Localizing causes of program failures. In Proceedings of the 27th International Conference on Software Engineering (St. Louis, MO, USA) (ICSE ’05). Association for Computing Machinery, New York, NY, USA, 342–351. doi:10.1145/1062455.1062522DOI
  14. [14]Valentin Dallmeier, Christian Lindig, and Andreas Zeller. 2005. Lightweight bug localization with AMPLE. In Proceedings of the Sixth International Symposium on Automated Analysis-Driven Debugging (Monterey, California, USA) (AADEBUG’05). Association for Computing Machinery, New York, NY, USA, 99–104. doi:10.1145/1085130.1085143
  15. [15]Yangruibo Ding, Benjamin Steinhaußer, Kevin Pei, Gail Kaiser, Wei Le, and Baishakhi Ray. 2024. TRACED: Execution-aware Pre-training for Source Code. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering (Lisbon, Portugal) (ICSE ’24). Association for Computing Machinery, New York, NY, USA, Article 36, 12 pages. doi:10.1145/3597503.3608140DOI
  16. [16]Martin Eberlein, Marius Sm y tzek, Dominic Steinhöfel, Lars Grunske, and Andreas Zeller. 2023. Semantic Debugging. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (San Francisco, CA, USA) (ESEC/FSE 2023). Association for Computing Machinery, New York, NY, USA, 438–449. doi:10.1145/3611643.3616296DOI
  17. [17]Michael D. Ernst, Jeff H. Perkins, Philip J. Guo, Stephen McCamant, Carlos Pacheco, Matthew S. Tschantz, and Chen Xiao. 2007. The Daikon system for dynamic detection of likely invariants. Sci. Comput. Program. 69, 1–3 (Dec. 2007), 35–45. doi:10.1016/j.scico.2007.01.015DOI
  18. [18]Gordon Fraser and Andrea Arcuri. 2011. EvoSuite: automatic test suite generation for object-oriented software. In Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering (Szeged, Hungary) (ESEC/FSE ’11). Association for Computing Machinery, New York, NY, USA, 416–419. doi:10.1145/2025113.2025179DOI
  19. [19]Alex Gu, Baptiste Rozier e, Hugh James Leather, Armando Solar-Lezama, Gabriel Synnaeve, and Sida Wang. 2024. CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution. In Proceedings of the 41st International Conference on Machine Learning Research, Vol. 235), Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (Eds.). PMLR, 16568–16621. https://proceedings.mlr.press/v235/gu24c.html
  20. [20]Mary Jean Harrold, Gregg Rothermel, Kent Sayre, Rui Wu, and Liu Yi. 2000. An empirical investigation of the relationship between spectra differences and regression faults. Software Testing, Verification and Reliability 10, 3 (2000), 171–194. doi:10.1002/(SICI)1099-1689(200009)10:3<171::AID-STVR209>3.0.CO;2-Jdoi.org/10.1002/1099-1689(200009)10:3<171::aid-stvr209>3.0.co;2-j
  21. [21]Lingxiao Jiang and Zhending Su. 2007. Context-aware statistical debugging: from bug predictors to faulty control flow paths. In Proceedings of the 22nd IEEE/ACM International Conference on Automated Software Engineering (Atlanta, Georgia, USA) (ASE ’07). Association for Computing Machinery, New York, NY, USA, 184–193. doi:10.1145/1321631.1321660DOI
  22. [22]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R Narasimhan. 2024. SWE-bench: Can Language Models Resolve Real-world Github Issues?. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=VTF8yNQM66arxiv.org/abs/2310.06770
  23. [23]James A. Jones, Mary Jean Harrold, and John Stasko. 2002. Visualization of test information to assist fault localization. In Proceedings of the 24th International Conference on Software Engineering (Orlando, Florida) (ICSE ’02). Association for Computing Machinery, New York, NY, USA, 467–477. doi:10.1145/581339.581397DOI
  24. [24]René Just, Dariusz Jalali, and Michael D. Ernst. 2014. Defects4J: a database of existing faults to enable controlled testing studies for Java programs. In Proceedings of the 2014 International Symposium on Software Testing and Analysis (San Jose, CA, USA) (ISSTA 2014). Association for Computing Machinery, New York, NY, USA, 437–440. doi:10.1145/2610384.2628055DOI
  25. [25]René Just, Chris Parnin, Ian Drosos, and Michael D. Ernst. 2018. Comparing developer-provided to user-provided tests for fault localization and automated program repair. In Proceedings of the 27th ACM SIGSOFT International Symposium on Software Testing and Analysis (Amsterdam, Netherlands) (ISSTA 2018). Association for Computing Machinery, New York, NY, USA, 287–297. doi:10.1145/3213846.3213870DOI
  26. [26]Alexander Kampmann, Nikolas Havrikov, Ezekiel O. Soremekun, and Andreas Zeller. 2020. When does my program do this? learning circumstances of software behavior. In Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (Virtual Event, USA) (ESEC/FSE 2020). Association for Computing Machinery, New York, NY, USA, 1228–1239. doi:10.1145/3368089.3409687
  27. [27]Sungmin Kang, Gabin An, and Shin Yoo. 2024. A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localization. Proc. ACM Softw. Eng. 1, FSE, Article 64 (July 2024), 23 pages. doi:10.1145/3660771DOI
  28. [28]Sungmin Kang, Bei Chen, Shin Yoo, and Jian-Guang Lou. 2024. Explainable automated debugging via large language model-driven scientific debugging. Empirical Software Engineering 30, 2 (18 Dec 2024), 45. doi:10.1007/s10664-024-10594-xDOI
  29. [29]Sungmin Kang, Junyeon Yoon, and Shin Yoo. 2023. Large Language Models are Few-Shot Testers: Exploring LLM-Based General Bug Reproduction. In Proceedings of the 45th International Conference on Software Engineering (Melbourne, Victoria, Australia) (ICSE ’23). IEEE Press, 2312–2323. doi:10.1109/ICSE48619.2023.00194DOI
  30. [30]Lara Khatib, Noble Saji Mathews, and Meiyappan Nagappan. 2026. AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Tests. arXiv:2507.17542 [cs.SE]. doi:10.48550/arXiv.2507.17542arxiv.org/abs/2507.17542
  31. [31]Pavneet Singh Kochar, Xin Xia, David Lo, and Shanping Li. 2016. Practitioners’ expectations on automated fault localization. In Proceedings of the 25th International Symposium on Software Testing and Analysis (Saarbrücken, Germany) (ISSTA 2016). Association for Computing Machinery, New York, NY, USA, 165–176. doi:10.1145/2931037.2931051
  32. [32]Jiaolong Kong, Xiaofei Xie, Mingfei Cheng, Shangqing Liu, Xiaoning Du, and Qi Guo. 2025. ContrastRepair: Enhancing Conversation-Based Automated Program Repair via Contrastive Test Case Pairs. ACM Trans. Softw. Eng. Methodol. 34, 8, Article 216 (Oct. 2025), 31 pages. doi:10.1145/3719345DOI
  33. [33]Bogdan Korel and Janusz Laski. 1988. Dynamic program slicing. Inform. Process. Lett. 29, 3 (1988), 155–163. doi:10.1016/0020-0190(88)90054-3DOI
  34. [34]Claire Le Goues, ThanhVu Nguyen, Stephanie Forrest, and Westley Weimer. 2012. GenProg: A Generic Method for Automatic Software Repair. IEEE Trans. Softw. Eng. 38, 1 (Jan. 2012), 54–72. doi:10.1109/TSE.2011.104
  35. [35]Claire Le Goues, Michael Pradel, and Abhik Roychoudhury. 2019. Automated program repair. Commun. ACM 62, 12 (Nov. 2019), 56–65. doi:10.1145/3318162
  36. [36]Caroline Lemieux, Jeevana Priya Inala, Shuvendu K. Lahiri, and Siddhartha Sen. 2023. CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-Trained Large Language Models. In Proceedings of the 45th International Conference on Software Engineering (Melbourne, Victoria, Australia) (ICSE ’23). IEEE Press, 919–931. doi:10.1109/ICSE48619.2023.00085DOI
  37. [37]Xia Li, Wei Li, Yuqun Zhang, and Lingming Zhang. 2019. DeepFL: integrating multiple fault diagnosis dimensions for deep fault localization. In Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis (Beijing, China) (ISSTA 2019). Association for Computing Machinery, New York, NY, USA, 169–180. doi:10.1145/3293882.3330574DOI
  38. [38]Ben Liblit, Mayur Naik, Alice X. Zheng, Alex Aiken, and Michael I. Jordan. 2005. Scalable statistical bug isolation. SIGPLAN Not. 40, 6 (June 2005), 15–26. doi:10.1145/1064978.1065014DOI
  39. [39]Changshu Liu, Yang Chen, and Reyhaneh Jabb­arvand. 2024. CodeMind: Evaluating Large Language Models for Code Reasoning. arXiv:2402.09664 [cs.SE]. doi:10.48550/arXiv.2402.09664DOI
  40. [40]Chao Liu, Xifeng Yan, Long Fei, Jiawei Han, and Samuel P. Midkiff. 2005. SOBER: statistical model-based bug localization. In Proceedings of the 10th European Software Engineering Conference Held Jointly with 13th ACM SIGSOFT International Symposium on Foundations of Software Engineering (Lisbon, Portugal) (ESEC/FSE-13). Association for Computing Machinery, New York, NY, USA, 286–295. doi:10.1145/1081706.1081753DOI
  41. [41]Mingwei Liu, Zihao Wang, Zhenxi Chen, Zheng Pei, Yanlin Wang, and Zibin Zheng. 2026. Dynamic Analysis Enhances Issue Resolution. arXiv:2603.22048 [cs.SE]. doi:10.48550/arXiv.2603.22048DOI
  42. [42]Fan Long and Martin Rinard. 2015. Paged program repair with condition synthesis. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering (Bergamo, Italy) (ESEC/FSE 2015). Association for Computing Machinery, New York, NY, USA, 166–178. doi:10.1145/2786805.2786811DOI
  43. [43]Fan Long and Martin Rinard. 2016. Automatic patch generation by learning correct code. In Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (St. Petersburg, FL, USA) (POPL ’16). Association for Computing Machinery, New York, NY, USA, 298–312. doi:10.1145/2837614.2837617DOI
  44. [44]Yilin Luo, Ali Ghanbari, Xia Li, Lingming Zhang, Haotian Zhang, Dan Hao, and Lu Zhang. 2020. Can automated program repair refine fault localization? a unified debugging approach. In Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis (Virtual Event, USA) (ISSTA 2020). Association for Computing Machinery, New York, NY, USA, 75–87. doi:10.1145/3395363.3397531
  45. [45]Yiling Luo, Qihao Zhu, Jinhua Dong, Xia Li, Zeyu Sun, Dan Hao, Lu Zhang, and Lingming Zhang. 2021. Boosting coverage-based fault localization via graph-based representation learning. In Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (Athens, Greece) (ESEC/FSE 2021). Association for Computing Machinery, New York, NY, USA, 664–676. doi:10.1145/3468264.3468580
  46. [46]Stephan Lukasczyk and Gordon Fraser. 2022. Pinguin: automated unit test generation for Python. In Proceedings of the ACM/IEEE 44th International Conference on Software Engineering: Companion Proceedings (Pittsburgh, Pennsylvania) (ICSE ’22). Association for Computing Machinery, New York, NY, USA, 168–172. doi:10.1145/3510454.3516829
  47. [47]Thibault Lutellier, Hung Viet Pham, Lawrence Pang, Yitong Li, Moshi Wei, and Lin Tan. 2020. CoCoNuT: combining context-aware neural translation models using ensemble for program repair. In Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis (Virtual Event, USA) (ISSTA 2020). Association for Computing Machinery, New York, NY, USA, 101–114. doi:10.1145/3395363.3397369DOI
  48. [48]Quinn McNemar. 1947. Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages. Psychometrika 12, 2 (1947), 153–157. doi:10.1007/BF02295996DOI
  49. [49]Sergey Mechtaev, Jooyong Yi, and Abhik Roychoudhury. 2016. Angelix: scalable multiline program patch synthesis via symbolic analysis. In Proceedings of the 38th International Conference on Software Engineering (Austin, Texas) (ICSE ’16). Association for Computing Machinery, New York, NY, USA, 691–701. doi:10.1145/2884781.2884807DOI
  50. [50]Martin Monperrus. 2018. Automatic Software Repair: A Bibliography. ACM Comput. Surv. 51, 1, Article 17 (Jan. 2018), 24 pages. doi:10.1145/3105906DOI
  51. [51]Seokhyeon Moon, Yunho Kim, Moonzoo Kim, and Shin Yoo. 2014. Ask the Mutants: Mutating Faulty Programs for Fault Localization. In Proceedings of the 2014 IEEE International Conference on Software Testing, Verification, and Validation (ICST ’14). IEEE Computer Society, USA, 153–162. doi:10.1109/ICST.2014.28DOI
  52. [52]Niels Mündler, Mark Niklas Müller, Jingxuan He, and Martin Vechev. 2024. SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents. In Advances in Neural Information Processing Systems. A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (Eds.), Vol. 37. Curran Associates, Inc., 81857–81887. doi:10.52202/079017-2601DOI
  53. [53]Hoang Duong Thien Nguyen, David Qi, Abhik Roychoudhury, and Satish Chandra. 2013. SemFix: program repair via semantic analysis. In Proceedings of the 2013 International Conference on Software Engineering (San Francisco, CA, USA) (ICSE ’13). IEEE Press, 772–781. doi:10.1109/ICSE.2013.6606623DOI
  54. [54]Ansong Ni, Miltiadis Allamanis, Arman Cohan, Yinlin Deng, Kensen Shi, Charles Sutton, and Pengcheng Yin. 2024. NE×T: Teaching Large Language Models to Reason about Code Execution. In Forty-first International Conference on Machine Learning. https://openreview.net/forum?id=B1W7I2hMBi
  55. [55]OpenAI. 2024. Introducing SWE-bench Verified. https://openai.com/index/introducing-swe-bench-verified/.
  56. [56]Mike Papadakis and Yves Le Traon. 2015. Metallaxis-FL: mutation-based fault localization. Softw. Test. Verif. Reliab. 25, 5–7 (Aug. 2015), 605–628. doi:10.1002/stvr.1509
  57. [57]Chris Parnin and Alessandro Orso. 2011. Are automated debugging techniques actually helping programmers? In Proceedings of the 2011 International Symposium on Software Testing and Analysis (Toronto, Ontario, Canada) (ISSTA ’11). Association for Computing Machinery, New York, NY, USA, 199–209. doi:10.1145/2001420.2001445DOI
  58. [58]Spencer Pearson, José Campos, René Just, Gordon Fraser, Rui Abreu, Michael D. Ernst, Deric Pang, and Benjamin Keller. 2017. Evaluating and improving fault localization. In Proceedings of the 39th International Conference on Software Engineering (Buenos Aires, Argentina) (ICSE ’17). IEEE Press, 609–620. doi:10.1109/ICSE.2017.62DOI
  59. [59]Yuhua Qi, Xiaoquang Mao, Yan Lei, and Chengsong Wang. 2013. Using automated program repair for evaluating the effectiveness of fault localization techniques. In Proceedings of the 2013 International Symposium on Software Testing and Analysis (Lugano, Switzerland) (ISSTA 2013). Association for Computing Machinery, New York, NY, USA, 191–201. doi:10.1145/2483600.2483785DOI
  60. [60]Zichao Qi, Fan Long, Sara Achour, and Martin Rinard. 2015. An analysis of patch plausibility and correctness for generate-and-validate patch generation systems. In Proceedings of the 2015 International Symposium on Software Testing and Analysis (Baltimore, MD, USA) (ISSTA 2015). Association for Computing Machinery, New York, NY, USA, 24–36. doi:10.1145/2771783.2771791DOI
  61. [61]Yihao Qin, Shangwen Wang, Yan Lei, Zhuo Zhang, Bo Lin, Xin Peng, Jun Ma, Liqian Chen, and Xiaoguang Mao. 2026. Fault Localization from the Semantic Code Search Perspective. ACM Trans. Softw. Eng. Methodol. 35, 5, Article 124 (April 2026), 32 pages. doi:10.1145/3757915DOI
  62. [62]Raymond Reiter. 1987. A theory of diagnosis from first principles. Artificial Intelligence 32, 1 (1987), 57–95. doi:10.1016/0004-3702(87)90062-2DOI
  63. [63]Jeremias Rößler, Gordon Fraser, Andreas Zeller, and Alessandro Orso. 2012. Isolating failure causes through test case generation. In Proceedings of the 2012 International Symposium on Software Testing and Analysis (Minneapolis, MN, USA) (ISSTA 2012). Association for Computing Machinery, New York, NY, USA, 309–319. doi:10.1145/2338962.2336790
  64. [64]Haifeng Ruan, Yuntong Zhang, and Abhik Roychoudhury. 2025. SpecRover: Code Intent Extraction via LLMs. In 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). 963–974. doi:10.1109/ICSE55347.2025.00080DOI
  65. [65]Raul Santelices, James A. Jones, Yanbing Yu, and Mary Jean Harrold. 2009. Lightweight fault-localization using multiple coverage types. In Proceedings of the 31st International Conference on Software Engineering (ICSE ’09). IEEE Computer Society, USA, 56–66. doi:10.1109/ICSE.2009.5070508DOI
  66. [66]Edward K. Smith, Earl T. Barr, Claire Le Goues, and Yuriy Brun. 2015. Is the cure worse than the disease?: overfitting in automated program repair. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering (Bergamo, Italy) (ESEC/FSE 2015). Association for Computing Machinery, New York, NY, USA, 532–543. doi:10.1145/2786805.2786825
  67. [67]Marius Smytzek. 2023. From Input to Failure: Explaining Program Failure Behavior via Cause-Effect Chains. In Proceedings of the 45th International Conference on Software Engineering: Companion Proceedings (Melbourne, Victoria, Australia) (ICSE ’23). IEEE Press, 302–304. doi:10.1109/ICSE-Companion58688.2023.00081
  68. [68]Marius Smytzek. 2026. Execution Features and Their Relations to Faults: A Replication on Defects4J. In Proceedings of the 7th International Workshop on Automated Program Repair (Munich, Germany) (APR ’26). Association for Computing Machinery, New York, NY, USA, 29–36. doi:10.1145/3843776.3844672DOI
  69. [69]Marius Smytzek. 2026. Failure Explanations: The Missing Abstraction between Debugging and Repair. In Proceedings of the 7th International Workshop on Automated Program Repair (Munich, Germany) (APR ’26). Association for Computing Machinery, New York, NY, USA, 17–20. doi:10.1145/3843776.3844670DOI
  70. [70]Marius Smytzek. 2026. Improving Repair Agents with Cause-Chain Diagnoses. doi:10.5281/zenodo.23769792arxiv.org/abs/2611.30574
  71. [71]Marius Smytzek, Martin Eberlein, Lars Grunske, and Andreas Zeller. 2026. How Execution Features Relate to Failures: An Empirical Study and Diagnosis Approach. ACM Trans. Softw. Eng. Methodol. 35, 9, Article 286 (Aug. 2026), 36 pages. doi:10.1145/3783989DOI
  72. [72]Marius Smytzek, Martin Eberlein, Tural Mammadov, Lars Grunske, and Andreas Zeller. 2025. Learning Failure Oracles from Execution Features. In 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE) (Seoul, Korea, Republic of). IEEE Press, 4049–4052. doi:10.1109/ASE63991.2025.00372DOI
  73. [73]Marius Smytzek, Martin Eberlein, Kai Werk, Lars Grunske, and Andreas Zeller. 2024. FixKit: A Program Repair Collection for Python. In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering (Sacramento, CA, USA) (ASE ’24). Association for Computing Machinery, New York, NY, USA, 2342–2345. doi:10.1145/3691620.3695347DOI
  74. [74]Marius Smytzek and Andreas Zeller. 2022. How do Execution Features Improve Statistical Fault Localization. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (Singapore, Singapore) (ESEC/FSE 2022). Association for Computing Machinery, New York, NY, USA, 1701–1705. doi:10.1145/3540250.3558915
  75. [75]Marius Smytzek and Andreas Zeller. 2025. How do Execution Features Improve Statistical Fault Localization? An Empirical Study. arXiv:2606.30324 [cs.SE] doi:10.48550/arXiv.2606.30324 IC SME 2026 Registered Report.DOI
  76. [76]Ezekiel Soremekun, Lukas Kirschner, Marcel Böhme, and Andreas Zeller. 2021. Locating faults with program slicing: an empirical analysis. Empirical Softw. Engg. 26, 3 (May 2021), 45 pages. doi:10.1007/s10664-020-09931-7
  77. [77]SWE-agent team. 2025. mini-SWE-agent. https://github.com/SWE-agent/mini-swe-agent.
  78. [78]Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jiaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Daniel Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. 2025. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. In The Thirteenth International Conference on Learning Representations. https://openreview.net/forum?id=ODj3dyDODFarxiv.org/abs/2407.16741
  79. [79]You Wang, Michael Pradel, and Zhongxin Liu. 2026. Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study. In Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering (Rio de Janeiro, Brazil) (ICSE ’26). Association for Computing Machinery, New York, NY, USA, 169–181. doi:10.1145/3744916.3764576DOI
  80. [80]Yunkun Wang, Yue Zhang, Guochang Li, Chen Zhi, Binhua Li, Fei Huang, Yongbin Li, and Shuiguang Deng. 2026. InspectCoder: Dynamic Analysis-Driven Self Repair through Interactive LLM-Debugger Collaboration. Proc. ACM Program. Lang. 10, OOPSLA1 (April 2026), 1041–1069. doi:10.1145/3798238DOI
  81. [81]Yuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneau, LINGMING ZHANG, Daniel Fried, Gabriel Synnaeve, Rishabh Singh, and Sida Wang. 2025. SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution. In Advances in Neural Information Processing Systems, D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (Eds.), Vol. 38, Main Conference. Curran Associates, Inc., 78500–78525. doi:10.52202/085713-2629DOI
  82. [82]Wesley Weimer, ThanhVu Nguyen, Claire Le Goues, and Stephanie Forrest. 2009. Automatically finding patches using genetic programming. In Proceedings of the 31st International Conference on Software Engineering (ICSE ’09). IEEE Computer Society, USA, 364–374. doi:10.1109/ICSE.2009.5070536DOI
  83. [83]Mark Weiser. 1984. Program Slicing. IEEE Trans. Softw. Eng. 10, 4 (July 1984), 352–357. doi:10.1109/TSE.1984.5010248DOI
  84. [84]Ratnadirat Widyasari, Gede Artha Azriadi Prana, Stefanus Agus Haryono, Shaowei Wang, and David Lo. 2022. Real world projects, real faults: evaluating spectrum based fault localization techniques on Python projects. Empirical Softw. Eng. 27, 6 (Nov. 2022), 50 pages. doi:10.1007/s10664-022-10189-4
  85. [85]W. Eric Wong, Vidroha Debroy, Yihao Li, and Ruizhi Gao. 2012. Software Fault Localization Using DStar (D⋆). In Proceedings of the 2012 IEEE Sixth International Conference on Software Security and Reliability (SERE ’12). IEEE Computer Society, USA, 21–30. doi:10.1109/SERE.2012.12DOI
  86. [86]W. Eric Wong, Ruizhi Gao, Yihao Li, Rui Abreu, and Franz Wotawa. 2016. A Survey on Software Fault Localization. IEEE Trans. Softw. Eng. 42, 8 (Aug. 2016), 707–740. doi:10.1109/TSE.2016.2521368DOI
  87. [87]Chunqiu Steven Xia, Yinlin Deng, Soren Dunn, and Lingming Zhang. 2025. Demystifying LLM-Based Software Engineering Agents. Proc. ACM Softw. Eng. 2, FSE, Article FSE037 (June 2025), 24 pages. doi:10.1145/3715754DOI
  88. [88]Chunqiu Steven Xia, Yuxiang Wei, and Lingming Zhang. 2023. Automated Program Repair in the Era of Large Pre-Trained Language Models. In Proceedings of the 45th International Conference on Software Engineering (Melbourne, Victoria, Australia) (ICSE ’23). IEEE Press, 1482–1494. doi:10.1109/ICSE48619.2023.00129DOI
  89. [89]Chunqiu Steven Xia and Lingming Zhang. 2022. Less training, more repairing please: revisiting automated program repair via zero-shot learning. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (Singapore, Singapore) (ESEC/FSE 2022). Association for Computing Machinery, New York, NY, USA, 959–971. doi:10.1145/3540250.3549101DOI
  90. [90]Chunqiu Steven Xia and Lingming Zhang. 2024. Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT. In Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (Vienna, Austria) (ISSTA 2024). Association for Computing Machinery, New York, NY, USA, 819–831. doi:10.1145/3650212.3680323DOI
  91. [91]Aidan Z. H. Yang, Claire Le Goues, Ruben Martins, and Vincent Hellendoorn. 2024. Large Language Models for Test-Free Fault Localization. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering (Lisbon, Portugal) (ICSE ’24). Association for Computing Machinery, New York, NY, USA, Article 17, 12 pages. doi:10.1145/3597503.3623342DOI
  92. [92]John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. In Advances in Neural Information Processing Systems, A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (Eds.), Vol. 37. Curran Associates, Inc., 50528–50652. doi:10.52202/079017-1601
  93. [93]Andreas Zeller. 2002. Isolating cause-effect chains from computer programs. In Proceedings of the 10th ACM SIGSOFT Symposium on Foundations of Software Engineering (Charleston, South Carolina, USA) (SIGSOFT ’02/FSE-10). Association for Computing Machinery, New York, NY, USA, 1–10. doi:10.1145/587051.587053DOI
  94. [94]Andreas Zeller and Ralf Hildebrandt. 2002. Simplifying and Isolating Failure-Inducing Input. IEEE Trans. Softw. Eng. 28, 2 (Feb. 2002), 183–200. doi:10.1109/32.988498DOI
  95. [95]Quanqjun Zhang, Chunrong Fang, Yuxiang Ma, Weisong Sun, and Zhenyu Chen. 2023. A Survey of Learning-based Automated Program Repair. ACM Trans. Softw. Eng. Methodol. 33, 2, Article 55 (Dec. 2023), 69 pages. doi:10.1145/3631974DOI
  96. [96]Quanqjun Zhang, Yi Zheng, Ye Shang, Weifeng Sun, Haichuan Hu, Chunrong Fang, Zhenyu Chen, and Liang Xiao. 2026. ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports. arXiv:2607.09123 [cs.SE] doi:10.48550/arXiv.2607.09123DOI
  97. [97]Yuntong Zhang, Haifeng Ruan, Zhiyu Fan, and Abhik Roychoudhury. 2024. AutoCodeRover: Autonomous Program Improvement. In Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (Vienna, Austria) (ISSTA 2024). Association for Computing Machinery, New York, NY, USA, 1592–1604. doi:10.1145/3650212.3680384DOI
  98. [98]Zhenyu Zhang, W. K. Chan, T. H. Tse, Bo Jiang, and Xinming Wang. 2009. Capturing propagation of infected program states. In Proceedings of the 7th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (Amsterdam, The Netherlands) (ESEC/FSE ’09). Association for Computing Machinery, New York, NY, USA, 43–52. doi:10.1145/1595696.1595705DOI
  99. [99]Li Zhong, Zilong Wang, and Jingbo Shang. 2024. Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step by Step. In Findings of the Association for Computational Linguistics: ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand, 851–870. doi:10.18653/v1/2024.findings-acl.49DOI
  100. [100]Daming Zou, Jingjing Liang, Yingfei Xiong, Michael D. Ernst, and Lu Zhang. 2021. An Empirical Study of Fault Localization Families and Their Combinations. IEEE Trans. Softw. Eng. 47, 2 (Feb. 2021), 332–347. doi:10.1109/TSE.2019.2892102

Paper details

vlnc:W_jjxw9awf
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents