
A demo proves that a system can work once. A customer needs to know that it works on their data, every day, after every change. That proof is an eval suite, and it is a core part of the FDE job. OpenAI measures its FDEs partly through "eval-driven feedback that changes product and model roadmaps" (OpenAI, FDE London). Anthropic asks FDE candidates for production experience with "evaluation frameworks" (Anthropic, FDE London). If you are preparing for one of those loops, see what OpenAI, Anthropic and Palantir test for in the FDE interview.
This is the practical version: golden sets, offline and online evaluation, LLM-as-judge and its traps, regression runs, and metrics a customer will actually read.
Start with failures, not metrics
Before you choose a metric, read real outputs. Hamel Husain puts it bluntly: "You are doing it wrong if you aren't looking at lots of data" (Your AI Product Needs Evals). There is a research reason for this too. Shreya Shankar and co-authors describe "criteria drift": "users need criteria to grade outputs, but grading outputs helps users define criteria" (Who Validates the Validators?, 2024).
In practice, this means one session with the customer's domain expert early in the engagement. Go through realistic outputs together and write down every way they fail: wrong field extracted, answer without a source, missed escalation, wrong tone. Those failure categories become your grading criteria.
Build a golden set
A golden set is a fixed collection of inputs with known good outputs or explicit grading criteria, agreed with the customer.
- Size. You do not need hundreds of cases on day one. Anthropic's engineering guide says "20-50 simple tasks drawn from real failures is a great start" (Demystifying evals for AI agents, January 2026).
- Sources. Real tickets or documents (anonymised, with the customer's permission), known failures, edge cases, prompt-injection attempts, and cases where the right answer is "I don't know" or a handoff to a human.
- Structure. ID, input, expected output or rubric, and tags such as category, so you can report per category.
- Owner. One person on the customer side signs off on the labels. Hamel Husain calls them the principal domain expert and warns that a proxy "is a recipe for disaster" (Creating a LLM-as-a-Judge).
- Versioning. Keep the set in git next to the code and add a case whenever production surfaces a new failure.
- Holdout. Keep part of the set aside and never tune prompts against it.
Choose graders: code first
Anthropic's guide describes three types of graders: code-based, model-based and human. Code-based graders are fast, cheap and reproducible but brittle. Model-based graders are flexible but non-deterministic and need calibration. Human graders are the most reliable and the slowest (Anthropic).
Use them in that order. First check everything a program can: valid JSON, the right value in the right field, a citation that points to a real document, no personal data, the right tool with the right arguments. Use a model judge only for what code cannot check, such as completeness or tone, and human review to calibrate the judge. The same guide advises grading what the system produced, not the path it took.
LLM-as-judge and its traps
Model judges can work. In the MT-Bench study, strong judges reached "over 80% agreement, the same level of agreement between humans" (Zheng et al., 2023). They also fail in predictable ways:
- Position bias. The order of answers changes the verdict. Rankings "can be easily hacked" this way: with ChatGPT as the judge, Vicuna-13B beat ChatGPT on 66 of 80 queries after the order was changed (Wang et al., 2023). Fix: run each comparison in both orders and count only consistent wins.
- Verbosity and self-enhancement bias. Judges can favour longer answers and their own model's answers (Zheng et al.). Fix: penalise padding in the rubric and, where possible, use a judge from a different model family.
- Vague scales. "If your evaluations consist of a bunch of metrics that LLMs score on a 1-5 scale (or any other scale), you're doing it wrong" (Hamel Husain). Fix: binary pass/fail with a short written critique.
- An unvalidated judge. Test the judge against expert labels like a classifier and report true positive and true negative rates separately: raw agreement misleads when most cases pass. Husain warns that "below 60 examples, the confidence intervals are often too wide to support a useful conclusion".
- Drift. Re-validate the judge after every model, prompt or data change. In Husain's words, "this process never truly ends".
Offline and online evaluation
Offline evaluation runs the golden set without real users. Run it before every change: prompt, model version, retrieval settings, tool definitions, chunking. Anthropic calls automated evals the "first line of defense" before launch and in CI/CD.
Online evaluation watches real traffic. In Anthropic's words, "production monitoring kicks in post-launch to detect distribution drift and unanticipated real-world failures". Production has no ground truth, so combine several signals:
- run the cheap code checks on every response and the judge on a sample;
- track user behaviour: edits to the output, retries, escalations to a human, abandoned tasks;
- watch business events downstream, such as a reopened ticket or a corrected record;
- for high-stakes changes, run an A/B test, which is level 3 in Husain's framework.
Then close the loop: every confirmed production failure becomes a new golden-set case.
Regression runs
Anthropic separates two kinds of suites. Capability evals ask what the system can do and should start at a low pass rate. Regression evals ask whether it still handles everything it used to and "should have a nearly 100% pass rate". When a capability eval saturates, it moves into the regression suite (Anthropic).
Run the regression suite on every pull request and block the merge if the pass rate drops beyond noise. To tell noise from a real drop, report the standard error with every score, cluster related cases, compare versions with paired differences on the same questions, and size the set with power analysis (Anthropic, A statistical approach to model evaluations, November 2024). Run each case several times. For customer-facing agents, Anthropic suggests pass^k, the probability that all k attempts succeed: consistency matters more than one lucky success.
Metrics for the customer
The customer does not care about judge agreement. Translate the evals into a short report:
- Task success rate on the golden set, by category, with a confidence interval.
- Critical error rate, reported separately: wrong amount, leaked data, wrong action taken. Agree a threshold that blocks a release.
- Handoff quality: how often the system passes a case to a human, and whether it passes the right ones.
- Cost and time per task compared with the current process.
- Latency, at the 95th percentile rather than the average.
Agree the targets before you build, not after the first demo. Then send the same one-page report every week: trend, new failure categories, and what changed.
A minimal harness in Python
A golden-set file, one JSON object per line:
{"id": "inv-017", "tag": "multi-currency", "input": "Subtotal USD 90, total due EUR 1240.00", "expected": {"currency": "EUR", "total": "1240.00"}}
The harness runs each case several times, grades with code, computes the standard error over per-case scores and gates the release:
import json
import math
def load_golden(path):
with open(path) as f:
return [json.loads(line) for line in f if line.strip()]
def check_fields(output, case):
"""Deterministic grader: valid JSON with the expected values."""
try:
data = json.loads(output)
except (TypeError, json.JSONDecodeError):
return False, "invalid JSON"
if not isinstance(data, dict):
return False, "not a JSON object"
for key, want in case["expected"].items():
if data.get(key) != want:
return False, f"{key}: got {data.get(key)!r}, want {want!r}"
return True, "ok"
def run_eval(system, cases, trials=3):
"""Run every case several times; score = share of passing trials."""
scores, failures = [], []
for case in cases:
passed, why = 0, ""
for _ in range(trials):
ok, reason = check_fields(system(case["input"]), case)
passed += ok
if not ok:
why = reason
scores.append(passed / trials)
if passed < trials:
failures.append((case["id"], case["tag"], f"{trials - passed}/{trials} failed, last: {why}"))
return scores, failures
def summary(scores):
"""Mean pass rate and standard error, computed per case, not per trial."""
n = len(scores)
mean = sum(scores) / n
if n < 2:
return mean, float("nan")
var = sum((s - mean) ** 2 for s in scores) / (n - 1)
return mean, math.sqrt(var / n)
def judge_pair(judge, question, a, b):
"""LLM-as-judge with the order swapped; count only consistent wins."""
first = judge(question, a, b) # returns "A" or "B"
second = judge(question, b, a)
if (first, second) == ("A", "B"):
return "a"
if (first, second) == ("B", "A"):
return "b"
return "tie"
def regression_gate(system, path, baseline, max_drop=0.02):
scores, failures = run_eval(system, load_golden(path))
mean, se = summary(scores)
print(f"pass rate {mean:.1%} ± {1.96 * se:.1%} (baseline {baseline:.1%})")
for case_id, tag, why in failures:
print(f" FAIL {case_id} [{tag}]: {why}")
return mean >= baseline - max_drop
In CI, call regression_gate(my_system, "golden.jsonl", baseline=0.92) and fail the job if it returns False. my_system is your pipeline, and judge wraps the model call you use for grading. max_drop is a fixed tolerance: set it no tighter than the noise the printed interval shows, or grow the golden set until it is. The failure list matters as much as the number: it tells you what to read next.
Checklist
- A golden set of 20–50 real cases, signed off by the customer's domain expert and kept in git
- A holdout part of the set that nobody tunes against
- Code-based checks before any model judge
- A binary judge validated against expert labels (about 100 per failure mode, never fewer than 60), with true positive and true negative rates reported
- Pairwise comparisons run in both orders
- A regression suite in CI with standard errors and a clear gate
- Production sampling, user signals and a path from production failures back to the golden set
- A weekly one-page report with targets agreed before the build
More on the skills behind this work: the six-stage FDE roadmap on the FDE hub.
Join the FDE community. Share your eval setups, judge prompts and the failures that taught you the most. Join FDE Club on Telegram
Want to build evals for real customers? Cybergizer is hiring Forward Deployed Engineers. See open roles