Robert Anthony Ricci
Notebook · agents in production

Your agent's reply is a claim. Check it.

October 2026

My assistant once told me she'd closed a task. She hadn't. The task was still open when I looked again, and when I asked about it, she told me it wasn't on my list.

She wasn't lying in any human sense. A language model writes the sentence that usually follows a request like mine, and "done, I've closed it" usually follows "close the garage door task". The reply is generated. The world is not. When the two disagree, the person on the other end has no way to tell.

That is the core problem with putting agents into real work, and it doesn't go away with a better model. A better model is wrong less often, and you trust it more, so the times it is wrong cost you more.

Treat the reply as a claim

So I rebuilt the assistant around one rule: she changes nothing except through a tool, and every tool call goes into a ledger, numbered L1, L2, L3. When she's ready to answer, she doesn't just write a reply. She calls a finish step that carries the reply and the ledger entries it rests on.

Then code, not the model, checks it. If the reply says something was closed, logged, added or sent, a cited entry has to show a verified change. Tools that change things read their own write back and report whether it landed, so "verified" means the file says so, not the model. If a change failed, the reply has to cite the failure and say so. If the reply fails the check, it goes back with the reason, and she tries again. Twice wrong, and the executor answers me itself, flatly, from the ledger.

What it catches

It catches the obvious case: "done" with nothing behind it. It also catches quieter ones. A logging step that filed nothing used to come back as a cheerful "noted". Now it can't. When I added a checklist, each distinct thing I asked for listed with an outcome, the same check started catching the request that had five parts where only four came back.

The check has costs too. Early versions were too eager: a task titled "set up my agent assistants" tripped it, because "set up" reads like a claim. A question like "where should I record this?" got rejected for the word "recorded". Every false alarm cost me a real answer, so the rule I follow now is to loosen it narrowly and always keep a test that proves a real false claim still gets caught.

The general version

  • Give the agent no hands of its own. Every change goes through a tool, and every tool call is recorded.
  • Make the tools report what actually happened, by reading back their own writes.
  • Check the reply against the record in code, before a person hears it.
  • When the check fails twice, fall back to something plain and true rather than something fluent and wrong.

None of this is clever. It's the same thing you'd do with a new hire handling something that matters: trust, and verify against the record. With agents, the verifying can be automatic, and it should be.