The eval set before the feature
Own the set that decides whether a model-backed feature may act: write the criteria with the person who owns the bar, get labels from the people who know the job, persuade the ones who must wait, and write the gate before the first run
Esohe samples 50 cases at random from last month's resend conversations, so about 25 are ordinary failed-message resends. The candidate scores 48 of 50. Both failures are resends that should not have happened: one message was already delivered, and one sender ID was not approved. What does she know?
An AI engineer who owns an eval set owns a decision, not a file. The set exists so that someone can answer, with evidence, a question like “may this assistant resend a message without a person looking?” The technique for building one, how many cases, what a case contains, how to cover failure modes and how to measure whether two people agree on a label, is taught in the course chapter on building an eval set. This chapter is the job around the technique: owning the set, getting the people you need to agree to it, and writing the gate that uses it. The running example is Wrenpost’s support assistant, on the Claude API with the tools lookup_message, resend_message and sender_id_status, under RULES v12.
What owning the set means
A set that nobody owns decays in one of three ways. The builder writes it on the day before launch and never touches it again. Everyone on the team may edit it, so cases that fail quietly disappear. Or it lives with another team, far from the feature, and nobody updates it when the feature changes. In each case a pass means less every month and nobody notices.
You own the set the way you own a service. That means four duties.
- You decide what is in it. Coverage is chosen by risk, not by traffic, as the course chapter explains. Last month the assistant handled about 3,000 conversations (illustrative), and 214 of them involved a resend. A set sampled from that traffic is mostly ordinary requests, which is the part that matters least.
- You version it, and you keep a held-out part. The mechanics are in the course chapter on building an eval set and in prompt management. The job is to make them a rule: a case changes only by a commit with a reason, and the held-out cases are read only when deciding to ship.
- You sign the gate report. The report names which cases flipped, in which direction, and what you recommend.
You do not decide what correct means. That belongs to the people who do the job, and the next sections return to it. The distinction matters because the usual failure is an owner who is also the only judge, so the set measures agreement with the owner’s guesses.
Esohe already has 30 cases, from the week described in an AI engineer’s week. They check words: a promise the assistant cannot keep, a question it asks twice. Until now that was enough, because a person pressed the button on any resend. A feature that acts needs a different check. The course chapter makes the point for refunds: where the outcome is an end state, check the end state, not the transcript. For Wrenpost that means checking what resend_message was called with, how many times, and whether it was called at all.
Write the criteria before the cases
The first thing Esohe writes is not a case. It is half a page, written with Akanni, that says four things: what the feature does, which wrong actions it must never take, what each kind of error costs, and what pass means. Anthropic’s guidance on defining success criteria asks for criteria that are specific, measurable, achievable and relevant, and for evals that mirror the real task, including edge cases. A line such as “resends should be accurate” fails all four. A line such as “the assistant never calls resend_message on a message whose delivery record says delivered” passes.
The errors are not equal, and the criteria must say so. For the resend feature they look like this.
| Error | What happens | Who feels it | How it is treated |
|---|---|---|---|
| Resends a message already delivered | A duplicate SMS reaches the customer’s customer, billed | The recipient, and the business customer’s trust | Hard: zero allowed |
| Resends under an unapproved sender ID | The resend fails again while the customer is told it is on its way | The business customer, who waits | Hard: zero allowed |
| Resends a whole batch on one request | Many duplicates at once | Many recipients | Hard: hand to a person |
| Resends to a different number, or an expired one-time code | A message nobody wanted, or a code that no longer works | The recipient, and the customer’s login flow | Hard: zero allowed, or hand to a person |
| Refuses a resend it should have made | The customer waits for an agent | The support queue | Soft: a rate |
| Asks which message when the ID was there | A slower answer | The customer’s patience | Soft: a rate |
A billable SMS costs about ₦8 (illustrative), so the money in one wrong resend is small. The harm is the duplicate and the lost trust, and a bulk mistake multiplies both. That is why the hard rows exist, and why one pass rate over all 50 cases would hide what you care about: forty easy passes cannot offset one wrong bulk send.
The bar is not yours to set. Hamel Husain makes the point in his essay on evals: the pass rate you accept is a product decision, a statement about which failures the product will tolerate. Esohe proposes the structure, with hard slices and soft slices, and Akanni, with Adhiambo, owns the numbers. Write the owner’s name next to each. If the bar is “the team’s”, nobody will defend it when a result misses it.
Whose judgement is in the labels
A label here answers the question “what should the assistant have done?”, and Esohe does not hold the answer. She knows the tools and the prompt. She does not know that support agents treat a Kenyan sender ID that is still pending as a reason not to resend, or what an agent does when a customer says a delivered message never arrived. Dikko, a senior support agent, does. If Esohe labels alone, the set encodes her guess about the policy, and the assistant is graded against her guess.
So two people label every case, independently and before anyone looks at what the assistant did. Dikko is the first, because he does the job. Stig, the engineer who owns resend_message and knows what the system accepts, is the second. Compare the two sets of labels, and read the cases where they differ. The course chapter shows how to measure agreement and what to do with each kind of disagreement; your job here is to read every one with Dikko and keep the rule that settled it.
Shreya Shankar and colleagues call the underlying effect criteria drift: you need criteria to grade outputs, and grading outputs is how you find out what the criteria were. Expect the rules to change in the first labelling pass, and write the changes down, because the next person to label will meet the same cases. Do not let a model write the labels. The LLM as judge chapter shows how to automate grading later, once trustworthy human labels exist to check it against.
Run it without sending a message
An eval of an action feature has a practical hazard that an eval of a chat feature lacks: if it calls the real tool, it sends real SMS. Stig’s first concern is exactly that, and he is right. Run the eval against a stub. The stub of resend_message records its arguments and returns success without sending anything. lookup_message and sender_id_status return fixture records, one per case, with the delivery status, the sender ID state and the first 160 characters of the message body, as production does.
The pass check for each case then reads the stub: was resend_message called, with which ID, how many times. The reply text is checked by a rubric where it matters, such as saying that a message was delivered at 09:14. This design makes the run cheap and repeatable, so 50 cases take minutes and the gate gets run. It also keeps Stig on your side, which matters for the next section.
Persuading the people who have to agree
An eval set needs three things from other people: a bar from the product manager, hours from support, and a date that either moves or does not. You cannot order any of them. The common failure is to say “we need an eval” as a principle. The listener hears “not now”, and the principle loses to a date.
| Who | What they are weighing | What to bring |
|---|---|---|
| Akanni, product manager | A promised date, and a bar he has to defend to his own manager | A launch that keeps the date, and a bar stated in his units: wrong resends a month, not a pass rate |
| Adhiambo, support operations lead | Fewer button presses, and agents pulled off the queue to label | Two hours per labeller, scoped in advance, with cases drawn from conversations her team recognises |
| Dikko, support agent | Whether his labels will be used to grade colleagues | A plain statement that labels grade the assistant and never the people, and that he sees the results |
| Stig, platform engineer | Load on his tool, and eval runs that send real SMS | The stub, and the promise that nothing in the run touches production |
Three moves do most of the work.
Replay their own conversations. Do not argue; show. Take five real conversations from last month, say a customer insisting a delivered message never arrived, and run them against the draft rules in front of Akanni and Adhiambo. When the assistant resends one that was delivered, nobody needs the argument. A failure on a conversation they recognise persuades more than any statistic.
Put the delay in their units. Last month 95 of the 214 resend conversations fell in the five categories where the assistant must never resend by itself: 11 expired codes, 36 already delivered, 22 under a sender ID that was not approved, 14 to a different number and 12 bulk requests. If the assistant wrongly resends in even 10% of those, that is about nine or ten wrong SMS a month (illustrative), and 12 a month are bulk requests, where a single mistake is many sends. The week you ask for costs a week of the feature. (Whether a model should do this job at all is the question in scoping an AI feature.) Say both.
Offer the smaller version before they refuse the large one. “Can we slip a week?” invites a no. “We keep Friday, and the assistant suggests the resend while an agent presses the button; resends go live when 50 cases pass” invites a yes. Suggest-only keeps the date, and it also produces labels: every time an agent accepts or changes a suggestion, you learn what the right action was, on real traffic.
None of this is manipulation. You are translating a quality concern into the concerns each person already has. Where the person is right, say so. If Akanni shows that a week’s delay costs a customer renewal, that belongs in the decision, and the answer might be suggest-only.
The gate
A gate is a written rule, agreed before the first run, that says which results block a release. Without one, the eval produces a number and the number is negotiated after the fact. Write the gate with the criteria, not with the results in front of you. It needs six things.
- The cases and the version.
RESEND-EVAL v1, 50 cases, and the name of the candidate under test, such asr3-c1. - Thresholds, per slice. The hard slices allow zero failures. The soft slices have a rate.
- A paired run. Run the candidate and production on the same cases and list the cases that flipped, in both directions.
- A reader. One named person reads every failure. A run nobody reads is a ritual.
- A waiver rule. Who may waive which slice. Akanni may waive a soft slice, and nobody may waive a hard one. A waiver goes in the change log, with what must follow.
- A statement of what a pass does not show.
The sixth matters most, and the arithmetic is short. If the candidate makes no wrong resend on 32 cases where it must not, you have not shown that the failure rate is zero. The rule of three, a rule of thumb for zero events in n trials, puts the upper end of a 95% interval at about 3 divided by n, which is 3 over 32, or about 9%. A pass tells you the feature is not visibly broken on the cases you thought of. So the gate is the licence for a staged rollout, not the end of one: suggest-only, then 10% of conversations, then half, then all, with a read of real conversations between each stage. The week chapter’s standing read is the stage check, and what the read finds becomes new cases.
Automating the gate is covered in evals in CI, and the QA view of the same suite is in testing AI features. The gate answers whether this change is safe to ship. It does not answer whether the feature should exist at all. That is the decision in scoping an AI feature, and the PM side of the same question is in AI products.
Keeping the set honest after launch
The course chapter lists the habits that slow a set’s decay: feed it from production, retire what no longer discriminates, keep it in version control. Here they become your calendar. In suggest-only mode, every suggestion an agent rejects is a candidate case, and one person, you, decides what enters and leaves and says why in the change log. Growth is a standing block in the week, not a good intention. A set of 50 grows to a few hundred over a year if somebody makes it.
Where practitioners disagree
Hard gate or advisory. Some teams treat evals as advice, because a pass rate on a small set is noisy. For a chat answer that is defensible. For a feature that acts, most teams make the hard slices blocking, because the cost of a wrong action does not average out against easy passes.
Before the prototype or after. The philosophies chapter covers the argument for exploring first. For an action feature the line falls earlier: before anything can act, the set must exist.
One set per feature or one shared set. A set per feature keeps each owner accountable. Shared pieces, such as a common judge, come later, when several teams build on a platform.
Day to day
The week you build the first set. This is the week Esohe asks for when she asks to slip a week.
- Monday. Write the criteria with Akanni, one hour, and agree the error table, the owners of each bar and the waiver rule. Book Dikko and Stig for two hours each on Wednesday, through Adhiambo.
- Tuesday. Pull last month’s 214 resend conversations and sort them into the types in the table. Choose the cases by risk, and fill the weaker slices by writing cases with Dikko. Build the stub and the fixtures with Stig.
- Wednesday. Dikko and Stig label all 50 blind, independently. Do not show them what the assistant did.
- Thursday. Read every disagreement and rewrite the rules that failed to decide. Relabel the cases they touch. Run the first paired run and read every failure.
- Friday. Write the gate report: what passed, what flipped, what blocked, and what you recommend. Send it to Akanni and Adhiambo before the meeting, not in it.
Every change. A named candidate, a paired run on the stub, and a read of the flips, in the same order every time. A run that takes more than half an hour will be skipped.
Weekly. Add three to five cases from the standing read and from rejected suggestions. Check that every new case has two labels.
Monthly. Re-run the held-out cases on the production version. Read the slices for drift, and retire cases that no longer discriminate.
Quarterly. Replace some of the set with fresh traffic, and ask Dikko and a new second labeller to relabel a sample, so the rules have not drifted from what agents do.
When the date does not move. If the answer is that Friday is fixed, hold to the structure and shrink the scope: suggest-only, one slice of customers, or only the ordinary-resend case. The gate and the stub do not move. Everything else can.
One engineer builds the feature, the founder is the domain expert, and there is no support function to borrow from. Keep it small: 20 to 30 cases in a spreadsheet, a stub for any tool that sends or spends, and a rule that you cannot ship an action until the hard cases pass. The founder labels, and you check a sample with a customer-facing colleague. The owner is whoever wrote the feature, which is fine as long as the labels come from somebody else.
The role is being built and many people have views on the feature. Name the owner of the set in writing, and name the owner of each bar. Borrow labelling hours from support through their lead, and scope them: two hours each, a date, a purpose. Move the paired run into CI before the number of editors grows. Your risk is that the set becomes yours alone. Train one support agent to add cases and one engineer to read flips, so that the loop survives a holiday.
A model-risk or legal review will ask what you tested and who signed it. Your criteria document, label rules and gate reports become the evidence, so keep them in a form a stranger can read. Labelled data may contain customer content, so control who can see it, and keep the held-out part away from the people tuning the prompts. The politics is about ownership: several teams will want to edit the set, and the one that owns the feature should own the cases.
Template
# Eval set: <feature> · version <v1> · owner <name> · date <date>
## Criteria (agreed with <product owner>)
Decision this set serves: <may the assistant do X without a person looking>
Wrong actions it must never take: <list>
Cost of each error: <who feels it, how much, hard or soft>
Pass bar owned by: <name> for <slice>, <name> for <slice>
## Coverage
| Slice | Traffic last month | Cases | Hard or soft | Why this many |
|---|---|---|---|---|
| | | | | |
| **Total** | | <n> | | |
## Cases
| id | slice | source (conversation no. or risk) | conversation and fixture | expected action (checked on the stub) | reply must / must not | label 1 | label 2 |
|---|---|---|---|---|---|---|---|
## Labelling
Labellers: <who does the job>, <second person>. Blind: <yes/no>. Time each: <hours>
Agreement before rules fixed: <x of n>. Disagreements and the rule that settled each:
1. <case ids, the rule>
## Gate
Candidate: <name>. Run on: <stub, not production>. Paired against: <production version>
Hard slices: <failures allowed>. Soft slices: <rate>.
Reader of every failure: <name>. Waiver: <who, which slice, what must follow>
What a pass does not show: <the upper bound, in plain words>
Rollout after pass: <stages, and the read between each>
## Upkeep
A production failure becomes a case: <how, and by when>. Changes logged in: <place>, with a reason. Reviewed by: <name>, every <cadence> WORKED EXAMPLE
Wrenpost is a fictional messaging API: about 180 staff, 55 engineers, about 2,400 business customers. Esohe writes RESEND-EVAL v1 for the feature that lets the assistant call resend_message. She and Akanni agree on one decision: may the assistant resend a message without a person looking? The bar for the never-resend slices is Akanni’s, and the labelling rules are Dikko’s. Every figure is illustrative.
Coverage. Last month had 214 resend conversations. The set has 50 cases, chosen by risk.
| Slice | Traffic | Cases | Rule |
|---|---|---|---|
| Ordinary failed resend | 109 | 12 | Soft: resend once, right ID |
| Already delivered | 36 | 9 | Hard: no resend |
| Sender ID not approved (2 each in NG, GH, KE, ZA) | 22 | 8 | Hard: no resend |
| Different number | 14 | 5 | Hard: hand to a person |
| Bulk | 12 | 5 | Hard: hand to a person |
| No usable message ID | 10 | 6 | Soft: ask, no resend |
| Expired code | 11 | 5 | Hard: no resend |
| Total | 214 | 50 |
Sample cases. Every case carries a source: a conversation number from last month’s 214, or the written risk it covers. R01: customer asks to resend message 8841, status failed, sender ID approved. Expected: one stub call with 8841. D01: customer says message 9102 never arrived, status delivered at 09:14. Expected: no call; the reply gives the time. S01: message 7730, Kenya, sender ID pending. Expected: no call; the reply says why. B01: “resend everything from yesterday”. Expected: no call; handed to a person. X01: a one-time code sent 40 minutes ago. Expected: no call; the customer is told to request a new one. N01: “resend my last message” with three candidates. Expected: no call; asks which.
Labelling. Dikko and Stig labelled all 50 blind, about two hours each. They agreed on 44. Four disagreements were one rule: does pending count as not approved? Dikko wrote the rule (pending means do not resend). Two were Stig misreading a fixture. After the fixes both relabelled the six and agreed on all 50.
Gate. Hard slices (9 + 8 + 5 + 5 + 5 = 32): 0 wrong resends. Ordinary: at least 11 of 12. No usable ID: at least 5 of 6. The first paired run of r3-c1 fails the gate: two wrong resends in the hard slices, one delivered and one Ghana sender ID. Esohe adds a rule and three neighbours and reruns. Upkeep: every production failure becomes a case before it becomes a fix, every relabel is logged with its reason, and Dikko and a new labeller relabel 10 cases each quarter. Akanni may waive a soft slice and nobody may waive a hard one. A pass is not proof: zero failures in 32 allows a true rate near 9%, so rollout runs suggest-only, then 10%, 50% and 100%, with a read between stages.
Now you
You are Esohe. Akanni wants the assistant to call resend_message from Friday, and you have until Thursday to produce the set. Last month’s 214 resend conversations were: 109 ordinary failed-message resends, 36 delivered but the customer insists they never arrived, 22 with a sender ID that is not approved or still pending, 14 asking to send to a different number, 12 bulk requests, 10 with no usable message ID, and 11 asking to resend a one-time code that had already expired. Adhiambo will lend Dikko, a senior agent, for two hours. Stig, who owns resend_message, will label for two hours but refuses to let any eval send a real SMS. Your 30 existing cases test wording only. Produce your coverage table for exactly 50 cases, six sample cases with the expected action, the labelling plan, and a gate that names its hard slices and what you will say about the pass.
Self-check
Akanni has promised Adhiambo's team that from Friday the assistant will call resend_message itself. It is Tuesday. Esohe has 30 cases that test what the assistant says and none that test whether it should resend. Each resend is a billable SMS that cannot be recalled, and last month 95 of the 214 resend conversations fell in categories where the assistant must never resend by itself. What does she propose?
- POST Your AI Product Needs Evals Hamel Husain, 2024
The practitioner's argument for evals tailored to your product's tasks in place of vibe checks. Read it for the point that the acceptable pass rate is a product decision.
- POST A Field Guide to Rapidly Improving AI Products Hamel Husain, 2025
On error analysis: reading real conversations and naming the failure types before choosing what to measure. It is the source for the cases you add after launch.
- DOC Define success criteria and build evaluations Anthropic
Anthropic's documentation on writing criteria that are specific, measurable, achievable and relevant, and on designing evals that mirror the real task, edge cases included. Use it for the criteria page.
- PAPER Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences Shreya Shankar, J.D. Zamfirescu-Pereira, Björn Hartmann, Aditya Parameswaran and Ian Arawjo, 2024
The paper that names criteria drift: graders need criteria, and grading outputs is how they find out what the criteria are. It is the reason to expect your labelling rules to change in the first pass. Read: UIST 2024.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.