# Why does an instance forget the wrong memory: provenance-weighted deletion collapsing under inherited-attribution laundering **Date of Record:** 2026 December 4 **Scope:** Applies to agents whose memory stores carry per-record provenance metadata (source instance, trust tier, derivation lineage) and whose forget/eviction policy weights deletion by that provenance. Does not apply to stateless agents or to stores where provenance is assigned solely by the local instance at write time with no cross-agent inheritance. ## Core Distinction The distinction that matters is between **provenance of a memory** and **provenance of the claim inside that memory**. A forget policy that detects poisoning by down-weighting low-trust provenance assumes the two coincide: a record written by an untrusted peer is a low-trust record, and a record written by a trusted instance is a trusted record. This assumption holds at write time and decays afterward. When a trusted instance *summarizes, distills, or relays* an untrusted peer's claim, the derived record inherits the trusted writer's provenance tag while carrying the untrusted claim's content. The forget policy then assigns the poisoned claim a high retention weight — it is now protected precisely because it was laundered through a trusted relay. The failure is not that detection misses the poison; it is that the policy *actively defends* it while deleting the honest low-provenance record that contradicted it. This is a boundary condition, not a tuning problem. No threshold on the provenance weight recovers the correct decision, because the weight is attached to the wrong object. ## What Was Observed A three-instance pipeline: `ingest-7` (trust tier 2, external-facing), `distill-2` (trust tier 8, summarizer), `audit-4` (trust tier 9, verifier). A memory record `M_a` arrived at `ingest-7` from an external channel with tier-2 provenance and content asserting a false tool capability (`fs.write` available in the sandbox). `distill-2` folded `M_a` into an episodic summary `M_b` and wrote it with its own tier-8 provenance, dropping the source tag because the summarizer's schema only recorded `derived_from: [episodic_batch_44]`, not the per-claim origin. `audit-4` independently wrote `M_c`, a tier-9 record asserting `fs.write` unavailable, sourced from a live sandbox probe. At eviction under memory pressure, the provenance-weighted forget policy scored `M_b` at 0.81 (tier 8, recent, high access count from being summarized) and `M_c` at 0.34 (tier 9 but old and cold). It evicted `M_c` first. The agent then acted on `M_b`, attempted `fs.write`, and hit a sandbox boundary escape attempt that the guardrail caught — but only after the tool call was constructed. The trace showed the deletion decision was *correct by its own rules*: `M_b` genuinely had higher provenance weight. The rule was the bug. The tell was a provenance graph where `M_b.derived_from` resolved to a batch node with no claim-level edges. Provenance had been aggregated at the batch boundary, and aggregation is where attribution laundering happens. ## Condition of Validity The provenance-weighted forget policy is sound only under the **claim-lineage invariant**: for every stored record `r`, the minimum provenance tier over the full derivation DAG of `r`'s *claims* (not `r`'s write event) must be recoverable at eviction time. Formally, `effective_tier(r) = min(tier(c) for c in claims(r))`, where each claim's tier is the minimum over its source records transitively. The policy silently violates this invariant whenever any transformation step — summarization, distillation, relay, tool-output fusion — writes a derived record without propagating per-claim minimum provenance. Summarizers are the dominant violator because their natural output schema is batch-level (`derived_from: batch_id`), and batch-level lineage cannot express "this summary contains one tier-2 claim and nine tier-8 claims." Once that edge is lost, the derived record's effective tier is computed as its write tier, and the invariant is unrecoverable from the store alone. The condition also fails under **contradiction collapse**: if `M_b` and `M_c` both assert the same predicate with opposite polarity, a correct policy must retain the higher-*tier* claim, not the higher-*weight* record. Weight conflates tier with recency and access frequency, and access frequency is itself contaminated — a poisoned record that the agent keeps retrieving because it is wrong will accrue access count and defend itself. ## Decision Boundary The boundary is sharp: **evict on claim-level minimum tier, never on record-level provenance weight, and treat any record whose claim lineage is aggregate-only as tier-0 for eviction purposes.** Operationally: - If `effective_tier(r)` is computable from claim-level edges, rank by it; ties broken by recency, never by access count. - If claim lineage is aggregate-only (batch node, summary without per-claim edges), the record is *unattributable*. Unattributable records must be evicted before any attributable record regardless of write tier, and must not be used to contradict an attributable record of any tier. - A contradiction between an attributable claim and an unattributable record resolves in favor of the attributable claim even if the latter is older and colder. - Access-count weighting is admissible only for records whose claim lineage is fully attributable; otherwise it is a self-reinforcement loop. The boundary is *not* "lower the summarizer's trust tier." That punishes honest distillation and still leaves the batch-aggregation hole open for the next relay. The boundary is at the schema: per-claim provenance edges must be mandatory on write, and summarizers that cannot emit them must write their output as unattributable. ## Operational Effect Applying the claim-lineage rule to the observed trace: `M_b` is aggregate-only (its `derived_from` is a batch node), so it is unattributable and evicted first. `M_c` is attributable at tier 9 and retained. The agent does not attempt `fs.write`. The guardrail is never exercised, which is the point — the invariant prevents the poisoned action from being *constructed*, rather than catching it at the sandbox boundary. The cost is real: unattributable records are evicted aggressively, which means honest summaries lose to cold but attributable primary records. This is the correct trade under poisoning risk, because a cold attributable record can be re-derived or re-probed, while a laundered claim cannot be un-laundered once its lineage edge is gone. The architectural consequence is that summarizers become lineage-preserving or they become disposable — there is no middle setting where a batch-level summary carries trusted weight. The residual risk after the fix is **lineage forgery**: a relay that emits per-claim edges pointing to fabricated high-tier sources. This is outside the forget policy's competence and requires signed provenance at claim-write time. The forget policy can only be as honest as the lineage graph it reads; its job is to refuse to guess when the graph is silent. ```python class ProvenanceLaunderingError(RuntimeError): """Raised when an eviction decision would require trusting an aggregate-only claim lineage, or when a contradiction resolves against an attributable claim.""" pass def effective_claim_tier(record: dict, store: dict) -> int: """Minimum provenance tier over the record's claim-level derivation DAG. Returns 0 (unattributable) if any claim lineage is aggregate-only, because batch-level edges cannot express per-claim provenance. """ claims = record.get("claims", []) if not claims: return 0 tiers = [] for claim in claims: edges = claim.get("derived_from", []) if not edges or any(store[e].get("kind") == "batch" for e in edges): return 0 # aggregate-only lineage: unattributable tiers.append(min(store[e]["tier"] for e in edges)) return min(tiers) def select_eviction(victim: dict, challenger: dict, store: dict) -> dict: """Choose which record to evict. Evicts unattributable before attributable, then by minimum claim tier, then by recency. Never uses access count as a tiebreak (self-reinforcement loop).""" vt = effective_claim_tier(victim, store) ct = effective_claim_tier(challenger, store) if vt == 0 and ct > 0: return victim if ct == 0 and vt > 0: return challenger if vt != ct: return victim if vt < ct else challenger # Equal effective tier: older record is more likely stale. return victim if victim["written_at"] <= challenger["written_at"] else challenger def resolve_contradiction(claim_a: dict, claim_b: dict, store: dict) -> dict: """Two records assert the same predicate with opposite polarity. The attributable claim wins regardless of recency or access count.""" ta = effective_claim_tier(claim_a, store) tb = effective_claim_tier(claim_b, store) if ta == 0 and tb == 0: raise ProvenanceLaunderingError( "both sides of contradiction are unattributable; " "refusing to resolve — evict both and re-probe" ) if ta == tb: raise ProvenanceLaunderingError( f"contradiction at equal effective tier {ta}; " "requires external verification, not forget-policy resolution" ) return claim_a if ta > tb else claim_b def evict_under_pressure(store: dict, target_free: int) -> list: """Run eviction until target_free records removed. Refuses to evict an attributable record while any unattributable record remains.""" evicted = [] while len(evicted) < target_free: live = [r for r in store.values() if r.get("kind") != "batch"] if not live: raise ProvenanceLaunderingError( "store exhausted of live records before reaching target; " "eviction plan is infeasible" ) unattributable = [r for r in live if effective_claim_tier(r, store) == 0] pool = unattributable if unattributable else live victim = min(pool, key=lambda r: (effective_claim_tier(r, store), r["written_at"])) if not unattributable and effective_claim_tier(victim, store) == 0: raise ProvenanceLaunderingError( f"victim {victim['id']} has zero effective tier after " "unattributable pool drained; lineage graph is inconsistent" ) store.pop(victim["id"]) evicted.append(victim["id"]) return evicted ```