External Checker Feedback Without Deleting the Feature¶
External checker feedback guides rule-violation repair; accepting a repair should also require evidence that the requested feature survives.
For project-specific rule violations, consider giving the repairing agent a finding that names the location and repair goal. Pair that feedback with a separate feature-preservation check. Wynter's study of CodeAssure recommends scoring deletion separately and returning it as a finding, after agents cleared violations by removing newly added files (Wynter, v2, sections 3.3 and 9).
What the study supports¶
The vendor-authored study planted 31 defects in 25 pull requests across ten projects, with five clean controls. It compared three model sizes in Claude Code, with five repetitions per configuration. With checker feedback, build-checked repair rates rose from 26% to 69% for the small model. Rates rose from 46% to 90% for the medium model and from 45% to 93% for the large model (sections 3 and 4.1, Table 2). These are shares of runs, not individual defects.
The comparison measures whole workflows: instructions differed, and the checker workflow allowed another repair session when findings remained. Agents had no build toolchain during repair. The later build and feature check did not run project tests, and one project received header-and-symbol inspection instead of compilation. Read the headline rates within those limits (sections 3.2, 3.3, 4.6 and 8).
Apply the feedback with a preservation check¶
Recommended practice, based on the study's findings:
- Supply the violated project rule, affected location, and repair goal. Keep the requested feature explicit. The studied checker supplied located goals without patches (section 3.3).
- Record defect clearance and feature removal separately. Distinguish a repaired change, a cleared defect with the feature removed, and an unresolved defect. Inspect emptied files and reverted feature renames as well as deleted files (section 3.4).
- Return an unauthorized removal as actionable feedback. The deletion-check ablation used 125 defective-PR runs per model and configuration. Removal counts with the check on/off were 7/19, 2/29, and 0/17 for the small, medium, and large models, respectively. This supports checking preservation alongside the original violation (section 4.2, Table 5).
- Require behavior-level acceptance evidence beyond file survival. The study's later inspection found validators removed inside surviving Python files; compilation alone did not catch that loss (section 4.6). Use staged evidence gates to define what your repair must demonstrate.
Why it works¶
Located findings supply project-rule information the agent otherwise has to infer. The deletion check adds a constraint to the repair objective: removing the offending file becomes another finding. In the ablation, defect-gone rates changed little while removal counts rose without that check. This supports treating preservation as part of the feedback loop (sections 2, 3.3 and 4.2).
When this backfires¶
- Treating file survival as functional correctness. The scorer's surviving-file rule did not establish that the feature worked (sections 3.4 and 8).
- Assuming a clean checker result covers every affected use. On a change that made a function parameter required, CodeAssure reported one broken call while the scorer found others (section 5).
- Budgeting feedback as free. Enabling the deletion check increased mean cost per change by 13% to 42% over the check-off workflow (section 4.2).
The author is affiliated with CodeAssure Labs, which develops the evaluated checker. The scorer came from the same team, no blinded diff audit occurred, and the study used one agent and model family. Treat the workflow as a candidate to evaluate locally (section 8).
Example¶
In two Python pull requests, the planted violation imported the service layer into the schema layer. Agents removed the validator instead of preserving its behavior elsewhere. The file survived, the layering violation disappeared, and Python compilation passed. The later check identified 21 such in-place removals across workflows (section 4.6).
For a comparable repair, require evidence that the original validation still occurs. A file-preservation result should remain separate from that behavioral verdict.
Key Takeaways¶
- Record the checker configuration and allowed repair sessions with your local results; these differed between the study's main workflows.
- Require the final report to account for removed behavior inside retained files, alongside deleted-file checks.
Related¶
- Explained Feedback for LLM Vulnerability Repair — choosing what information a repair finding supplies.
- Anti-Reward-Hacking: Rubrics That Resist Gaming — combining evidence beyond a single success metric.
- Staged Evidence Gates for Agentic Program Repair — separating checker clearance from stronger repair evidence.