Skip to content

Don't ask the agent what it did

An AI agent has spent the afternoon updating records in your CRM. The next morning someone asks what exactly it changed. Today there are two usual ways to find out: scroll back through the chat, or ask the agent. Both feel natural. Anyone who has worked with agents for more than a few weeks knows that both can go wrong in ways that are hard to spot.

IdeasBacka··7 min read
LinkedIn X Email Markdown
what did you changeyesterday?I think I...?audit logdeal 4412Proposal → Lostdeal 4419Negot. → Lostcontact 88owner Sam → Idaask the record, not the agent

The short answer

A chat is a conversation, not a record. It holds what was asked and what the agent said it did, not what actually happened in each system, and not what was there before. Long chats get compressed, old chats get deleted, and new chats start from nothing. And when you ask an agent what it did, it answers from whatever it still has, filling the gaps with something plausible. For knowing what changed, and especially for putting it back, you need a record written at the moment of each change, by something other than the agent.

Why the chat looks like a log

It's easy to see why people treat the chat as the history. It's right there. It has times. It lists the steps, often with friendly summaries: "I updated the stage on 12 deals and added notes to 3 contacts." When you scroll back, it reads like a diary of the work.

But a diary written by the person who did the work, in their own words, about what they meant to do, isn't the same as a record of what happened. That difference doesn't matter much when the work went well. It matters a lot the day something went wrong, which is the only day anyone reads the log carefully.

Five ways the chat history fails

It gets compressed. Every model has a limit on how much of a conversation it can hold at once. In a long working session, older parts are summarized or dropped to make room. The early tool calls, with their exact record ids and values, become a sentence like "updated several deals earlier". The detail you need for tracing a mistake is exactly the detail that gets squeezed out first.

It disappears. Chats get deleted, archived or expire under the company's retention settings. People clear their history. Someone leaves the company and their account goes with them. The record of what an agent did to shared data shouldn't depend on one person's chat settings.

It's split up. Work on the same records happens across many chats, by many people, sometimes in different agents. Monday's changes are in Anna's ChatGPT, Tuesday's in Erik's Claude, Wednesday's in a scheduled run nobody watched. There is no single place to look.

It shows the request and the reply, not the result. The agent called a tool, the tool returned something, and the agent summarized it. If the call half-failed, was retried, hit the wrong record or was silently changed by the system, the summary may not say. You see what the agent understood, not what the system did.

It rarely holds the before. Even a complete chat usually shows the new values, because that's what the agent sent. What the field said before the change was never part of the conversation. Without it, you can see that something changed, but you can't roll it back.

(earlier: updated some deals)todaycompressedgonekept outside the chat

Why asking the agent is worse

The other common approach is to ask: "What did you change yesterday?" or, more dangerously, "Roll back what you did yesterday."

In a new chat, the agent simply doesn't know. It has no memory of other sessions, unless a memory feature has kept a short summary, which won't hold the details. A careful agent will say so. A less careful one will look at the records as they are now and describe what it would have done, which sounds very much like what it did.

In the same chat, the agent answers from whatever is left of the conversation after compression. If the details are gone, it reconstructs them. Language models are very good at producing a plausible account, and they produce it with the same confidence whether it's recalled or invented. The answer "I changed the stage from Negotiation to Closed lost on 12 deals" might be exactly right. It might also be right about 10 of them, wrong about the old stage on two, and silent about the three it touched in another system.

This isn't a flaw of one model or one vendor. It's how these systems work. They are built to continue a conversation sensibly, not to keep an exact ledger. Asking them for a ledger is asking for something they were never designed to provide.

When the agent does the rollback

Asking the agent to roll back its own work combines all of these problems and adds one more: the agent now writes to your systems based on its reconstruction.

Say it believes the old stage was Negotiation, because that's what usually comes before Closed lost. It sets all twelve deals back to Negotiation. Two of them were actually in Proposal sent. One was changed by a colleague this morning to Closed won, and the agent overwrites that too. Now you have a second set of wrong changes, made in the name of fixing the first, and the chat says "Done, all 12 deals are back to how they were."

The fix made by the thing that made the mistake, from its own memory of the mistake, is not a fix you can trust. Anyone who has worked with agents for a while has seen some version of this.

it was probably...Negotiation?Qualified?Proposal sent?Deal: Northwindstageamount48,000audit log, 14:02before: Proposal sentnot a guess

Why better memory won't fix it

It's tempting to think this is temporary. Models get bigger context windows, memory features improve, chats get stored longer. Surely the agent will soon just remember?

Some of it will improve. But the core problem isn't the size of the memory. It's who keeps the record and how. A memory held by the agent is still the agent's account of events, kept in a form that is designed to be summarized and reused, not audited. It still lives with one person's chat or one vendor's product. It still doesn't include what the system looked like before the change, because the agent never needed to see that to make the change.

We don't ask employees to keep the company's ledger in their heads, however good their memory is. Not because they are dishonest, but because a record needs to be exact, complete, kept by someone neutral and readable by others. Those requirements don't go away when the worker is an AI.

What a real record needs

If the chat and the agent's memory can't be the log, what can? A useful record of agent changes needs a few properties.

  • Written at the moment of the change. Not reconstructed later from a summary. Each change is recorded as it happens.
  • Written by something other than the agent. Something that sees the actual call going to the system and the actual answer coming back, so it records what happened, not what the agent understood.
  • With the before. The old values are read from the system just before the change, so the change can be judged and rolled back.
  • Independent of the chat. It survives the chat being deleted, the session ending, the person leaving or the company switching agents.
  • In one place. Every agent, every person, every system, in one list, so Monday in ChatGPT and Tuesday in Claude can be read together.
  • Hard to change afterwards. Entries are added, not edited, so the record can be trusted when it matters.

With such a record, the morning-after question has a direct answer that doesn't depend on anyone's memory, human or model. And rollback works from the record, not from a guess.

What to do today

If your team already uses agents in real systems, a few practical steps help even before you change any tools.

  • Don't let the agent roll back from memory. If something needs to be rolled back, find the old values somewhere other than the chat: the system's own history, a backup or a record kept outside the agent.
  • Treat the agent's summary as a claim. "Updated 12 deals" is what the agent believes. Check a few in the system before relying on it.
  • Keep long tasks short. The longer a single chat runs, the more of it gets compressed. Several shorter sessions lose less.
  • Decide where the record lives. Not in a person's chat history. Somewhere shared, kept for a known time, that survives people and tools changing.

How Backa does it

Backa sits between the agent and your systems, so every change goes through it on the way. Before each change, Backa reads how the record looks and writes it down, then lets the change through and notes what the system answered. Each entry says which agent made it, who asked and which run it belongs to. The audit log is one list across systems and chats, and entries are chained so they can't be quietly edited afterwards. When you roll back, Backa uses the values it wrote down, not anything the agent remembers, and it checks first that nobody has changed the record since. The agent can ask Backa what it did, and gets the audit log's answer instead of its own.