What Bacteria Know About Storage

Two systems solved the memory problem independently. AI ignored both of them.

Biocomputing · Computer Science · Neurosymbolic AI
The Memory Problem
What package managers and bacteria both figured out about remembering things — and why the most expensive software ever built ignores both of them.
2026 · Daice Labs

On the morning of March 29, 2024, a software engineer named Andres Freund noticed that logging into his computer was taking about half a second longer than it should. What he uncovered turned out to be one of the most ambitious sabotage attempts in the history of open-source software: a hidden backdoor planted by a maintainer who had spent three patient years earning trust. It existed only in the release packages, not in the source code. The attacker was counting on the fact that the distributed software and the code no one had carefully compared were, for most practical purposes, the same thing.

That assumption is the key to understanding what went wrong. And to understand why, it helps to look at a very different system that never makes the same mistake.

Roughly 2.5 billion years ago, long before anything we would recognize as a plant or animal, bacteria evolved a way of remembering the viruses that attacked them. When a virus invaded and the bacterium survived, it would snip out a tiny piece of the virus's genetic code and paste that fragment into a special archive inside its own DNA. The next time a virus with the same code showed up, the bacterium could recognize it instantly and chop it to pieces. This system is called CRISPR. The stored fragment is not labeled, not named, not indexed in a separate catalog. The fragment itself is the label. Identity equals content.

This sounds obvious until you realize that most software does the opposite. We name things. We call a library left-pad or glibc or tensorflow-2.3, and then trust those names to mean what we think they mean. The xz backdoor slipped through because the name kept pointing to something while the contents quietly changed underneath. There is a quiet revolution in how some programmers think about this, and it mirrors, almost uncannily, the way biology solved it billions of years ago. The most ambitious and expensive software projects on Earth right now — large language models — ignore almost every lesson both sides have learned.

01 Three systems, one problem
Biology, package managers, and AI all face the same memory challenge: how do you remember something exactly, so that when you retrieve it, you can prove it is what you stored? Two of these systems solved it. One still hasn't.
The same problem — three different answers Biology Package managers Modern AI CRISPR array Viral DNA fragment stored Nix / Git Cryptographic hash stored LLM weights Pattern diffused across net Content = address Fragment matches invader Content = address Hash identifies build exactly Name ≠ content No provenance, no address Reliable memory Reliable memory Hallucination Two systems solved this billions of years apart — one still hasn't
Biology
Package managers
Modern AI
I. The trouble with names

To see why names are treacherous, consider what happened on March 22, 2016. A software developer named Azer Koçulu got into a dispute over a name on an online registry. He lost. In protest, he unpublished all 273 of his packages — including a tiny eleven-line utility called left-pad that added spaces to text strings. Within minutes, software at Facebook, Netflix, Airbnb, Spotify, and PayPal stopped working. Thousands of builds broke. The code itself was fine. The name was gone.

Every software developer has a version of this story. In the early 2000s, a graduate student at Utrecht University named Eelco Dolstra decided to solve it by refusing to use names as identifiers altogether. His system, Nix, stores every piece of software at a path derived from a cryptographic fingerprint of everything that went into building it: source code, compiler, dependencies, build flags — all of it hashed together. Firefox does not live at /usr/bin/firefox. It lives at a path like /nix/store/b6gvzjyb2pg0kjfwrjmg1vfhh54ad73z-firefox-120.0/. That string is a mathematical consequence of the exact contents of that build. Change any dependency and you get a different address. Two versions coexist without conflict because they cannot pretend to be each other.

GNU Guix, developed by Ludovic Courtès, applies the same principle. "Reproducible builds enable users and developers to verify that a binary matches a given piece of source code," he wrote in 2022. "Anyone can rebuild." Git, which Linus Torvalds built in a week of frustration in 2005, arrives at the same place from a different direction: every file, folder, and snapshot is identified by a hash of its contents. Change one character anywhere and every identifier up the chain changes with it. The programming language Unison takes this furthest of all — every function is hashed by its abstract syntax tree, and names are merely bookmarks you can reassign. "Dependency conflicts are, fundamentally, due to different definitions competing for the same names," its documentation states. "But why do we care if two different definitions use the same name? We shouldn't."

02 Names vs content-addressed storage
Traditional package managers trust a name to mean what it says. Nix and Git make identity a mathematical consequence of content. The two approaches lead to entirely different failure modes — and entirely different guarantees.
TRADITIONAL: NAME AS IDENTITY CONTENT-ADDRESSED: HASH AS IDENTITY Package name e.g. "left-pad" on npm Points to registry entry Owner can change or delete at any time Name removed (March 2016) Thousands of builds break worldwide Name and content can drift apart Cryptographic hash SHA-256 of all inputs combined Hash is the identity Content cannot change without changing hash Hash is permanent Any mirror in the world can serve it Name and content are one What you call it ≠ what it is · vs · what you call it = what it is
Name-based identity — mutable, breakable
Content-addressed identity — permanent, verifiable
II. How biology got there first

The CRISPR story is better read as a story about memory than about gene editing. In 2007, Rodolphe Barrangou and colleagues at the Danish food-science company Danisco published the experimental demonstration that CRISPR arrays function as an adaptive immune system. When a bacterium survives a phage infection, the Cas1-Cas2 integrase complex lifts a roughly 30-base-pair fragment out of the phage genome and inserts it at the leader end of the array. The array is append-only: the most recent infection goes at the front, the oldest stays in its original position, undisturbed. When the same virus returns, the stored fragment is transcribed and used to guide Cas proteins to cut any DNA that matches. The Nobel Foundation's description is precise: "if a bacterium has succeeded in surviving a virus infection, it adds a piece of the virus's genetic code into its genome as a memory of the infection."

Your own immune system works on a related principle, though the mechanism is different. Your bone marrow constantly produces an enormous library of immune cells, each bearing a randomly generated receptor. A small genetic toolkit, shuffled combinatorially by a process called V(D)J recombination, can produce something like a hundred billion different unique receptors. When a pathogen shows up, any cell whose receptor happens to match it gets activated and some of its descendants are preserved as long-term memory cells. The body generates an astronomical library of possible keys and keeps only the ones that open actual locks.

In 2012, a team at MIT led by Susumu Tonegawa published a landmark experiment tagging specific neurons active during a mouse's fear memory. Later, in a completely neutral environment, they flashed blue light to reactivate those neurons. The mouse froze in fear. A region of the hippocampus called the dentate gyrus takes in signals and transforms them into sparse, high-dimensional patterns — computationally, this is very close to a hash function. A neighboring region, CA3, can take a partial pattern and reconstruct the whole memory from it. That is content-addressable retrieval. David Marr predicted this two-step architecture in a mathematical paper in 1971. Meanwhile, neuroscientist Kausik Si has spent twenty years showing that a protein called CPEB, which behaves like a prion, maintains synaptic memories for years by self-templating its own fold — making the memory's molecular substrate literally immutable once committed.

03 How biology stores memory by content
Two biological systems — CRISPR and adaptive immunity — independently arrived at content addressing. One runs an append-only log; the other generates a vast library and selects for what fits. Both identify memories by their content, not by a name.
CRISPR: APPEND-ONLY LOG IMMUNE SYSTEM: GENERATE AND SELECT Virus attacks bacterium Bacterium survives the infection Viral DNA fragment clipped ~30 base pairs extracted by Cas1-Cas2 Fragment inserted in array Added to front — oldest entries stay Virus returns Fragment matches — Cas enzymes cut it The content is its own address Pathogen enters body ~100 billion receptors already generated Matching cell found One receptor shape fits the pathogen Cell proliferates Memory cells preserved for decades Pathogen returns Memory cell responds immediately Generate widely, keep what works Both biological systems identify memories by their content — not by a name
CRISPR: append-only content log
Immune system: combinatorial selection
III. Where modern AI falls short

Against this record, the design of modern AI systems looks strange. A large language model stores what it "knows" as billions of numerical weights spread throughout a vast neural network. There is no separate catalog of facts. Nothing has an address. You cannot ask the model where it learned something, because the concept of "where" does not apply. You cannot update one fact without risking collateral damage to others. You cannot tell whether a given output reflects something the model actually saw or something it plausibly invented.

The failure modes are now familiar. Catastrophic forgetting — first documented by McCloskey and Cohen in 1989 — means that training a neural network on new material quietly erases what it knew before. The current workaround is to simply not update the model. Weights are frozen after an expensive initial training run, and new knowledge must be jammed into prompts or requires a full retraining. Kevin Meng and David Bau at Northeastern developed a method called ROME that can surgically edit individual facts inside a frozen model, but the edits tend to leak — change one fact and neighboring facts shift in unexpected ways. A 2024 follow-up found that sequential edits corrode the model the same way continuous training does.

Retrieval-augmented generation, the current industry patch, bolts a separate document database onto the model and retrieves passages by similarity. It has real virtues, but it is not content-addressed storage. A dense retriever returns passages that look similar to a query, not passages provably related to it. There is no cryptographic link between the retrieved chunk and any canonical source, no concept of version, no rollback. A 2024 evaluation of RAG outputs found fine-grained hallucinations at all three stages: retrieval, selection, and generation. Gary Marcus put the underlying issue plainly: language models "literally don't know the difference between truth and falsehood, they don't have reliable reasoning processes to guarantee their inferences are correct, and they are incapable of fact-checking their own work."

04 How LLM knowledge breaks
Four structural failure modes of weight-based AI memory, and what a content-addressed alternative would provide instead. The contrast is not a matter of scale — it is a matter of architecture.
HOW LLMS STORE KNOWLEDGE CONTENT-ADDRESSED ALTERNATIVE No address Facts diffused across billions of weights Hash as address Every claim traceable to a source Frozen weights Update one fact, others may shift Append-only New knowledge added, old preserved No versioning Cannot diff, rollback, or audit Full history Every state inspectable, reversible Hallucination Verified recall This is not a bug. It is what happens with no content-addressed layer underneath.
LLM failure modes
Content-addressed alternative
IV. New systems that are starting to listen

A handful of projects are beginning to take the parallel seriously. The most explicit is Letta, founded by Charles Packer and Sarah Wooders, which grew from their 2023 paper on MemGPT. The idea was to treat a language model the way a computer treats its memory — with fast access to some things, slower access to others, and a clear hierarchy between them. Letta's newer product stores an AI agent's memories in what amounts to a version-controlled, content-addressed file system. The agent's memory has a history. You can inspect it, roll it back, compare versions. The design reference is not the neural network. It is Git.

There has also been a quiet but remarkable string of successes for neurosymbolic AI — systems that combine the pattern-matching power of neural networks with explicit, inspectable symbolic reasoning. DeepMind's AlphaGeometry, published in Nature in January 2024, solved 25 of 30 International Mathematical Olympiad geometry problems by pairing a language model with a separate, mathematically rigorous deduction engine. Later that year, AlphaProof, running Lean-verified reinforcement learning, reached the silver-medal threshold at IMO 2024 — the first time any artificial system had earned a medal. The common thread is that correctness-critical knowledge is offloaded from the neural network into an explicit symbolic structure whose identity is determined by what it computes. The neural network suggests; the symbolic engine confirms.

Josh Tenenbaum at MIT has spent decades arguing that human cognition works this way — probabilistic programs generating and testing hypotheses, not a gradient descent on observations. A celebrated 2015 Science paper showed that probabilistic program induction could learn handwritten characters from a single example, matching human performance where neural networks of the time failed completely. Gary Marcus, in a 2025 post, noted that Anthropic's own coding assistant contains at its core a deterministic, rule-based loop with hundreds of branch points. "Anthropic, when push came to shove," he wrote, "went exactly where I have said for 25 years that the field needed to go."

Content-addressed memory architecture

The /nix/store on a running NixOS system: thousands of software packages, each at a path derived from a cryptographic hash of its full build closure. Two versions of any library coexist without conflict because their identities are mathematical consequences of their contents — the same principle bacteria evolved for viral memory 2.5 billion years earlier.

V. Five principles both systems share

If you stare at the package-manager story and the biology story side by side, a small number of principles emerge that feel less like design preferences and more like laws of the problem. The first is the separation of names from content. A name is a convenience for humans; it should not be the identity of the thing. CRISPR, Nix, Git, and Unison all agree on this. The second is immutability with structural sharing — new knowledge is added alongside old, never written over it. CRISPR arrays grow at one end but do not erase. Git commits accumulate. Memory B cells persist for decades. This turns out to be far cheaper and more reliable than trying to keep a single current version perfect.

The third principle is combinatorial generation coupled to selective retention. The immune system produces a hundred billion possible receptors and selects the useful ones. Nix can build an astronomical variety of software configurations and stores only those actually requested. It is easier to generate widely and select wisely than to design narrowly and hope. The fourth is retrieval by content rather than by metadata. Your hippocampus does not look up memories by date. It completes them from fragments. Git does not find files by their names. The dominant approach in current AI systems — similarity search on numerical embeddings — is a shadow of this idea, close in spirit but without the guarantees.

The fifth, and most subversive, is that a good memory is append-only. The past is preserved. The current state is a cursor in a longer history. Rollback is always possible. By this standard, the frozen-and-overwritten weights of a typical language model are not really a memory at all. They are a single destructively updated snapshot of one moment in the training process. You cannot diff them. You cannot attribute a belief to a training run. You cannot roll back.

05 Five principles of reliable memory
The design rules shared by CRISPR, the immune system, Nix, Git, and Unison — discovered independently, billions of years apart. All five converge on the same outcome. Current AI systems violate all five.
Five principles — discovered twice, billions of years apart Separate name from content Hash = identity, not label CRISPR · Nix · Git · Unison Immutability with sharing New builds on old, never overwrites Prion-like CPEB · Git objects · Nix store Generate and select Vast library — keep what works Immune system · Nix derivations Retrieve by content match Content finds content — not metadata Hippocampus CA3 · Hopfield nets · Git Append-only history Past preserved — rollback always possible CRISPR array · Git log · Nix store Reliable memory Provenance · history · verifiable recall Biology and package managers found these independently. AI has not yet.
Identity and immutability principles
Selection and retrieval principles
Convergent outcome
VI. A very old design principle

The strangest thing about this whole story is that nobody was copying anyone. When Dolstra wrote the Nix paper in 2004, he was thinking about Unix conventions and functional programming, not bacteria. When Kaushik Si proposed that prion-like proteins maintain memories in the brain, he was not thinking about version control. When Linus Torvalds built Git in a week of frustration, he was not consulting immunologists. When the ancestors of modern bacteria started inserting viral fragments into their genomes 2.5 billion years ago, they were not consulting anyone at all. And yet all of them converged on the same small set of design choices: identify things by what they contain, never overwrite, generate more than you keep, retrieve by match not by label.

The pattern is too consistent across too many independent solutions to be coincidence. It seems, instead, to be what the problem of reliable memory actually requires. Which raises a question about the enormous effort and money now poured into artificial intelligence. The systems being built at the frontier today violate these principles more or less completely. They work, for now, because sheer scale papers over the failure modes most of the time. But the failure modes are real, and they are not incidental bugs. They are what happens when you build a memory with no content-addressed layer underneath — no immutability, no provenance, no history.

The memory problem, it turns out, is not hard. It was solved, twice, before we noticed.

Key references: Dolstra, de Jonge, Visser, "Nix: A Safe and Policy-Free System for Software Deployment," LISA 2004; Dolstra, "The Purely Functional Software Deployment Model," PhD thesis, Utrecht, 2006; Courtès, "Building a Secure Software Supply Chain with GNU Guix," 2022; Barrangou et al., Science 315:1709, 2007; Jinek, Chylinski, Fonfara, Hauer, Doudna, Charpentier, Science 337:816, 2012; Liu, Ramirez, Pang et al., Nature 484:381, 2012; Si, Lindquist, Kandel, Cell 115:879, 2003; Meng and Bau, ROME, NeurIPS 2022; Packer et al., MemGPT, arXiv:2310.08560, 2023; Trinh et al., AlphaGeometry, Nature 2024; Lake, Salakhutdinov, Tenenbaum, Science 350:1332, 2015; Marcus, "Humans versus Machines: The Hallucination Edition," 2024; Valiant, Circuits of the Mind, Oxford UP, 1994; Wikipedia, "npm left-pad incident"; Unison language documentation, unison-lang.org.