# RL Environments and Graders: Building, Validating, Grading (2026) <!-- ref: @knowledge/syntheses/rl-environments-and-graders-2026 type: framework tags: [RL environments, graders, verifiers, evals, rubrics, synthetic data] version: 1 updated_at: 2026-11-01T03:06:08.059Z --> Task-shaped synthesis for anyone who must build or judge an RL environment, a private benchmark, or a grader. Assembled from three 2026 talks: how Mercor builds environments for frontier labs, how Harvey grades planted-issue synthetic data rooms, and how LangChain structures a private benchmark. Market figure (Mercor, which sells this data): agentic training tasks sell for roughly $50 to $10,000 each; about 1,800 tasks plus about $500K of compute moved an open model's corporate-law score from 4.7% to 26.6%. Each section is one speaker's account; the vendors have commercial stakes. ### Build and Validate an RL Environment (Worlds, Apps, Tasks) > An agent training environment is a realistic world, rendered into cloned apps, with tasks scored by verifiers. Validate the verifier and the base model before spending compute. *Synthesized from Brendan Foody (CEO, Mercor), "RL Environments Explained: How AI Agents Learn Real-World Work," Sequoia Capital, 2026-08-12.* Brendan Foody describes how Mercor builds reinforcement-learning environments for frontier labs and for application-layer companies such as Harvey, Sierra, Cognition and Ramp. The recipe below generalizes his account. Mercor sells this kind of data, so the claims come from someone with a commercial stake in them. #### When to use - You want to post-train a model, open-weight or otherwise, to do multi-step work in one vertical, such as legal, finance or support ops. - You need an eval that resembles real laptop work more closely than single-turn Q&A does. #### The anatomy (three layers) 1. **World.** This is the content of a real project: messages, emails, docs, sheets and slides, along with realistic file sizes and clutter. 2. **Apps.** These are high-fidelity clones of the tools the work happens in, such as a CRM, a ticketing system or an office suite. The agent reaches them through MCP, a CLI or computer use. 3. **Tasks.** Each task is a prompt paired with a verifier. The verifier is a rubric or a unit test, and the same task can serve as an eval or as training data. #### Steps 1. **Start from a real engagement.** A domain expert writes up an actual project they worked on and outlines the full data room: which files exist, who emailed whom, and how large things are. Mercor's open-sourced APEX Agents legal environment was built this way, with big-law attorneys writing the outlines. 2. **Let models fill in the outline, and let humans control realism.** Models can generate most of the world's content. The expert's outline and a taxonomy of the real work keep the distribution realistic. 3. **Render the world into the app clones.** The agent should find the information where a human would find it, not pasted into the prompt. 4. **Write rubrics the way a professor grades an essay.** List what a correct answer must contain. Map the valid ways to solve the task (Foody suggests a slide deck might have about 10) and the dozens of likely mistakes. Add criteria that block reward hacking. 5. **Validate the verifier with trajectory analysis.** Roll out about 10 trajectories from the target model and score each with the rubric. Then check that the rubric ranks them the way human experts would, using agentic QC plus human review. Human preference labels can also serve as an eval for an automated grader. 6. **Check that the model can learn the task (pass@1 vs. pass@16).** The best training tasks fail on the first attempt but succeed once or twice in 16 rollouts. A score of 0/16 gives almost no learning signal, which means either the task is too hard or the model is too weak or too small. 7. **Start small, then measure transfer.** Foody's reference run used about 1,800 tasks and about $500K of compute on an open-weight model. Afterwards, check whether gains show up on neighboring benchmarks, not just the one you trained on. #### Gotchas - **Self-grading fails.** If the model being trained writes rubrics about its own mistakes, Foody reports that roughly half the criteria come out wrong, and that much noise ruins training. - **Coverage gaps.** Most current environments involve tasks under about 10 hours and contain almost no interaction with other people. Foody names tasks of 100+ hours and simulated co-workers as the next frontier. - **Ownership.** If the dataset is meant to be a moat, build it with a dedicated team under exclusive terms. Shared, off-the-shelf datasets only give you parity with everyone else who bought them. ### Rubric-Backward Synthetic Data: Plant the Issues, Then Grade the Catch > When you can't see real inputs, write the answer key first, then manufacture inputs that contain exactly those answers. *Synthesized from Gabe Pereyra (co-founder and president of Harvey), "Harvey's Playbook for Competing With Frontier AI Labs," Sequoia Capital Training Data, 2026-08-11.* #### When to use Use this when the task's real inputs are privileged, confidential, or simply never published. Even if the finished output sometimes becomes public, you still need a large, coherent, graded environment for evaluation or RL. Pereyra's case is M&A due diligence. A deal's data room can hold around 10,000 contracts plus negotiation emails and meeting records, and none of it is public. A signed purchase agreement may surface later, but the inputs that produced it never do. Asking lawyers to hand-build a coherent fake data room had been impractical. #### Steps The method, which Pereyra credits to a Harvey colleague named Julio, works backward from the grading criteria: 1. **Write the rubric first.** List every issue a competent reviewer should catch. In diligence that might be contracts that contradict each other, terms that don't tie together, or a document that should exist but is missing. 2. **Plant those issues deliberately** into a generated input set. Because you authored the issues, you have perfect ground truth. 3. **Make the inputs realistic.** Domain experts steer coding and generation models to produce the bulk of the material. Harvey then uses data vendors (Mercor, Snorkel) to scale it and raise fidelity, especially for training-size sets. 4. **Have the model do the real task.** In Harvey's case, the model writes a diligence memo over the whole room. 5. **Grade on recall of planted issues.** The question is simply whether the output caught every known problem. Harvey implements this as 1,000+ unit tests scored by an LLM judge. #### Gotchas - **Judging cost compounds.** Running a frontier-size judge across a thousand-plus checks for every RL rollout gets expensive quickly. Pereyra says Harvey had to engineer for efficiency (with LangChain) before the environment was usable for training. - **Difficulty should come from realism, not from adversarial targeting.** Asked how to design rubrics that separate frontier models, Pereyra said Harvey doesn't target model weaknesses. A faithful reproduction of top-tier client work is already beyond current models. Experience matters here: the lawyer leading this work had about four years of hands-on time with the models. - **Distribution mismatch remains.** Planted-issue environments skew toward hard, future-facing tasks. Real usage also includes mundane work, such as drafting emails, that the synthetic set may not represent. Pereyra lists this as an open problem, because the real distribution can't be inspected. - **Synthetic data is a starting point.** Pereyra says plainly that it "isn't good enough" on its own. It is a way to get started. #### Why it matters beyond the data Pereyra reports a commercial side effect. Law firms had asked Harvey to prove it could improve models on their data, while refusing to share data for that proof. Demonstrating results on planted-issue synthetic rooms broke the standoff, and firms began asking for the same process to run on their own private data. ### Build a Private Agent Benchmark, Then Port Your Competitors' Winning Behaviors > A private benchmark is how your organization defines "good." Write each task as a sandboxed environment, a golden solution, a verifier, and a prompt. Then run rival harnesses against it, work out why the winner wins, and build that behavior into your own harness. *Synthesized from Harrison Chase (LangChain), "Owning Your Intelligence Starts With the Harness," Sequoia Capital Training Data, 2026-08-13.* #### When to use Use this when you need to compare models, harnesses, or reasoning-effort settings on *your* work rather than on public leaderboards. Chase cites Satya Nadella's argument that private evals are what define quality inside an organization. The task format below follows Harbor, the open-source runner from the makers of Terminal Bench 2, which Chase describes as becoming the standard. The structure is what matters, not the runner. #### Steps 1. **Write each task as four parts:** - **Environment:** a Dockerfile for the sandbox the agent runs in. This matters most for stateful, long-running agents, whose results depend on the state they start from. - **Solution:** a golden solution that proves the task can actually be solved. - **Test:** the verifier. It can be code, unit tests, an LLM-as-judge, or an agent-as-judge. - **instruction.md:** the prompt handed to the agent. 2. **Run tasks in parallel sandboxes** across each combination of model, harness, and reasoning effort you want to compare. 3. **Score three things together:** reward or accuracy, latency, and token cost, per experiment and per task. Accuracy alone hides configurations that win but are too slow or too expensive to use. 4. **Run competitor harnesses on the same benchmark.** LangChain built "issue bench" for its trace-analysis agent and ran it against Deep Agents, Codex, and Claude Code. 5. **Diagnose why the winner wins, then port the behavior.** In LangChain's run, Codex did well because it aggressively wrote itself small scripts to process traces. LangChain then ran a "codexification" sprint to build that habit into Deep Agents. The reusable lesson is that a rival harness on your benchmark gives you a source of specific behaviors worth copying, not just a score to beat. #### Gotchas - Skipping the golden solution leaves you unable to tell an unsolvable task from a failing agent. - Step 5 only works if you read traces, not just scores. You need to see *what* the winning harness did, not only that it won. - *(Editorial)* Judge-based verifiers inherit the judge's blind spots. Use code checks wherever the outcome can be checked deterministically. - Capable agents may game the benchmark itself. See `coding-agent-eval-integrity`. To keep the benchmark growing from real failures, see `incident-to-eval-review-autonomy`. ## Sources - `@content/youtube/sequoia/2026-08-12-rl-environments-explained-how-ai-agents-learn-real-world-wor` - `@content/youtube/sequoia/2026-08-11-harvey-s-playbook-for-competing-with-frontier-ai-labs` - `@content/youtube/sequoia/2026-08-13-owning-your-intelligence-starts-with-the-harness` --- *Related: `@content/web/huggingface/2026-11-26-real2simlab-unified-platform` · `@content/web/huggingface/2026-11-23-cua-see-self-evolving-evals` · `@content/youtube/eo-global/the-problem-with-ai-agents-no-one-is-talking-about-yutori-abhishek-das` · `@content/youtube/nate-herk/5000-hours-of-building-ai-in-just-17-minutes` · `@content/youtube/cole-medin/this-completely-changes-the-way-we-build-production-ai-agents-vercel-eve`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*