Deployed Lab

Module 4 · Evaluation · Chapter 11 · Free

Build the eval set: golden cases from real work, not guesses

16 min1 clickable picture1 hands-on lab1 predict, 2 quick quizzes, final quiz5-min video review
In 30 seconds

The picture: a crash test set for Relay. Same dummies, same wall, every run.

Exam objective: Evaluation

Evaluation is 17 percent of the CCAR-P exam. You should be able to:

The problem Northgate Health is made up. Ruth's team demos Relay to Elena and Marcus using 40 test messages the team wrote itself: A made-up test set measures how well you guess your own system. It cannot measure the system.
The plan for this chapter
  1. Why the eval set must come from real work.
  2. The pipeline: export, de-identify, stratify, label, version.
  3. The stratification arithmetic on a golden set of 400.
  4. 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.

From portal export to golden eval set Raw portal threads are exported, de-identified, stratified by the triage mix, labelled by nurse reviewers with expected route and outcome, and frozen as a versioned golden set. Exportreal threads De-identifybefore labelling Stratify55 / 30 / 15 Labelnurse reviewers Golden setversioned Versioned like codeevery score names the set version it ran on
  1. Sample from live portal traffic across clinics and times of day, not from one quiet week.
  2. Names, record numbers and contact details come out first. Priya's team reviews the method.
  3. Fill fixed quotas: routine, nurse judgment, clinical or urgent, in the audited proportions.
  4. Reviewers record the expected route and outcome for each case. Disagreements get resolved, not averaged.
  5. The labelled cases become golden set v1. Changes after this point make a new version.
  6. 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:

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:

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.
What to notice

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

Field note, November 2026 Practitioners running production evals describe the same pattern: the eval set becomes a managed asset with an owner, a changelog and a review habit, much like a dataset under version control. Treat that as field experience, not a measured statistic. The practical test is simple: can you name the exact set version behind last month's score?

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.

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".