Scaling experts to build hundreds of knowledge work environments
Increasingly, post-training teams are optimizing agent performance in subjective domains where taste is hard to verify. To do so, they build tasks that simulate work in RL environments so performance can be measured and optimized.
Building tasks for these domains often requires human experts to ensure quality and alignment with expert opinion. However, experts are scarce. Asking them to write every task from scratch does not scale, and what experts craft by hand is often too easy for frontier models.
Building these environments is therefore both a technical and an operational challenge: how can we focus an expert’s time on the highest-leverage parts of task creation, and let a synthetic data pipeline do the rest?
We present a human-in-the-loop recipe to scale experts in task creation. In partnership with a model lab, we built hundreds of legal tasks for evaluating and training agents, working with practicing lawyers across several jurisdictions and practice areas.
Each of our tasks needs to satisfy the following constraints to be useful:
- Headroom: Frontier models miss a meaningful share of criteria while the task remains solvable. This implies there’s something for the frontier to improve on.
- Expert alignment: An expert agrees each criterion is fair, so lost points reflect legitimate mistakes and different defensible answers still get credit.
- Realism: An expert recognizes the prompt and source files as sufficiently realistic.
- Expert efficiency: The pipeline uses as few expert hours as possible while maintaining quality.
While the details of this recipe are specific to legal work, we think the principles behind it generalize to other knowledge work domains.
Legal Task Setup
We define a task as follows:
- An agent receives a lawyer's request as a prompt, which may come with source files in a workspace folder.
- The agent works through the provided context in a workspace and submits an answer, which may include output files.
- The answer is graded against a hidden set of pass or fail criteria by a judge model, and the fraction passed is the score, which serves as the reward in training.
Example case
The apartment refund task
Coding tasks can verify an answer with executable tests, but verifying a legal task is more subjective. We designed our legal task verifier with rubric-based criteria that capture how a lawyer judges the answer.
We selected legal experts from multiple jurisdictions and practice areas for diversity. We found that part-time experts who were active AI users in their day-to-day work tend to be more effective: they have a better theory of mind for how models behave and where they fail, and more ideas from their day job, which helps in crafting difficult tasks.
The recipe
We initially asked lawyers to craft every task by hand. They had to find or assemble the source files, write the prompt and the criteria, and test the finished task on a frontier model. This ran into two problems:
- Too slow: Each task took between 2 and 8 hours of expert time.
- Too easy: A frontier model passed about 90% of the criteria on these tasks.
The other extreme is no better: having models generate the whole task synthetically produces AI slop, and lacks realism and coherence when judged by lawyers.
What crafting by hand did give us was a close look at how lawyers work. Over many iterations with our experts, we arrived at a recipe that keeps the parts they do well and hands the rest to a data pipeline.
Where the expert comes in
Step 1: Stories seed tasks
We also tried generating tasks directly from public documents such as court cases. This approach led to two problems further down the line:
- Slow review: Experts first had to understand an unfamiliar matter, so the final review was very slow.
- Out of distribution: Most of the interesting and useful cases in legal come from private workspaces rather than public ones. You rarely see internal M&A cases or private contract negotiations publicized. These cases also tend to be higher-value tasks.
Public documents alone therefore did not fit our goals, and we noticed an alternative approach that was more effective: asking lawyers to tell case stories.
Our experts found it natural to recall interesting stories about cases they had worked on. As such, we made storytelling the starting point of every task. Specifically, a story consists of:
- People: Who was involved and what each person wanted.
- Events: What happened, in order, because the order decides who knew what at each point.
- Paper trail: The files or records each event left behind.
- Failure modes (optional): Sometimes lawyers would also supply what they thought the difficulty levers or failure modes were.
To save time, an expert can use voice dictation to brain dump their story and have an agent format it into the above schema.
Example case
The apartment refund case
Fictional dates · 2024
The buyer books the apartment
The buyer pays a deposit while the apartment is still under construction.
The bank pays out part of the loan
The buyer's bank approves a loan and pays out only part of it to the developer.
The buyer cancels
Construction runs late, so the buyer cancels the purchase.
The regulator orders a full refund
The housing regulator orders the developer to refund the buyer in full, with interest, by a deadline.
The sales director wants to keep the deposit
The sales director asks the lawyer to keep the deposit and refund the rest once the apartment is resold. The regulator's order overrides that instruction.
Starting with a lawyer’s own story addresses both problems. Each story typically yields three tasks.
Step 2: Redacting case material
When a story draws on real client material, we redact it before the research agent sees it. A redaction agent works offline and replaces every private person and organization with a consistent, realistic substitute across the documents, file names, and metadata. A separate automated check rejects the result if any original name or contact detail survives.
Courts, places, dates, and amounts stay as they are, because the legal problem depends on them.
Step 3: Enriching stories with research
While experts typically provide a good timeline of events and a few documents for their stories, they are not able to produce a dense set of documents quickly. To resolve this, we conduct online research against a large public corpus of legal documents to densify the story. This is similar to experts manually pulling contract templates instead of writing contracts from scratch.
A research agent starts with the redacted case material and builds a case file by adding two kinds of public material:
- The law behind the story: The statutes, regulations, and decisions that applied on each date, including rules that none of the story's documents mention.
- Real documents like the ones in the story: For each document the story mentions but the expert did not supply, we pull a comparable real one from the public record, such as a filed agreement or a regulator's order.
Example case
Inside the case file
We keep the case file private and save the public documents unchanged. When a task is later built, any document the story needs is adapted from these real ones with as few edits as possible, and written from scratch only as a last resort.
Based on expert feedback, we learned that the best synthetic data generation ironically generates as little as possible and focuses on data transformation.
Step 4: Searching for hard tasks
Now that the story has a rich case file, we construct tasks by rewinding it to different temporal cuts. A cut is a point in the story where someone needed legal work. Everything before it becomes the agent’s workspace (input), and the work the lawyer did next is withheld as the golden answer.
For each cut, a model starts from a later state of the case and identifies the work that could have produced it. It decides how to rewind that operation, choosing the records and document versions the agent would have had before doing the work.
This idea is inspired by the principles of masked language modeling and prior work that produces tasks by rewinding a repository to before a fix or removing working code and asking an agent to reimplement it.
Example case
Rewinding the example story at the cut
Agent sees
- Booking form
- Loan papers
- Cancellation letter
- Regulator's order
- Internal email Prompt
The sales director asks to keep the deposit and wait for resale before refunding the rest.
Withheld
- Lawyer’s reply Golden answer
- Refund schedule Golden answer
- Bank statement showing the refunds Later evidence
Lawyers generally found the tasks realistic because they drew on their own stories and real documents. However, frontier models still performed well on many of these tasks, leaving little headroom.
To remediate this, our pipeline uses an explore-then-exploit strategy to try different cuts:
- Explore: Generate 10 candidate tasks per story, each with a different cut, task prompt, and first-pass criteria. Have frontier models attempt each one to see where they fail.
- Exploit: Drop candidates that are too easy. Refine promising cuts where model attempts reveal consequential mistakes.
Example case
Which tasks are worth refining?
We find that about 1/3 of candidate tasks are usable through this search process.
Step 5: Generate rubrics from cross-model critique
A model that generates grading criteria tends to favor work it can already do. In our naive synthetic baseline, frontier models passed 96% or more of the criteria they generated for their own tasks.
Cross-model critique borrows an idea from ensembling. Model families have different blind spots, so each family reviews another’s answer. We turn the mistakes they find in those attempts into grading criteria.
Cross-model critique runs in three steps:
- Collect attempts: At least 2 frontier models from different families attempt the task without seeing the criteria.
- Critique across families: A critic from another model family reads the task request, source documents, current rubric, and the model’s answer and submitted files. The lawyer’s golden answer stays hidden. For each mistake the rubric misses, the critic proposes a criterion and cites the document or legal rule that supports it.
- Filter and merge: We check the evidence for each proposal and merge criteria that test the same point. In the refund example, both critics propose giving the bank only what it actually paid out. That becomes one criterion in the rubric.
When only the criteria change, existing attempts can be regraded without running the models again, so iterating on criteria is relatively quick.
Example case
How cross-model critique produces grading criteria
- GPT attempt “Repay the bank the full approved loan amount.”
- Claude critique The bank paid out only part of the loan.
- New criterion Repay only what the bank paid out.
- Claude attempt “Include the unused loan balance in the bank’s refund.”
- GPT critique The bank never paid out the unused balance.
- New criterion Exclude the unused loan balance from the bank’s refund.
Expert Alignment
Experts accepted 97% of the cross-model critique criteria they reviewed. They accepted 82% as written and another 15% after minor wording edits.
In our qualitative review, criteria proposed independently by different model families tended to be correct.
Expert alignment
- 82% Kept unchanged
- 15% Kept after rewording
- 3% Removed
Ablation
To understand the benefits of the approach, we compared the grading criteria the critic proposed across three variants. The critic always received the task request, source documents, and starting rubric.
- None (baseline) with no model answer.
- Same model answer from the critic’s own model family.
- Different model answer from another model family.
Reading any model answer gave about 2/3 of the difficulty gain. An answer from another model family gave the rest.
Ablation
| Information available to the critic | Share of difficulty gain |
|---|---|
| None | Baseline |
| Same model answer | ≈ 2/3 |
| Different model answer | ≈ 1/3 (remaining) |
Step 6: Automated QA checks
By this point, we have a complete task, but it's not ready to ship yet.
A synthetic pipeline like this produces systemic defects, which we have to catch with automated QA checks. Checks act as continuous integration for tasks: they run whenever a task changes and block it before an expert sees it.
Our checks catch recurring defects such as:
- Malformed criteria: For example, pass and fail conditions that say the same thing.
- Leaky prompts: Prompts that give the answer away. This is a typical failure mode where models try to be helpful and end up generating unrealistic, overspecified prompts.
- Generation traces: Source files that leak signs of being generated, such as signposting.
- Unavailable documents: Files the agent would not have had when starting the work.
- Unprofessional formatting: Models tend to output generic Word document styling that does not conform to what lawyers typically work with.
Two lessons shaped how we write and maintain checks:
- Checks should come from expert feedback and requested changes: Each check starts from a flaw an expert flagged, and when an expert overrules a check, that case becomes a test for its next version.
- Narrow checks are better than overly general ones: A general question such as "is this file consistent?" caught nothing, while a question about one specific defect caught nearly all of them.
Step 7: Expert Review
Finally, we ask the same expert who created the story to review the generated tasks. They check that the prompt and source files are realistic and that each criterion is fair.
We built a custom UI that lets experts comment on specific files or quoted passages, the way an engineer comments on a line in a pull request. Each review ends in one of 2 outcomes:
- Approve: The task is accepted as it stands.
- Request changes: An agent applies the comments and returns a proposal for the expert to accept or reject. If the prompt or source files changed, models attempt the task again, and the task goes back through cross-model critique and automated checks.
Closing
Our recipe focuses expert time on telling case stories and reviewing tasks, and hands off the intervening work to the pipeline.
On approved tasks, the frontier models we targeted pass about 60% of the criteria, down from 90% on human-written tasks and 96% on our naive synthetic baseline. Each approved task took under 1 hour of expert time, down from 2 to 8 hours.
We think these principles carry over to other knowledge work domains:
- Search for difficulty by trying several cuts and keeping the ones that expose model mistakes.
- Build from real material by adapting expert stories and source documents.
- Turn recurring mistakes into checks that verify the work before expert review.
We left a few interesting research directions for future work:
- Can we predict which cuts will be hard before investing in a full task?
- Can we generate new QA checks directly from expert feedback?
If you’re building RL environments of your own, you can try this workflow in Hatchery, the infrastructure we use to create and evaluate tasks.
Cite this article
@article{scaling-experts-to-build-hundreds-of-knowledge-work-environments,
title = {Scaling experts to build hundreds of knowledge work environments},
author = {Henry Mao},
year = {2026},
url = {https://hatchery.build/blog/scaling-experts-to-build-hundreds-of-knowledge-work-environments},
date = {2026-11-27}
}