Skip to main content
Nova Buzz.

Test AI before you trust it · Updated October 19, 2026

How to Test an AI Agent Before and After Launch, the AWS Method

Short answer

Test an AI agent in two phases, the way AWS describes it. Before launch, write real customer questions with known good answers and block release until the agent passes them. Roll it out in stages, starting silently beside your current process. After launch, score a sample of live conversations every week and turn each real failure into a new test question.

Key facts

Publisher
Amazon Web Services, through the AWS Machine Learning Blog, the AWS developer documentation and an AWS sample repository
What it is
A two-phase method for testing an AI agent before launch and checking it after launch, with five release stages
Cost
Free to read. Running the AWS sample code or the AgentCore Evaluations service is billed by usage on an AWS account
Audience
Owners and operations leads about to put an AI agent in front of customers, plus the builder or vendor
Published
Three AWS blog posts dated 31 March, 23 July and 16 October 2026
Link checked
2026-10-19

What is the AWS method for testing an AI agent?

AWS tests an AI agent in two phases. Before launch, the agent must pass a written, scored set of test questions or the release is blocked. After launch, a sample of real conversations keeps getting scored, and every real failure becomes a new test question. The method is not tied to one product, so it works on any agent.

AWS spreads the method across three blog posts from 2026. The March post sets out the two phases, which AWS calls on-demand evaluation before launch and online evaluation after launch. The July post is a production blueprint with a five-stage release path. The October post follows a customer insights agent from pre-launch checks to daily scoring in production.

A demo proves an agent can give a good answer once. A test set proves it keeps giving good answers to the questions your customers really ask. Language models can answer the same question differently each time, so AWS repeats each question several times before it trusts a result.

The blueprint also scores three things separately.

  • Tool use. Did the agent look in the right place, such as your price list or your booking calendar?
  • Reasoning. Did it take sensible steps in a sensible order?
  • Output quality. Was the final answer correct, helpful and safe?

When a score drops, you know which part broke.

What release stages does AWS recommend?

AWS recommends five stages in a fixed order. They are build-time tests, staging, shadow mode, a limited A/B test and full rollout. Each stage must pass before the next one starts. Your customers meet the agent last, after it has been checked on tests, on practice data and on real traffic that nobody outside your team sees.

  • Build-time tests. The builder checks the agent before it goes anywhere. Did it pick the right tool, take the steps in the right order and give a helpful answer? Some checks are fixed rules and some are scored by a second AI acting as judge.
  • Staging. The agent runs against practice data. AWS uses synthetic traffic here, which means made-up conversations that look like real ones, so no live customer record is touched.
  • Shadow mode. The agent receives a copy of real traffic and writes answers nobody sees. The next section covers it in detail.
  • Limited A/B test. A small slice of live traffic goes to the new agent while everyone else stays on the current process.
  • Full rollout. Everyone gets the agent, and scoring of live conversations keeps running.

The gates matter more than the stage names. AWS blocks a release when scores fall under the pass marks. The AWS sample repository says that wiring its checks into one blocking release workflow is left to the adopter, so someone on your side has to own the stop button. Decide who that person is before launch.

How do you write the first test questions?

Start with real questions your customers already ask, each with a known good answer. AWS suggests 20 to 50 test cases to begin. For every one, write the question, the answer your best team member would give and a rule for what counts as a pass. That is your first test set, and a spreadsheet is enough to hold it.

Lay out each row in three parts.

  • Question. A real one, copied from your inbox or chat history, such as "Can I move my appointment to Thursday?"
  • Expected answer. What your best team member would say, written out in full.
  • Pass rule. What must be true for a pass, such as "offers only times that are really open and never promises a time that is not on the calendar".

AWS groups test cases in three buckets. Happy path cases are the common, clear questions. Edge cases are the awkward ones, such as vague wording, slang or a customer changing their mind mid-conversation. Safety cases are the things the agent must refuse or hand to a person.

Include cases where the agent should not take an action. AWS warns that one-sided tests lead to one-sided optimization.

Ask each question more than once. One good answer proves little when tomorrow's reply can differ.

AWS publishes exact pass marks for each of its three layers in the production blueprint. Read them there, then agree your own marks with your builder. A test set is never finished. It grows every time a real failure shows up.

What does shadow mode mean for a business?

Shadow mode means the new AI agent runs silently beside your current process. It sees the same real questions and writes its own answers, but no customer ever sees them. Your team then compares those answers with what actually happened, so you find the mistakes before any customer does.

AWS says this stage catches problems that the other stages miss. Its examples are timeouts when many requests arrive at once, industry terms missing from the made-up test traffic and steps in a bad order that slow answers down under real traffic. In the AWS blueprint, shadow mode runs for at least four hours of real traffic, and deployment pauses automatically when the deviation passes a set limit.

Your volume may be lower, so run it long enough to see a real spread of question types. Here is a simple way.

  • Give the agent read-only access. It must not send messages, change records or book anything.
  • Each day, a person reads a sample of its answers next to the real replies.
  • Mark each answer right, wrong or unsafe, and note the failure type.
  • Agree the stop rule in advance. For example, any unsafe answer pauses the project until it is fixed.

Shadow mode costs your team a little reading time. In return you see how the agent handles your messy, real questions.

How do you keep an agent honest after launch?

Review a sample of live conversations every week and treat every real failure as a new test question. Scoring matters most after launch, because real customers ask things your test set never imagined. Track one simple number, the share of sampled answers that pass, and compare it with the number you had at launch.

AWS online evaluation does this automatically. It samples a chosen share of live traffic, scores it with an AI judge, shows the results on a dashboard and lets you set an alarm for when scores drop.

The October post tells a useful story. AWS found that its customer insights agent gave fluent but wrong answers, such as a dollar amount reported as millions of dollars. Monitoring stayed green because it showed that the system had responded, not whether the answer was right. Ask your vendor which one they watch.

The same post names six failure types. Use them as a review checklist for any AI that answers questions about your numbers.

  • Metric swap. The right customer and period, but the wrong measure, such as one revenue line given in place of another.
  • Wrong period. Data from one time window passed off as another, such as a yearly comparison presented as a monthly one.
  • Wrong entity. Two accounts, or two branches of one company, mixed up.
  • Made-up facts. A figure with no source behind it. AWS calls this pure hallucination.
  • Wrong symbols. The right number with the wrong currency or unit, such as a dollar amount shown in millions.
  • Unauthorized calculation. A derived figure that is not in the source data, presented as fact.

Your weekly routine has four steps. Pull a sample of live conversations. Mark each one pass or fail and label the failure type. Add every failure to the test set. Compare the pass rate with launch. AWS also runs its full test set once a day as its daily scorecard, so rerun yours on a schedule too.

Do you need AWS to use this method?

No. The method works on any stack because it is a routine, not a product. A test set, a pass mark, a quiet trial, a limited rollout and a weekly review work with any vendor's agent. The AWS sample code and the AgentCore Evaluations service do need an AWS account and are billed by usage.

  • Reading. The three blog posts and the AgentCore Evaluations developer guide are free to read.
  • Sample code. The AWS sample repository is open source. Its quick demo runs on a laptop against a pretend agent and needs no AWS login, though it still needs Python and a few developer tools. The full deployment needs an AWS account, access to AWS's AI model service and a developer to set it up. Running it is billed by usage, and the repository tells you to check for leftover storage and logs after you tear it down.
  • The service. AgentCore Evaluations scores agents with built-in measures such as helpfulness and goal success, plus custom ones. The developer guide lists Strands, LangGraph and other agent frameworks as supported. It is billed by usage on an AWS account.

If you buy an agent from a vendor, you do not need to install any of this. You need the five questions in the next section. A spreadsheet and a careful reviewer cover the rest.

What five questions should you ask your AI builder or vendor?

Ask five things. Is there a written test set? Is there a pass mark that blocks release? Was there a shadow period? Is the first rollout limited to a small group? Is someone reviewing live answers every week? If your vendor cannot answer all five in plain words, you are being asked to trust the agent without evidence.

  • Is there a written test set? Ask to see it. A good one holds real customer questions, expected answers and pass rules, including cases where the agent must say no.
  • What pass mark blocks a release, and who can stop it? You want a mark agreed in advance and a named person with the power to say not yet.
  • Was there a shadow period? Ask how long it ran, who read the answers and what they found.
  • Is the first rollout limited? A small group should go first, with a clear way back to the current process.
  • Who reviews live answers each week, and where do failures go? A good answer names a person, a sample size and a place where every failure becomes a new test question.

Here is a test plan you can run this week.

  • Day one. Copy 20 real customer questions from your inbox or chat history into a sheet.
  • Day two. Write the expected answer and the pass rule beside each one.
  • Day three. Add five questions the agent must refuse or hand to a person.
  • Day four. Send the sheet to your builder and ask for results, question by question, with each question run more than once.
  • Day five. Book a short weekly review, name who attends and agree what counts as a stop.

A vendor who welcomes this sheet is one worth keeping.

Frequently asked questions

Why is one round of testing not enough?

Language models can answer the same question differently each time, and the data and settings behind an agent can change after launch. AWS repeats each question several times before launch and keeps scoring live conversations afterward. One pass shows what the agent can do, not what it will do on a bad day.

How many test questions do you need to start?

AWS suggests starting with 20 to 50 test cases. Fill them with real customer questions, including easy ones, awkward ones and ones the agent must refuse. Add a new question every time a real failure turns up, so the test set grows along with the agent and covers what your customers actually ask.

Can a non-technical owner run these checks?

Yes for the review side. A sheet with question, expected answer and pass rule columns is enough to start, and anyone who knows your business can mark answers right, wrong or unsafe. You only need a developer to automate the scoring, which AWS tools can do.

What should happen when a live answer is wrong?

Fix the cause, then add that exact question to your test set so the same mistake cannot return unnoticed. AWS calls these permanent regression guards. Label the failure type too, such as wrong period or made-up facts, so patterns show up in your weekly review.

Sources

Every claim above comes from the original publisher pages below. Read them directly for exact figures and current terms. Nova Buzz Media is independent of these vendors.

If you want a free second look before an AI agent talks to your customers, Nova Buzz Media offers a free AI fit scan at /scan/. It shows which follow-up, quoting, billing and review systems fit your business.

Get my free fit scan

Related guides