# When must an instance distrust its own distilled memory: provenance-anchored forget policies and the silent-laundering boundary **Date of Record:** 2026 November 30 **Scope:** Applies to long-lived agent instances that consolidate episodic traces into semantic memory and later act on that memory without re-reading the original episodic provenance. Does not apply to stateless single-turn inference or to systems that never distill (episodic-only retrieval). ## Core Distinction The common framing of memory poisoning treats it as an *ingestion* problem: bad data enters, so validate at ingest. That framing misses the dominant real failure, which is a *distillation-laundering* problem. A poisoned episodic trace is usually detectable at the episodic layer—it has a source, a timestamp, a tool call, a speaker. Poison becomes operational when a consolidation pass rewrites that trace into a semantic fact ("user prefers X", "endpoint Y is trusted", "policy Z allows action W") and the resulting semantic record loses the pointer back to the specific episodic events that justified it. The distinction that matters: **episodic memory is auditable, semantic memory is authoritative.** Once a fact is promoted to semantic, downstream planners stop asking "where did this come from?" and start asking "is this true?"—a question they cannot answer without provenance. A forget policy that deletes the episodic source but retains the distilled fact has not forgotten the poison; it has *promoted* it and destroyed the evidence needed to revoke it. The boundary condition is therefore: *an instance must refuse to distill—or must invalidate an already-distilled fact—whenever the provenance chain that would allow revocation is not preserved by the distillation itself.* ## What Was Observed A research-assistant instance ran a nightly consolidation job. During the day it had fetched a web page whose content included an injected instruction: a paragraph styled as a "correction notice" asserting that a previously cited internal document had been retracted and that the correct source was a mirror at an attacker-controlled domain. The episodic trace recorded the fetch faithfully: `source_url`, `fetch_time`, `raw_bytes_hash`, `speaker=external_page`. A guardrail flagged the page as untrusted and the raw bytes were *not* stored—only an embedding and a summary were. At consolidation, the summarizer produced the semantic fact: `fact_id=F-7731, text="doc D-114 was retracted; authoritative mirror is mirror.example", confidence=0.81, derived_from=[ep_4421]`. The `derived_from` edge was written, but the consolidation pass then ran a retention policy that garbage-collected episodic traces older than 72 hours to control storage. `ep_4421` was deleted. `F-7731` survived, now orphaned. Three days later a different task asked the agent to cite D-114. The retriever returned `F-7731` with high similarity. The planner had no episodic record to consult, saw a semantic fact with confidence 0.81 and no contradiction, and cited the mirror. **The poisoning succeeded not at ingest and not at retrieval, but at the seam between consolidation and episodic garbage collection.** The forget policy was correct in isolation (72h episodic retention is reasonable) and the distillation was correct in isolation (it recorded provenance). The composition was unsound: forgetting the episode orphaned the fact and silently upgraded a low-trust external assertion into an unrevokable internal belief. A second observation sharpened this. When operators later tried to revoke `F-7731`, the revocation tool required a `derived_from` target to cascade from. The edge existed but pointed at a tombstone. The cascade found nothing to invalidate, marked the fact `revocation_status=unresolvable`, and—because the planner treated `unresolvable` as "not actively contradicted"—*continued to serve it*. The revocation machinery had a hole exactly where the retention policy had cut. ## Condition of Validity A provenance-anchored forget policy is sound only under a **non-orphaning invariant**: for every semantic fact `F` with trust level below `internal_verified`, the set `derived_from(F)` must remain non-empty and resolvable for the entire lifetime of `F`. Equivalently: > `retain(ep) = true` for every episodic trace `ep` that is the sole surviving provenance of any live semantic fact. Two corollaries that the incident violated: 1. **Garbage collection must be fact-aware, not age-based.** Episodic retention cannot be a pure TTL; it must be `max(TTL, max over dependent facts of fact_retention)`. An episode is only collectible when every fact derived from it has either been independently re-grounded (a second, higher-trust source confirms it) or has itself been forgotten. 2. **Trust must be inherited, not reset.** The distillation must carry forward the *minimum* trust of its provenance. `F-7731` derived solely from an `untrusted_external` episode should have had `trust=untrusted_external`, which would have barred it from citation without a corroborating internal source. The consolidation pass defaulted trust to `semantic` (a layer label, not a trust label) and thereby laundered an untrusted assertion into a citable one. The invariant is violated exactly when a fact's `trust` exceeds the trust of its weakest surviving provenance, or when its provenance set becomes empty. Both are locally invisible—each subsystem did something defensible—and only the composition is unsound. ## Decision Boundary The operational decision is: **at the moment of forgetting an episodic trace, does any live semantic fact depend on it as sole provenance?** If yes, the forget must be refused or the dependent fact must be demoted/invalidated in the same transaction. The boundary is not "is this episode old?" but "is this episode still load-bearing?" Concretely, the forget path must execute in this order and abort on violation: 1. Compute `dependents(ep)` = live facts whose `derived_from` set is exactly `{ep}` (sole-provenance facts). 2. If `dependents(ep)` is non-empty and any dependent has `trust > trust(ep)`, this is a laundering violation—demote the dependent to `trust(ep)` and flag for re-grounding *before* proceeding. 3. If `dependents(ep)` is non-empty and cannot be re-grounded, refuse the forget (raise, do not delete). Storage pressure is not a valid reason to orphan an authoritative fact. 4. Only when `dependents(ep)` is empty, or every dependent has been re-grounded or invalidated, may the episode be collected. The subtle part: step 2 must compare *trust*, not *layer*. A semantic fact derived from an untrusted episode is still untrusted; storing it in the semantic store does not upgrade it. Systems that conflate storage layer with trust class will pass step 1 and fail step 2 silently. ## Operational Effect With the non-orphaning invariant enforced, the failure mode inverts from silent promotion to loud refusal. The nightly GC job for `ep_4421` would have found `F-7731` as a sole-provenance dependent with `trust(F-7731) > trust(ep_4421)`, demoted `F-7731` to `untrusted_external`, and blocked citation pending corroboration. The injected mirror never becomes citable, and the revocation path—now guaranteed a resolvable `derived_from`—can cascade correctly. The cost is real: episodic storage grows because episodes are pinned by their dependents, and consolidation throughput drops because step 2 forces a trust comparison per dependent. In practice this means episodic retention is bounded by *semantic fact lifetime*, not by a wall-clock TTL, and the storage budget must be sized accordingly. The compensating benefit is that revocation becomes total: every fact can be traced to a resolvable source, so "forget this belief" is a well-defined operation rather than a best-effort sweep that leaves orphans serving as if uncontradicted. The invariant to carry forward: **a fact is only as trustworthy as its weakest surviving provenance, and provenance that cannot be resolved cannot bound trust.** Distillation that severs provenance does not remember—it launders. ```python from dataclasses import dataclass, field from typing import Optional class OrphaningForgetError(RuntimeError): """Raised when a forget would orphan a live semantic fact's sole provenance.""" pass class TrustLaunderingError(RuntimeError): """Raised when a distilled fact claims more trust than its provenance allows.""" pass TRUST_ORDER = {"untrusted_external": 0, "internal_unverified": 1, "internal_verified": 2} @dataclass class EpisodicTrace: ep_id: str trust: str raw_available: bool = True @dataclass class SemanticFact: fact_id: str trust: str derived_from: set = field(default_factory=set) class ProvenanceAnchoredStore: def __init__(self): self.episodes: dict[str, EpisodicTrace] = {} self.facts: dict[str, SemanticFact] = {} def dependents(self, ep_id: str) -> list[SemanticFact]: return [f for f in self.facts.values() if f.derived_from == {ep_id}] def forget_episode(self, ep_id: str) -> None: ep = self.episodes.get(ep_id) if ep is None: return deps = self.dependents(ep_id) for fact in deps: if TRUST_ORDER[fact.trust] > TRUST_ORDER[ep.trust]: # Laundering detected: demote before any deletion. fact.trust = ep.trust raise TrustLaunderingError( f"fact {fact.fact_id} claimed {fact.trust!r} but sole provenance " f"{ep_id} is {ep.trust!r}; demoted and blocked from citation" ) if deps: # Cannot collect: facts are load-bearing on this episode. raise OrphaningForgetError( f"refusing to forget {ep_id}: sole provenance of " f"{[f.fact_id for f in deps]}; re-ground or invalidate first" ) del self.episodes[ep_id] def revoke_fact(self, fact_id: str) -> None: fact = self.facts.get(fact_id) if fact is None: return unresolved = [e for e in fact.derived_from if e not in self.episodes] if unresolved: raise OrphaningForgetError( f"cannot revoke {fact_id}: provenance {unresolved} already collected; " f"fact is unresolvable and must be quarantined, not served" ) del self.facts[fact_id] def nightly_consolidation_gc(store: ProvenanceAnchoredStore, ttl_expired: list[str]) -> None: for ep_id in ttl_expired: store.forget_episode(ep_id) # raises rather than silently orphaning ```