This is part 1.3 of the RL training series. See part 1.2 here.
Of everything in Mercor's 397B RL guide, this is the line I'd put on a poster above the desk of anyone building the harness their agents train in:
"Together these fixes raised the base Qwen3.6-35B-A3B from 22.74% to 28.69% mean reward, with zero training. Those fixes bought roughly what one epoch of training would have bought on the unfixed harness."
The fixes were things like a PowerPoint tool that returned `None` on every call, a PDF tool that flattened multi-column tables, and Python packages missing from the sandbox. None of them touch the model, and all of them move the reward the way a training epoch does. If something moves reward like a weight update, it deserves the same treatment as a weight update: a version, a record of what it produced, and a cheap way to compare one version against another.
These are the same bugs that make trace reading worthwhile. In the last post, Mercor's published traces showed the trained 35B's failures moving into the environment after RL: 38 of its labeled failures were tool or harness problems, up from 11 before training. Traces told me the environment was getting in the way. This post measures what the environment costs in pass@1.
I built the measurement as a small, runnable example, and the most useful number the example produced wasn't the one I expected. In this third part of the series, I'll show you how to make your harness a versioned input to a cached eval, so a harness fix re-runs only the eval cells it touches.
What's in the example
- A world: a company's shared drive with a board-report PDF, an operating-model workbook with formulas, a strategy deck and an inbox. Six worlds, four analyst questions each, every answer exact.
- A policy: `claude-haiku-5-5` with tool use. No training; this is the eval side of the loop.
- Two harnesses: `HARNESS_V1` reproduces the bug classes from the guide, and `HARNESS_V2` fixes them. Nothing else differs between them.
The v1 bugs are real bugs, not stubs. The PDF's headcount table draws its values bottom-up, so `pypdf` (which follows the content stream) hands the agent region labels in one order and numbers in the reverse order, while `pdfplumber` reads the geometry and gets it right. The email server hangs on about a third of calls, and v1 has no timeout in front of the server. That gap is the guide's "anything without a timeout will eventually hang a rollout for its entire end-to-end budget" in miniature.
Every cell is an action
A trial is one `run_trial` task: download a private copy of the world, run the agent loop under the harness, return a `Trajectory`. Grading is a separate task with a deterministic verifier for the reward and a traced LLM judge for the justification.
The error policy is the guide's "classify every remaining error" written as task configuration: a harness deadline becomes an outcome, a rate limit becomes a retry with backoff, and a bad key fails fast without burning retries. Because the cache is keyed by (task, policy, harness, world, pass), the eval is a grid of cells that each run once.
In the console, a cell that already exists shows up as a cache hit that returns in about a tenth of a second:

How much did the harness bugs cost?
On 6 worlds × 4 tasks × 3 passes (72 trials per harness, about five cents of Haiku in total):
All 24 points come from two task types. Slides and spreadsheet tasks pass on both harnesses; PDF tables and email lookups are where v1 loses:

The harness that costs 24 points has a zero percent tool error rate, because its PDF tool succeeds and returns scrambled numbers, and its slides tool succeeds and returns `None`. Only the timeout fix produces an error, and that error shows up on the fixed harness, where one search call timed out on both attempts, came back to the agent as an error, and the agent searched again. A tool-success metric (the guide's ablation table reports one, 95–98%) is the right thing to track, and a tool-success metric can't see the bugs that cost the most.
The slides tasks pass on the broken harness because the agent works around the tool. The agent calls `read_slides`, gets `None`, tries again, gets `None`, tries `from pptx import Presentation` in the sandbox, gets `ModuleNotFoundError`, and then opens the `.pptx` with `zipfile` and reads the slide XML directly. Haiku routes around the bug in two extra turns. Under RL, that detour is what the policy learns. The guide describes a version of the same workaround: Mercor's trained 35B transferred well to a code-and-files-only harness because the model had learned to lean on code execution.
Letting a model read the failures
Mercor ran a coding agent over all its data before training. The example does the same with one call: `claude-sonnet-5-5` reads the failed v1 trajectories and lists suspected tool or environment bugs. Sonnet named the PDF layout bug ("labels and values are not paired … use pdfplumber table extraction") and the email hang ("add tool-level timeouts") without being told what to look for. The comparison and the audit both land in the run's report:

The auditor also got one finding wrong, instructively. It reported that `read_spreadsheet` truncated its output mid-cell, but the truncation was my own digest clipping tool output to 220 characters before handing it to the auditor. The digest now marks its own clips. The auditor also noticed that the timed-out trials showed no tool calls at all, and the missing calls were a real observability bug in my harness: a call was logged only after it returned, so a call that hung left no trace. The loop now records each call before awaiting it.
Adding a model costs its own cells
The same cache makes a leaderboard incremental. After the harness comparison, a `leaderboard` run with Haiku and Sonnet on v2 reused 60 of Haiku's 72 cells and ran 72 new Sonnet cells. Every trajectory records `produced_by_run`, so the summary can say how many cells actually ran.

The 12 Haiku cells that didn't come from cache all belong to one world. In the first comparison, the v1 and v2 evaluations built world `w5` at the same instant, both missed the cache, and v2's trials were keyed on the copy that lost. The fix is one argument: `build_world` now uses `flyte.Cache(behavior="auto", serialize=True)`, so concurrent calls for the same world wait for one build and reuse it.
What carries over to a real harness
The example uses a synthetic world and an API model, so the absolute numbers mean nothing for APEX-Agents. The structure of the eval is what transfers:
- The harness is a typed input with a version. Cache keys cover a task's inputs and its own body, not the helper modules it imports, so the version string is how a tool-code change reaches the cache.
- A trial is a cached action with an explicit error policy. Timeouts become outcomes, transients become retries, and nothing that already finished runs twice.
- Grading is separate from generation. A new rubric or a fixed verifier re-grades stored trajectories. In Mercor's setup the verifier runs inside the sandbox before teardown, so re-grading stored trajectories means snapshotting the final world state, which is a harness change in its own right.
- Failures get read by a model before anyone trains on them, and the digest you hand the model says where you clipped the trajectory.
Try it
Walkthrough in the docs tutorial.
A harness eval costs cents to rerun. Training ablations don't: every row in Mercor's ablation table is a full-weight RL run on a 35B model. In the final part of this series, I'll test whether LoRA adapters on a small model can stand in for those runs and pick the same winner.





