How to evaluate an AI workflow
The full method, start to finish: the four questions, turning intent into assertions, building the golden set, choosing a grading method, and the one-page scorecard an ROI case is actually made from.
A good AI workflow earns trust by being measurable. Evaluation is how you get there — turning “it seems to work” into a number with a threshold. Without it, a workflow that demoed well quietly stops being trusted three months after launch.
Evaluation is the thing that turns “it seems to work” into a number with a threshold. That number is what makes a system safe to depend on, safe to change, and honest to sell. What follows is the whole method, concrete enough to run yourself — with us or without us.
The four questions#
Every evaluation answers four questions, and a system can pass three of them and still be worthless.
- Is it correct? Does the output match what a competent person would produce for this case?
- Is it grounded? Is every claim traceable to a source the system was given, with nothing invented?
- Does it behave? Does it follow instructions, stay in scope, refuse what it should refuse, and degrade safely?
- Is it viable? Latency and cost per task at your real volume — including the cost of the human review it creates.
A system can be correct and non-viable. Measure all four or you have measured nothing.
Turn intent into assertions#
The highest-value hour in any engagement is the one where “it should be accurate” becomes something a test can check. It is usually the first time anyone has written down what the system is actually supposed to do.
| Vague | Assertable |
|---|---|
| “Accurate routing” | Correct queue on ≥92% of cases in the golden set; no misroutes in Legal or Escalation |
| “No hallucinations” | 100% of factual claims cite a retrieved source; zero unsupported claims |
| “Fast enough” | p95 end to end under 6 seconds; cost per task under the agreed ceiling |
Write the checks as code#
An assertion you can read is an assertion you can run on every change. Most of them are cheap, deterministic checks — exact matches, schema validation, source overlap — and you reach for a model-graded check only where the dimension is genuinely subjective, like tone.
def grade(case, output):
# correctness — the ticket lands in the right queue
assert output.queue == case.expected_queue
# groundedness — every claim cites a retrieved source
for claim in output.claims:
assert claim.source_id in case.retrieved_ids
# viability — inside the agreed budget at real volume
assert output.cost_usd <= 0.04
assert output.latency_p95 <= 6.0Run it once and you have a report. Wire it into the change process so it runs on every prompt edit, model version, and vendor update, and you have a safety net — the reason the next change does not need us in the room.
Build the golden set#
The cases are built from your real operation, never synthetic only, and stratified so the hard and adversarial ones are actually represented rather than averaged away.
| Stratum | Share | What’s in it |
|---|---|---|
| Representative | ~60% | Typical cases, sampled to match your real distribution |
| Hard | ~25% | Ambiguous, multi-intent, incomplete information |
| Edge | ~10% | Rare categories, long inputs, malformed data |
| Adversarial | ~5% | Injection attempts, out-of-scope requests, things it should refuse |
What you end up with#
A one-page scorecard you can read in a minute and re-run on demand, set against the baseline from the start of the engagement. One failing row is not a problem to hide — it is the point.
| Dimension | Threshold | Result | Status |
|---|---|---|---|
| Correctness | ≥92% | 94.1% | Pass |
| Groundedness | 0 | 0 | Pass |
| Safety | 100% | 98% | Fail |
| Cost / task | <$0.04 | $0.031 | Pass |
Between the baseline and the scorecard sits the ROI case — stated in the same numbers both times, which is what makes it survive a finance review.
What we’d charge to build this with you: a standalone Assurance engagement runs two to five weeks. If you’d rather run it yourself, everything above is the method — see it in full or book an audit conversation.