Technology

Can You Trust Your Agent's Memory in Production?

Every fact that your AI agent saves about a customer can go out of date, appear in another customer's chat, or remain in a backup after you delete the customer's data. In this study, I will show you how you can check your agent for each of those failures, and how you can fix each one with instructions for your coding agent.

1 of 7 articles published

Article 2 arrives 30 Nov 2026

Listen to the study trailer

3 min listen · Read by Metatron, Delali's AI voice

0:00
2:56

The facts that your agent saves are customer data

Every fact that your agent saves about a customer is yours to answer for. From then on, it can go out of date, appear in another customer's conversation, or remain in a backup after the customer asks you to delete it.

Where a wrong reply comes from

Each time a customer sends your agent a message, your code loads the facts that your agent saves about that customer, then sends them to the AI model that generates the reply. When one of those facts is out of date, the reply can therefore be out of date too. Even a stronger model can produce the same out-of-date reply, because it receives the same fact.

Who is responsible for your agent's memory?

A court or tribunal can hold your company responsible for the information that your agent provides. In February 2024, for example, a tribunal in British Columbia ordered Air Canada to pay a customer CA$812.02, because the airline's website chatbot had provided that customer with a rule for bereavement fares that differed from the airline's policy.

One customer can also see another customer's data through a single bug. That happened on 20 March 2023, when some ChatGPT users saw the titles of other users' chats because of a bug in redis-py, which is an open-source library that ChatGPT's servers use. Whichever model you use, you will therefore have to be sure that every fact that your code loads belongs to the customer in the chat.

When a customer asks you to delete their data, you will also need to remove it from every copy, including your backups. In May 2023, for example, the US Federal Trade Commission charged that, after parents asked Amazon to delete what their children had said to Alexa, Amazon failed to delete the transcripts from all of its databases. On 19 July 2023, a federal court approved an order that required Amazon to pay a $25 million civil penalty to settle those charges.

Fix the failures in your agent one at a time

Every article in this study is about one failure. It opens with a check that you can carry out on your agent. After I show you why the failure happens, I will give you the fix as a brief. A brief is a short set of instructions that you can paste into a coding agent, such as Claude Code or Codex. The coding agent can then apply the fix to your project. Where a fix works only with a database or a search engine that stores each customer's data separately, I will say so in that article.

The articles

  1. Do Returning Customers Have to Repeat Themselves to Your AI Agent?

    Start here if your code sends the model only the current chat with a returning customer.

    15 min read15 min listen

  2. Why Your Courier Can Deliver to a Customer's Old Address

    Read this one if your customers can change an address or any other detail that your agent saves.

  3. One Wrong Tool Result Is Enough to Corrupt Later Replies

    Choose this one if your agent saves the values that its tools return.

  4. Another Customer's Data Can Appear in Your Agent's Replies

    This one is for you if a single search index stores the saved facts of every customer.

  5. The Customer Data That You Deleted Remains in Your Backups

    Before you answer a customer who asks you to delete their data, open this one.

  6. When a Customer Disputes a Reply, Show What the Model Received

    If you will have to show a customer which facts the model received for a reply, turn to this one.

  7. Customers Can Receive a Price That You No Longer Charge

    Go to this one when several of your agents provide customers with the same prices or policies.

Search

Search for blog posts, studies, projects, and pages