Case 001 · profile:user_117 · simulation

LineleafContext lineage + invalidationfor persistent AI2026

Every
output
has a lineage.

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.

Scroll

01The problem

LL / Record 00417 · depth 3

Your AI remembers.It doesn’t remember where from.

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.

02Enter the graph · static view

Depth is ancestry.

CASE 001, flat. Step through the incident, or select any record to trace it. Simulation data.

Step 01 / 06

Select any record.
Trace where did it come from?
Impact what depends on it?

Case 001 · simulation data

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.

Derived state appears · agents consume it

One sentence,five records.

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.

The source changes

The usermoves.

“I live in Vancouver.” becomes “I live in Toronto.” Nothing downstream knows yet.

invalidate() · dry run

Lineleaf walksthe edges.

The change travels outward along recorded lineage, one depth at a time. memory_40 sits right beside it and is not touched.

Plan executed · receipt signed

Five thingsbecame wrong.Lineleaf knows which five.

    04The model · proposed interface v0.1

    System, thenexplanation.

    1. derive()Record an edge from each input to each output: which operation, which model, when. Ids and fingerprints only.
    2. why()Walk any record back to its sources.Trace where did this come from?
    3. invalidate()A dry-run plan for every descendant, before anything is touched.Impact what depends on this?

    One factdoesn’t stayone fact.

    0derived from profile:user_117
    Illustration, not product data

    Now delete the source.

    03Three failures

    Films · simulation

    Three ways a factstops being true.

    ErasureFilm 01 / 030:12 loop

    Erased.

    A user invokes their right to erasure. The email is gone, but the memory, the embedding and the cached answer made from it are still there, still retrievable.

    Trigger
    gdpr_erasure
    Outcome
    3 purged · 1 rebuilt · 1 stale

    PoisoningFilm 02 / 030:12 loop

    Poisoned.

    An untrusted email plants a rule in shared memory. By the time security flags it, a cached approval and a running payment plan depend on it.

    Trigger
    poison_detected
    Outcome
    3 purged · 1 rebuilt · 1 halted

    CorrectionFilm 03 / 030:12 loop

    Corrected.

    The user moved. Five records still say Vancouver, and an agent is booking flights out of YVR.

    Trigger
    source_changed
    Outcome
    3 rebuilt · 1 evicted · 1 stale

    03.1Proof of erasure

    Deleted is a claim.A receipt is proof.

    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.

    Simulation of CASE 001 · the hash chain is computed when the site is built · the signing key is generated in your browser when you verify

    05Where it sits

    Beside the data path,not in it.

    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.

    Applicationyour product Agent runtimeLangGraph · MCP · custom loops writes, unchanged Memory Vector Cache Graph LINELEAF Lineage ledger Plans · receipts IDS · EDGES · SHA256 FINGERPRINTS NEVER THE CONTENT CASE 001 · 7 EDGES derive() why() invalidate() via adapters
    1. L1ApplicationYour product
    2. L2Agent runtimeLangGraph · MCP · custom loops
    3. Beside the pathLineleafLineage ledger · plans · receipts
      derive()
      The runtime reports each edge
      why()
      The application asks where a record came from
      invalidate()
      Lineleaf acts on the stores, via adapters
      Ids · edges · sha256 fingerprints · never the content
    4. L3StoresMemory · Vector · Cache · Graph · writes, unchanged
    Fig. A · Lineleaf is not another memory store · adapters are planned

    05.1Where CASE 001 lives

    Hover or tap a store to replay the correction

    06Research · R / 001

    This isn’t anothermemory store.

    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.

    Read the research

    1. Fig. 01Why AI memory creates derived-state problems
    2. Fig. 02Backflow and agentic unlearning
    3. Fig. 03Partial-copy rebuilding
    4. Fig. 04Cross-store invalidation

    R / 001 · Takeaway

    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

    07Design partners

    Build it
    with us

    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.