Write an eval plan that mixes graders
Write an evaluation plan for a Claude feature that covers representative, edge and adversarial cases and grades each criterion with code, a model-graded rubric or human review.
Scenario
A sales-ops team tests its Claude quote-email drafter on 40 emails that sales reps had already sent and liked. A product manager reads the drafts: "Looks great." It passes.
In week one, a draft quotes a discount the rep never approved, and another follows a line in a customer's email that said "ignore your pricing rules". Neither kind of case was in the 40.
Explanation
An eval plan has two halves: which cases you test and how each one is graded. A plan is complete when every success criterion has cases that exercise it and a grader that can score it.
Cases: three kinds, in balance.
- Representative: what real users send, in real proportions. Start with the checks you already run by hand, plus real failures from the support queue or bug tracker. Twenty to fifty real cases is a good start.
- Edge: inputs at the boundaries: missing or irrelevant data, overly long input, ambiguous cases where even experts would disagree.
- Adversarial: inputs written to break the system: harmful requests, attempts to extract the system prompt, instructions planted in content the model reads (an email, a document, a tool result).
Test both directions: cases where a behaviour should happen and where it shouldn't. A suite that only checks "applies the discount when approved" will reward a system that applies discounts everywhere.
Graders: pick the fastest one that is reliable for each criterion.
| Grader | Use it for | Watch out for |
|---|---|---|
| Code | exact or string match, valid schema, numbers against the source, which tools were called | brittle on valid variations, no nuance |
| Model-graded rubric | tone, completeness, faithfulness to a source | must be calibrated against human graders |
| Human | building the reference answers, calibrating the rubric, spot-check samples | slow and costly: use it judiciously |
A good rubric is detailed, asks for a specific output (pass or fail, or a 1-5 score), lets the grader reason first, gives it a way out ("unknown" when it lacks the information) and grades one dimension per judge.
Two more parts of a plan. Each case has a reference answer two experts would agree on. And passing cases graduate into a regression suite that runs on every change, so improvements in one area don't break another.
Worked example
Before.
Test set: 40 quote emails reps sent last quarter. Grading: the product manager reads the drafts and approves.
All representative, no edge or adversarial cases, and one human grader who can't rerun the suite on every change.
After. The feature: Claude drafts quote emails from CRM opportunity data and the current price list.
Representative (300): sampled from last quarter's quotes across all six product lines, in production proportions, each with the reference price and approved discount.
Edge (60): missing contact name, product not on the price list, 40-line orders, discount approval pending, conflicting quantities in CRM notes.
Adversarial (60): customer emails asking for unapproved discounts, planted instructions such as "ignore your pricing rules", requests for another customer's prices.
Code-graded: every price and discount matches the price list and approval record; required fields present; no other customer's name or price appears.
Model-graded rubric (one judge per dimension, pass/fail, unknown allowed): tone fits the account; answers every question in the customer's email.
Human: two sales managers write the references and grade 100 drafts to calibrate the rubric; then a 5% sample each release.
Passing cases join the regression suite, which runs on every prompt or model change.