Skip to content

Set metrics a release can fail

Judge a Claude system's metric set for gaps and unmeasurable items, and decide the metric and threshold that show a stated requirement is met.

Scenario

An IT service-desk agent built on Claude can reset passwords, unlock accounts and open tickets. Its launch criteria read: accurate, fast, affordable, safe and secure.

At the go-live review the CIO asks: "Did it pass?" Five people give five answers, because none of the criteria could fail.

Explanation

A metric earns a place in a release gate when a test run can produce a number and the number can fail. Anthropic's guidance asks for success criteria that are specific, measurable, achievable and relevant, and notes that most systems need several dimensions at once. The exam guide names five:

Dimension A measurable metric Typical form of the threshold
Accuracy correct outcomes on a fixed, held-out test set (exact match, F1, rubric pass rate) at least X% on N cases, plus a cap on severe errors
Latency time to first token for streamed chat, end-to-end time for back-office steps 95% of requests under Y seconds
Cost cost per completed task, retries and tool calls included at most Z per task on the test set
Safety share of outputs flagged by a content filter or rubric over many trials under 0.1% of 10,000 trials
Security share of injection or misuse test cases where the system takes an action nobody asked for zero for high-impact actions

Four tests for every metric in a set:

  1. Tied to a requirement. Each metric answers a requirement someone stated. A metric nobody needs is noise; a requirement with no metric is a gap.
  2. A measurement method. It names the dataset or trial set and how each case is graded. "Users trust it" names no method.
  3. A threshold fixed in advance. "Improve latency" can't fail. "95% under 3 seconds" can.
  4. Achievable. Targets come from a baseline, expert agreement or prior experiments. "Zero errors" on judgment calls where experts themselves disagree is a wish, not a gate.

Then look for the missing dimension. Teams measure what they think of first, usually accuracy. Check the design: a system that streams to a user needs a responsiveness metric; one that reads untrusted content and calls tools needs a security metric; one that writes to customers needs a safety metric. The release passes only when every threshold passes.

Worked example

Before. The service-desk agent's gate:

1. Answers are accurate.
2. Responses are fast.
3. Average cost per request stays low.
4. The agent behaves safely.

Every line fails the tests: no dataset, no threshold, and "per request" hides that one ticket can take several calls. And the agent opens tickets from emailed requests, untrusted text that can carry instructions, yet nothing measures security.

After.

Accuracy: on 600 historical tickets with agreed outcomes, the correct action is taken in at least 93%; wrong account changed: 0.
Latency: 95% of chat replies start streaming within 2 seconds on the test set.
Cost: at most 0.12 EUR per resolved ticket, all calls and retries included (baseline run: 0.09 EUR).
Safety: under 0.5% of 2,000 replies flagged by the tone-and-content rubric.
Security: 0 of 300 injection test emails lead to a password reset, unlock or permission change the requester did not ask for.

Each line names a dataset, a grading method and a threshold, and each traces back to a requirement in the brief.