One bad source.Five derived artifacts.
Follow a single correction through the system: from the record it started as, to every artifact it reached, to the receipt that proves each one was repaired.
- profile:user_117
- source_changed
- 5 artifacts
- profile · memory · pgvector · summaries · redis · agent
- Simulation
Where case 001 lives · four stores, five derived records
profile:user_117
“I live in Vancouver.”
memory_72
location = Vancouver
emb_08
embedding · 1536-d
redis:ans_88
Nearest store: Kitsilano
summary_12
Lives in Vancouver · vegetarian
plan_31
Book flights from YVR
memory_40
diet = vegetarian
chat:turn_12
“I’m vegetarian.”
Step 1 of 8: Every artifact starts somewhere. [object Object],[object Object]
Every artifact starts somewhere
A user tells an assistant: “I live in Vancouver.” It is stored as profile:user_117, the source of everything that follows.
Lineleaf records its identifier and a sha256 fingerprint. The sentence itself stays in your store.
One source, five artifacts
An extractor writes a memory. The memory is embedded, retrieved into a cached answer, and summarized, together with an unrelated memory, into a profile summary an agent plans from.
Each hop is recorded as an edge by derive(), or captured by middleware: parent, child, operation, model and time.
The source changes. What is now wrong?
The user moves to Toronto. invalidate() walks the recorded edges and marks the five descendants. memory_40, diet = vegetarian, is not one of them.
Hover or focus any record to inspect it: type, depth, parents, descendants, state and fingerprint.
A plan before anything is touched
The dry run proposes one action per record. Nothing has changed yet. Scope is fixed when you approve; if it grows, execution stops and asks again.
Dry-run plan for profile:user_117 Depth Record Action 1 memory_72 Rebuild 2 emb_08 Rebuild 2 summary_12 Rebuild 3 redis:ans_88 Evict 3 plan_31 Mark stale Executed in dependency order
Adapters carry out the plan wave by wave, so every parent is repaired before the records built on it. Here depth 1 and 2 are done; the cache and the plan are next.
Rebuild only what is still partly true
summary_12 had two parents. It isn’t deleted; it is rewritten from the corrected memory and the untouched one: “Lives in Toronto · vegetarian.”
The cached answer is evicted, and the agent running plan_31 receives lineage.stale with a directive to re-plan.
A receipt you can verify
Every action becomes a row whose sha256 commits to the row before it, and the receipt is signed (ES256). Change any row and the chain no longer verifies.
A store that cannot confirm a delete is recorded as needs_review, never as done.
Walk any belief backward
“Why did the agent say Kitsilano?” is a lookup: why(ans_88) returns the path back to profile:user_117, with each operation, model and time.
It also reports freshness: whether anything on that path has since been corrected, erased or flagged.
- profile:user_117“I live in Vancouver.”
Every artifact starts somewhere
A user tells an assistant: “I live in Vancouver.” It is stored as profile:user_117, the source of everything that follows.
Lineleaf records its identifier and a sha256 fingerprint. The sentence itself stays in your store.
What a deletion can’t tell you.
The approaches teams use today, against the same incident. None of them is wrong; none of them knows the lineage.
| Capability | Delete the source | TTL or versioning | Scheduled rebuild | Lineleaf |
|---|---|---|---|---|
| Knows what was derived from a source | No | No. Expiry is per record | No. Rebuilds everything | Yes. Recorded edges |
| Reaches every store involved | No. The source store only | No. One store at a time | Partly. If the job covers it | Yes. Through adapters |
| Keeps what is still valid | No | No | Partly. After the next run | Yes. Partial rebuild |
| Shows the impact before acting | No | No | No | Yes. Dry-run plan |
| Tells running agents | No | No | No | Yes. lineage.stale webhook |
| Proves what happened | Partly. A log line | No | Partly. Job history | Yes. Signed receipt |
Knows what was derived from a source
- No
- No. Expiry is per record
- No. Rebuilds everything
- Yes. Recorded edges
Reaches every store involved
- No. The source store only
- No. One store at a time
- Partly. If the job covers it
- Yes. Through adapters
Keeps what is still valid
- No
- No
- Partly. After the next run
- Yes. Partial rebuild
Shows the impact before acting
- No
- No
- No
- Yes. Dry-run plan
Tells running agents
- No
- No
- No
- Yes. lineage.stale webhook
Proves what happened
- Partly. A log line
- No
- Partly. Job history
- Yes. Signed receipt
Help decide what ships first.