When Terminal-Agent Training Stalls: Demystifying Data Generation and Verification Challenge
Organizations: SAP Lab Palo Alto, CA 94304
Abstract
Using a frontier model like Claude Opus as a meta-agent to generate terminal tasks and verifiers for RL training is increasingly common. Yet a runnable Docker image and executable test suite do not guarantee a faithful end-to-end pipeline for terminal agent training. We present a meta-agent pipeline motivated by this gap, diagnosing three classes of failure: benchmark invalidity, harness brittleness, and reward misalignment. Prompt redesign and context extension raise baseline solvability 5.6 times, but a 9B model saturates at 81.3% mean pass@2 within 20 steps on Claude Opus-generated tasks. Adding hard tasks reduces mean pass@2 to 20.6% without changing the training configuration, a strong evidence that the solvability band is model-specific. These findings demonstrate that meta-agent reliability requires solvability-band calibration, verifier audits, and infrastructure error accounting as first-class evaluation criteria, not post-hoc diagnost.
Figures & tables
| Dataset | Model | Context | Total tasks | Pass@1 | Category Strategy |
|---|---|---|---|---|---|
| (Dataset-4k) | Opus 4.6 | 4096 | 5038 | 10% | Round-robin |
| (Dataset-8k) | Opus 4.6 | 8192 | 4929 | 56.5% | Difficulty and category coupling |
| (Dataset-5k) | Opus 4.8 | 8192 | 8218 | 39.6% | Difficulty first, category next |
| Exp. | Model | Dataset | Key result |
|---|---|---|---|
| Qwen2.5-3B | 7.8% base = best pass@1 | ||
| Qwen3.5-9B | + | 81.3% mean pass@2 | |
| Qwen3.5-9B | + + hard | 20.6% mean pass@2 |
| Training set | Steps | Mean pass@2 | Mean reward std. |
|---|---|---|---|
| + | 20 | 81.3% -> 100% | 0.42 |
| + + hard | 190 | 9.8% -> 10.1% | 0.37 |
| Failure mode | Observed scope | Implication |
|---|---|---|
| Hard-task under-representation | 7.0% of a 3,310 task source batch | Insufficient hard cases can leave capable policies near reward saturation. |
| Dockerfile parse failures | 74% heredocs parsing errors | Generation defects can dominate apparent agent failure. |
| Docker network-pool exhaustion | 9.1% in solution generation | Infrastructure errors bias aggregate evaluation until controlled. |
| Docker build failures | 9.7% in solution generation | Fragile setup steps consume trials without producing trajectories. This defect remains to be fixed. |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 590 papers