Termination Lag: Coding Agents Solve Early but Stop Late

Musa Cim, Burak Topcu, Mahmut Taylan Kandemir

The Pennsylvania State University

Published November 11, 2026 · on the feed November 17, 2026 · ▲ 7 · arXiv 2611.14960

Code & softwareAgentsLanguage & dialogue Code arXiv ↗Hugging Face ↗

The abstract

Coding agents can solve a task well before they stop working on it. We characterize termination lag--the number of steps between an agent's first correct patch and the end of its run--across five models, two agent frameworks, and three SWE-bench datasets by recording and testing every distinct repository patch generated during execution. Our analysis reveals that 38--82% of successful runs achieve a correct solution on their initial source-code edit. However, agents continue to expend substantial effort after correct patches, with post-solution steps accounting for a median of 35--37% for Qwen3-Coder and 54--60% for Laguna-XS.2 in successful runs on SWE-bench Verified and Multilingual. Agents spend most of these additional steps verifying their work and exploring the repository. In a small fraction of cases (1--8%), this continued activity leads agents to undo their earlier correct patch, leaving the final solution incorrect.

The Brief

1:35

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Termination Lag. Coding Agents Solve Early but Stop Late. By Musa Cim and two others, from Penn State University. Published on the eleventh of November.

A coding agent can solve its task well before it stops working on it. The authors give that gap a name, termination lag: the number of steps between the agent's first correct patch and the end of its run. To measure it, they record every distinct repository patch produced during execution, and test each one.

Across successful runs, between thirty-eight and eighty-two percent reach a correct solution with their very first source-code edit. The agents keep going anyway. On SWE-bench Verified and Multilingual, steps taken after the solution make up a median of thirty-five to thirty-seven percent of successful runs for Qwen3-Coder.

For Laguna-XS.2 the share is higher, at fifty-four to sixty percent. Most of that extra effort goes into verifying the work already done and exploring the repository. In a small fraction of cases, one to eight percent, the continued activity leads the agent to undo its own correct patch, and the run ends with an incorrect solution.

The measurements cover five models, two agent frameworks and three SWE-bench datasets. The step shares quoted are medians over successful runs, and the per-model figures given are for Qwen3-Coder and Laguna-XS.2 on the Verified and Multilingual sets. Undoing a correct patch is described as a small fraction of cases, not the typical result of the extra steps.

Solving and stopping, on this evidence, are separate skills. Agents often have the answer on their first edit, then spend a large share of the run verifying and exploring, and now and then undo a fix that was already right.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.