# 24.6 Metrics you can defend (/building-ai-workers/evaluating-ai-workers/metrics-you-can-defend)

---
type: Document
title: "24.6 Metrics you can defend"
description: "What a suite's number must carry with it before anyone can trust it, and what 40 cases cannot show."
status: stable
order: 324.06
ksor:
  owner: team:panaversity
  audience:
    - public
  approval:
    by: process:panaversity
    at: 2026-11-30T00:02:23Z
chapter: '24'
part: III
expert_status: co-build
concepts: [ "24.6" ]
last_verified: '2026-11-29'
sources:
  - id: prep-course-module-4
    title: 'Claude Certified Developer, Foundations prep path, Module 4: Production Engineering, Evals, and Security (Anthropic Partner Academy, sign-in needed, read 2026-11-29)'
    resource: https://anthropic-partners.skilljar.com/path/claude-certified-developer-foundations/production-engineering-evals-security/486745/scorm/1twknqoor0w46
  - id: anthropic-safety-evals
    title: Building strong safety evaluations (Anthropic, 13 November 2026, verified 2026-11-29)
    resource: https://www.anthropic.com/research/building-strong-safety-evaluations
  - id: anthropic-demystifying-evals
    title: Demystifying evals for AI agents (Anthropic, 9 January 2026, verified 2026-11-29)
    resource: https://www.anthropic.com/research/demystifying-evals-for-ai-agents
  - id: academy-evals-in-production
    title: 'Introduction to evals: Evals in production: CI, batch, and drift (Claude Academy, verified 2026-11-29)'
    resource: https://academy.claude.com/courses/introduction-to-evals/evals-in-production
  - id: anthropic-batch-processing
    title: Batch processing (verified 2026-11-29)
    resource: https://platform.claude.com/docs/en/build-with-claude/batch-processing
  - id: husain-llm-judge
    title: 'Using LLM-as-a-Judge For Evaluation: A Complete Guide (Hamel Husain, modified September 1, 2026, read 2026-11-29)'
    resource: https://hamel.dev/blog/posts/llm-judge/
generated:
  at: 2026-11-30T00:02:23Z
  by: esl-rewrite/1.2.0+ksor.1
trust_tier: unverified
build_id: sha256:cc6fd9ac5f72207d4365ecbda63d87d1b64f99e05519b358a45b9f5d9bfd6f8f
dirty: true
ksor_version: 0.0.60
---

**In everyday life.** A shop puts a sign in its window: "9 of 10 customers are happy." A careful reader asks four things. Which ten customers? Who asked them, the owner or a stranger? Were they asked once, or every week? And how many customers does the shop have? The sign can be true and still tell you almost nothing. A number you can defend is one that comes with the answers.

**What you will learn.** What a suite's number must carry with it before anyone can trust it. You practice it in Lab 24, Task 4.

- What makes a **metric** defensible?
- Why run a case more than once?
- What pass rate should a suite have?
- Why not one average score?
- What can 40 cases not show?
- What does a defended number cost?

**Why it matters.** "39 of 40" can be true and still mislead. A reader who does not know the set, the marker and the trials cannot tell.

**At work.** Friday's suite report, as the builder sent it to Ana:

```text
Suite: 40 cases (25 questions, 15 extractions), live run, 1 trial each
Checks by code:  39 of 40 pass (threshold 39). Failing: 1 extraction, total read as subtotal
Judge:           25 answers read. 24 correct, 1 incorrect, 0 unknown
Judge agreed with Ana on 9 of her 10 held-out answers: 6 of 6 passes, 3 of 4 fails
Waiting for Ana: 1 answer ("Who approves a $12,000.00 invoice?")
Result:          RED until Ana marks it
```

Every line says who made the marks. Code marked all 40 cases. The judge read 25 of them as well. Ana will mark one. On Monday at 8:40 she can see in one look how far her judgment reached on Friday, and who carried it. A **trial** is one run of one case, and this concept explains it below.

<!-- FIGURE 24.3: One result, three markers. A grid of 40 small squares in two blocks, with the title "Friday's run: the same 40 cases, and who marked each". Left block, 15 squares, headed "15 extractions". Each square carries one small mark shaped like a gear, labeled in the legend "marked by code". 14 gears are green (pass) and 1 is red-orange, with a callout: "total read as subtotal: the one case the threshold allows". Right block, 25 squares, headed "25 questions". Each square carries two marks: a gear (code) and an eye (legend: "read by the judge"). 24 squares show a green gear and a green eye. One square shows a green gear, a red-orange eye and a third mark, a person (legend: "marked by Ana"), with a callout: "code passed it, the judge marked it incorrect, Ana marked it fail on Monday at 8:40". Legend at the bottom, three entries left to right: gear "code: every case, every pull request", eye "the judge: the 25 answers, when the prompt, the model, or the golden set's cases or labels change", person "Ana: what the judge flags". Below the legend, one line: "agreed with Ana on 9 of her 10 held-out answers: 6 of 6 passes, 3 of 4 fails". No arrows. -->

*Figure 24.3. One result, three markers. Each of the 40 cases shows who marked it: code, the judge or Ana.*

### What makes a metric defensible?

A **metric** is a number that reports quality. A defensible metric is one you can explain to someone who doubts it. For a suite, that means the number carries four things with it:

- **The set.** "39 of 40" is a **pass rate** on a stated set: Brightline's 40 cases, at one commit. It says nothing about questions unlike those 40.
- **The marker.** A mark by code, a mark by the judge and a mark by Ana are different kinds of evidence, so the report keeps them on separate lines.
- **The judge's agreement.** Every judge number sits beside the held-out line from [24.5](calibrating-the-judge.md).
- **The trials.** How many times each case ran.

### Why run a case more than once?

A model's answers vary between runs, so one pass does not show that a case always passes. A trial is one run of one case.[^anthropic-demystifying-evals] With several trials you can report two different numbers, which [31.6](../self-improving-ai-workers/from-proposal-to-trusted-lesson.md) uses again:

- **pass@k** is the chance that at least one of k tries is right.
- **pass^k** is the chance that all k tries are right.

A worker that answers questions about money needs pass^k. A case that is right 3 times in 4 is right three times in a row only about 42% of the time (0.75 × 0.75 × 0.75).[^anthropic-demystifying-evals]

The prep course stops before trials. They come from Anthropic's post on agent evals.[^anthropic-demystifying-evals]

On a pull request, each case runs once, because the builder is waiting. Before a prompt or a model is released, the full suite runs with three trials for each case. **In Claude.** It runs as one batch, many requests sent together and answered later, at half the price.[^academy-evals-in-production][^anthropic-batch-processing] A batch can take up to 24 hours, which is why it is a release step (Chapter 29) and never a pull-request check. 24.10 has the batch's other limits.

### What pass rate should a suite have?

It depends on what the suite is for.[^anthropic-demystifying-evals]

- A **capability eval** asks what the worker cannot do yet. It starts low, and a rising number is what you watch for.
- A **regression eval** asks whether the worker still does everything it did before. It should sit near 100%, and any drop is what you watch for.

Brightline's golden set is a regression suite, so its threshold is 39 of 40. A new case from a live failure fails at first, so until the fix is in it works like a capability case. Once the worker passes it, it stays in the set as a regression case. Anthropic's guide says the case **graduates**.

### Why not one average score?

An average hides the cases. The prep course says so itself: a steady average can hide three cases fixed and three cases broken, so read the result case by case.[^prep-course-module-4] Friday's run shows the same thing with a verdict. Twenty-four of 25 answers were correct, which is 96%. The one that was not would have told a clerk that a $12,000.00 invoice is paid first and approved after. So the report lists that answer by its question, and no line gives a rate without its cases.

The prep course's judge gives each answer a score from 1 to 10, and the suite's result is the average. It asks you to say what each band of scores means: for example 1 to 3, 4 to 7 and 8 to 10. It also says why the judge must give its reasons. Without them, a judge tends to give a safe middle score, about six.[^prep-course-module-4] You may meet this form on the exam, so know how to read it.

### What can 40 cases not show?

Forty cases teach the method, and they do not give production-level confidence. Four limits follow from the size:

- **One case is 2.5 points.** The difference between 39 of 40 and 38 of 40 is one answer, which a second trial might reverse.
- **Sources set the minimum far higher for reporting a rate.** Anthropic's "great start" of 20 to 50 cases (24.2) is for finding failures. For a number that is published, its guidance is 100 items as the minimum for a multi-turn eval and 1,000 for a single-turn one.[^anthropic-safety-evals]
- **The judge's line is based on 10 answers,** and its weaker half on 4.
- **One practitioner's guide asks for far more to check a judge.** It asks for about 100 marked answers for each kind of failure, and it says that below 60 the result is often too uncertain.[^husain-llm-judge]

<!-- OPEN: a confidence interval for 39 of 40 would make the first limit exact. The source notes compute Wilson intervals but say the formula has no cited reference yet, so no interval is printed here. -->

So Brightline says "39 of 40 on our golden set, at this commit", and never "the worker is 97.5% accurate". The set grows by each failure Ana adds, and that is the only way the number comes to mean more.

### What does a defended number cost?

More calls and more reading. Three trials cost three times the calls, and a report with six lines takes longer to read than one number. One number alone is fair in one place only: on a builder's own screen, between two runs of the same set, to see which way a change moved it.

**The operating rule:** never report a number alone. Give the set, who marked each case, how far the judge agreed with the expert, and the number of trials. Then list the cases that failed.

**Do this now.** Ask your coding agent to rewrite a weak claim. Copy this line:

> Rewrite the claim "our AI Worker is 95% accurate" as a report I could defend. Ask me for the set, who or what marked each case, how many trials each case ran, and which cases failed. Leave a gap for anything I cannot tell you, and do not fill it in.

Count the gaps it leaves. Each one is a question someone will ask you.

[^anthropic-demystifying-evals]: Demystifying evals for AI agents, Anthropic.
[^academy-evals-in-production]: Introduction to evals: Evals in production: CI, batch, and drift, Claude Academy.
[^anthropic-batch-processing]: Batch processing, Anthropic.
[^prep-course-module-4]: Claude Certified Developer, Foundations prep path, Module 4: Production Engineering, Evals, and Security, Anthropic Partner Academy.
[^anthropic-safety-evals]: Building strong safety evaluations, Anthropic.
[^husain-llm-judge]: Using LLM-as-a-Judge For Evaluation: A Complete Guide, Hamel Husain.
