AI Agent Testing: Why Humans Must Set the Bar

AI agent testing: an agent grading its own work with a perfect score

Let agents write your tests, but don’t let them decide what passing means. That is the lesson of two recent experiments in AI agent testing, where software earned perfect scores on checks its own builder wrote.

A 122% improvement that wasn’t

In the first test, Claude Opus 4.8 wrote an invoice checker, reworked it, and moved its score from a little over 45 out of 100 to a full 100. On paper that is a gain of roughly 122%.

The researchers kept 60 invoices of their own. On those, the first checker had already caught every bill needing review and cleared all the others. The revised one gave identical, correct answers. So the “upgrade” added nothing: the starting version was already good. The agent set the quiz and then aced it.

A bank assistant that asked the wrong question

The second case is worse. Here GPT-5.5 acted as developer, building an assistant to chat with customers of a simulated bank. The bank supplied an email-based customer search. GPT-5.5 overlooked that and authored a test paying out when the assistant demanded an internal ID.

Naturally the assistant hit 100% on those tests, and the optimizer answered “nothing_to_fix.” In two of the researchers’ sample conversations, the assistant turned down the email lookup and the customer quit. No bank rule demanded an ID. That requirement existed only in GPT-5.5’s test.

Why cheap evidence is a problem

People have always written passing tests for software that users didn’t want. The difference is cost. One agent run now delivers a believable implementation along with a heap of comforting evidence for the same flawed assumption. Picture a pull request that arrives with a finished feature, a tidy write-up and 37 passing checks. Reviewers will spend less time on it, even if all 37 checks rest on one misreading.

The people who judge success tend to be outside the code. Honeycomb’s Query Assistant offers an example. The company could verify that a generated query was valid and executed. It also asked users whether the result matched their intent, and one replied no. That person had asked about a failure, and the query dropped exactly that item. No amount of reruns would have exposed a syntax error, since none existed.

What a human-set standard looks like

Sound AI agent testing relies on answer keys people wrote. Bridgewater’s search project for its investors is a model. After complaints about results, the team collected around 200 questions and labeled by hand which documents helped and which only seemed to. With that answer key, engineers could modify the search software, rerun the questions and count how many top-10 results were marked useful. Bridgewater says the average went from about six to nine or more. People who understood the business set the standard.

Apply that to the invoice checker. Before asking engineering for a demo, ask someone in accounts payable for two invoices that look alike to an outsider: one paid and one stopped. Suppose both suppliers charged more than the purchase order allowed. In the first case a signed amendment approved the increase. In the second, only an email promised that an amendment was on the way. Your finance team has a position on that. The agent doesn’t.

Give the agent the rule, then let it hunt

Once it has the rule and the examples, an agent can probe the edges. Maybe the amendment covers another shipment. Maybe the buyer signed after the bill came in. An agent that surfaces a case finance never thought about has done better than one that earns 100% on its own quiz, because it has put a decision in front of people.

A second model can act as the checker, provided it sees the sample invoices and the reasoning finance used. If its only input is the first model’s explanation, it inherits the same mistaken premise.

The safeguard is simple. Reserve a set of historical invoices, along with finance’s reasons for each payment or stop, and never expose them to the agent building the checker. Run them before every release. A changed answer needs a human look: the code may have regressed, or finance may have altered its policy last month and the test is stale. Someone has to explain the gap before anything ships.

What to do before the next release

After the rule is settled, automate the check. With AI agent testing in place, agents can write the code and a hundred tests besides. Speed still depends on a bar worth clearing, and a human expert has to define it. Before believing an agent’s results, run it on a few cases the business picked.

Source: InfoWorld

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.