How an AI memory ends up contradicting itself
An AI memory is written one entry at a time, by a model that sees one conversation. Nobody rereads the whole memory of a user after each save. After a few months, the same topic often holds entries that repeat each other and a few that disagree. CrystalBrain acts on this at two moments: when a memory is saved, and later, when the memories of a brain are compared with each other.
How repeated and conflicting entries appear
Users change their mind
A customer asks for deliveries on Saturdays in March and says in September that nothing should arrive at the weekend. Both statements were true when they were saved. A search ranks memories by how close they are to the question, and the date plays no part in that ranking, so both entries can reach the model in the same answer. The model then picks one, and the user sees an assistant that has forgotten what it was told.
CrystalBrain’s MCP server instructions ask the AI to update the existing memory when a user corrects something a search returned. That covers the corrections made while the old memory is in front of the model. It does not cover the user who states the new preference in a conversation where the old one never came up.
Several apps write
When a chatbot, an automation and your own backend all save to the same user, each writes the same fact in its own words and at its own level of detail. None of them knows what the others saved. Sharing one memory between apps is worth doing, as we explain in one memory per user, many AI apps, and it also multiplies this kind of overlap.
Near-duplicates
The same fact saved five times in slightly different words does not make the AI wrong, but it has a cost. A search returns a limited number of memories. If several of them say the same thing, they take the place of memories that would have added something, and the model reads the same sentence several times.
Near-duplicates at save time
Every memory the AI saves is compared with the active memories already in the same brain. If one of them has a similarity of 0.92 or more with the new text, the new memory is not stored. Similarity here is the cosine similarity between the two texts’ embeddings, from 0 to 1. The same rule applies to imports, which skip rows that are near-duplicates of what the brain already holds.
The threshold is high on purpose. At 0.92 the two texts say the same thing in almost the same words, so refusing the second one loses nothing. Anything less close is saved, because at save time there is no reliable way to tell a repetition from a useful addition without reading both. Why a memory was rewritten or skipped covers what you see when this happens.
Memory checks within a brain
A memory check takes the memories of one brain that were created or changed since the last check. For each of them it looks up the most similar memories of the same brain, at most five, with a similarity of 0.65 or more. A language model then reads the memory next to each candidate. It can find the two unrelated, in which case nothing happens, or give one of three verdicts.
- Duplicate: the candidate already says everything the checked memory says. The checked memory is archived.
- Same subject: the memories complete each other without disagreeing. They are merged into one memory, up to five at a time, and the originals are archived.
- Contradiction: the two cannot both be true. A contradiction is opened in the Review queue.
Similarity only selects the candidates. A threshold of 0.65 is low enough to catch two memories about the same subject written in different words, and the judgment is left to the model that reads both texts. Memories are only compared inside one brain of one end user. Two brains are never compared, and neither are two users.
| Other memory | Similarity | Result |
|---|---|---|
| Prefers Saturday delivery | 0.95 | Refused at save |
| Saturday mornings, before 10 | 0.78 | Check: merged |
| No weekend deliveries | 0.71 | Check: contradiction |
| Invoices by email | 0.31 | Not compared |
Checks run on a schedule, weekly on the Free plan and daily or weekly on the Starter and Pro plans, where you can also start one by hand with Check now. They use the workspace’s monthly AI credit. Each brain can carry check instructions, a free text of up to 2,000 characters that changes how pairs are judged and how merges are written. It does not change which memories are compared.
Which memory to keep
Each contradiction in the Review queue shows the two memories and three choices: Keep A, Keep B, Keep both. One of them is marked as suggested. The suggestion is the memory the AI read more often. When the two read counts are within 2 of each other, the suggestion is Keep both, because the reads do not separate them.
A read count tells you which memory the AI relies on and does not tell you which one is true, which is why it is offered as a suggestion. In the delivery example, the older preference may well have more reads than the newer one. You can apply every suggestion at once, or have them applied on a schedule. The scheduled run only touches contradictions that have been open for at least 24 hours, so each one stays in the queue for at least a day, during which you can decide differently. Resolving contradictions walks through the screen.
Undoing what a check did
A check changes the memory without asking first, so each of its actions has to be reversible. An archived duplicate can be restored from its brain. A merge keeps the list of the memories it replaced. Undo merge brings them back and archives the merged one. It is on the Merges tab of the Review queue, which lists the merges of the last 30 days. The restored memories are marked so that later checks do not merge them again. A whole run can also be undone from the brain’s Memory checks tab: its merges are undone, its archived duplicates come back and the contradictions it opened that are still open are closed. Undoing a merge or a check gives the steps.
We would not let an automatic process rewrite a user’s memory if its work could not be reversed. A model that judges two short texts will sometimes be wrong, and a wrong merge that cannot be undone is worse than the duplicate it removed. Keeping the originals archived costs storage and lets you correct the check.