
ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents
Program-Agent replaces a single monolithic coding-agent loop with a role-isolated workflow (analysis, implementation, review) plus revision management for compilation checks and failure recovery, which a small team can replicate as prompting/orchestration over API models; Program-Env replaces hand-built training environments with a feedback-driven pipeline that repairs sandbox builds and black-box tests. The agent-side cost is higher token consumption and latency from multi-role passes and exploratory analysis before implementation; the environment-side cost is substantial engineering and compute to build and verify 1,648 sandboxed repositories, which is not realistic on one 24 GB GPU. Failure modes include compounding errors across role handoffs, reference exploration that consumes context without improving the implementation, and environment/test suites whose black-box tests are too weak to verify correctness, so reproduced gains may not transfer to benchmarks other than ProgramBench.








































