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

DevFeed: [Hard Issue, Weak Model, or Bad Run? Rethinking Failure Prediction for Coding Agents](<https://devfeed.tech/articles/hard-issue-weak-model-or-bad-run-rethinking-failure-prediction-for-coding-agents-120836.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.08285>)

Author: Xingyue Shi, Wesley K. G. Assun\\c{c}\\~ao

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Model Routing](<https://devfeed.tech/topics/model-routing.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [failure](<https://devfeed.tech/tags/failure.md>), [issue](<https://devfeed.tech/tags/issue.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [performance](<https://devfeed.tech/tags/performance.md>), [prediction](<https://devfeed.tech/tags/prediction.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [run](<https://devfeed.tech/tags/run.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [swe-bench](<https://devfeed.tech/tags/swe-bench.md>), [switching](<https://devfeed.tech/tags/switching.md>)

## AI overview

On public SWE-bench Verified trajectories, failure predictors mostly identify issue difficulty and model ability rather than whether a particular run is going wrong: an issue-difficulty reference reaches 0.92 AUROC, compared with about 0.62 for trajectory predictors, whose added signal beyond difficulty and ability is statistically equivalent to zero. Per-issue model switching gains nothing on held-out runs. A repeated-run pilot finds the same model can both solve and fail an issue, so retries can address bad-run failures but not issues beyond the model's ability. The authors call for predictors that explain failure causes, evaluated on repeated-run benchmarks and in closed-loop, equal-budget settings.

## Source excerpt

arXiv:2611.08285v1 Announce Type: new 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.