Source: https://hatchery.build/blog/scaling-experts-to-build-hundreds-of-knowledge-work-environments

# Scaling experts to build hundreds of knowledge work environments

[Henry Mao](https://calclavia.com/) · 27 Nov 2026

![A timeline on a case file unfolds into a field of individual task files.](/blog-art/scaling-experts.svg)

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:

1.  An agent receives a lawyer's request as a **prompt**, which may come with _source files_ in a workspace folder.
2.  The agent works through the provided context in a workspace and submits an **answer**, which may include _output files_.
3.  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

The sales director asks whether to keep the apartment buyer’s deposit. The agent reads the sources, produces advice and a refund schedule, and sends that output to the external judge, which passes it on stating the total refund and fails it on repaying the bank only what it paid out.

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](https://hatchery.build/blog/calibrating-a-judge-for-legal-work) 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

A lawyer tells a case story. We redact the case material. AI researches the redacted material and proposes candidate tasks. Models from different families attempt the tasks and critique each other’s answers to propose criteria from the mistakes they find. If the task passes automated QA, it moves to Expert Review, where the same lawyer can approve it. If automated QA or Expert Review leads to a change in the prompt or source files, the task follows the same path back to model attempts.

The same lawyer tells the case story and reviews the finished task. If a revision changes the prompt or source files, models attempt the task again.

## 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](https://doi.org/10.1109/21.31053) 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_](https://docs.ego-exo4d-data.org/annotations/expert_commentary/) to brain dump their story and have an agent format it into the above schema.

Example case

### The apartment refund case

Fictional dates · 2024

1.  6 Feb
    
    The buyer books the apartment
    
    The buyer pays a deposit while the apartment is still under construction.
    
    Buyer → Developer
    
    Record: Booking form
    
2.  14 Mar
    
    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.
    
    Buyer's bank → Developer
    
    Record: Loan papers
    
3.  9 Sep
    
    The buyer cancels
    
    Construction runs late, so the buyer cancels the purchase.
    
    Buyer → Developer
    
    Record: Cancellation letter
    
4.  21 Oct
    
    The regulator orders a full refund
    
    The housing regulator orders the developer to refund the buyer in full, with interest, by a deadline.
    
    Housing regulator → Developer
    
    Record: Regulator's order
    
5.  23 Oct
    
    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.
    
    Sales director → Lawyer
    
    Record: Internal email
    

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](https://hatchery.build/blog/detecting-private-data-with-extraction-and-decision-models) 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

The redacted case material guides the research agent. The agent finds applicable law and comparable documents in the public record and saves them alongside the redacted case material in the case file. Story records: booking form, cancellation letter and sales director’s email. Public records: refund rules, comparable regulator orders and loan papers.

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](https://arxiv.org/abs/1810.04805) and prior work that produces tasks by [rewinding a repository to before a fix](https://arxiv.org/abs/2310.06770) or [removing working code and asking an agent to reimplement it](https://arxiv.org/abs/2609.22068).

Example case

#### Rewinding the example story at the cut

##### Agent sees

1.  6 Feb Booking form
2.  14 Mar Loan papers
3.  9 Sep Cancellation letter
4.  21 Oct Regulator's order
5.  23 Oct Internal email **Prompt**
    
    The sales director asks to keep the deposit and wait for resale before refunding the rest.
    

Cut

##### 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?

From one case file, Buyer reply and Board summary stop because they are too easy. Sales advice, Finance schedule, and Bank letter are refined and go separately to expert review.

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](https://arxiv.org/abs/2610.31707) into grading criteria.

Cross-model critique runs in three steps:

1.  **Collect attempts:** At least 2 frontier models from different families attempt the task without seeing the criteria.
2.  **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.
3.  **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

1.  **GPT attempt** “Repay the bank the full approved loan amount.”
2.  **Claude critique** The bank paid out only part of the loan.
3.  **New criterion** Repay only what the bank paid out.

1.  **Claude attempt** “Include the unused loan balance in the bank’s refund.”
2.  **GPT critique** The bank never paid out the unused balance.
3.  **New criterion** Exclude the unused loan balance from the bank’s refund.

**Filter and merge** Remove weak criteria and merge duplicates.

The answer excerpts are illustrative.

#### 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) |

Difficulty gain is the increase in the number of criteria that the lawyer’s golden answer passes and an unseen model attempt fails. The shares are directional estimates, and the split varied by task.

## 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](https://ghuntley.com/pressure/) 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](https://www.anthropic.com/research/migrating-api-to-rust) 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](https://hatchery.build/), the infrastructure we use to create and evaluate tasks.
