Crowork Book a free audit

A memory gate that stops an AI assistant saving questions as facts

An AI product team's assistant was saving its users' questions as facts, and the drop-in memory gate we built took its memory precision from about 35% to 100% on the team's labelled test set.

A memory store sorting entries into verified facts, questions and conflicts, with demo data

The build at a glance

Built for
An AI product team, which stays anonymous
The bug
The assistant stored users' questions as facts
The fix
A gate that classifies each message before anything is stored
Trust
A single mention starts with low trust
Fit
Dropped into the existing assistant with no rebuild
Tested on
The team's own labelled test set
Open source
speech-act-memory-gate on our GitHub
Status
Under every AI worker we build

An assistant that remembered things nobody said

The assistant's memory stored users' questions as if they were facts. Ask it whether the office is open on Friday, and later it might remember that the office is open on Friday, though nobody ever told it so.

Over time, that filled its answers with confident, invented information. Few failures hurt an AI product more, because users come to it for answers they can trust.

What we built

We put a gate at the moment of storage. Before anything goes into memory, the gate works out what kind of statement it is, and only real statements of fact get through. It is the kind of narrow, testable fix we build as custom AI work when an off-the-shelf tool gets one thing wrong.

Every message classified before it's stored

The gate reads each incoming message and decides whether it states a fact, asks a question or describes a hypothetical. Questions and hypotheticals aren't facts, so the gate filters them out and stores nothing.

We explain the underlying bug, and why so many memory layers have it, in why AI memory stores your questions as facts.

One mention is not a fact

Even a real statement of fact starts with low trust. A trust model keeps a single mention from counting as established truth, and the trust grows as other mentions back it up.

We describe the model in our write-up on giving agent memory a confidence model. Kirill's own assistant, Muninn, keeps questions out of his memory in the same way.

Dropped in, then tested on the team's own data

The gate dropped into the existing assistant with no rebuild. We checked it against the team's own labelled test set, so the result is measured on the kind of messages their users send.

We publish the tooling behind it as open source, as speech-act-memory-gate, which sits in front of memory layers such as mem0, Zep or Letta. The client stays anonymous.

A memory store with sample data, sorting entries into facts, questions and conflicts. Its figures, including the accuracy reading, are sample data, not the test-set result
A memory store with sample data. Every figure on the screen, including the accuracy reading, is sample data, not the result on the client's test set.

How it runs today

On the client's labelled test set, memory precision went from about 35% to 100%. The gate stopped writing non-facts into memory, and the assistant's answers stopped drifting towards invented information.

We'd rather an AI say it doesn't know than make something up, so the same gate now sits underneath every AI worker we build, including the AI employees we run for businesses.

  • About 35%Memory precision before the gate, on the client's labelled test set
  • 100%Memory precision with the gate, on the same test set
  • No rebuildThe gate dropped into the assistant the team already had

Questions about AI memory reliability

Why does an AI assistant store questions as facts?

An AI assistant stores questions as facts when its memory layer extracts statements from every message and saves them without checking what kind of message it was. A question such as "is the office open on Friday?" then comes back later as "the office is open on Friday". A gate that classifies each message before storage stops it.

Can you fix AI memory without rebuilding the assistant?

Yes. A memory gate sits between the assistant and its memory store, so it can drop into an existing assistant without a rebuild. In this build, the gate went in front of the client's memory, classified every incoming message and passed only statements of fact through, while the rest of the assistant stayed as it was.

How do you measure whether AI memory is accurate?

AI memory accuracy is best measured on a labelled test set: real messages already labelled with the right answer. Precision is the share of stored items that are real facts. On this client's labelled test set, precision went from about 35% to 100%, a result for their data that we don't present as a general guarantee.

Does a memory gate work with mem0, Zep or Letta?

Yes. Our open-source memory gate, speech-act-memory-gate, is written to sit in front of memory layers such as mem0, Zep or Letta. It classifies each message before the memory layer sees it and lets only statements of fact through. For a production assistant we fit it to your stack and test it on your own examples.

How much does it cost to fix an AI assistant's memory?

Fixing an AI assistant's memory is a custom build with a fixed price, agreed after a free audit of how your memory layer works today. If we run it for you afterwards, a monthly rate covers the agreed scope, and we re-quote if the scope changes a lot. See how the build price and the monthly rate work.

How long does a memory reliability fix take?

A memory reliability fix for one assistant is a focused custom build, and a focused build for a single workflow takes 3 to 7 business days once the scope is clear. Larger builds with several integrations, a review gate and a staging deployment take 2 to 3 weeks. We size it at the audit, as described in how a build with us runs.

Does your AI remember the right things?

Show us what your assistant stores, and at a free audit we'll tell you whether its memory is reliable and what a drop-in gate would take.