Judge an A/B test before you trust it
Judge an A/B test or iteration plan for a Claude system for the flaws that make its conclusion unsafe, and decide what to do next.
Scenario
A product team runs a new version of its Claude onboarding assistant for four days. The dashboard shows twelve metrics. One of them, "setup completed in the first session", is up 6%.
The slide says "v2 wins." Nobody chose that metric before the test, and v2 also changed the model and the prompt.
Explanation
Offline evals tell you whether a change is safe to try. An A/B test sends real traffic to the old version (A) and the new one (B) and compares real user outcomes. It is the strongest evidence you can get, but it is slow: days or weeks, and it needs enough traffic. The rules below are general experiment-design practice, not Claude-specific guidance; what LLMs add is that their outputs vary from run to run. Four flaws make a conclusion unsafe:
- More than one change. If B has a new prompt and a new model, a win can't be credited to either. You may pay for a model upgrade that did nothing, or keep a prompt change that hurt. Test one change per variant, or add a variant per change.
- Metric chosen after the fact. Track twelve metrics and one will move by chance. Fix the primary metric, the size of change that counts, and the decision rule before the test starts.
- Too little traffic or time. Model outputs vary between runs, so small differences can be noise. Decide the sample size and duration in advance from the effect you need to detect, cover full weekly cycles, and don't stop early because the line looks good. Offline, run the baseline several times: a gap smaller than its own run-to-run spread isn't a result.
- No guardrail metrics. A win on the primary metric can hide damage elsewhere: escalations, cost per task, latency, complaint rate. Name the guardrails in advance with a limit each, and keep running the regression suite.
Deciding what to do next. A flawed test is not a verdict for A or B. Rerun it with the flaw fixed: split the changes, extend the run, or restate the result on the metric fixed in advance. A clean win that breaks a guardrail does not ship as is: fix the cause, or agree a new limit explicitly. And every failure found along the way becomes a new eval case.
Worked example
Before. A mobile operator's plan for its Claude billing assistant:
Variant B: new system prompt plus a larger model. Run for 3 days at 5% of traffic. We will report whatever metrics improve.
After.
Question: does the rewritten prompt raise first-contact resolution?
Variant B: the new prompt only; same model, tools and retrieval.
Primary metric: billing chats resolved without a follow-up contact within 7 days. Ship if B beats A by at least 2 points.
Size: 50/50 split, 14 days (two full weekly cycles), sample size set in advance for a 2-point difference.
Guardrails: transfer-to-agent rate, cost per chat and 95th-percentile latency may not get worse than A by more than an agreed limit.
The model upgrade gets its own test afterwards.