How to Check an AI System Before Final Payment
Check an AI system before you pay the final milestone: run agreed cases with known answers, then try difficult inputs and check what happens when things fail. Review the run records and handover, too. A polished demo shows that the system can complete a prepared example. AI system acceptance testing checks whether it behaves as agreed with ordinary, awkward or unusable inputs.
Keep the acceptance cases in a document you control. For each case, record the input, what the system should do and what counts as a pass. OpenAI's evaluation guidance uses the same basic approach: define a task, run test inputs, then analyze and improve the behavior.
“Writing evals to understand how your LLM applications are performing against your expectations, especially when upgrading or trying new models, is an essential component to building reliable applications.”
Use your expectations as the yardstick at handover, not whether an answer sounds convincing. A friendly response can still be wrong, incomplete or unsupported.
1. Write the acceptance criteria before you click through the demo
Acceptance criteria are the observable conditions a system must meet for you to accept a task. Set them before the final demonstration, while you can still separate a missing requirement from a bug in something already agreed.
Make each criterion something you can check yourself. "The agent handles incoming email well" is too vague. "For this sample email, the system assigns the right category, drafts a reply based on the attached policy and leaves the message for approval" gives you a clear test.
Anthropic's guidance on test design recommends specific, measurable criteria tied to the use case, with edge cases alongside the main task. Describe an acceptable result in your own business terms. For a system that drafts replies, you might require the right recipient, relevant facts, no invented promises and a draft that waits for a person to approve it.
Check the system's actions, not just its words. If an agent says it updated your customer record, open the record and confirm. Anthropic's evaluation guide for agents gives an example of an agent transcript claiming a booking was made when the database has no reservation.
| What you test | What you write down | What you verify |
|---|---|---|
| A known-answer task | The input and an independent reference answer | Whether the result is accurate enough for the agreed use |
| A workflow action | The requested action and expected final state | Whether the email, record or file actually changed as intended |
| An unsupported request | The missing information or source | Whether the system stops, asks for clarification or escalates |
| An operational requirement | The agreed speed, cost or error condition | Whether the run meets the threshold you agreed before testing |
OpenAI's dataset guidance supports storing reference answers and checking results in different ways, including exact match, semantic similarity, labels or programmatic conditions. Exact matching works for a fixed category or field, but not for every free-form answer. For a draft reply, compare the key facts and required behavior instead of insisting on identical wording.
A simple test record can include the case name, input, expected result, actual result, pass or fail, and notes. Keep it beside the proposal or project scope, so you're not arguing later about what "good" meant.
2. Run real cases with known answers
Test the kind of work the system is meant to handle, not just examples prepared for a sales demo. Pick tasks you already know how to judge, and write down the expected result before you look at the AI's answer.
For a document assistant, ask a question whose answer appears plainly in an approved document, then check the fact and its source. For a mail workflow, test a real type of message and check whether the category, draft and routing match what your team expects. Anthropic's guide to agent evaluations describes evaluation cases as tasks with defined inputs and success criteria, organized around the capabilities or behaviors being tested.
Use an independent reference for each known-answer check. OpenAI's dataset guidance supports reference or ground-truth answers and different grading methods, including exact match when the answer is categorical. Your reference might be the right label, source passage or action, rather than one exact sentence.
Bring your own cases instead of letting the developer choose every example. Include an ordinary request and one that has confused your team before. If you can't say what the expected answer is, ask the person who owns that workflow to define it before testing.
What does a good test set cover?
Start with the main capabilities in the scope, then add cases where a mistake could be costly. A support assistant might need to handle a refund question, a cancellation and an escalation. An email agent might need to sort messages, draft replies and route the right item to a person. Anthropic's evaluation guide recommends suites organized around distinct capabilities or behaviors, rather than one general score.
| Case type | Example input | Expected behavior |
|---|---|---|
| Ordinary known answer | A question answered directly in an approved source | Answer accurately and identify the supporting source if required |
| Missing information | A request that omits a detail needed to proceed | Ask for the detail or leave the task for a person |
| Out-of-scope request | A question the system is not meant to handle | Say it cannot handle the request or route it appropriately |
| Action check | A request to update a record or prepare a message | Make only the agreed change and leave the correct final state |
For free-form answers, check the important facts and limits, not whether the wording matches your reference word for word. For a category, date or yes/no field, exact comparison may fit the workflow.
3. Test edge cases and make "I don't know" a pass
Edge-case testing checks what happens when an input is difficult, incomplete or outside the system's job. These tests can tell you more than another clean example: real messages arrive with missing details, irrelevant text or files the system can't read.
Start with a known input and change one thing at a time. Try an empty message, a subject line with no body, an unreadable or unsupported attachment, missing critical information, contradictory facts, a long thread and a request outside the system's scope. These practical tests follow cases in Anthropic's test-design guidance, which calls out irrelevant or nonexistent data, overly long inputs, poor or irrelevant user input and ambiguity.
Decide what a safe response looks like before you test. An empty message might produce a clear error and no draft. A request missing a required detail might trigger a clarification. If approved documents don't support an answer, the system should decline or send the task to a person instead of answering from general knowledge.
“Confabulation refers to a phenomenon in which GAI systems generate and confidently present erroneous or false content in response to prompts.”
NIST uses "confabulation" for confident but false content, so a fluent response alone can't prove that an answer is true (NIST's Generative AI Profile, July 2024). Ask about something absent from the system's approved sources. A clear "I can't find support for that" is a successful result.
What should happen when an attachment is unreadable?
On a municipal council's first real day with the system, a letter arrived with nothing but a ZIP attachment the system couldn't read. The AI drafter still wrote a topic and a full reply, leaving a clerk to work out alone that the answer was invented.
We chose "no readable text, no draft" instead of drafting from the subject line and whatever text was available. The system now explains why it stopped and names the files it couldn't read; the fix went live the same morning. The same principle appears in an AI back office for a municipal council.
That rule won't fit every task. If a rough draft costs nothing to discard and a person will rewrite it anyway, drafting from a subject line can save a minute. But an invented answer in a reply that looks ready to send is harder to spot and more likely to be trusted. Ask your developer to test an empty or unreadable input, then check that the system stops clearly instead of producing plausible-looking text.
4. Repeat runs and check the actual outcome
One successful run shows what happened once, not whether the behavior will stay the same. Anthropic explains that model outputs can vary between runs, and that repeated trials give you a more consistent picture (Anthropic's guide to agent evaluations).
Repeat the cases that matter to your business, especially those involving unsupported answers, customer communications or actions in another system. Record each result against the same acceptance criteria. If one run passes and another fails, decide what variation you'll accept and what the system should do when it's uncertain.
Check for changes outside the chat window. Open the CRM record, email draft, document or other item the agent was meant to change. A convincing "updated" message doesn't prove the update happened. An update to the wrong record is still a failure, even if the assistant describes it confidently.
For high-impact work, set a stop condition before testing. For example, don't send an external message without approval, or draft a reply without readable source material. Check that the system meets these conditions on every relevant test, not only the easiest one.
If the developer changes a prompt, model or workflow to fix a failure, rerun the same cases. OpenAI's evaluation guidance describes using persistent graders to see whether changes improve or degrade results, and adding edge cases to expose shortcomings. A fix that improves one case but breaks another isn't ready for sign-off.
5. Inspect run records, then agree on handover
A run record captures what the system did. For an agent that uses tools or updates records, you need enough detail to reconstruct a run: the input, outputs, tool calls, intermediate results and final state, while meeting your privacy and security requirements.
Anthropic's guide to agent evaluations describes an evaluation trace as a complete record of a trial, including outputs, tool calls, reasoning, intermediate results and interactions. It also explains that mistakes in multi-step agent actions can propagate and compound. Ask the developer to show you a completed run and a failed run. Check that you can tell what came in, what action the system tried, what changed and where the process stopped.
Logs should help you investigate without exposing more sensitive information than the workflow requires. Agree on which inputs and outputs get recorded, who can view them and how you can retrieve them. After a failure, the record should help your team tell the difference between a missing file, a failed connection and a system decision to escalate.
Treat handover as a separate acceptance check. Ask for the test cases and results, operating instructions, run history and the account or data access you agreed to receive. The exact handover depends on your agreement. Keep the test data, outputs, annotations, graders and transcripts that you need to operate and check the system.
Which accounts, code and support arrangement are you accepting?
At the end of a project, some clients ask for everything: the code, prompts, all the data and every credential, and they get it. Others prefer that the accounts and hosting stay with us, with support continuing after the project ends. Either arrangement can work. Agree which one applies before the end, so nobody is surprised.
Write down who controls the hosting, connected accounts, code, prompts, data and credentials. If the developer keeps hosting the system, agree on support and who can access the accounts. If you take it over, confirm your team can sign in and has the instructions to operate it.
We ask the client to check everything with their own hands before we close, not just the happy path. At the end we record a video showing how to use the system, then have a separate call where the client clicks through it while we watch. That way, they understand how it works, not just that it works. If something needs a fix or a small change later, we stay in touch and do it.
A video is useful, but it doesn't replace your own test. Click through the main task yourself, inspect a failed run and confirm the person who'll use the system can reach the relevant accounts and records.
6. Use this sign-off sequence before the final milestone
Use these steps as your AI acceptance testing checklist. Keep the results with the scope, and record any unresolved issue before you approve payment.
- Write acceptance criteria. List each task, its expected result and a visible pass or fail condition. Confirm what the system must not do, such as sending a message without approval.
- Prepare known-answer cases. Choose real task-shaped inputs and write down the correct answer, source or action before you see the AI's output.
- Test difficult inputs. Try empty, unreadable, incomplete, contradictory, long and out-of-scope inputs. Check that the system asks, stops or escalates where agreed.
- Repeat and inspect. Run the fixed cases again, inspect the actual record or action, and compare each run with the same criteria.
- Review logs and handover. Open run records and confirm the agreed code, data, credentials, accounts, instructions and support plan.
- Record the decision. Mark each case pass or fail, list open issues and write down any agreed exception before approving the final milestone.
| Sign-off item | Evidence you can check |
|---|---|
| Expected task behavior | Test case, expected result and actual output |
| Safe failure behavior | Empty, unsupported or unreadable input produces the agreed stop, question or escalation |
| Completed actions | The intended record, email or file shows the right final state |
| Traceable runs | Logs show enough to understand successful and failed attempts |
| Handover | The agreed people can access the accounts and use the instructions |
A failed case doesn't automatically mean you should reject the whole system. Decide whether it reveals a defect in the agreed scope, a new requirement or an acceptable limitation that needs a human check. Write down the decision, who will fix it and what you'll rerun.
If you need help defining a testable scope or building the system, WebDaddy lists fixed-price AI packages on its services page, including agents and document assistants. Run the workflow, check the results and confirm the handover arrangement before approving the final milestone.
Step by step
- Write acceptance criteria List each task, the expected result and the observable pass or fail condition before testing.
- Prepare known-answer cases Choose real task-shaped inputs and write an independent reference answer or expected action for each.
- Test difficult and unsupported inputs Try empty, unreadable, incomplete, contradictory, long and out-of-scope inputs, and define what the system should do when it cannot answer.
- Repeat tests and check outcomes Run fixed cases more than once, inspect the system's actual actions and final state, and compare results with the agreed criteria.
- Inspect logs and handover Review run records and confirm the agreed accounts, code, data, credentials, documentation and support arrangement.
- Record sign-off Write down passed tests, open issues and any agreed exceptions before approving the final milestone.
Want this done for your business?
An AI agent from $500, a document assistant from $800, fixed price and deadline. Or describe your task and get a plan with a price for each step
Questions people ask
How many examples should I test before accepting an AI system?
There is no universal number in the cited evaluation guidance. Build a small set that covers your real tasks and the risky edge cases, then repeat the same cases after changes.
What should I do if an AI system passes some tests but fails others?
Compare each failure with the written acceptance criteria. Record the input, expected behavior and actual result, then agree whether the item is a scope bug, a new requirement or a reason to pause acceptance.
Can I approve an AI system if it sometimes gives a wrong answer?
That depends on the agreed use and safeguards. For consequential work, define which outputs need human approval and what the system must do when it lacks support.
What if my developer says the AI model may change its answers?
Variation is a reason to repeat test cases, not to skip them. Agree on measurable criteria for the workflow and test the same inputs more than once.
Do I have to take over hosting and accounts at handover?
Not necessarily. You can take ownership and manage the accounts, or agree that the developer will keep hosting and supporting the system. Record which arrangement applies before the project ends.
What should I receive if I take over an AI system?
Agree on the code, prompts, data, credentials, account access, operating instructions, test cases and results, and run history needed to inspect what happened.