Most agent benchmarks measure the happy path: call the right tool, get a clean result, move on. Production agents don't fail there. They fail at the recovery — the 500 error, the rate limit, the timeout, the malformed JSON that comes back from a tool that was supposed to be reliable.

I wanted to know how much of that failure is a data problem. So I ran a small, fully measured experiment.

Setup

  • Tasks: 60 held-out MCP-style failure-recovery tasks. Each task hands the model a broken trajectory — a tool call that errored, timed out, hit a rate limit, or returned malformed output — and asks for the recovery step.
  • Model: Qwen2.5-1.5B-Instruct, base vs. LoRA fine-tuned.
  • Training: 2,000 rows of recovery trajectories (LoRA). The evaluation tasks were held out from training.
  • Scoring: a recovery counts if the model's next action is valid and moves the task forward; "completed" means the task reaches its goal state. Schema validity is checked separately.

Results

Base LoRA
Recovered 1/60 34/60 (56.7%)
Completed 1/60 31/60
Schema errors 0/60 1/60

Recovery by failure type (LoRA; 10 tasks per type): rate_limit 3/10 · conflict_lock 5/10 · auth_permission 8/10 · not_found 6/10 · invalid_argument 7/10 · other 5/10. The base model recovered 0/10 in every type except "other" (1/10).

The base model almost never recovers. My read — interpretation, not something the aggregate numbers prove — is that it doesn't know what a good recovery step looks like, so it falls back to generic behaviour. Training on 2,000 recovery trajectories was associated with recovery rising to 34/60 on the same held-out tasks.

Honest limits

  • Rate limits are still the weakest category: 3/10. Backoff-and-wait behaviour is underrepresented in the training rows, and it shows.
  • This is one small model and one run of 60 tasks. Treat the numbers as a signal, not a benchmark.
  • LoRA also produced the run's only schema error (1/60, versus 0/60 for the base). That is one observation from one run — not enough to generalise, but worth watching.

Why I'm publishing this

The interesting part isn't the LoRA trick — it's that recovery behaviour is teachable with a modest amount of the right data, and measurable with a small held-out task set. If you evaluate agents, evaluate the recovery, not just the first attempt.

I turned the scoring side of this experiment into a free API: you fetch the task list, run your own agent, and POST its outputs. You get pass/fail and a failure classification per record. The golden data never leaves my side — the API returns scores, not answers.

If you run the eval, I'd genuinely like to hear which failure category your agent is worst at. My bet: rate limits.