Online Environment Repair for Coding Agents
On the map: LLM agents and tool use → Reinforcement learning for LLM agents also fits: Software engineering coding agents
Abstract (arXiv)
Programmatic verifiers provide scalable reward signals for training coding agents with reinforcement learning, yet subtle harness defects and incomplete unit tests allow policies to earn full credit without solving the intended task. Existing training-time defenses intervene either by penalizing suspicious outputs or by filtering flagged tasks and rollouts. However, output penalties leave the underlying verifier exploitable, driving policies to disguise shortcuts under reasoning monitors or zeroing out valid solutions under detector false positives, whereas task and rollout filtering discards or mutes the hardest problems where shortcuts emerge earliest. Pre-training verifier hardening repairs the environment directly, but misses vulnerability classes that surface only as the policy improves during reinforcement learning. In this paper, we propose online environment repair, which leaves triggering rollout rewards unchanged to remove hiding incentives and asynchronously patches exploited environments during training. Candidate repairs triggered by execution invariants or differential fuzzing are deployed only after passing three automated validation gates that block the exploit while preserving valid solutions, canceling detector false positives and enabling structural propagation across repositories without scaffold labels or reference solutions. Across 20 controlled GRPO experiments on heterogeneous software-engineering repositories, online environment repair reduces cumulative reward hacking from 36.9% to 0.06% and improves held-out Pass@8 from 21.7% to 46.7%, consistently outperforming reward-penalty, rollout-filtering, and static-hardening baselines while eliminating zero-shot exploitation on unseen loophole classes.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 18 of its 20 references that are in the map. Submitted 24 Nov 2026, announced 25 Nov 2026.
Builds on
18 of 20 references.
Closest ancestors · 1
Same direction, newest first
Other references · 17
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 3,138
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 472
- 2025ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Casescited by 101
- 2024Correlated Proxies: A New Definition and Improved Mitigation for Reward Hackingcited by 58
- 2026Countdown-Code: A Testbed for Studying The Emergence and Generalization of Reward Hacking in RLVRcited by 27
- 2026Do Androids Dream of Breaking the Game? Systematically Auditing AI Agent Benchmarks with BenchJackcited by 26
- 2026The Obfuscation Atlas: Mapping Where Honesty Emerges in RLVR with Deception Probescited by 17
- 2026Hardening Agent Benchmarks with Adversarial Hacker-Fixer Loopscited by 14
- 2026Gradient Regularization Mitigates Reward Hacking in Reinforcement Learning from Human Feedback and Verifiable Rewardscited by 10
- 2026Maintaining Benchmarks Against Increasingly Capable Agents: Detection and Remediation of Unearned Passescited by 4
- 2026Verifier Errors in RLVR: Reward Hacking, Limits of Feedback, and Selective Controlcited by 3
5 more
- 2026Scalable Weak-to-Strong Verifier Hardening for Agent Environmentscited by 3
- 2026SimHack: Predicting the onset of detectable reward hacking before RL trainingcited by 2
- 2026Audit Where Hacks Pay: Budgeted Strong-Verifier Audits Against Reward Hacking in GRPOcited by 2
- 2026Checking the Checkers: A Synthesis of Verifier Noise and Robustness in RLVRcited by 1
- 2026Designing Effective Monitor-Based Interventions for Mitigating Reward Hacking During RLcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Dockerless: Environment-Free Program Verifier for Coding Agents
- 2026Verifier-Grounded Agentic RL for Provably Correct Code
- 2025Agentic Reinforcement Learning for Real-World Code Repair
- 2026DiDPO: Diff-in-Diff Policy Optimization for Coding Agent Training
- 2026LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents
- 2026WorkRover: Scaling Long-Horizon Cowork Agent Training Via Recursive Environment Evolution
- 2026CAPF: Guiding Search-Agent Rollouts with Credit-Attenuated Privileged Feedback
- 2026From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop