arXiv:2610.02405cs.AIOct 2026

Manuscript Offprint

arXiv:2610.02405

When Terminal-Agent Training Stalls: Demystifying Data Generation and Verification Challenge

Xi Qin, Isabel Kurth, Xin Cui, Elin Park, Alexander Schaefer, Yaad Oren

Xi Qin

SAP Lab

Palo Alto, CA 94304

grace.qin@sap.com

Elin Park

SAP Lab

Palo Alto, CA 94304

elin.park@sap.com

Isabel Kurth ∗^{*}

SAP Lab

Palo Alto, CA 94304

isabel.kurth@t-online.de

Alexander Schaefer

SAP Lab

Palo Alto, CA 94304

alexander.schaefer01@sap.com

Xin Cui

SAP Lab

Palo Alto, CA 94304

xin.cui@sap.com

Yaad Oren

SAP Lab

Palo Alto, CA 94304

yaad.oren@sap.com

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×, 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 diagnostics.

1 Introduction

Autonomous terminal agents, as models that issue shell commands, read outputs, and iterate to complete engineering tasks, are a promising direction for automating software operations. Reinforcement learning is a natural training approach: either a binary pass-or-fail signal or multi-state checks from a test suite, provides a clean reward without human labeling. The bottleneck is environment construction. Writing executable terminal tasks with correct initial states, verifiable final states, and graded rewards is labor-intensive, and the resulting datasets are small.

Gandhi et al. Gandhi et al. [2025] address environment construction with Endless Terminals, a pipeline that procedurally generates tasks without human annotation. Their pipeline produces structurally valid tasks – the container boots, the test suite runs, and this process discards roughly half of all generated candidates by OpenAI O3 model, one of the top models at that time. This seemingly sparse reward would highly possibly make RL training difficult: even with 16 samples per task, most batches return all-zero reward and produce no gradient. Future work is left to quantify the impacts of this sparsity issue over training instability.

In this work, we aim to bridge this gap through first anatomizing the challenges of data generation and verification in this brittle pipeline. As a starter, we should identify solvability band: the range of per-task pass rates where RL training can make progress. On the extreme cases, too low (near

∗^{*}This work was done when Isabel was an intern at SAP.

Preprint.

0%) and gradient signal is absent; too high (near 100%) and advantages collapse to zero. Raising solvability is necessary but not sufficient, the model must still fail on some tasks at training time to learn from contrastive examples.