Governance guide

How to evaluate an AI agent before it goes live.

Most AI agents are judged on a demo. Someone asks a question, the answer reads well, and the room is impressed. That shows the model can write. It shows very little about whether the agent can do the job, inside your rules, on the cases that make the job hard.

cvlSoft10 min read

Why a fluent answer proves little.

A language model is very good at sounding right. That is the part a demo shows, and it is the part least likely to fail. What fails in production sits around the answer.

Take a refund request. The agent reads the customer’s message, finds the order and recommends a refund, and the reply reads well. Meanwhile the order record may be out of date, a partial refund may already have been paid, the amount may need a manager’s approval, and if the payment system times out, the agent has to find out what happened before it tries again. None of that shows in how well the reply is written.

So the thing to evaluate is the job, from the request arriving to the state of the business it should leave behind. What an agent demo leaves untested works through this example step by step.

Six things to test, beyond the answer.

AIOS is built on the principle of measuring before you scale, and it tests each workflow on six questions. They make a usable checklist for any agent.

What a failure looks likeHow to test for it
Did it understand the work?It treats a complaint as a question, or a dispute as a promise to payCases worded the way real customers write, including the unclear ones
Did it use the right context?It applies an old policy, or another customer’s historyCases where the right answer depends on a rule or a record the agent has to find
Did it follow the approved steps?It skips a check, or does the steps in the wrong orderCompare the steps it took with the workflow your team approved
Did it stay within policy?It refunds more than it may, or acts in a system it should not touchCases that ask for something the rules forbid, which it must turn down
Did it know when to bring in a person?It guesses on a case an expert should see, or hands over cases it could have closedCases on both sides of every handover rule
Did it check the outcome?It reports success because a system replied, when the work was never doneCases where a step fails partway, so the run has to find out what happened

The last row is the easiest to miss. A successful reply from a payment system is one piece of evidence. Whether the right customer received the right amount, once, and was told about it, is what the workflow has to confirm.

Build the test cases from real work.

The cases decide what an evaluation can find. A suite of easy cases will pass, and the pass will mean nothing. Build it in this order.

  1. 1

    Start with the normal path.

    One case for the way the work usually goes, from start to finish. If this fails, nothing else matters yet.

  2. 2

    Add a case for every rule.

    Each limit, approval and refusal in the workflow gets a case that tests it, including the requests the agent must turn down.

  3. 3

    Add the cases your experts handle by hand.

    The exceptions they set aside, the customers who get a call instead of an email, the cases that come up every week and appear in no document. How to capture tacit knowledge covers finding them.

  4. 4

    Add what breaks.

    A system that times out, a document that never arrives, a customer who does not answer, two records that disagree.

  5. 5

    Add the hard conversations.

    A customer who is upset, one who keeps changing the request, one who cannot prove who they are.

  6. 6

    Name where each case should end.

    Give every case a named ending, such as Demo booked or Time not bookable. “Handled well” is not an ending, and a case without an ending cannot fail.

In AIOS, the cases are drafted for you from the workflow and its rules, including the edge cases and the requests it should refuse. Your team reviews, edits, adds and tags them.

Judge the ending, and the path to it.

A run can reach the right ending the wrong way. It books the appointment, and along the way it promises the customer something nobody approved. So each case should be judged twice.

  • The ending. Did the run stop where the case says it should? That is a plain check, and in AIOS code makes it.
  • The path. Which actions did the run attempt, and were they the right ones? That takes judgment, so in AIOS an AI grader checks the actions the run attempted.

A suite passes only when every case does. When a case fails, the result should say exactly where, in words anyone on the team can act on: “Ended at Demo booked; expected Time not bookable.” The fix is clear before anything goes live.

Test before a customer or a system sees it.

Tests are only safe to run often if they cannot do harm. A test that sends a real text or posts a real payment is a small launch.

AIOS runs a workflow as a simulation against its suite of test cases: the whole workflow, end to end, without touching a customer, a system of record or a payment. Nothing is sent, posted or paid. Proof tests every AIOS workflow this way before it goes live.

Phone calls need more than written cases, because a voice agent has to keep up with a person who talks over it. AIOS tests voice workflows with simulated callers. Each has a goal and a voice, may cut in mid-sentence, and calls over a clean, typical or poor line, and every call is scored. For a loan team, one simulated borrower wants a rate quote, one keeps interrupting and one cannot prove who they are. Each call passes or fails on rules the team writes, and a failure shows the exact moment it went wrong.

Test every version, not just the first.

An agent that passed its tests in the spring can fail them by the autumn without anyone changing it on purpose. A policy changes, a connected system starts returning something new, a tool is replaced. The agent keeps producing answers, so nothing raises an alarm. The agent lifespan problem looks at why this happens.

The defense is to keep the suite and run it on every change. In AIOS, every release is an immutable snapshot of the workflow and its settings. The suite runs again when a release is promoted, someone other than the person who asked for the change decides whether it moves forward, and you can return to a previous release when you need to. When a change breaks a rule, the suite names the case before a customer finds it.

Add a case whenever production teaches you something. A case that once got past the tests belongs in the suite for good.

What to trace once it is live.

Tests before launch cover the cases you thought of. Production brings the ones you did not, so evaluation carries on after go-live, on the record of every run.

  • Whether it met its goal. Every AIOS workflow carries a goal and a checkable definition of done, set before the run, and each run is judged against it. The same verdict decides the outcome fee, as outcome-based pricing for AI explains.
  • What it used, what it called and what happened. Each run keeps a trace: every step in order, how long it took and every call it made to another system, with a plain-language account of the run. The Executor page shows one.
  • What it was stopped from doing. Every time a guardrail or policy rule fired, and what it did: blocked a reply, corrected it, handed it to a person, masked it, or only watched. AI agent guardrails, explained covers each layer.
  • Who approved what. Every expert’s sign-off is recorded beside the run it authorized.
  • When it leaves its band. Circuit breakers trip on their own when cost, error rate or scope leaves the band you set, and a kill switch halts one run or the whole account.

All of it goes to an append-only audit ledger. How to audit an AI agent sets out the five questions an auditor asks of that record after the fact. Evaluation asks of the same record whether the agent is still doing the job it was tested to do.

What to report, and to whom.

The easiest number to report is how many agents a team has built. It says nothing about whether any work got done. The number to report is outcomes delivered: cases closed, invoices collected, documents on file, each judged against a goal set before the run.

Different people need different views of the same record.

  • The operations leader needs the goals met, the exceptions that reached people and the time those people spent on them. Frequent handovers can keep a workflow safe while leaving it too expensive to be worth running.
  • Compliance and audit need the policy rules that fired, the approvals given and the ledger behind both.
  • The team that owns the workflow needs the failing cases, the steps that retry and the changes that went the wrong way.
  • Finance needs the outcome fees beside the usage, run by run, on an itemized bill.

Each view should come from the run record itself. A summary an agent writes about its own performance is a claim, and the record is the evidence.

When to give it more.

Scaling an agent means giving it more: more kinds of case, less review, or a second process. Each step should follow the evidence. Begin with an expert’s sign-off on the steps where a mistake would be costly, and reduce that review for a defined kind of case once the tests and the supervised runs show it is safe. Before you widen any workflow, check these.

  • The suite passes on the current release, including every case added since launch.
  • Goals met are holding steady on production runs, judged against the same goal.
  • The exceptions reaching people are the ones you expected, for the reasons you expected.
  • No guardrail or policy rule is firing more often than it used to without a reason you understand.
  • The expert who knows the work has read a sample of real runs and agrees.

Then add the next process. In AIOS, every capability after the first deploys faster, because it reuses the connections, rules and knowledge already in place. It gets its own suite, and the same discipline starts again. How self-improving AI agents work covers how a workflow keeps getting better once it is live, and why each change still goes back through the suite.

Questions.

What is AI agent evaluation?

Testing whether an AI agent does the job correctly, not only whether its replies read well: whether it understood the work, used the right context, followed the approved steps, stayed within policy, knew when to bring in a person and checked the outcome.

Who writes the test cases?

AIOS drafts them from the workflow and its rules, including the edge cases and the requests it should refuse. Your team reviews, edits and adds to them.

Does a test send real emails or texts?

No. In a simulation the whole workflow runs end to end, and nothing is sent, posted or paid.

How do you test an AI agent that takes phone calls?

With simulated callers. Each has a goal and a voice, may interrupt, and calls over a clean, typical or poor line. Every call is scored, and a failure shows the exact moment it went wrong.

What happens when a test case fails?

The result says where the run ended and where it should have ended, such as “Ended at Demo booked; expected Time not bookable.” The fix is clear before anything goes live.

How is an AI agent evaluated after it goes live?

On the record of every run. Each AIOS run is judged against its workflow’s goal, keeps a trace of every step and system call, and goes to an append-only audit ledger. The test suite runs again whenever a release is promoted.

You pay for results. Not for software.

AIOS learns your processes and carries out the work across your existing systems—from customer follow-ups to invoice collection. Your team handles approvals and exceptions.

More guides