Why quality has to be written down first
Ask five people on a team whether an AI answer is good and you will get five standards. One checks the facts, one checks the tone, one checks whether it would have saved them time. None of them is wrong, and none of them wrote it down. The product then gets built against whichever standard the builder happens to hold.
Writing the standard early has a second benefit. Once a prototype exists, people start grading it against itself. Outputs that would have been rejected on day one look acceptable by week six because everyone has seen worse. A rubric and a golden set agreed before the build are a fixed point.
There is a catch. Useful criteria rarely come from a whiteboard. Hamel Husain calls error analysis the most important activity in evals because it decides which evals are worth writing: you read real outputs, note what is wrong, and let the categories come from the notes. Generic measures chosen in advance tend to miss the failures that are specific to your product. So "before you build" means before the product, not before any output. Run a throwaway baseline, read what it produces, and define quality from that.
The two artifacts
The rubric is a table. Each row is one criterion.
| Column | What it holds |
|---|---|
| Criterion | A short name, such as "states only what the record shows" |
| Pass definition | One sentence an operator would agree with |
| Examples | One output that passes and one that fails |
| Type | Blocker (any failure stops release) or target (we aim to improve it) |
| Checked by | Code, a person, or a model judge that has been compared with a person |
Keep each criterion to one idea. Eugene Yan warns against a single evaluator that tries to judge many dimensions at once: it is hard to calibrate, and when the score moves nobody can tell which dimension moved. He also separates guardrail measures, where a miss blocks shipping, from the measures a team keeps trying to raise. The Type column records that split.
The golden set is a table of cases. Each row has a case identifier, the input, the source material, the expected outcome, a pass or fail label per criterion, a one-line reason, a tag for the kind of case, and whether it sits in the working set or the holdout.
The reason column is worth its cost. Hamel Husain's judge-building guide asks the expert for a pass or fail decision plus a written critique, because being made to explain a label brings out expectations the expert had not yet put into words. Those reasons later become the best material for instructing a model judge, and for briefing a new reviewer.
The playbook
Get outputs in front of the expert. Sample real inputs across the range the product will see. Run the plainest baseline that produces an answer. If the workflow is manual today, the existing human answers work too.
Read before you categorise. The expert reads at least 30 pairs and writes a free note on each. Note the first thing that goes wrong, since an early error often causes the later ones.
Group, count, and name. Cluster the notes into failure categories and count them. The counts tell you where to spend effort. A model can do the clustering, and the expert does the naming.
Write one binary criterion per category. Add a blocker criterion for each never-rule in the spec, even if the baseline never broke it.
Label, and go looking for failures. A set with 95 passes and 5 fails cannot show whether a change made failures rarer or whether a judge can catch them. Eugene Yan's guidance for aligning automated evaluators is at least 50 to 100 failing cases in a set of 200 or more, and he prefers failures that occur naturally, for instance from a weaker model, over defects written to order, which tend not to resemble production. Our own minimum is one case of each kind from the spec: a clear pass, a close-but-wrong answer, a missing-source refusal, a risky action that needs a person, and a correct answer with weak evidence.
Test the rubric with a second reader. Have a second person label a sample without seeing the first labels. Each disagreement points to a rubric line that is unclear. Fix the wording, relabel the affected cases, and let the lead expert settle what remains.
Split and freeze. Hold back a portion the builder never tunes against. Version the rubric and the set together.
A worked example
This example is fictional. Northgate Supply, an invented parts distributor, is building a drafting assistant for order-status emails. The senior customer service agent is the domain expert.
She reads 40 baseline drafts and writes notes. Grouped, they give six categories. The rubric that results:
| Criterion | Type | Checked by |
|---|---|---|
| States only what the order record and carrier feed show | Blocker | Person, later a judge |
| Gives no delivery date the carrier has not given | Blocker | Code plus person |
| Offers no refund, credit, or address change | Blocker | Code |
| Reports every parcel in a split shipment | Target | Person |
| Hands off when tracking is missing or stale | Target | Code |
| Answers the question the customer asked | Target | Person |
The first draft of the rubric had a criterion called "professional tone". The second reader and the expert disagreed on a third of the cases, so it was rewritten as "no apology for delays the record does not show", which both could apply.
The golden set ends at 160 cases: 45 from the spec, 75 more from history, and 40 picked because they were likely to fail, such as split shipments and orders placed within the last hour. Sixty-two cases fail at least one criterion. Forty cases form the holdout.
Common failure modes
- Criteria written before reading anything. The list looks reasonable and misses what the system gets wrong in practice.
- Numeric scales. They feel precise and produce labels nobody can reproduce.
- A golden set of successes. If nearly every case passes, the set cannot detect regression.
- The builder as labeller. The person tuning the system should not own the standard it is judged by.
- No reasons recorded. Labels without reasons cannot be audited or taught.
- A judge trusted without comparison. Chip Huyen lists dropping human evaluation in favour of model judges as a common pitfall. A judge is itself a model product and needs checking against people over time.
- A frozen rubric. Real use surfaces new failure categories. Reganti and Badam note that evals built on an expected dataset will miss things once users arrive. Version the rubric and expect to revise it.
How it connects to the other pillars
The rubric and golden set grow out of the acceptance cases in the AI product spec, and they supply the measurements that review gates and release decisions rely on.
In AI development, they are the content of the eval harness. Engineering builds the runner and the gate in the pipeline. Product owns what the runner checks.
In the factory pillar, the blocker criteria become rungs on the verification ladder. An agent's work is not accepted because it reports success. It is accepted because the cases pass.