Most agent memory starts as a list of notes. Something useful comes up during the work, an agent or a person writes it down, and the next run gets to read it. That's how our agents started remembering how each customer runs their business: who signs off on an approval, and when that person is around.
A list of notes works until the notes start to overlap. Three notes about the same approval arrangement don't add up to one fact. Every run that reads them has to work out, again, whether they agree, whether one replaces another and which one is still true. The memory holds the information, but nobody has done the thinking.
That's the difference we care about. A note records that something was said. Knowledge is what you have once you've decided how it fits with everything else you know.
Reconcile once, when it arrives
“Does this new note change what we know?” has the same answer for every run that reads it, until new evidence turns up. So we'd rather answer it once, when the note comes in, and keep the answer. Asking it at read time means paying for the same judgement over and over, with the risk of a different answer each time.
So instead of storing notes, we store claims: statements with evidence attached, which we update as new information shows up. When a new memory arrives, we pull out the individual observations, keep the source excerpt for each, and look up the existing claims it might touch.
The Thursday problem
Say we already know “The finance manager approves requests”, and a new observation says “The finance manager approves requests on Thursdays.”
Keep both as separate notes and you're back to the pile. Treat the second as a duplicate of the first and you throw away the one thing it added: the day. The two sentences agree on who approves and are nearly word for word the same, which is exactly why it's easy to call the second one redundant and miss the condition.
Most of the hard cases look like this. Not two facts that obviously clash, but a new fact that narrows, extends or makes an exception to an old one.
Cheap questions first
Comparing every new observation with every related claim using a model that writes out its reasoning is slow and expensive, and most pairs don't need it. Identical wording is cheap to catch in code. For the rest, a first pass uses a model that returns a classification instead of written text, and we ask it narrow questions:
- How are the two statements related? The choices are duplicate, supports, contradicts, replaces, related and unrelated.
- Is there a situation where the two would call for incompatible actions?
- Does the existing claim already cover everything in the new one, including its conditions and exceptions?
For the Thursday pair, the answers should be supports, no and no. That last “no” is what keeps the day from being lost.
Plain restatements get linked as supporting evidence straight away, and unrelated pairs go no further. Anything that looks like a correction, a conflict or an uncertain match gets a second, slower pass. That pass sees the new observation and its source excerpt alongside the existing claim's wording, effective date and conditions, and returns a structured comparison with a short reason.
Not all mistakes cost the same
A missed duplicate leaves two copies of a rule. That's untidy, but every run still sees the truth. Mistaking an exception for a replacement is different: it overwrites the rule for every run that comes after. So we only allow a replacement when the new statement covers the whole rule, and that's the mistake we guard against hardest.
It's worth deciding this up front for any system that changes what an agent believes. Some errors you can tidy up later. Others quietly spread to every decision that follows.
Compile, don't just retrieve
The agent doesn't read claims directly. We compile the accepted instructions that are already in effect into a versioned set of short Markdown pages: an index at the top, an index for each service, and a page for each topic. A one-off approval stays out, and so does a change that starts next month. The agent starts with the top index and as many relevant pages as fit in its context, and can fetch any other page it needs from the same version.
An index entry might read:
- [Approvals](/bookkeeping/approvals.md) - Who approves requests and when.
And the topic page condenses the claims into lines, each with a footnote back to its claims:
- The finance manager approves requests on Thursdays.[^c-1a2b3c4d]
Those footnotes mean any line can be traced back to its claims, and from there to the words they came from.
Summaries drop conditions
Condensing is where the Thursday problem came back. The model writing a topic page would sometimes cite the right claim and still drop its condition, so the line read “The finance manager approves requests” with a perfectly good footnote. The citation was right. The meaning wasn't.
Now the compiler checks every generated line for the qualifying words recorded on the claims it cites. If “on Thursdays” is on the claim and missing from the line, we throw the summary away and show the claims as they were written. It's a narrow check. It catches a dropped condition, not a line that keeps the words and changes the meaning. But it closes the failure we actually saw.
Where the thinking happens
Memory that only grows gets harder to use the more it holds. The work of deciding what's true has to happen somewhere. We'd rather it happen once, when new information arrives, with the evidence attached and the expensive judgement saved for the cases that need it. Then the agent gets one instruction with its source, not a pile of notes to sort through.