cankun.me
Nov 6, 2026 · 4 min read /

Memory as Bookkeeping

When you write a note, you can't know whether it will ever be used, and it may already be out of date. Archivists paid for this lesson two centuries ago. Adding a layer of dreaming on top is a spiral fix.

An archivist stands before a wall of pigeonholes holding one loose sheet, a dismantled case file lying open on the table beside them

Build AI memory as bookkeeping and you end up in a spiral fix, with each new system patching the last one. That goes for the older approach of storing memories in a vector database for RAG, and for the so-called dreaming mechanism.

The raw record of conversations and actions is already there. Writing extra memory notes and maintaining topic wikis means picking out what matters and sorting it by today's understanding at the moment of storage. The trouble is that when you write something down, you have no idea whether that summary will ever be used. It may already be out of date as you write it.

Archivists ran into a similar problem. After the French Revolution, masses of documents from the Church, the nobility and the old government were nationalized. Archivists found them too messy to leave as they were, so they took the files apart and refiled them under the topics that seemed important at the time: land, taxes, religion. Prussia after 1815 is an even clearer case. Files poured in every day from the new government's ministries and were broken up to fit subject categories designed for the old Brandenburg state. Later writers called this new wine in old bottles.

The result was that neither officials working on later cases nor historians could find their way through. First, one piece of government business often touched several areas. Forced under one topic, it went into whichever slot the archivist judged best at the time, and anyone coming from another angle could not find it. Second, files in their original office had been received and sent one after another. Petition, inquiry, ruling, later reversal: the chain of cause and effect was held together by the order of the case file. Pull one sheet out and file it by topic, and later readers see an isolated piece of paper. They can't tell what it was answering, or whether its decision was later voided. Prussia stayed in this mess for decades. Apart from a few old archivists who had done the filing themselves, outsiders couldn't piece together how a single matter had unfolded.

It took until 1881 for the Prussian State Archives to set the rule: files stay with the administrative unit that produced them, in their original registry order and numbering, and nobody may break up a file to rearrange it by topic. The order in which documents were produced is itself evidence of how the work was done. If you want to search by topic, make a catalog or an index. Those are finding aids, and they can be rewritten whenever the question changes. The originals underneath stay untouched.

The deeper problem behind this lesson is that what matters in a record and what counts as background can't be defined at the moment things happen. Wittgenstein writes in Philosophical Investigations that, for a large class of cases, the meaning of a word is its use in the language. What a past conversation means gets produced when someone comes back with a specific question and uses it. Neuroscience has a similar proposal about human memory (Easton et al. 2024): events are encoded when they happen, but what is the focus of a memory and what is its context get reconstructed at recall, according to the question at hand.

Plato writes in the Phaedrus that writing is a drug for reminding, and that what it gives people is the appearance of wisdom. Having an AI write notes as it works forces it to lock the context in before the question exists. People keep doing it because output tokens cost the model almost nothing, and watching a state file or a wiki grow gives a person the reassuring feeling that things are under control. Much of this bookkeeping is a performance that buys psychological comfort.

When those notes and wikis go stale and start contradicting each other, the premise that bookkeeping is memory stays untouched, and another layer of dreaming goes on top to clean and patch on a schedule. That is the spiral fix. Anthropic's own post, “The components of agent memory”, is clear about this: dreaming can correct errors because it goes back and checks the raw transcript underneath. They call the transcript a ground truth themselves.

Scientific analysis often runs for a long time, with code to run, cluster jobs to submit, and hypotheses overturned and revised along the way. When we were building our own research agent system, we too first had the agent maintain a state file. It didn't know which turn would be the last, so it wrote every turn as a handover, copied what the record already held into a running log, and even wrote scripts to check the numbers in its notes. The notes still went stale. In research, a conclusion cut off from which run produced it, what code it ran, which version of the data it used, and whether the parameters changed later can't serve as evidence.

So we ended up building the system on the archivists' principle. The raw transcript, the record of every computation and the abandoned branches are all kept as they were, in the order they were produced, labeled by source, append-only. Search indexes, notes and wikis are only finding aids: they help you find things, and they get rebuilt when they break or the question changes. They are never the factual basis. The host doesn't digest or push memory for the model ahead of time. It provides read-only query tools, and leaves interpretation and judgment to the model and the researcher at the moment of use.