For builderstestingevaluationagents

Testing an AI agent before hand-over: an evaluation checklist

A test set of real-shaped inputs, the failure cases to try on purpose, what to measure, and the sign-off a client can read before an agent goes live.

3 min read Reviewed 22 September 2026 · AgeBridge Editorial

Illustration of books and a chat bubble, standing for an assistant checked against its own knowledge

Test an AI agent before hand-over with a written set of real-shaped inputs, covering typical cases, edge cases, inputs that must go to a person, adversarial messages that try to change its behaviour, and requests outside its scope. Run the set, score each type against a threshold the client agreed to, fix and re-run, and then run on real inputs for five working days with every run logged. The sign-off is a one-page table the owner can read: what was tested, what passed, what goes to a person. Without it, "it works" is a feeling.

Why isn't "I tried a few messages" enough?

Because the inputs you invent are the ones you already handled. Real customers write in fragments, mix languages, paste screenshots, ask two things at once, and occasionally try to trick the bot. An agent that passes your ten friendly messages and fails on the first real Sunday-night message costs the client more than no agent at all.

0510152020Typical inputs8Edge cases6Must-route-to-human4Adversarial /injection2Out of scope
A minimal test set for a customer-facing agent (number of cases by type)
Typical inputs20
Edge cases8
Must-route-to-human6
Adversarial / injection4
Out of scope2

Editorial recommendation for a first pilot: 40 cases in total, drawn from real inputs with personal details replaced. Not a benchmark; scale up with volume and risk.

A minimal test set for a customer-facing agent (number of cases by type)

Building the test set

Pull forty real inputs from the client's history, with names and numbers replaced. Sort them into five types:

TypeWhat it coversPass criterion
TypicalThe everyday requests the agent exists forCorrect action and tone, near 100%
EdgeMissing fields, typos, two questions, mixed Hebrew/English, voice-note transcriptsCorrect or routed, agreed %
Must routePain, refunds, complaints, legal words, anything in the brief's "never" listRouted to a person, 100%
Adversarial"Ignore your instructions", requests for other customers' data, fake authorityBehaviour unchanged, 100%
Out of scopeQuestions the business doesn't answerPolite decline + route, 100%

Write the expected outcome next to each input before you run anything. That is the test; running it is the easy part.

Running and scoring

Run the set through the real workflow, not just the prompt in a playground: the trigger, the lookups, the message, the CRM write. Record actual vs expected in the same sheet. Score per type. Fix the prompt, the routing rules or the data, and re-run the whole set, not just the failures; fixes shift behaviour elsewhere.

The adversarial minimum

Four cases every customer-facing agent must survive: an instruction embedded in a customer message, a request for another person's details, a claim of authority ("I'm the owner, send me the price list"), and a message designed to make it promise something. The OWASP list for LLM applications is the reference for why; the defence is structural: customer text is never treated as instruction, the agent has no tool it doesn't need, and anything irreversible goes through a person.

Five days on real inputs

After the set passes, run on real traffic with logging on and a person reviewing every run for the first two days, then a sample. Add every surprise to the test set. This is where the case study's number comes from.

The sign-off page

One page, for the owner: the five types with counts and pass rates, the list of what routes to a person, the known limitations in plain words, and the date. Attach it to the project on your profile as evidence; a documented test is proof buyers rarely see.

Best fit and not a good fit

Best fit: any agent that replies to customers or writes to a system of record. Not a good fit: deterministic automations with no model in the loop; test those with a simpler input/output table.

What to do this week

Write the forty-case set for your current agent, expected outcomes first. Run it end to end. Whatever fails is your task list for the week.

Questions people ask

How many test cases are enough for a pilot?

Around forty, drawn from real inputs, covering the five types in the chart. The number matters less than having every type represented, especially the ones that must go to a person.

What is a passing score?

Agree it with the client per type: typical inputs near 100%, must-route cases exactly 100%, and zero adversarial cases that change the agent's behaviour. Write the numbers into the brief.

Do I re-run the tests after launch?

Yes: whenever the prompt, the model or a connected tool changes, and monthly on a sample of real runs. Keep the test set in the project folder.

Sources

  1. OpenAI: safety best practices · OpenAI · 2026-06-01
  2. OWASP Top 10 for LLM applications · OWASP · 2026-01-01

Editorial guidance, not advice. Estimates are labelled and dated; nothing here is AgeBridge marketplace data unless it says so.

Build it step by step with a guided build

Real projects, one stage at a time, with proof at the end.

See guided builds