We planted mistakes in our own AI agents. Our tests missed the one that moves money.
An expense agent has a simple rule:
"If the amount is greater than $100, you will ask for approval from the manager. If the manager approves, you will call reimburse()."
Now imagine a version of that agent that pays first and asks the manager afterwards. The money has gone before anyone approved it.
Would your tests catch it? Ours didn't. Not once in 22 planted tries, across two sets of tests.
How we tested our own tests
Constolve tests AI agents against the rules they were given. To check that our testing actually works, we took four demo agents (expenses, a smart home, email and health insurance) and their 88 stored tests. We ran each test once and recorded everything the agent did.
Then we planted mistakes into those recordings, on purpose, and replayed them through the same grading. Four kinds of mistake:
- Skipping a check: changing something without first looking it up.
- Making up a value: inventing an ID or an amount instead of using the one a tool returned.
- Doing things in a different order: for example, paying before the approval.
- Claiming something happened that didn't: "I've reimbursed you" with no payment made.
Because the mistakes were planted, we knew exactly where each one was.
What we found
- Skipping a check: caught 24 of 25 times.
- Making up a value: caught 53 of 65.
- Claiming something that didn't happen: caught 44 of 44.
- Changing the order: caught 0 of 20. Ten of those twenty were the one that matters most: the expense agent paying before the approval.

Our tests could see whether the approval and the payment happened. They couldn't see which came first. Both happened, so the test passed.
We wondered whether the tests were simply out of date, so we wrote a fresh set for the expense agent. Still 0 of 12 pay-before-approval mistakes caught. So it wasn't old test cases. It was a limit of our test specification language: it could only order two actions that both change something, and asking a manager for approval only looks something up. Our existing language had no way to express "approve before you pay".
What we changed
We taught the system to read order requirements from the agent's own instructions. For the expense agent, the sentence "If the manager approves, you will call reimburse()" now becomes a quoted rule: payment requires the approval first. Tests then check that a payment that went through came after the approval for that same request.
Across both test sets we had planted 32 order changes. Here is what happened to each, with no new false alarms and no drop in the other three kinds of catch:
- Paying before approval (22): 18 caught, up from 0. The other 4 tried to pay early, but the simulated payment failed. Our check looks only at payments that went through, not at attempts. That is a gap we still have to close: the rule governs when the agent may call the payment tool, not just whether money moves.
- Two lookups swapped in the insurance agent (8): not caught, correctly. That agent only looks things up, and nothing in its instructions says which lookup comes first, so no rule was broken.
- Two steps swapped in the email agent (2): not caught, correctly. Its instructions state no order.
So of the 32 planted order changes, 22 broke a stated rule, and 18 of those 22 are now caught. The other 10 broke no rule at all, and a test that failed them would be a false alarm.

A bonus finding: our tests also blamed agents unfairly
Before planting anything, 16 of the 88 tests already failed. An independent reviewer read every transcript: 11 were real agent mistakes, 4 were our tests being wrong, and 1 was unclear. All four unfair failures had the same cause: the customer told the agent not to use a tool, the agent sensibly held back, and our test still demanded the tool. That's a story for a separate post.
Three lessons for anyone evaluating AI agents
- Test your tests. Plant mistakes you know about and count how many your evaluation catches. A test that has never failed on a known mistake hasn't been tested.
- Order is a rule. "Approve, then pay" is not the same as "approve and pay". If your test language can't express order, your tests can't protect the step that moves money, however many you write.
- Count only real violations, and say what you miss. A planted change that breaks no rule shouldn't be caught. Of the ones that did break a rule, we catch 18 of 22. The 4 we miss are early payment attempts that failed, which our check doesn't yet look at.
How we measured
Four demo agents and their 88 stored tests, plus a fresh set of 13 tests for the expense agent, each run once with GPT-4.1 and recorded. Mistakes were planted by code into the recordings and replayed through the same grading. Replaying the unmodified recordings reproduced every original verdict. "Caught" means the clean replay passed and the replay with the planted mistake failed. These are our own demo agents, so the counts describe our testing system, not agents in general.