If you've built anything with AI agents, you've probably seen this. The agent finishes, writes a confident summary, says the task is complete. Then you look closer and the ID it saved doesn't exist, a step got skipped, or the "submitted" form never went anywhere.

The agent isn't lying on purpose. It's doing what language models do: producing the most likely looking answer. "Task complete" is a very likely looking answer. So the fix isn't a better prompt asking it to be honest. The fix is to stop letting the summary be the proof.

Here are the checks that make the biggest difference, roughly in the order I'd add them.

Check the result, not the report

After an action, go read the actual state. If the agent added a record, query the database for it. If it sent an email, check the sent log. If it updated a ticket, fetch the ticket. This one habit catches most fake completions, because the agent can write anything in a summary but it can't fake what's actually stored in your system.

Never let the agent type IDs

A lot of made up data comes from the agent writing IDs, order numbers or URLs from memory. Don't allow it. IDs should only come from tool results, and your code should pass them along, not the model. Then a simple check, does this ID match one a tool actually returned, catches invented values right away.

Make the output structured and strict

Free text is easy to fake. A structured output with required fields is not. If the task needs a record ID and a receipt ID, make both required, and make the run fail when either is missing. Most agent frameworks support this now, CrewAI has output_pydantic and task guardrails for exactly this kind of check.

Give it a way to say "not finished"

If the only options are success or error, the agent will lean towards success. Add a partial or blocked status with a reason field. You'll be surprised how often it uses it once it's allowed to, and a clear "blocked: missing permission" is far more useful than a fake "done".

Code checks first, LLM judges second

It's tempting to add another agent to review the first one. That can help, but an LLM reviewer can be fooled by the same confident summary. Put cheap deterministic checks first, things like does the record exist, is the field filled, does the total match. Use an evaluator agent only for the fuzzy parts you can't check with code, and keep a human on anything involving money or customers.

None of this is fancy. It's the same thing you'd do with any external service you don't fully trust: verify the effect, not the response. Agents just make it easier to forget, because their responses sound so sure of themselves.

We build AI agents for businesses at Binate AI, and these checks are usually the first thing we add before an agent touches real data.