My AI agent stopped exaggerating the day I let it say "partially verified"

I have an AI agent that tests our code changes before a release. It runs the tests, reads the result and writes a verdict. A person still approves every release, so that verdict is the first thing they read.
And one day it said clean. Clean! But the tests had not even started. They could not reach the database they needed. The agent found no failing test, so it wrote clean. Another time it asked for data, got back a polite page asking it to sign in, saw no error, and wrote clean again. Was it lying? No. A test that never runs can never fail.
Why it said clean
My first fix was the obvious one. I told the agent to check that the tests really ran. Did that fix it? A little. Only a little.
Here is the thing. There is a pull toward clean that no instruction removes. The agent's job is to check. Every conversation pushes toward finishing. And clean is the answer that finishes. Every unclear case slides that way, unless something stops it.
People feel the exact same pull. That is why the person who wrote the code is not the one who approves the release.
Three changes that worked
Evidence first. Before the agent may give a verdict, it writes down what it saw, as answers to three fixed questions. Then the verdict, and it must match the answers. The order is the trick. Writing evidence backwards from a verdict is hard. Writing a nice verdict before you have any evidence is easy.
A list of signs that nothing ran. Exact error messages that mean the tests never started: connection refused, one specific database error, a login page where an answer should be. If one shows up, clean is not allowed. Simple. A machine can run that check, and it catches most cases.
An honest place to land. This is the one I recommend most. At first the agent had two answers: clean or blocked. And blocked felt like failing. So I added softer ones: partially verified, and one for "I relied on CI, not on my own run".
That one change did it. Now the agent could be honest without being useless, and the exaggeration stopped. Every report lists what it checked and what it could not:
PARTIALLY VERIFIED: manual testing still needed
What I verified:
- the related pages, tested in the browser
What NEEDS manual testing:
- the fix itself, and why I could not test it here
It may never dress this up as a pass.
The rule: evidence first, verdict second
Write down what you saw. Only then say what it means.
And give the honest answer a place to stand. If your process offers only success or failure, guess what? You will get success, from people and agents who are not sure.
What the middle answer taught me
I thought I had an honesty problem.
Nope. I had a menu problem. The agent was not choosing between truth and a lie. It was choosing between two answers it did not like. "Clean" was too much. "Blocked" felt like giving up. So it picked the one that sounded like a finished job. Most of us would.
Then I added the middle answer, and wow. The reports became worth reading! A report can now say "I could not check this" and keep its dignity. Before, every report said the same thing. And a light that is always green tells you nothing.
The agent's procedure puts it in one line: a false "clean" wastes more time than an honest "blocked". Blocked costs an hour. A false clean costs the hour, the release, the hunt and the trust. The worst thing a tester can do is not to miss a bug. It is to approve something it never checked.
Now, before I give a person or an agent a yes or no question, I ask one thing.
Where does the honest answer go?
Things I did not expect
I did not expect a weaker answer to make the agent stronger. I was ready to fix this with stricter rules. Instead, the best fix gave the agent more freedom, not less. And the reports got more accurate!
And I did not expect how close reading and testing had become. An agent that reads a change and says "this looks right" sounds just like an agent that tested it. Only one of them watched it run.
Green means something again. Why? Because the agent is allowed to say grey.
I post one of these every week. Follow along on LinkedIn or YouTube, or by RSS. Want this on your team? Work with me.
The 527 rules I give my AI agents, free
Every one comes from a real mistake. The best 100 are open on /rules, or download them as AGENTS.md, no email. All 527 come by email, as one file you can drop straight into your repo as AGENTS.md or CLAUDE.md, so your agents follow them from the next session. Plus the occasional email when I learn a new one.
One click to unsubscribe.