RL Environments Explained: How AI Agents Learn Real-World Work
1 · How training data evolved
A human shows the right answer and the model copies it. The model can never get better than the person demonstrating.
The model makes many attempts and a verifier scores each one. The model can find better paths than any demonstration, but the verifier has to be right.
2 · What an RL environment is
How the parts fit together during training:
3 · Why expert humans are the bottleneck
Math (the answer is right or wrong), code (the tests pass or fail), and cyber (an attacker agent can be scored against a defender agent). Checking can be automated, so human effort goes into building realistic environments.
A slide deck, a legal memo. There are 10 valid approaches and dozens of possible mistakes. A model grading its own work is "like asking a human to grade their own homework". An expert needs to write a rubric covering the full range of acceptable answers.
"You need humans almost definitionally to measure what is beyond the frontier of the model capabilities."~17:40
4 · A real example: the legal environment
When you roll out 100 trajectories, the rubric has to rank them the same way a human expert would, and it must not be open to reward hacking, where the model finds a way to score high without actually being correct. Mercor checks this with trajectory analysis: roll out ~10 trajectories, score them, then have agent-based QA plus human reviewers confirm that the scores match expert judgment. Human preference labels can also serve as an eval for the auto-grader.
5 · The proof: RL on ~1,900 tasks
Why this matters to you: open models (GLM, Kimi K3) are now on the frontier leaderboards. With a small, high-quality task set, an application company can train an open model to frontier level in its own niche. Cursor was the first example, and he expects "dozens" more within 12 months. Compute, algorithms and data are the three pillars of an AI strategy, and data is usually what sets a company apart.
6 · Ways to get the data
| Pricing | How it works |
|---|---|
| By value | Work backwards from the goal ("frontier on leaderboard X"): how many tasks it takes and what that's worth to the customer. |
| By cost | 10 expert-hours × $150/h ≈ $1,500 cost, plus a margin that depends on how novel the task is. Tasks range from $50 to $10,000. |
7 · Q&A takeaways
| Question | Answer, in short |
|---|---|
| What does "data quality" mean? | Two things: realism (does it match a real lawyer's actual work, across the full range of tasks?) and verifier accuracy (do the rubric's scores match an expert's ranking?). |
| Where does synthetic data fit? | "RLVR is a bet on synthetic data": the model's own attempts are the training data. Models also help experts fill in the environments. But writing tasks and verifiers still needs humans. If you ask Fable to write rubrics for its own mistakes, it gets about half right, and that much noise makes the data useless for training. (Exception: distilling from a stronger model into a weaker one.) |
| Why have RL environments taken off, and what's next? | Deep Research was a "light" environment whose only tool was search. In 2025 the bottleneck became using all the tools and context on a laptop: "if we want it in the user distribution, it must be in the data distribution." Next: ultra-long-horizon tasks (100–1,000 human-hours, versus under 10 today) and virtual coworkers. See the chart below. |
| How do you know the base model is strong enough to train? | Compare pass@1 and pass@16. See the chart below. |
| Build the data yourself or use a partner? | (He runs a data vendor, so keep that in mind.) Have custom data built that you own exclusively, and use the partner's infrastructure and network of experts for scale. |
The "can it learn?" heuristic: pass@1 vs pass@16
The next gap: working with other people
8 · Glossary
| Term | Meaning |
|---|---|
| SFT | Supervised fine-tuning: training on example input→output pairs written by humans. |
| RLHF | RL from human feedback: humans choose the better of two model answers, and the model learns those preferences. |
| RLVR | RL with verifiable rewards: the model's attempts are scored by a checker (tests, rubric), and it learns from the scores. |
| RL environment | World + apps + tasks with verifiers. A sandbox where the model practices realistic work. |
| Verifier / rubric | The scoring function: a list of checkable criteria, or unit tests. |
| Rollout / trajectory | One full attempt by the model at a task, including every tool call. |
| Reward hacking | The model learns to exploit the verifier (scoring high without being right). |
| pass@k | Whether at least one of k attempts succeeds. pass@1 = succeeds on the first try. |
| CUA | Computer-use agent: an agent that operates apps through the screen, the way a person would. |
| GDPval / APEX | Benchmarks of economically valuable professional work (law, banking, consulting, …). |
9 · When you start building
- Pick one narrow domain where your product is used, and list the real tasks users do there.
- Build a small world: a realistic data room (docs, emails, sheets) based on a real project. Use models to fill it in.
- Expose your apps as tools (MCP/CLI) with mocked state so runs can be repeated. This is the same as Ep 02's Harbor "environment".
- Write tasks with rubrics made of specific, checkable Yes/No criteria. Have a domain expert write them, not the model.
- Validate the verifier: roll out ~10 attempts, score them, and check that the ranking matches what an expert would say.
- Check that the task can be learned: keep tasks where the model sometimes succeeds in 16 tries (pass@16 > 0, pass@1 low).
- Use these tasks as evals first. Later, run RL on an open model (GLM, Kimi) and check that it improves on held-out tasks and doesn't lose general ability.
Notes are based on a Whisper transcript, with misheard names corrected: "Mercur" → Mercor, "Kimmy K3" → Kimi K3, "GDP valve" → GDPval, "Rupert criteria" → rubric criteria, "Kua" → CUA, "Oil and Petroleum Act" → Oil Pollution Act (per the slide). Slides marked Speaker slide are captured from the video. The other diagrams are my own drawings.