24.1 From a quality goal to a measure
- Approved by
- Panaversity ·
In everyday life. A master tailor tells a new tailor, "The shirt must fit well." The new tailor nods, and cannot check one shirt against those words. So the master says it again: "The shoulder seam sits at the edge of the shoulder. The sleeve ends at the wrist bone. Two fingers fit inside the closed collar." Now the new tailor can check every shirt. So can anyone else in the shop, on a day when the master is away. His judgment did not change. He said it in a form that a shirt can be held against.
What you will learn. How to turn what Ana says about quality into a check that gives the same result whoever runs it, for the whole worker or for one part of it. You practice it in Lab 24, Task 1.
- What is a quality goal, and what is a measure?
- Is the goal for the whole application, or for one component?
- What does a measure cost, and when is reading fairer?
Why it matters. "The worker should be accurate" cannot fail a pull request. A measure can. Until Ana's judgment is said in a form a check can hold, it reaches only the answers she reads herself.
At work. The worker triages at 7:10. Ana arrives at 8:40. The builder asks her one thing: "What must be true of an answer for you to accept it without reading it?" Ana starts with "It has to get approvals right." The builder asks what right means, for one real question. She takes "Who approves a $12,000.00 invoice?" and says four things. The decision is the controller, before payment. The answer must cite ap-triage-rules.md, line 8. It must contain the approver's title. It must not name any approver the policies do not name. Three of those four are what the answer check held in Chapter 19 (19.16). The word the answer must contain is new, so that code has something to look for. Now they are written so that something else can check them.
What is a quality goal, and what is a measure?
A quality goal is one sentence that says what good means for this work, in the words of the person who owns the work. A stated quality goal is one that is written down, where the builder and the expert can both point to it. "Every extracted total matches the invoice" is a stated quality goal. "The worker should be accurate" is not one yet, because two people can read it and expect different things.
A measure is a goal turned into something you can run. It has four parts:
| Part | The question | For "every extracted total matches the invoice" |
|---|---|---|
| The check | What is compared with what? | The extracted amountCents against the value Ana wrote down |
| The set | On which cases? | The 15 invoice cases of the golden set (24.2) |
| The number | What result passes? | A pass rate, the share of cases that pass, with a threshold, the lowest result that still passes, which the team wrote down first |
| The marker | Who or what makes the mark? | Code |
Anthropic's guide to evaluations (tests of a model's answers, "evals" for short) asks for success criteria that are specific, measurable, achievable and relevant.1 The table is one way to get there. If you cannot fill in a row, the goal is not specific yet, and the next step is another question for Ana. Anthropic's exam prep course puts this first too. It asks for a one-page design document before any code, and success criteria are the first of its four decisions.2
The marker matters most. This chapter has three: code, a judge, and Ana. "The total matches" has one right form, so code can mark it. "The controller approves before payment, not after" can be written many ways, so it needs a reader. Choose the marker by the shape of the answer, and say which one it is. A number is easier to trust when it says who made each mark.
Is the goal for the whole application, or for one component?
Both. The exam guide speaks of a quality goal "for a Claude application or component". An application is the whole product a person uses. A component is one part of it, with its own input and output. Brightline's worker has both:
| Level | A stated quality goal | Why at this level |
|---|---|---|
| The application: the worker's answer to a question | The answer gives Ana's decision, cites her line and makes no claim she ruled out | This is what a clerk reads and acts on |
| A component: the extraction step | Every extracted field equals the value on the invoice | The step's output goes to code and into the report, and a wrong field stays wrong in everything after it |
Write goals at both levels. A goal for the application tells you that something is wrong. A goal for a component tells you where. If only the whole answer is measured, a wrong total and a wrong policy line look the same: one failed answer.
What does a measure cost, and when is reading fairer?
A measure has three costs.
It takes the expert's time. The builder cannot write Ana's goals for her. Each one comes from a question only she can answer.
It is narrower than her judgment. A measure checks what it was told to check and nothing else. Anthropic's advice is to measure what you mean to measure.3 A check that an answer contains the word "controller" does not check that the answer is right. So every measure needs its limit said beside it: what it catches, and what it lets through.
It must be set before the result is known. Write the threshold down before the first run. A threshold chosen after the run tells you only what you already wanted to hear.3
Reading is the fair choice when the work is new, or happens once. Ana should read the first answers of any new kind of question, because her goals come from what she sees there. A measure is worth its cost when the same kind of answer will be given again tomorrow at 7:10, and nobody will be there.
The operating rule: write each quality goal as Ana says it, then give it a check, a set, a number and a marker. Write it for the whole worker and for each part that can fail alone.
Do this now. Open your coding agent in any project where a model gives answers. Copy this line:
Ask me, one question at a time, what must be true of this project's answers for me to accept one without reading it. For each thing I say, write a row with four parts: the check, the set of cases, the number that passes, and who or what makes the mark (code, a model, or me). Tell me which rows you cannot fill in, and what you would ask the expert next.
Read the rows where the marker is "me". Those are the answers your judgment does not reach yet.
Check yourself
Question 1 / 8
0 answered
Which of these is a stated quality goal, as this section uses the term?
Sources
- Owner
- Panaversity