🚀NEW LABGetting Started with Claude AgentsStart lab
← All papers  /  Oct 20, 2026
Code · Agents

Over-Defense in Coding Agents Begins at Silent Forks

First page
Over-Defense in Coding Agents Begins at Silent Forks
The curator’s take

Hanjun Luo, Xuecheng Liu, Hanan Salam and colleagues (NYU, NYU Abu Dhabi, CMU, McGill, MBZUAI) show that coding agents' unnecessary defensive actions start at silent forks, turns where every next action leads to the same outcome, so outcome rewards cannot correct them.

Ask this paper

Key points
01

Silent forks. At these turns success is unchanged whichever branch is taken. Frontier models take the disproportionate branch in up to 91% of decisive actions under implicit budgets.

02

Why reward checks fail. Adding a checker to the trajectory reward reaches these forks only through fully proportionate trajectories, leaving 74% of GRPO groups with identical rewards and no behavior change.

03

ForkDPO. The method contrasts a proportionate and a disproportionate action at the same prefix, at forks on both sides of the required behavior.

04

Result. On unseen repositories it lowers a 4B model's disproportionate behavior from 70.3% to 58.9%, versus 67.7% for DPO at random turns.

Abstract

Language models behind coding agents are post-trained with outcome rewards, and recent methods concentrate credit on the turns that decide the outcome. We find that defensive actions beyond what a task requires escape both. They begin at silent forks, the turns where every next action leads to the same outcome. Such actions leave the success rate unchanged, and frontier models take the disproportionate branch there in up to 91% of decisive actions under implicit budgets. The most direct fix, a checker in the trajectory reward, reaches these forks only through fully proportionate trajectories, leaving 74% of GRPO groups with identical rewards and behavior unchanged. This motivates a rethink of where learning signals belong, namely where behavior diverges, which a behavioral checker can locate and the outcome cannot. Our method, ForkDPO, contrasts a proportionate and a disproportionate action at the same prefix, at silent forks on both sides of the required behavior. On a test set of unseen repositories, it lowers a 4B model's disproportionate behavior from 70.3% to 58.9%, against 67.7% for DPO at randomly chosen turns, establishing behavioral divergence as a learning signal for how agents act beyond whether they finish. The code is publicly available at https://github.com/Astarojth/silent-forks.

Every Monday
Get next week’s papers.
Subscribe on Substack