← All episodes

Sequoia AI series · Episode 03

RL Environments Explained: How AI Agents Learn Real-World Work

Brendan Foody, CEO of Mercor · ~26 min · Video · Transcript (Whisper) · Previous: Ep 02, Agent Harnesses

2-minute recap. Training data has moved from low-skill crowdsourcing (SFT/RLHF, 2020) to agentic data built by experts: first RLVR (rubrics and unit tests, e.g. Deep Research in 2024), then full RL environments (2025). An RL environment has three parts: Worlds (realistic data rooms of docs, emails and sheets), Apps (high-fidelity clones of Salesforce, M365 and similar, reachable through MCP, CLI or computer use) and Tasks (a prompt plus a verifier, i.e. a rubric or unit tests). The model rolls out many attempts, the verifier scores them, and RL learns from the scores. Humans are the bottleneck because only experts can reliably judge work beyond what the model can do, and a model grading itself is "grading its own homework". The proof: RL on just ~1,900 legal, banking and consulting tasks took an open model (GLM-4.7) from 4.7% to 26.6% on corporate law, and the gains carried over to other benchmarks. Application companies can now do this themselves, and their data is what sets them apart.

1 · How training data evolved

Slide: The evolution of data. Crowdsourcing (SFT and RLHF, behavior cloning, low skill, no expert collaboration, GPT-3 in 2020) to Agentic data (RLVR using rubrics and unit tests, Deep Research in 2024; RL environments using apps, worlds and RLVR, Claude Opus 4 in 2025)
Speaker slide — Crowdsourcing era: people wrote example answers (SFT) or picked the better of two answers (RLHF). This is "behavior cloning", where the model imitates humans. Agentic era: experts write tasks plus verifiers, and the model learns by trying and being scored (RLVR). RL environments add realistic worlds and apps around those tasks.
Old · imitate
A human shows the right answer and the model copies it. The model can never get better than the person demonstrating.
New · try and get scored
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

Slide: How to build an environment. Worlds, Apps, Tasks
Speaker slide — Worlds: data-rich workspaces that mirror real projects (slides, docs, sheets), synthetically augmented and mixed with acquired real-world data. Apps: high-fidelity clones (Salesforce, ServiceNow, M365) reachable via MCP, CLI or CUA (computer-use agent), where mocks let the app keep state. Tasks: realistic, written by experts and graded by rubric. Each has prompts and verifiers, and can be used for eval or training.

How the parts fit together during training:

Task prompt written by an expert ENVIRONMENT World Apps Model acts: N attempts (e.g. 16–100 trajectories) Verifier rubric · unit tests Scores → RL update reinforce what scored high Better model tries again next round
My diagram of the loop he described. The verifier is where most of the difficulty (and the human expertise) goes.

3 · Why expert humans are the bottleneck

Slide: expert data is the bottleneck to AI progress. Expert hours per quarter grew from 2 thousand in Q1 2024 to 2.5 million in Q2 2026
Speaker slide — Expert hours per quarter at Mercor went from ~2k (Q1 2024) to 2.5 million (Q2 2026). The three reasons: (1) we need environments for everything (GDPval alone covers many occupations, each with its own apps and scenarios), (2) only humans can measure the frontier, (3) experts must verify what "good" is.
Easy domains
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.
Hard domains
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

Slide: sample legal environment with the project scenario and data room, the rubric with pass/fail criteria, and a cross-model scorecard
Speaker slide — Left: the world and apps. A lawyer from a top firm (e.g. Latham & Watkins) writes up a real project, here a tanker liability case under the Oil Pollution Act. They outline a data room of 140 files, which is populated with model help and loaded into cloned Calendar, Chat, Docs, Email, Sheets and Slides apps. Middle: the task and rubric. The prompt asks for a liability calculation. The rubric lists specific checkable claims (e.g. "states max liability is $56,709,300") marked Yes/No. Right: the scorecard. The best frontier models score only ~40%.
The hard part · verifier accuracy
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

Slide: post-training on APEX-Agents. GLM-4.7 plus RL on 1,885 tasks: corporate law 4.7 to 26.6 percent, investment banking 1.7 to 20.9, management consulting 2.9 to 21.6; transfer gains on GDPval, APEX, Toolathalon; GPQA flat
Speaker slide — The open model GLM-4.7 plus RL on 1,885 tasks, for roughly $500K of compute. Corporate law went from 4.7% to 26.6% (+21.9 pp), investment banking +19.2 pp, and management consulting +18.7 pp. It generalized to benchmarks it wasn't trained on: GDPval +7.7 pp, APEX +5.7 pp, Toolathalon (tool use) +8.0 pp. General knowledge (GPQA) was basically unchanged, so the model didn't forget anything.

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

Slide: how to curate high-quality data. By task, off-the-shelf, expert staffing
Speaker slide — By task (the most common): expert-written tasks with custom worlds, priced per task. Frontier labs may buy 50k tasks a month, and some tasks take a human up to a month. Off-the-shelf: pre-built datasets, which newer labs prefer because it makes no sense for 10 labs to build the same thing. Expert staffing: you hire and direct the experts by the hour (how Harvey started).
PricingHow it works
By valueWork backwards from the goal ("frontier on leaderboard X"): how many tasks it takes and what that's worth to the customer.
By cost10 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

QuestionAnswer, 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

0 / 16 correct ✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗ Hopeless no positive signal to reinforce 1–2 / 16 correct ✗✗✗✓✗✗✗✗✗✗✗✗✗✓✗✗ ★ Ideal learning zone fails pass@1, succeeds at pass@16: RL makes the rare success the norm 16 / 16 correct ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ Already solved nothing left to learn Pick tasks just beyond the model: this is the same "edge of capability" idea as Ep 01's frontier loop.
My diagram of his answer. Roll out 16 attempts per task. Learning happens where the model sometimes succeeds.

The next gap: working with other people

Share of real job tasks that involve other people 60–70% Share of evals that measure it ~1%
The rough numbers he quoted. "Virtual coworker" environments are meant to close this gap. (The benchmark he named as a partial exception sounds like τ-bench in the recording.)

8 · Glossary

TermMeaning
SFTSupervised fine-tuning: training on example input→output pairs written by humans.
RLHFRL from human feedback: humans choose the better of two model answers, and the model learns those preferences.
RLVRRL with verifiable rewards: the model's attempts are scored by a checker (tests, rubric), and it learns from the scores.
RL environmentWorld + apps + tasks with verifiers. A sandbox where the model practices realistic work.
Verifier / rubricThe scoring function: a list of checkable criteria, or unit tests.
Rollout / trajectoryOne full attempt by the model at a task, including every tool call.
Reward hackingThe model learns to exploit the verifier (scoring high without being right).
pass@kWhether at least one of k attempts succeeds. pass@1 = succeeds on the first try.
CUAComputer-use agent: an agent that operates apps through the screen, the way a person would.
GDPval / APEXBenchmarks of economically valuable professional work (law, banking, consulting, …).

9 · When you start building

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.