Gold History and the Turn Metric

8 min read

T14
Deep Dive · Training Agentic Models

Every number in your fine-tuning report was measured on a past the deployed agent will never have.

Four models fine-tuned on multi-turn support workflows improved their next-turn score on every model and completed none of the tool-requiring workflows end to end — because turn-level supervision and turn-level evaluation both hand the model a correct history, and deployment hands it its own. Train and grade on self-generated histories or your report describes a system you did not ship; the fastest way to start is to put trajectories into your dataset whose past contains the model's own mistake.

Step 1Teacher forcing is the default because it is cheap, and it quietly changes what you are measuring.

Supervised fine-tuning on a multi-turn trajectory computes the loss for turn t with turns 1 to t−1 filled in from the reference trajectory. This is not a design choice anyone deliberated; it falls out of how the data is packed. One conversation becomes one training example, all turns are scored in a single forward pass, and the gradients are parallel across the sequence. The same convenience carries into evaluation, where "next-turn accuracy" means accuracy given the correct prefix, which is the only version you can batch.

At inference nothing fills in the prefix. The agent's turn 7 conditions on its own turns 1 to 6, including the tool call that returned an error, the argument it guessed, and the summary it wrote of a result it half-understood. These are two different random variables. The training-time one is "can you produce the right next action from a clean state"; the deployment-time one is "can you produce the right next action from the state you got yourself into." They correlate, which is why the practice survives, and they are not the same, which is why fine-tunes disappoint in a specific and repeatable direction.

The vocabulary is worth fixing because it keeps the bug visible. Call the first gold-history evaluation and the second self-generated-history evaluation. Every dashboard you inherited is the first kind unless someone wrote down that it isn't.

Step 2The gap has been measured, and it is not a few points.

The cleanest public demonstration is When Better Turns Do Not Make Better Agents, in the ACL 2026 REALM workshop proceedings. The authors fine-tune Qwen3 at 4B and 14B and Gemma 3 at 4B and 12B on multi-turn customer-support workflows and then evaluate the same checkpoints two ways. Under gold-history evaluation, SFT improves text-turn success and lifts overall next-turn success for every one of the four models. Under strict trajectory completion — run the workflow, require the whole thing — none of the four fine-tuned models completed a tool-requiring workflow.

Their diagnosis is the part worth internalising, because it explains why the aggregate metric actively conceals the problem rather than merely missing it. Support dialogues are mostly text turns: acknowledge, clarify, reassure, summarise. Tool turns are the minority and they are the ones that do the work. SFT improves the frequent, easy majority a great deal, and the weighted average moves up accordingly — while exact tool execution stays poor or gets worse. The headline number rose because of the turns that do not decide the outcome.

You can see why that must be true with one piece of arithmetic, which is also the reason trajectory success is a harsher instrument than anyone expects. Take a workflow with six consecutive tool turns, each of which must be exactly right:

per-tool-turn accuracy -> trajectory completion (6 decisive turns)

  0.95   ->  0.95^6 = 0.735
  0.90   ->  0.90^6 = 0.531
  0.85   ->  0.85^6 = 0.377
  0.80   ->  0.80^6 = 0.262
  0.70   ->  0.70^6 = 0.118

turn mix 85% text / 15% tool, text +12pts, tool -5pts:
  aggregate next-turn score   +9.5 pts      (looks like progress)
  trajectory completion       0.377 -> 0.262 (-30% relative)

The exponent is doing the damage. A five-point regression on the decisive minority is a thirty-percent relative loss at the trajectory level, arriving under a headline improvement of nearly ten points. No amount of statistical care on the aggregate rescues this, because the aggregate is the wrong estimator, not a noisy one — a distinction worth keeping separate from the genuine variance problems in eval variance and statistical power.

Step 3The filter that built your dataset removed exactly the states where recovery is learned.

Now ask where the training trajectories came from. Either you rejection-sampled them — generate many, keep the ones that succeeded — or you harvested production traces and kept the runs that ended well. Both pipelines are selecting on the outcome, which is the right instinct for quality and a disaster for coverage: a successful trajectory contains no state in which the agent has already made a mistake.

So the model is trained on a world where tool calls return what you expected, arguments were well-formed, and the plan held. It is then deployed into a world where its own turn 4 passed a malformed date and turn 5 has to notice. It has never conditioned on that state in training, not because the state is rare in deployment — it is the single most common interesting state in deployment — but because it is impossible in a dataset defined by success. This is the structural reason rejection-sampling SFT plateaus on agentic tasks, and the reason the flywheel in training on your own traces needs a deliberate exception carved into its filter.

Two consequences follow that are easy to mistake for separate problems. The model does not recover from its own errors, because it has never seen one from the inside — the failure mode catalogued in tool error recovery. And it narrates smoothly through them, because the only continuations it has ever been trained to produce from any state are confident ones; failure concealment is not a personality trait the model acquired, it is the shape of the only data it was shown.

Step 4On-policy methods beat SFT here for a reason that has nothing to do with rewards.

The standard account of why reinforcement learning outperforms supervised fine-tuning for agents is about the objective: a reward can score the outcome, whereas imitation can only score the token. True, and secondary. The first-order difference is the history distribution. RLVR and GRPO roll out the current policy, so every state in every gradient came from a trajectory the model can actually reach, errors and all. The mismatch this page is about simply does not exist in that setup.

This reframing is useful because it tells you what you can borrow without standing up an RL stack, which most teams should not do (prompt, fine-tune or RL is the honest decision tree). What transfers is the on-policy part, not the reward part. Sample trajectories from your current checkpoint, let them go wrong, then supervise the continuation from the states they reached. That is still supervised fine-tuning; the data is just drawn from the right distribution. It is also where process versus outcome rewards stops being an abstract debate: per-turn credit is only meaningful if the turns being credited are turns the model actually produces.

A useful test of whether a training pipeline has this problem: ask what fraction of training states were generated by a model other than the one being trained. If the answer is "all of them" — a distilled teacher's trajectories, a human's demonstrations, last quarter's checkpoint — the pipeline is off-policy and the gap is structural, not incidental.

Step 5Report four numbers, gate on one of them, and never average across turn types.

The reporting fix is mechanical and it is most of the value on this page. Keep gold-history next-turn accuracy — it is cheap, low-variance and genuinely useful as a fast signal during a training run. Demote it from the release gate. Then publish four separate numbers rather than one:

  • Text-turn quality — the frequent majority, judged however you judge prose.
  • Action correctness — did it choose the right tool, given the state.
  • Tool-execution exactness — were the arguments right, scored as an exact match on the call, not as a similarity.
  • Trajectory completion — self-generated history, whole workflow, binary.

Only the last of these is a gate. The other three are diagnostics that tell you why the gate moved, which is exactly what a single aggregate cannot do. The distinction between the third and fourth is the one teams collapse: a per-call exact-match score is a turn metric and inherits everything in STEP 1, while completion is the trajectory metric and is the only one whose distribution matches production. Trajectory and process evaluation covers how to score the middle of a run; outcome versus trajectory eval covers which to hold a release to.

One practical warning about the gate. A self-generated-history completion metric on tool-requiring workflows frequently reads zero for a while, which teams interpret as a broken harness and fix by relaxing the measure. In the study above, zero was the finding. A gate that cannot return zero is not measuring anything, and the companion failure — a suite with no task the system should fail — is why gold runs and the unsolvable task belongs next to this one in your eval design.

Step 6Mint recovery trajectories, and put them in the dataset on purpose.

The dataset fix is to manufacture the states your filter deleted. Start from a gold trajectory, corrupt one turn in a way the model plausibly would — a wrong argument, a stale id, a tool chosen one step too early — then resume generation from the corrupted state and keep the continuation that recovers. You now have a training example whose past contains an error and whose target is the repair. The expensive part is deciding which corruptions are realistic, and the cheap way to decide is to read your own production traces for the mistakes the model already makes.

Three rules keep this from going wrong. Label the perturbation so you can measure recovery rate separately by error class rather than as one blended number. Keep the mix deliberate — recovery examples teach repair, and a dataset dominated by them teaches a model to expect breakage and over-correct on clean runs. And never synthesise the error with the same model you are training, or you narrow the perturbations to the ones it already finds natural, which are the ones it is least likely to need help with. Environment design is where most of this work actually lives, and environment engineering for RL is the companion page for building the sandbox that makes a corrupted resume cheap to run.

Before your next fine-tune, do these three things in order. One: re-run your existing eval with self-generated histories and write both numbers down side by side — that single diff tells you how much of your reported progress was real. Two: split the aggregate into the four numbers above and make trajectory completion the only gate. Three: add recovery trajectories to the dataset, labelled by error class, and track recovery rate as a first-class metric rather than hoping it emerges from a success-filtered corpus.