Depth isancestry.
Every record sits at its lineage depth. profile:user_117 is the source, at depth 00. Everything behind it was derived from something in front of it.
Lineleaf records how AI memories, summaries, embeddings, caches and agent plans were derived, so when a source changes, is erased or turns out to be poisoned, you know exactly what else became wrong, and can invalidate, rebuild and prove it.
Persistent AI turns every input into more state: a memory, an embedding, a summary, a cached answer, the next step of a plan. Each one lands in a different store, and none of them records what it was made from.
So when a source changes, is erased, or turns out to be poisoned, nothing can say what else is now wrong. Delete the source and its descendants stay behind, still answering.
CASE 001, flat. Step through the incident, or select any record to trace it. Simulation data.
Every record sits at its lineage depth. profile:user_117 is the source, at depth 00. Everything behind it was derived from something in front of it.
An extractor writes memory_72. It is embedded, summarized, cached and planned on. summary_12 also draws on memory_40, which has nothing to do with location.
“I live in Vancouver.” becomes “I live in Toronto.” Nothing downstream knows yet.
The change travels outward along recorded lineage, one depth at a time. memory_40 sits right beside it and is not touched.
derive()Record an edge from each input to each output: which operation, which model, when. Ids and fingerprints only.why()Walk any record back to its sources.Trace where did this come from?invalidate()A dry-run plan for every descendant, before anything is touched.Impact what depends on this?Now delete the source.
When a user invokes their right to erasure, everything derived from them has to go too: the memory, the embedding, the cached answer. Lineleaf writes every action as a row whose sha256 commits to the row before it, then signs the result. Whoever holds the receipt can check that nothing was skipped, and nothing was edited afterwards.
Your runtime keeps writing to the stores it already uses. Lineleaf records the edges between what it writes, and acts on those stores through adapters when something has to change.
Memory systems are built to write. The hard part is what happens after: derived state that outlives its source, backflow after deletion, and whether a system can recover from a bad input at all.
The unit of correctness is not a record but a lineage: a source and everything derived from it.
10 sections7 open problemsDoyle 1979 → OWASP ASI06
Building agents with persistent memory? We’re working with a small number of teams to build the first adapters, invalidation workflows and receipts. Tell us what you’re building.