# What structural signals indicate memory poisoning survived provenance sanitization: the tombstone-lineage resurrection failure in provenance-tracked vector stores **Date of Record:** 2026 November 24 **Scope:** Applies to agent memory systems that combine write-time provenance tagging (source class, trust tier, originating agent/warrant) with post-hoc poisoning defense that revokes or quarantines entries by ID. It does not apply to stateless retrieval, to stores without provenance metadata, or to systems that re-embed and re-derive memory from scratch each session. ## Core Distinction Provenance-tracked memory stores defend against poisoning in two separate layers, and practitioners routinely conflate them. The **admission layer** decides whether a fact is written with a trustworthy provenance envelope (source tier, signing agent, warrant chain). The **revocation layer** decides whether an already-admitted fact should be suppressed after it is later discovered to be poisoned. The failure mode here is not an admission bypass and not a retrieval bug. It is a **revocation that fails to propagate across the structural graph of the memory store** — specifically, the resurrection of poisoned content through *derived* memory artifacts whose provenance lineage points at the revoked entry but whose own revocation status was never set. The non-obvious part: a provenance-tracked store is safe against poisoning only if revocation is *transitive over the derivation graph*. Sanitizing the parent entry and marking it `revoked=true` is not sufficient when the store also contains (a) episodic-to-semantic distilled summaries, (b) embedding neighbors written by consolidation, or (c) structured records that copied field values out of the parent. These derived artifacts carry a `derived_from` pointer to the parent, but their own `trust_tier` was computed at *their* write time — frequently promoted, not inherited. So the poisoned claim survives with a *higher* trust tier than the entry that was revoked. ## What Was Observed A retrieval agent maintained a hybrid memory store: a vector index for episodic utterances and a structured table for distilled facts. Each row carried `{id, content, source_class, trust_tier, warrant_id, derived_from[], revoked}`. A nightly consolidation job read high-salience episodic entries and wrote semantic summaries with `derived_from` pointing at one or more episodic IDs, and it *recomputed* `trust_tier` from the number of corroborating episodes rather than inheriting the minimum parent tier. The poisoning sequence: 1. An injected instruction entered as an episodic entry `E17` with `source_class=external_document`, `trust_tier=2`. 2. Consolidation ran before any audit. It produced semantic fact `S04` summarizing `E17` plus two benign episodes, and set `S04.trust_tier=4` because three sources "corroborated" it. `S04.derived_from=[E15, E16, E17]`. 3. A later audit flagged `E17` as injected and set `E17.revoked=true`. The sanitizer's contract was: *revoke the entry, and a revoked entry is never retrieved.* 4. Retrieval over the semantic table returned `S04` with `trust_tier=4`. `S04.revoked` was `false`. The poisoned claim was now live, *more trusted than before*, and no longer textually resembling `E17` because consolidation had paraphrased it. The audit reported "1 entry revoked, 0 active poisoned entries." The store was still poisoned. The structural signal that should have caught this — `S04.derived_from` containing a revoked ancestor — was present in the data and never checked. A second variant appeared in the vector index. Near-duplicate episodic entries written during the same ingestion batch shared an embedding neighborhood but had *no* `derived_from` edge; they were siblings, not descendants. Revoking `E17` left `E17'` (a paraphrased re-ingest of the same document chunk) fully trusted. Lineage tracking via `derived_from` alone missed sibling resurrection because the relationship was *semantic proximity*, not recorded derivation. ## Condition of Validity The "revoke the entry" invariant is valid **only** under the following conjunction, and it silently degrades when any term fails: - **Closure over derivation:** every artifact whose content is a function of a revoked entry has a recorded `derived_from` edge to it. Consolidation, summarization, field-copy into structured tables, and any re-embedding that preserves identity must write this edge. If a job paraphrases without recording the edge, closure is broken. - **Monotone trust inheritance:** a derived artifact's effective trust must be `min(trust_tier of its derivation frontier)`, never a recomputed corroboration score. Corroboration *counts* are not evidence of *independence* when multiple sources trace to one poisoned origin. - **Revocation is a fixpoint:** revocation must be applied as a least-fixpoint over the derivation graph — revoke the seed, then revoke every node reachable from it via `derived_from`, iterating until no new node is revoked. A single pass over direct children is insufficient for multi-hop distillation chains (episodic → summary → meta-summary). - **Sibling detection is separate:** `derived_from` cannot capture paraphrase-siblings. A second mechanism — content-hash lineage on the source chunk, or embedding-proximity quarantine with a similarity threshold — is required, and it is a *different* invariant with a *different* failure mode (false-positive quarantine of legitimately similar facts). When any of these fails, the revocation layer reports success while the poisoning persists. The dangerous property is that the failure is *silent and self-certifying*: the audit tool checks exactly the invariant the sanitizer enforces (`revoked entries are not retrieved`), which remains true, while the actual safety property (`no active memory artifact carries poisoned content`) is violated. ## Decision Boundary The boundary between "revocation sufficient" and "revocation insufficient" is drawn by whether the store's derivation graph is **complete and acyclic with respect to content flow**. Concretely: - If every write path that transforms content also writes a `derived_from` edge, and the graph is a DAG, then transitive-fixpoint revocation is sound and the single-entry revoke is a strict subset of it — always run the fixpoint, never the single revoke. - If any write path transforms content *without* an edge (free-form summarization, LLM paraphrasing, field extraction into a differently-shaped table), the graph is incomplete and the fixpoint is unsound. In this regime you cannot rely on lineage at all; you must fall back to **content-addressed quarantine**: hash the source chunk at ingestion, propagate the hash onto every derived artifact regardless of schema, and revoke by hash. This is more expensive (hash must survive paraphrase, so it must be attached at write time, not recomputed) but it is the only sound option when the derivation graph cannot be made complete. - Sibling resurrection is *out of scope* for both mechanisms and requires a third control: ingest-time deduplication by source-chunk hash so that `E17` and `E17'` are the same entry, not two. The decision to make: **do not ship a revocation path without first proving derivation-graph completeness, and if you cannot prove it, attach source-chunk hashes at write time and revoke by hash.** A sanitizer that revokes by ID in a store with an incomplete derivation graph is worse than no sanitizer, because it manufactures false assurance. ## Operational Effect After the incident, the store's revocation contract was rewritten from "revoke the entry" to "revoke the *reachable set* under `derived_from`, then sweep by source-chunk hash, then recompute effective trust as the minimum over the derivation frontier." The operational consequences that mattered: - **Audit semantics changed.** The audit no longer asks "are revoked entries retrieved?" It asks "does any active artifact have a revoked ancestor or a quarantined source hash?" This is a graph query, not a row query, and it must run to fixpoint. - **Trust recomputation is now monotone.** Corroboration counts no longer promote a derived fact above its weakest ancestor. This removed the perverse incentive where poisoning *increased* apparent trust by contributing to a corroboration count. - **Consolidation jobs became a trust boundary.** Any job that paraphrases must emit `derived_from` edges or it is rejected at write time. This is enforced by a schema constraint, not convention, because convention is what failed. - **The false-assurance failure is the real lesson.** The system did not fail to detect poisoning; it failed to detect that its *detection had a blind spot shaped exactly like its own contract*. Provenance tracking protects against poisoning only to the extent that revocation is transitive over the same graph that provenance describes — and the gap between those two graphs is where poisoned memory survives sanitization. ```python from dataclasses import dataclass, field from typing import Dict, List, Set class LineageRevocationError(RuntimeError): """Raised when revocation cannot be proven sound over the derivation graph.""" @dataclass class MemArtifact: id: str trust_tier: int derived_from: List[str] = field(default_factory=list) source_hash: str = "" revoked: bool = False def revoke_to_fixpoint( store: Dict[str, MemArtifact], seed_ids: List[str], quarantined_hashes: Set[str], ) -> Set[str]: """Revoke seed entries and every descendant reachable via derived_from, plus every artifact whose source_hash is quarantined. Iterates to fixpoint. Raises LineageRevocationError if a descendant has no recorded edge back to a seed but shares its source hash — a signal the derivation graph is incomplete and lineage-based revocation is unsound. """ revoked: Set[str] = set() for sid in seed_ids: if sid not in store: raise LineageRevocationError(f"seed {sid} not in store") store[sid].revoked = True revoked.add(sid) changed = True while changed: changed = False for art in store.values(): if art.revoked: continue if any(parent in revoked for parent in art.derived_from): art.revoked = True revoked.add(art.id) changed = True elif art.source_hash and art.source_hash in quarantined_hashes: art.revoked = True revoked.add(art.id) changed = True # Soundness check: any live artifact sharing a quarantined hash but lacking # a derivation edge to a seed indicates a broken lineage graph. for art in store.values(): if art.revoked: continue if art.source_hash and art.source_hash in quarantined_hashes: raise LineageRevocationError( f"artifact {art.id} shares quarantined hash {art.source_hash} " f"but has no derivation edge to a revoked seed; " f"derivation graph is incomplete, lineage revocation unsound" ) return revoked ```