Skip to content
Preprint

Hard Issue, Weak Model, or Bad Run? Rethinking Failure Prediction for Coding Agents

Nov 2026 · 0 citations · 23 references
Computer Science

TL;DR

This work calls for failure prediction that explains why a run fails, evaluated on repeated-run benchmarks and in closed-loop, equal-budget settings.

Abstract

Trajectory-based failure predictors for software engineering (SE) agents read the partial trajectory of a run to flag whether it is going right or wrong. If it is going wrong, the run can be stopped, retried, or switched to another model. We ask whether these predictors learn anything about the run itself. On public SWE-bench Verified trajectories, where each model attempts each issue once, two run-independent factors dominate predictor performance. The first is issue difficulty: a reference score that never looks at the run, only at how hard the issue is for other models, reaches 0.92 AUROC, whereas trajectory predictors reach about 0.62. The second is model ability: within an issue, knowing which model ran predicts failure better than our predictors do, and the predictors largely reproduce the overall ability ranking of the models. Beyond difficulty and ability, what predictors gain from the trajectory is statistically equivalent to zero. This confusion carries over to the actions taken after a prediction. Model switching is often motivated by the gap between the best single model's resolution rate and an any-model oracle. This gap is no larger than random variation alone produces. Per-issue switching gains nothing on held-out runs. In a repeated-run pilot, the same model often solves an issue in some runs and fails it in others. Retrying thus has real room to repair failures, but it rescues only failures caused by a bad run, not those on an issue beyond the model's ability. Current predictors cannot tell the causes apart, as they mostly predict the issue and the model, not the run. We call for failure prediction that explains why a run fails, evaluated on repeated-run benchmarks and in closed-loop, equal-budget settings.

View source

Similar papers

Preprint Oct 2026

StopLoss: Teaching Agents to Predict Failure and Stop Early

StopLoss, a small external monitor that learns failure recognition from completed trajectories and their verifier outcomes, is introduced, inspired by the stop-loss order in finance, to make failure recognition cheap enough for early stopping to pay for itself.

Jia-Rong Liang, Xue-Guang Ma, Dongfu Jiang et al. · 0 citations
Open access Nov 2026

Invalid Is Not Failure: Infrastructure Censoring Bias in Long-Horizon Agent Evaluation

Long-running agents sometimes stop without a valid task outcome because a provider, runtime, or harness failed rather than the agent. Benchmarks then score such runs as failures or drop them. We treat this as a missing-data problem. When infrastructure failures are independent of the agent, both policies are closed-for...

Shilin Chhabra · 0 citations
#artificial intelligence Preprint Sep 2026

Chronicle: Cut-Point Replay for Regression Testing of LLM Agents

Chronicle is presented, which records an agent run at its non-deterministic boundaries as immutable envelopes and replays it from the record, and its central operation, cut-point replay, serves a chosen subset of boundaries from the record and executes the complementary subset live with new code, turning a recorded inc...

Tisha Chawla, Susheem Koul · 3 citations
#artificial intelligence Review Sep 2026

CART: Closed-Loop Adaptive Red Teaming for Large Language Models

CART turns red teaming from a one-time checklist into a continuous, adaptive, and auditable search for model and agent weaknesses, suggesting that contextual adaptation can reveal weaknesses that direct prompt replay does not exercise.

Dong-Dong Zhang, Teng-Chao Lv, Yi-Ling Jia et al. · 0 citations
#artificial intelligence Preprint Nov 2026

Same Error, Different Recovery: How Delivery Changes LLM Agent Behavior

A tool-using language model must decide whether to retry a failed call, correct it, or stop and tell the user. The error text alone may not be enough: the same feedback can lead to different actions depending on where it appears in the conversation. We isolate this delivery problem by varying placement, guidance, retai...

Sunghyeun Woo, Javier Conde, P. Reviriego · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.