Edit-budget checks for agent-generated bug fixes
Teams using coding agents for bug fixing can add an edit-budget gate before code review. The gate should compare the agent patch with the smallest plausible fix, then flag cases where tests pass but the patch rewrites unrelated code. PDB gives a direct reason to do this: on PDB-Single-Hard, GPT-5.1-Codex reached 76.1% unit-test score with only 39.7% edit precision, and the same gap stayed visible on multi-bug programs. Even agentic setups improved pass rates more than precision, so a workflow that only asks "did CI go green" will miss broad, risky edits.
A practical first version is simple. Run the agent as usual, then score the diff for touched files, changed lines, and overlap with the suspicious region from the failing test or stack trace. Send over-budget patches to a second pass that asks for a narrower edit, or route them to human review with the original failing context attached. This is a useful control for teams working in large repositories where review cost and regression risk matter more than raw benchmark wins.
The cheap check is to sample recent agent-made fixes that passed CI and measure how often reviewers later trimmed or reverted unrelated edits. If that rate is high, edit precision is already an operational problem in the local workflow.