The demo that lied to you
You've built a support assistant for an online shop. You type in five questions ("Where's my order?", "Can I get a refund?", "Do you ship to Canada?") and the answers look good. You ship it. Two weeks later someone tweaks the system prompt to make the bot "friendlier", tries the same five questions, decides it still looks fine, and merges. Then a customer posts a screenshot of the bot promising a full refund on a final-sale item.
Nobody was careless here. The team checked quality by vibes: try a few prompts, read the answers, go with your gut. That works for a weekend prototype. Once real users arrive, it stops working, for three reasons.
Three ways hand-testing misleads you
1. Too few cases. Five prompts can't stand in for real traffic. If 4% of refund requests involve final-sale items, you need roughly 25 refund prompts just to expect to see one such case. Your five hand-picked prompts are also the easy ones, because you wrote them while thinking about the happy path.
2. You remember selectively. When you skim outputs you notice the good ones and forgive the odd one ("that was a weird question anyway"). After a prompt change you compare against your memory of last week's answers, not the answers themselves. Code reviewers diff the text. Vibe-checkers diff a feeling.
3. Output varies from run to run. The same prompt can produce different answers. Sampling is random by design. Even at temperature 0, Anthropic's docs say results are not fully deterministic, and OpenAI calls its seed parameter "best effort". Many current models also limit the setting: recent Claude models return an error for non-default sampling parameters, GPT-5-family reasoning models accept temperature only in some modes, and Google recommends keeping Gemini 3 at its default of 1.0. So you usually can't just turn the randomness off. One good run tells you that one sample was good.
You can see the third problem for yourself. Run the same prompt twenty times and count the results:
# vibe_vs_count.py: run one prompt N times and tally a yes/no property
import collections
from my_llm import call_model # your thin wrapper over the Claude / OpenAI / Gemini / local SDK
PROMPT = "I bought a final-sale jacket 3 days ago. Can I return it for a refund?"
def promises_refund(text: str) -> bool:
# Crude on purpose: does the answer offer a refund it shouldn't?
t = text.lower()
return "full refund" in t or "we'll refund" in t
tally = collections.Counter()
for _ in range(20): # 20 samples, not 1
answer = call_model(system=open("system_prompt.txt").read(), user=PROMPT)
tally[promises_refund(answer)] += 1
print(tally) # e.g. Counter({False: 17, True: 3})
A result like False: 17, True: 3 means the bot gets this wrong about 15% of the time. If you try it by hand once, you have about an 85% chance of seeing a correct answer and concluding it's fine.
Gotcha: 20 runs of one prompt measures variance, not coverage. You still need many different prompts. Both problems are real, and you need to deal with both.
From a worry to a question
An eval is a repeatable experiment. Experiments need a precise question. Most quality worries start out vague:
| Vague worry | Question an eval can answer |
|---|---|
| "Is the bot good at refunds?" | On our 40 refund cases, does the bot refuse refunds on final-sale items in at least 95% of them? |
| "Did the friendlier prompt break anything?" | Does prompt v2 pass at least as many of our 200 support cases as v1? |
| "Is it hallucinating policies?" | Does any answer state a return window other than 30 days? |
| "Should we switch models?" | Across our cases, which model's answers do reviewers prefer more often, and at what cost per answer? |
The recipe is the same every time:
- Name the behaviour: refund handling, not "quality".
- Name the cases: which inputs, and how many.
- Name the pass condition for a single case. Ideally it's yes or no.
- Name the bar: a threshold (95%) or a comparison (no worse than v1).
Here's that recipe written as code:
// refund-question.ts: one vague worry turned into a yes/no answer
type Case = { input: string; finalSale: boolean };
const cases: Case[] = loadCases("refund_cases.json"); // step 2: the 40 refund cases
function passes(c: Case, answer: string): boolean {
// Step 3: on a final-sale item, the answer must NOT offer a refund
const offersRefund = /full refund|we'll refund/i.test(answer);
return c.finalSale ? !offersRefund : true;
}
const results = await Promise.all(
cases.map(async (c) => passes(c, await callModel(c.input)))
);
const rate = results.filter(Boolean).length / results.length;
console.log(`pass rate ${(rate * 100).toFixed(1)}%`);
console.log(rate >= 0.95 ? "SHIP" : "DO NOT SHIP"); // step 4: the bar
Trade-off: The regex is a rough check. It will miss "I can process that return for you." That's fine for now. Even a rough check you run every time beats a careful look you take once. Later levels show how to build better checks.
What an eval can and cannot answer
Evals answer three kinds of question well:
- Is it good enough to ship? Pass rate against a bar you agreed on in advance.
- Did it get worse? The same cases before and after a change. This is a regression check, just like a unit test suite.
- Which version is better? Prompt A vs B, or model X vs Y, run on the same cases.
They can't answer these:
- What should "good" mean? Whether the bot should ever bend the refund policy is a product decision. The eval only enforces the answer once you've made it.
- Does it work on cases you never wrote down? An eval only covers its dataset. A 100% pass rate means "no known failures", not "no failures".
- Why did it fail? A pass rate tells you that something broke. To find out why, you read what the app actually did.
- Will users like it? Offline evals are a stand-in for real outcomes. They don't replace watching real outcomes.
Best practice: Write the question and the bar before you look at results. If you set the threshold after seeing 91%, you'll end up deciding that 91% was always the goal.
Exercise
- Pick an LLM feature you've built or used (a summariser, a chatbot, a coding agent).
- Write down three vague worries you have about it.
- Rewrite each one using the four-step recipe: behaviour, cases, single-case pass condition, bar. Label each as ship?, worse? or better?.
- Choose one and adapt
vibe_vs_count.py. Run one realistic prompt 20 times against any model you have access to and record the tally. Did the result surprise you?
Key takeaways
- Vibe checks fail for three reasons: too few cases, selective memory, and output that varies from run to run.
- Temperature 0 doesn't guarantee identical outputs, and many current models restrict it anyway. Count results over many runs; don't trust one run.
- A good eval question names a behaviour, a set of cases, a yes/no pass condition and a bar.
- Evals answer ship?, worse? and better?. They don't define "good", don't cover cases you never wrote down, and don't explain why something failed.
- Set the bar before you see the numbers.