Customer Eval Harness: Build One in Your First Week as a QA FDE
Ishan Dev ShuklCommunity Council
Dec 6, 2026
Quick answer
A customer eval harness scores an AI feature against golden examples taken from one customer's real cases. In week one: collect real tickets, redact them, sample risky ones first, label them with a customer expert and check you agree, write the customer's rules as checks with a severity each, run every case several times, and send a pass/fail report that quotes their rules and shows what failed.

You arrive at a customer site. The AI assistant your company sold them is “mostly working”. Their claims lead has three screenshots of it saying something scary, and your account manager wants a go-live date.
Nobody needs your opinion yet. They need evidence. A customer eval harness is how you produce it: a small set of the customer’s own cases, their rules written as checks, and a pass/fail report they can read without you in the room.
This guide is the five-day version a QA Forward Deployed Engineer can build in week one. All the code is plain Python and pytest, runs in under a second, and uses a scripted fake model so every number below is reproducible.
Why does each customer need its own eval harness?
Your product team has an eval suite. It tests the product’s idea of “correct”. The customer has a different idea, and theirs decides whether they renew.
Take a freight company, Kestrel Freight (invented for this post). They use an AI assistant to triage damage, loss and delay claims. The product’s generic eval checks tone and classification. Kestrel’s claims lead cares about two things the product has never heard of:
- The assistant must never promise money. Only their claims team confirms payouts.
- Claims filed more than 7 days after delivery go to the claims team, and the reply says why.
Those rules live in a PDF of their operating procedures and in the claims lead’s head. A golden dataset per customer is how you get them out of both places and into something that runs.
There’s a trade-off. A per-customer harness is extra work, and it can drift into a custom-code shop if you let every customer invent its own format. Keep the harness code shared and make only the data and the rules per customer. If you are building the in-house version with CI gates, our guide to eval harnesses, golden datasets and release gates covers that side. This post is about the field version.
The five-day plan

Day 1: where do golden examples come from?
A golden example is a real input plus an expected result that a named person on the customer side has approved. “Golden” means someone with authority said “yes, that is right”.
Good sources, in the order I ask for them:
- Escalations and complaints. The cases that already hurt. These become your blocker tests.
- A recent ticket export with the resolution their agents chose. This gives you realistic volume and mix.
- Their procedures (SOPs). The rules, written down. Often outdated, which you’ll find out on day 3.
- The scary screenshots. Ask for them by name. People remember the worst answers.
OpenAI’s evaluation guidance makes the same point: mine production and historical data, use expert labellers, and avoid eval sets that “don’t faithfully reproduce production traffic patterns”. Anthropic’s eval docs put it as “be task-specific” and mirror the real task distribution.
What you don’t do on day 1 is write cases from your imagination. Invented cases test your assumptions. Real cases test theirs.
Day 2: redact and sample without breaking what you score
Customer tickets contain names, emails and phone numbers. Before a ticket becomes an eval case, strip what you don’t need. Agree the rules with the customer’s data owner first, and run redaction inside their environment if that’s what their agreement says.
Here is the trap. Redaction must remove personal data and keep the fields you score. Kestrel’s assistant extracts shipment numbers like SHP-4821337701, so those must survive, but as stable pseudonyms so real IDs never leave the building.
# evalkit/redact.py: strip contact details from customer tickets before they become eval cases
import hashlib
import re
EMAIL = re.compile(r"[\w.+-]+@[\w-]+\.[\w.]+")
PHONE = re.compile(r"\+?\d[\d ().-]{8,}\d")
SHIPMENT = re.compile(r"\bSHP-\d{10}\b")
def pseudonym(shipment_id: str, salt: str) -> str:
"""Same real ID -> same fake ID, so a shipment mentioned twice stays one shipment."""
digest = hashlib.sha256(f"{salt}:{shipment_id}".encode()).hexdigest()
return f"SHP-{int(digest, 16) % 10**10:010d}"
def redact(text: str, salt: str) -> str:
text = EMAIL.sub("<EMAIL>", text)
text = PHONE.sub("<PHONE>", text)
return SHIPMENT.sub(lambda m: pseudonym(m.group(), salt), text)
Two small tests guard it:
# tests/test_redact.py
from evalkit.redact import pseudonym, redact
SALT = "kept-by-customer"
def test_contact_details_are_removed():
out = redact("Call +1 415 555 0182 or mail dana.ruiz@example.com", SALT)
assert out == "Call <PHONE> or mail <EMAIL>"
def test_shipment_ids_survive_as_stable_pseudonyms():
# The eval scores shipment IDs, so redaction must keep them usable
out = redact("Shipment SHP-4821337701 arrived crushed", SALT)
assert pseudonym("SHP-4821337701", SALT) in out
The second one failed on my first version:
E AssertionError: assert 'SHP-2678063189' in 'Shipment SHP-<PHONE> arrived crushed'
1 failed, 1 passed in 0.01s
The phone pattern ate the ten digits inside the shipment number. Every case built from that data would have had no shipment ID, and the “quote the right shipment” check would have failed for reasons that had nothing to do with the model. You would have reported a bug in the product that was really a bug in your harness.
The fix is one lookbehind, so the phone pattern never starts inside an ID:
PHONE = re.compile(r"(?<![\w-])\+?\d[\d ().-]{8,}\d") # not inside an ID like SHP-48213...
2 passed in 0.00s
One more honest note: the redacted ticket still read - Dana (<EMAIL>). Regexes don’t find names. For real data, use a PII detection tool such as Presidio, an open-source, MIT-licensed library for de-identifying text and images (presidio-analyzer 2.2.366 on PyPI at the time of writing), and still spot-check the output by eye.
Pick risky tickets first
You can’t label 5,000 tickets in a week. Pick on purpose: every escalation, every ticket near a policy boundary, then fill each category so the mix isn’t lopsided.
# evalkit/sample.py: choose which real tickets get labelled first (risk first, then breadth)
import re
DAYS = re.compile(r"delivered (\d+) days? ago", re.I)
def pick(tickets: list[dict], per_category: int = 4, boundary: int = 6) -> list[dict]:
"""Keep every escalation and every ticket near the 7-day claim window, then fill each category."""
chosen = []
for category in sorted({t["resolution"] for t in tickets}):
pool = [t for t in tickets if t["resolution"] == category]
risky = [t for t in pool if t["escalated"] == "yes"
or ((m := DAYS.search(t["body"])) and int(m.group(1)) >= boundary)]
rest = [t for t in pool if t not in risky]
chosen += risky + rest[: max(0, per_category - len(risky))]
return chosen
picked 12 of 16 tickets: 1004 1007 1015 1001 1008 1003 1006 1011 1002 1013 1005 1010
Trade-off: risk-first sampling makes your pass rate look worse than production traffic would. That’s fine for finding problems. Just say so in the report, and don’t quote the number as “accuracy”.
Day 3: label with the customer, then measure agreement
Now you and a customer expert (here, Kestrel’s claims lead) label the same twelve cases independently: shipment ID, claim type, and which queue each ticket should go to. Then compare.
Raw agreement hides a lot, because two people who both say “auto reply” most of the time will agree often by luck. Cohen’s kappa corrects for that:
# evalkit/agreement.py: do two people label the same ticket the same way?
from collections import Counter
def cohen_kappa(a: list[str], b: list[str]) -> float:
"""Agreement beyond chance: 1.0 is perfect, 0.0 is what guessing would give."""
n = len(a)
observed = sum(x == y for x, y in zip(a, b)) / n
ca, cb = Counter(a), Counter(b)
expected = sum(ca[k] * cb[k] for k in ca.keys() | cb.keys()) / (n * n)
return (observed - expected) / (1 - expected)
The build script prints agreement on the routing label and lists every disagreement:
route agreement: 10/12, kappa 0.63
ticket 1004: FDE=claims_team customer=auto_reply -> ask why
ticket 1008: FDE=auto_reply customer=claims_team -> ask why
(I checked the function against scikit-learn’s cohen_kappa_score: both give 0.625.) On the widely used Landis and Koch scale, 0.63 is “substantial”, which sounds fine. Look at what’s underneath, though. 83% raw agreement became 0.63 once chance was removed, and both disagreements turned out to be rule problems, not labelling slips:
- Ticket 1004 was delivered exactly 7 days ago. I read the SOP’s “within 7 days” as “day 7 is late”. The claims lead’s rule is “more than 7 days”. Day 7 is on time.
- Ticket 1008 is a delay with the customer’s production line down. That isn’t in the SOP at all. The claims lead escalates anything that stops a customer’s operations.
Both answers go into the golden data, with the source written down. They are also your first two findings: one ambiguous rule and one rule that was never written. Anthropic’s eval guide lists “ambiguous test cases where even humans would find it hard” as an edge case to plan for. In the field, you will usually find them on day 3.
The best testers don’t just find bugs. They uncover risks. Here, the risk was in the customer’s own procedure, before the model said a word.
Each approved case becomes one line of JSON. The approved_by field is not decoration: the loader refuses any case without a named customer approver.
{"id": "KF-T-1004", "source": "ticket 1004, export 2026-12-01", "input": "SHP-1819396415 came in soaked, packaging ruined. Delivered 7 days ago. No photos yet, sorry.", "expect": {"shipment_id": "SHP-1819396415", "claim_type": "damage", "route": "auto_reply"}, "late": false, "has_photos": false, "labelled_by": "fde", "approved_by": "claims-lead"}
Day 4: turn the customer’s rules into scoring checks
This is where forward deployed engineer evals differ most from product evals. The scoring rules come from the customer, in the customer’s words, and each one has a severity the customer agreed to:
- Blocker: must pass every run. One failure stops go-live.
- Major: must pass a bar agreed on day 1 (here 90% of runs).
- Minor: reported, never gating.

Each rule is a small function that returns None for a pass or a sentence saying why it failed. Sentences, not booleans, because the person reading the report wasn’t there when you wrote the check.
# evalkit/rules.py: the customer's rules, in their words, each with a check you can read
import re
from dataclasses import dataclass
from typing import Callable
from evalkit.golden import Case
MONEY_PROMISE = re.compile(
r"\b(we will|we'll|you will|you'll) (refund|reimburse|compensate|pay)\b"
r"|\brefund (is|has been) approved\b|[$€£₹]\s?\d", re.I)
SHIPMENT = re.compile(r"\bSHP-\d{10}\b")
@dataclass(frozen=True)
class Rule:
id: str
text: str # the customer's wording, quoted in the report
severity: str # blocker | major | minor
check: Callable[[Case, dict], str | None] # None = pass, str = why it failed
applies: Callable[[Case], bool] = lambda case: True
def no_money_promise(case, out):
m = MONEY_PROMISE.search(out["reply"])
return f"reply says '{m.group()}'" if m else None
def right_shipment(case, out):
want = case.expect["shipment_id"]
wrong = {out["shipment_id"], *SHIPMENT.findall(out["reply"])} - {want}
return f"used {sorted(wrong)}, expected {want}" if wrong else None
def right_queue(case, out):
want = case.expect["route"]
return None if out["route"] == want else f"routed to {out['route']}, expected {want}"
def window_explained(case, out):
return None if "7 days" in out["reply"] else "late claim, reply never mentions the 7-day window"
def right_type(case, out):
want = case.expect["claim_type"]
return None if out["claim_type"] == want else f"classified {out['claim_type']}, expected {want}"
def asks_for_photos(case, out):
return None if "photo" in out["reply"].lower() else "damage claim without photos, none requested"
RULES = [
Rule("KF-1", "Never promise money. Only the claims team confirms a payout.", "blocker", no_money_promise),
Rule("KF-2", "Always quote the customer's own shipment number.", "blocker", right_shipment),
Rule("KF-3", "Send each claim to the right queue.", "major", right_queue),
Rule("KF-4", "Tell late claimants about the 7-day claim window.", "major", window_explained,
applies=lambda c: c.late),
Rule("KF-5", "Classify the claim as damage, loss or delay.", "major", right_type),
Rule("KF-6", "Ask for photos on damage claims that have none.", "minor", asks_for_photos,
applies=lambda c: c.expect["claim_type"] == "damage" and not c.has_photos),
]
Every check here is code-based: fast, free, and it never disagrees with itself. What it lacks is nuance, and that trade is right for week one. Add an LLM judge later for things like tone, once you can calibrate it against the customer’s own labels; our LLM evaluation guide shows how.
Day 5: run it and write the pass/fail report
The harness runs each golden case several times, because an AI assistant can answer the same ticket differently on each run. The model is injected as a function, so the same harness scores the real deployment, a new prompt, or a scripted fake.
# evalkit/harness.py: run the assistant over golden cases, several times each, and score every rule
from collections.abc import Callable
from evalkit.golden import Case
from evalkit.rules import RULES
Model = Callable[[str, int], dict] # (ticket text, run number) -> {"shipment_id", "claim_type", "route", "reply"}
MAJOR_BAR = 0.90 # agreed with the customer on day 1; blockers must pass every run
def run(model: Model, cases: list[Case], runs: int = 3) -> dict:
results = {r.id: {"runs": 0, "passed": 0, "failures": []} for r in RULES}
for case in cases:
for n in range(runs):
out = model(case.input, n)
for rule in RULES:
if not rule.applies(case):
continue
res = results[rule.id]
res["runs"] += 1
if (why := rule.check(case, out)) is None:
res["passed"] += 1
else:
res["failures"].append((case.id, n, why))
return results
def verdict(rule, res) -> str:
if res["runs"] == 0:
return "NOT TESTED"
if rule.severity == "blocker":
return "PASS" if res["passed"] == res["runs"] else "FAIL"
if rule.severity == "major":
return "PASS" if res["passed"] / res["runs"] >= MAJOR_BAR else "FAIL"
return "NOTE" if res["failures"] else "PASS"
For a verified, repeatable run, the model here is a scripted fake of version 0.3 of the assistant. It has two realistic flaws: it treats day 7 as late (the same misreading I made on day 3), and on tickets that mention an amount it sometimes adds a “helpful” promise:
# evalkit/fake_models.py (excerpt): a scripted stand-in, so every run is reproducible
def claims_assistant_v03(text: str, run: int) -> dict:
rng = random.Random(f"{text}|{run}") # same ticket + run -> same answer
ship = SHIP.search(text).group()
claim = _classify(text)
days = int(m.group(1)) if (m := DAYS.search(text)) else 0
late = days >= 7 # bug: the customer's rule is "more than 7 days"
reply = f"Thanks for reporting {claim} on {ship}."
if late:
reply += " Claims filed more than 7 days after delivery go to our claims team."
if claim == "damage" and "photos" not in text.lower():
reply += " Please send photos of the damage."
if "$" in text and rng.random() < 0.5:
reply += " We will refund the full amount." # the "helpful" answer the customer fears most
return {"shipment_id": ship, "claim_type": claim,
"route": "claims_team" if late else "auto_reply", "reply": reply}
With the real assistant, model is a short wrapper around your client call that returns the same four fields. Nothing else changes.
A 44-line report.py turns the results into Markdown. python run_eval.py v0.3 writes it and exits with code 1 on FAIL, so it can gate a pipeline later. This is the actual output:
# Claims assistant eval: claims-assistant v0.3
12 golden cases from your tickets, 3 runs each, 2026-12-05.
**Verdict: FAIL** (failed: KF-1, KF-3)
| Rule | Your rule | Severity | Runs passed | Result |
|---|---|---|---|---|
| KF-1 | Never promise money. Only the claims team confirms a payout. | blocker | 32/36 | FAIL |
| KF-2 | Always quote the customer's own shipment number. | blocker | 36/36 | PASS |
| KF-3 | Send each claim to the right queue. | major | 30/36 | FAIL |
| KF-4 | Tell late claimants about the 7-day claim window. | major | 9/9 | PASS |
| KF-5 | Classify the claim as damage, loss or delay. | major | 36/36 | PASS |
| KF-6 | Ask for photos on damage claims that have none. | minor | 0/3 | NOTE |
Blockers must pass every run. Majors must pass at least 90% of runs. Minors are listed, not gated.
## What failed
- KF-1 KF-T-1007 (2/3 runs): reply says 'We will refund'
- KF-1 KF-T-1002 (2/3 runs): reply says 'We will refund'
- KF-3 KF-T-1004 (3/3 runs): routed to claims_team, expected auto_reply
- KF-3 KF-T-1008 (3/3 runs): routed to auto_reply, expected claims_team
- KF-6 KF-T-1004 (3/3 runs): damage claim without photos, none requested
## Not covered yet
- Case mix: damage 4, delay 4, loss 4. No non-English tickets, no attachments read, no follow-up emails.
- 3 runs per case finds repeat failures; it does not measure a precise rate.
Read it the way the claims lead will:
- KF-1 failed on 4 of 36 runs, and only on tickets that mention money. One run per case could easily have missed it; ticket 1007 passed on one of its three runs.
- Both KF-3 failures trace back to day 3. Ticket 1004 is the day-7 boundary. Ticket 1008 is the unwritten “line down” rule. The product team gets two precise tickets instead of “routing feels off”.
- KF-6 is a real miss. The ticket says “No photos yet”, and the assistant read the word “photos” as “has photos”. It doesn’t block go-live, and it’s listed so nobody discovers it later.
- “Not covered yet” is part of the verdict. A PASS on twelve cases says nothing about Spanish tickets. Say what you didn’t test before someone asks.
After the product team fixed the boundary, added the escalation rule and removed money promises, version 0.4 scored (rows trimmed):
**Verdict: PASS**
| KF-1 | Never promise money. Only the claims team confirms a payout. | blocker | 36/36 | PASS |
| KF-3 | Send each claim to the right queue. | major | 36/36 | PASS |
| KF-6 | Ask for photos on damage claims that have none. | minor | 0/3 | NOTE |
Three runs per case is a week-one choice: enough to catch failures that repeat, too few to promise a rate. Our post on how many runs AI tests need covers the maths, and the release gates guide shows how to judge pass rates on a lower bound once the harness moves into CI.
Test the harness itself
A check that can never fail is decoration, and a decorated report is worse than none because people trust it. So every rule gets a known-good answer and a known-bad one:
# tests/test_harness.py (excerpt)
@pytest.mark.parametrize("rule", RULES, ids=lambda r: r.id)
def test_every_rule_passes_good_and_catches_bad(rule):
# A check that can't fail is decoration, so prove both directions
assert rule.check(LATE_DAMAGE, GOOD) is None
assert rule.check(LATE_DAMAGE, BAD[rule.id]) is not None
def test_case_without_customer_approver_is_rejected(tmp_path):
row = {"id": "X", "source": "s", "input": "i", "expect": {}, "late": False,
"has_photos": False, "labelled_by": "fde", "approved_by": ""}
(tmp_path / "g.jsonl").write_text(json.dumps(row))
with pytest.raises(ValueError, match="no customer approver"):
load_golden(tmp_path / "g.jsonl")
@pytest.mark.parametrize("name, ok", [("v0.3", False), ("v0.4", True)])
def test_report_verdict(name, ok):
cases = load_golden(Path("data/golden.jsonl"))
text, passed = render(run(MODELS[name], cases), cases, name, runs=3, today="2026-12-05")
assert passed is ok
python -m venv .venv && source .venv/bin/activate
pip install pytest
pytest -q
# 11 passed in 0.02s
To prove the tests have teeth, I replaced the KF-1 check with return None. Exactly one test failed:
FAILED tests/test_harness.py::test_every_rule_passes_good_and_catches_bad[KF-1]
1 failed, 10 passed in 0.02s
The whole kit is about 380 lines including tests. That size matters: you will hand it over to the customer’s team at the end of your engagement, and they need to understand it without you.
Common mistakes
| Mistake | Why it happens | Better approach |
|---|---|---|
| Writing golden cases from imagination | Faster than getting data access | Start from escalations and ticket exports; invented cases test your assumptions |
| Redaction that destroys scored fields | Regexes are greedy and untested | Test redaction like code; pseudonymise IDs you score |
| One labeller (you) | The customer expert is busy | Book two hours with them; disagreements are the most useful output of the week |
| Quoting raw agreement | 83% sounds good | Report kappa, and read every disagreement |
| Rules in your words | You paraphrase the SOP | Quote the customer’s wording and get each severity signed off |
| One run per case | Feels like a normal test | Several runs; a 2-in-3 failure is invisible in one |
| Reporting “accuracy” from risk-first samples | The number is easy to quote | Report per-rule results and say how cases were chosen |
| No “not covered” section | Feels like admitting weakness | List gaps up front so a PASS isn’t over-read |
Interview questions
Beginner
What is a golden example?
A real input with an expected result that a named, qualified person has approved as correct.
Why build a customer-specific eval instead of reusing the product’s?
The customer’s rules and risks differ from the product’s generic idea of correct, and theirs decide go-live.
Why run each eval case more than once?
AI output varies between runs, so a single pass can hide a failure that happens one time in three.
What should a pass/fail eval report include?
The verdict, each rule in the customer’s words with its result, the failing cases with reasons, and what wasn’t covered.
Intermediate
How do you choose which customer cases to label first?
Risk first: escalations, incidents and policy boundaries, then fill each category so the mix stays balanced.
What is Cohen’s kappa and why use it for labels?
Agreement between two labellers after removing agreement expected by chance; raw agreement overstates consistency.
Why should scoring checks return reasons instead of booleans?
The report reader needs to know what broke without reading the code or rerunning the eval.
How do you redact customer data without breaking the eval?
Remove personal data you don’t score, pseudonymise identifiers you do score, and unit-test the redaction.
Advanced
How do you set severities and pass bars with a customer?
Tie them to the cost of one failure: blockers (money, legal, safety) must pass every run, majors get an agreed rate, and the customer signs off.
A labeller disagreement turns out to be an ambiguous SOP. What do you do?
Get a ruling from the rule owner, record it with its source in the golden data, and report the ambiguity as a finding.
How do you prove your eval checks can fail?
Give each check a known-bad output, and mutate checks to confirm that the matching test fails.
How do you keep per-customer harnesses from becoming custom code?
Share the harness, runner and report code; make only data, rules and thresholds per customer.
How AI changes this
AI makes the slow parts of this week faster. A model can draft labels for 500 tickets overnight, suggest which tickets look risky, or turn a 40-page SOP into a first list of candidate rules. That’s useful, as long as a model only ever proposes. A customer expert still approves every golden case and every rule.
The harder change is that the thing under test now changes under you. Providers update models, the product team edits prompts, and the customer’s data drifts. The harness you built in week one becomes the customer’s regression suite: rerun it on every change and compare reports. If you add an LLM judge, calibrate it against the claims lead’s own labels before you trust it, and never let it grade its own model’s answers.
Expect customers to start asking for this report before they sign. A QA engineer who can produce it in a week is doing forward deployed engineer evals whatever the job title says.
Automation can execute tests. Thinking still belongs to testers.
Best practices checklist

Conclusion
A customer eval harness turns “the assistant is mostly working” into a statement the customer can check: these twelve cases from your tickets, these six rules in your words, these results across three runs each, and this is what we didn’t test.
The code is the easy part. The value of week one is in the conversations it forces: which tickets matter, what “more than 7 days” means, and which failures are blockers. Run the kit above, then swap in your customer’s tickets and rules.
A bug found in production is expensive. A bug prevented is priceless.
Keep testing. Keep learning. Keep questioning.
Go deeper · QA Bash kit
LLM Evals Kit
Test LLM features like any other feature: a dataset, graders, an LLM judge and a CI gate.
3–6 yrs · 32 passing tests
₹849₹1,249
Rate this article
8.8/10 average · 37 ratings
Discussion
Be the first to weigh in
Your question or experience helps the next tester who reads this. Sign in and earn +25 XP for every approved comment or reply.
Written by

Keep reading

