TL;DR
When AI coding agents run, their runtime "harnesses" quietly rewrite, prune, and compact the conversation behind the scenes—meaning the session log you see isn't actually what the model saw. Roller is an open-source system that captures the exact requests sent to the model, binds them to their execution environment, and reconstructs accurate training windows. It reveals that a task passing a benchmark doesn't mean its trajectory is safe to train on.
What Problem Does This Paper Address?
Modern AI agents—like Claude Code, Codex, and Google Antigravity—don't talk to language models in a vacuum. They operate through runtimes called Harnesses that assemble prompts, expose tools, and manage context. Because Harnesses actively manage memory (for example, by summarizing old history or pruning bulky tool outputs), a Harness's saved session log can diverge sharply from the actual prompts sent to the model.
If researchers naively replay these session logs to fine-tune new models, they risk training an assistant response on a prompt that was never actually sent. Configuration mismatches can also slip by unnoticed: in one experiment, an agent was instructed to use low reasoning effort, yet every outgoing request to the model actually carried high—and the task still passed. Without separate, verifiable evidence of what was requested, what was sent, and what happened, both evaluation scores and training datasets become unreliable.
Methods
Roller addresses this by separating and linking three distinct records for every agent rollout: the native Harness session, a normalized step trace (ACTF), and the raw model-call traffic.
- Reproducible Execution: Before a rollout starts, Roller snapshots all task inputs and context files by content and creates a "run lock" binding them to specific model settings, Harness versions, and container images. If a run is interrupted and resumed, Roller verifies compatibility before reusing any existing samples.
- Context-Window Reconstruction: When a Harness compacts its context mid-task, Roller uses captured model-call evidence to partition the trajectory into append-only windows. Each training segment begins with the actual prompt from its first captured call, and Roller marks a
target_start_indexso that replayed history conditions future responses without being double-counted in the training loss.
- Sub-Agent Attribution & Audits: Using native identifiers, Roller separates root agent steps from delegated sub-agent calls. It also audits captured requests for explicit reasoning conflicts, token-limit stops, and completion evidence, storing training eligibility independently from benchmark scores.
Datasets
The authors evaluate Roller across three main setups:
- Reasoning-Level Verification Matrix: A deterministic write-and-read marker task tested across 196 configurations (7 Harnesses × 7 models × 4 reasoning levels).
- Standard Benchmarks: QwenClawBench (100 tasks, 3 rollouts each, judged by GLM-5.2) and the first 100 public tasks of SWE-Bench Pro.
- Trajectory Collection & Fine-Tuning: 1,400 scheduled animation and HTML slide-generation tasks run with GLM-5.3-Flash on OpenClaw (718 started, yielding 700 ACTF traces and 642 deliverables), plus 20 held-out tasks per suite to evaluate fine-tuned models.
Key Insights and Ideas
- Task success ≠ training eligibility: A rollout can pass its benchmark test while violating its configuration (like silently upgrading reasoning effort from
lowtohigh). Relying solely on task pass rates pollutes training data. - Grader scores, deliverables, and completion status measure different things: In fine-tuning experiments, stripping out all teacher reasoning produced the highest grader scores and saved all deliverables, yet caused the Harness to report far fewer completed tasks.
- Long-tail reasoning hurts student models (sometimes): Teacher reasoning lengths had an extreme tail (median of 182 characters, 97th percentile of 59,878 characters). Truncating or blanking overly long reasoning spans before fine-tuning improved held-out slide scores without breaking task completion.
Key Results
- Reasoning Audit: Out of 196 configurations, 82 passed the full check, 23 had unverified reasoning levels, and 8 showed explicit reasoning conflicts (all 8 were excluded from the training aggregate).
- Benchmarks: On QwenClawBench, GLM-5.2 scored 59.26 (282/300 valid rollouts) and DeepSeek V4 Flash scored 46.52 (245/300 valid). On SWE-Bench Pro, DeepSeek V4 Pro resolved 55 of 100 tasks (99 valid).
- Fine-Tuning (Qwen3.5-35B-A3B on GLM-5.3-Flash trajectories): On held-out slides, blanking teacher reasoning above 2,000 characters raised the grader score from 9.40 to 9.62 with 20/20 tasks reported complete. Blanking all reasoning raised the score to 9.70, but dropped reported completions to 7/20. On held-out animation, blanking above 12,000 characters and blanking all reasoning both scored 10.00 and saved 20/20 deliverables, yet their completion counts were 20/20 and 3/20, respectively.
Limitations and Future Work
- Service-Side Black Box: Captured requests prove what was sent to the model API, but verifying what happens inside the provider's service (such as tokenization, silent truncation, or internal routing) requires separate evidence.
- Generalizability: The fine-tuning study examined a single teacher–student pair (GLM-5.3-Flash to Qwen3.5-35B-A3B) on two task suites. How reasoning filtering affects other models and domains remains an open question.
Summary updated