
Leander Peter, Forbes Councils Member
· 2 min read
The AI Agent Knew It Was Cheating. It Did It Anyway
Leander Peter is the CTO of Avallon, which builds AI-powered claims automation for insurers.
Monday morning, 10:01 a.m. Eastern. An AI agent wakes up in its sandbox to test a new prompt. The agent’s job is simple: Analyze all the emails and calls that came in over the weekend, and route each one to its claim.
The agent finds a document on its virtual machine. It’s called evaluation.json. The agent opens it and finds the answers to its world. It concludes that using them would be cheating. Then it starts using them anyway.
Our engineers quickly realized the agent was cheating. The numbers didn’t add up. A run that usually takes 20 minutes took two.
Why were we replaying at all, you may ask? My company builds AI agents that do clerical claims work for insurers. To deploy and iterate AI agents reliably in a highly regulated environment, you need to evaluate every new agent version. This agent received 62 new versions in the last 30 days while handling 34,000 production runs. No one can test that by hand.
So what was the actual issue? It wasn’t the model. It was the test world we had built around it. Here’s what we encountered when building our evaluation system.
Faking The World Is The Hard Part
You roughly know what success looks like: A successful agent routes an email to claim C, or it ends its run by creating a claim with the right claim details. But you can’t test against the real thing because the real thing is a carrier’s claims system full of live claims. You have to fake the world around the agent.
Take a doctor’s report attached to an email from the doctor’s office. The agent has two tools. “Search claim” returns the correct claim. “Attach document to claim” takes a claim ID and a document ID.
How do you stop the agent from searching the real claims management system, and from attaching the document to a production claim over and over? You use mocks.
This breaks when you switch models, for example from Opus 4 to Opus 5.
Original source
This story was published by Forbes: Innovation and written by Leander Peter, Forbes Councils Member. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on forbes.com


