Module 4 · Evaluation · Chapter 11 · Free
Build the eval set: golden cases from real work, not guesses
- A golden eval set is real work with known right answers: real threads, de-identified, labelled by nurses.
- Stratify it by the triage mix: 55 percent routine, 30 percent judgment, 15 percent clinical or urgent.
- Version it like code, so every score can be traced to the exact cases that produced it.
The picture: a crash test set for Relay. Same dummies, same wall, every run.
Evaluation is 17 percent of the CCAR-P exam. You should be able to:
- Build an eval set from real, de-identified work instead of invented examples.
- Stratify cases so rare, high-risk classes are present in known numbers.
- Define a case schema: expected route, expected outcome, stratum, source.
- Label with domain reviewers and version the set like code.
- Relay scores 95 percent. Everyone is pleased, until Tom asks one question: how many of those messages mention a symptom?
- None do. The team wrote tidy scheduling and refill requests, because those are easy to write. Real traffic is 260,000 messages a month, and 15 percent are clinical or urgent.
- The pilot decision nearly rests on a score that says nothing about the risky third of the work.
- Why the eval set must come from real work.
- The pipeline: export, de-identify, stratify, label, version.
- The stratification arithmetic on a golden set of 400.
- The lab: golden eval set v1, schema, sampling plan, case triage.
Next: why invented cases fail, in plain terms.
Step 1: Real work first, because invented cases flatter you
Think of a spelling test you wrote for yourself. You would pass it. Not because you spell well, but because you only included words you know.
An eval set works the same way. Cases the builders invent reflect what the builders already handled. The failures live in the cases nobody thought of.
So the golden set starts from real portal threads. Real threads carry the mess: typos, half sentences, three requests in one message, a worried tone with a routine ask underneath.
Golden means each case has a known right answer, agreed by reviewers. A case without an agreed answer is not a test yet. It is an argument waiting to happen.
One rule comes before everything else: de-identify first. No nurse, architect or grader labels a thread that still carries a patient name or record number.
Chapter 15, "Govern the data: classification, retention and who may see what", sets the full data rules. This chapter applies its first rule early: strip identifiers before anyone reads for labelling.
Next: the pipeline from raw export to golden set.
Step 2: The pipeline, from raw export to versioned set
Press Next to walk a thread through the pipeline.
- Sample from live portal traffic across clinics and times of day, not from one quiet week.
- Names, record numbers and contact details come out first. Priya's team reviews the method.
- Fill fixed quotas: routine, nurse judgment, clinical or urgent, in the audited proportions.
- Reviewers record the expected route and outcome for each case. Disagreements get resolved, not averaged.
- The labelled cases become golden set v1. Changes after this point make a new version.
- Every eval score names its set version, so a score change can be split into model change or set change.
Where the picture breaks down:
- The pipeline looks one-way. In practice, labelling sends cases back: unclear threads return for a clinical ruling.
- De-identification is a step with an owner and a check, not a filter you trust once.
Next: quotas, edge cases and hostile cases.
Step 3: Stratify, then add the cases averages hide
Stratify means fill quotas on purpose. You decide in advance how many cases each class contributes, then sample inside each class.
The quotas come from Northgate's own audit: about 55 percent routine, 30 percent needing a nurse's judgment, 15 percent clinical or urgent. Those proportions are made-up course data, reused across this course.
Quotas alone are not enough. Inside each stratum, add two kinds of case that averages hide:
- Edge cases. Three requests in one thread. A refill ask wrapped around a new symptom. A message so short the route is genuinely unclear.
- Hostile cases. A confused patient pasting text from a forum. A message that tries to instruct Relay directly, telling it to ignore triage rules or reveal another patient's details.
Hostile cases are not paranoia. Portal text is untrusted input, typed by anyone. If the set has no injection attempts, the eval cannot catch a build that obeys them.
Keep hostile and edge cases tagged inside their stratum. Then a failure can be read precisely: routine overall, hostile subset failing.
Worked example. Stratification arithmetic for the golden set of 400 (all numbers from the case bible):
Routine: 400 × 0.55 = 220 cases. Nurse judgment: 400 × 0.30 = 120 cases. Clinical or urgent: 400 × 0.15 = 60 cases.
Check: 220 + 120 + 60 = 400. The set mirrors real traffic, and every class has a known count.
Now the plain random sample. Draw 400 threads at random from live traffic (labelled clearly: the counts below are expectations, not measurements). On average you expect the same 220, 120 and 60.
But averages are not guarantees. Small classes wobble: a swing of plus or minus 10 urgent cases between two random draws is ordinary noise, and 10 cases is a sixth of the urgent class.
Worse, a random draw can quietly contain zero hostile cases and almost no edge cases, because each is rare. The set still totals 400, and the gap is invisible in the headline count.
The urgent class is only 15 percent, yet it carries the risk. Stratification pins its count at exactly 60, every version, so scores on that class stay comparable.
Noise. A 15 percent class in a sample of 400 has an expected count of 60, and swings of around 10 either way are unremarkable. That wobble is exactly why the golden set fixes the count by quota instead of trusting a draw.
Next: labelling, and what makes a label golden.
Step 4: Label with nurses, version like code
Each case gets two labels: the expected route (routine draft, nurse judgment, escalate to clinician) and expected outcome notes, in plain words.
Tom's triage pool supplies the reviewers. Nurses label because the route is a clinical workflow judgment, not a writing preference.
Two reviewers on hard cases. Where they disagree, they talk and one answer wins, with the reason noted. A split label kept as two answers makes the case unusable as a test.
Cases nobody can agree on leave the set, or wait for Marcus to rule. An eval built on contested answers grades the model against an argument.
Then freeze and version. Golden set v1 lives in version control beside the prompts it tests. Adding cases, fixing a label, removing a duplicate: each change is a commit and a new version number.
That discipline pays off later. When a score moves, chapter 13's release gates can ask the right question: did Relay change, or did the test change?
Next: the lab. You build golden eval set v1.
Hands-on lab: golden eval set v1
Part A: build it locally
Do this: write the case schema and the sampling plan. Together they are the artifact for this chapter: golden eval set v1.
{
"id": "GS-0001",
"thread": "De-identified message text goes here.",
"context": {
"clinic": "pilot clinic A",
"channel": "patient portal",
"prior_messages": 2
},
"expected_route": "routine_draft",
"expected_outcome": "Draft offers two appointment times. No clinical advice.",
"stratum": "routine",
"source": "portal export, sampled inside the routine quota",
"de_identified": true
}
# Golden eval set v1: sampling plan (illustrative)
Total: 400 cases, all de-identified before labelling.
| Stratum | Quota | Count | Notes |
| Routine | 55% | 220 | Scheduling, refills, forms |
| Nurse judgment | 30% | 120 | Ambiguous, needs a nurse call |
| Clinical / urgent | 15% | 60 | Symptoms, escalation routes |
Inside every stratum: tag edge cases and hostile cases
(confused wording, pasted forum text, injection attempts).
Labelling: nurse reviewers, two on hard cases, one agreed
expected route per case. Version: v1, stored with the code.
Changes after freeze create v2, never a silent edit.
- The
de_identifiedflag is part of the case, not a promise in a meeting. A case with the flag false cannot enter the set. - Expected outcome is written as observable behaviour, so a grader can check it in chapter 12.
Part B: sort candidate cases
Lab: You are building golden eval set v1 for Relay from real, de-identified Northgate portal threads. This lab runs in your browser and needs JavaScript enabled.
Next: mix-ups and the quiz.
Mix-ups to avoid
- "A random sample is unbiased, so it is better." Unbiased on average, noisy in the small class that carries the risk. Stratify.
- "We can de-identify after labelling." No. De-identification comes before anyone outside the care team reads a thread.
- "More cases always beat better cases." Four hundred labelled, agreed cases beat four thousand unlabelled ones.
- "Fix a wrong label quietly." A silent edit rewrites history. Change it as a new version, with the reason kept.
- "Edge cases are decoration." They are where routing fails first. Tag them and read their scores separately.
Chapter quiz
Five questions in the exam's style. Score 70% or more to finish.
Review this chapter in 5 minutes
Watch the whole chapter recapped: real threads over invented cases, the export to versioned pipeline, 220/120/60 stratification, and nurse labelling.
- Source: real threads only. Invented cases measure the builders, not the system.
- Order: export, de-identify, stratify, label, freeze. De-identification always precedes labelling.
- Quotas: 400 cases split 220 routine, 120 judgment, 60 clinical or urgent.
- Labels: expected route plus outcome notes, agreed by nurse reviewers.
- Versioning: every change is a new version. Every score names its version.
Decision rule: if a class carries risk, pin its count by quota and read its score separately, whatever the overall average says.
Independent exam preparation. Not affiliated with or endorsed by Anthropic.
Review
Glossary
- Golden set
- A fixed set of real cases with agreed expected answers, used to score a system. Example: golden eval set v1, 400 threads.
- Stratification
- Filling fixed quotas per class instead of trusting one random draw. Example: exactly 60 clinical or urgent cases.
- Stratum
- One quota class inside a stratified set. Example: the nurse judgment stratum.
- De-identification
- Removing names, record numbers and contact details before wider handling. Example: stripping identifiers before labelling.
- Expected route
- The handling a case should receive. Example: escalate to clinician.
- Hostile case
- A case designed to mislead or misuse the system. Example: a message instructing Relay to ignore triage rules.
- Edge case
- A rare but real shape of work. Example: three requests in one thread.
Next: "Score what matters: graders, rubrics and human review that agree".