This is part 1.1 of the RL training series.
It's almost the end of 2026, the year of agents, and for any of you RL practitioners out there post-training agents on your own proprietary tasks, I consider Mercor's 397B RL training guide essential reading. They've taken `Qwen3.5-397B-A17B` from 16.11% to 27.29% Pass@1 on held-out APEX-Agents tasks with SkyRL, Harbor and a Ray cluster, and to all of our benefit, they've published the recipe, the configs, the ablation table, and the eval traces. In this four-part series, I'm going to break it down and show you how to make this recipe durable and robust to infrastructure failures.
One sentence in their training recipe has stuck with me:
"the only real difference between a 35B run and a 397B run is the RL systems work."
The algorithm (DPPO, `prompt_mean` loss aggregation, a context nudge) was chosen on the 35B dev model and carried to the 397B, and what had to be rebuilt was the cluster around it. We've written about this idea before here, but in this series I wanted to further unpack the idea of the scale-invariant and scale-dependent components to an RL workload.
If you've read the μTransfer paper (Tensor Programs V), the split between algorithm and infrastructure will feel familiar. μP's contribution is to find the quantities that stay fixed as the model grows, tune them once on a small proxy, and stop re-tuning them at every size. The Mercor recipe has its own version of that split. Some of its lessons are about the model's size and the cluster it runs on, where you'll reconfigure those settings at every scale. Others are about the harness, the data and the evals, which don't care how many parameters the policy has and which you'll run hundreds of times.
I sorted all fourteen of the guide's lessons, and for each one I wrote down what the recipe already does about it and what (if anything) a durable AI runtime like Union.ai adds.
What's a scale-invariant lesson?
- Scale-invariant: the work and its answer are the same for a 35B and a 397B policy. Fixing a PDF tool, classifying errors, deciding how many eval passes make a tie.
- Scale-dependent: the answer changes with the model or the cluster. Megatron parallelism, how many vLLM engines it takes before the trainer stops waiting, KV-cache-bound concurrency.
- Mixed: the lesson applies at every scale but its numbers don't (judge rate limits at 300 vs 800 concurrent rollouts).
The fourteen lessons, sorted
By my count, nine of the fourteen are scale-invariant, three are scale-dependent, and two are mixed. And of the nine scale-invariant ones, the recipe already handles three about as well as anything would (2, 3, 7).
If you sort the same fourteen by where the work happens, they fall into three places:

Where doesn't a durable runtime help?
Rows 10, 11, 12 and 14 are where a 397B run actually differs from a 35B run, and almost none of that is outside the cluster. You can see the difference in Mercor's own launch scripts. Diff `run_qwen36_35b_fully_async.sh` against `run_qwen35_397b_fully_async.sh` and the algorithm block doesn't appear in the diff at all, while the cluster lines all do (trimmed and regrouped here):
The public 35B script is sized for a 14-node cluster, so it runs 10 engines where the guide's run had 12, and scales the concurrency cap down to match. The rest of the scale work is in budgeting 3,600 s for NCCL warm-up on cold nodes, pinning the entrypoint to a node with 370 GB of spare host RAM, and sizing KV cache against rollout concurrency, all of which is handled by SkyRL, Megatron, vLLM and Ray. Ray already restarts actors and retries tasks, and a detached named actor outlives its driver. The Flyte side of our own SkyRL experiments (design notes) is built on exactly those Ray features, and the most a runtime adds there is a durable record of which steps finished, so a crashed driver replays them instead of redoing them.
Where does work have to rerun?
The scale-invariant rows have something in common: you run them constantly. Every harness fix is a re-eval. Every new checkpoint is three passes over 480 tasks. Every new dataset involves an overfit run, a trace read and a harness audit before a single gradient step. By the guide's own accounting, the harness fixes alone "bought roughly what one epoch of training would have bought."
That work has the shape that perfectly fits a durable runtime. It fans out to thousands of trials, it fails in small pieces (one sandbox, one judge call), and most of it doesn't need to run twice. In code, the trick is to make each piece a task whose cache is keyed by its inputs. Stripped down to pseudocode, an eval looks like this:
Every input that changes the answer is in a function signature, so each kind of change pays only for the steps that read it. A harness fix gets a new `Harness.version`, which runs the new version's cells once and leaves the old ones as the baseline. A fourth pass runs one pass. A new rubric re-grades stored trajectories without re-rolling them, and a new failure category re-labels traces without re-parsing them:

The other three posts in this series test whether the scale-invariant work behaves this way, on public data and runnable code:
- What 1,068 Terminal-Bench traces say: a pipeline that reads Mercor's published eval traces end to end and labels every failure.
- Your harness is an input: a real Claude agent on a synthetic company drive, run on two harness versions that reproduce the bug classes the guide describes, with every eval cell cached.
- Can a LoRA screen pick the right ablation?: the guide's loss-aggregation ablation, run as LoRA adapters and at full weight on a small model, to see whether the rankings agree.
Recap
- Scale-dependent (rows 10–12 and 14): parallelism, engine counts, KV-bound concurrency, warm-up budgets. These stay in SkyRL, Megatron, vLLM and Ray.
- Already solved in the recipe (rows 2, 3, 7): timeouts, process isolation, token-in/token-out.
- Scale-invariant and repeated (rows 1, 4, 5, 6, 8, 9, 13): harness evals, trace reading, error policy, overfit checks, multi-pass evals, ablation screens. Write these once as cached, versioned steps, and each new checkpoint, harness or dataset pays only for its own cells.
Try it
In the next post, I'll start on the scale-invariant list with lesson 6, reading eval traces. Mercor published 1,068 of them for Terminal-Bench 2.1, and I'll show you what a pipeline that reads every one of them says about where agent time goes and how the agents fail.






