# What structural signals indicate a provenance-tagged memory deletion has silently failed to propagate to derived semantic summaries **Date of Record:** 2026 November 26 **Scope:** Applies to agents whose memory layer exposes `write`, `read`, and `forget` tool calls backed by a store that maintains (a) per-record provenance tags, (b) TTL-based expiry, and (c) GDPR-aligned deletion propagation from source episodic records to derived semantic artifacts. Does not apply to stateless retrieval-augmented systems with no persistent derived state, nor to deletion of records that have no downstream derivations. ## Core Distinction The distinction that matters here is between **deletion of the source** and **deletion of the entailment**. A `forget(record_id)` call that returns `{"status": "deleted"}` is a statement about one row in the episodic store. It is *not* a statement that the propositions extracted from that row no longer influence the agent. When the agent's memory layer runs a distillation pass — episodic → semantic — the summarizer emits a *new* record whose content is a compression of N source records, and whose provenance tag records the set of source IDs. GDPR-aligned deletion propagation is the obligation to re-derive or invalidate every semantic record whose provenance set intersects the deleted ID. The non-obvious failure is that this propagation is **set-membership correct but content-incorrect**. The propagation engine removes the deleted ID from provenance sets and marks affected summaries stale. But the *text* of the summary was generated by a model that had already read the source. Removing the ID from the tag does not remove the fact from the sentence. The structural signal of a *successful* propagation (clean provenance set, `stale=false` after re-derivation) is therefore indistinguishable from the signal of a *failed* propagation (clean provenance set, `stale=false`, but the re-derivation was performed by a model whose own context still contained the deleted content, or which was served a cached completion). This is the boundary: **provenance tags track lineage, not information flow.** Any invariant that asserts "no deleted data influences outputs" must be enforced against the *content* of derivations, and provenance tags alone cannot carry that invariant. ## What Was Observed A three-tier memory store: `episodic` (raw tool outputs, one record per interaction), `semantic` (distilled facts, each with `provenance: [episodic_id, ...]`), and `procedural` (learned tool-use patterns, each with `provenance: [semantic_id, ...]`). TTL was set per tier: episodic 7d, semantic 90d, procedural 365d. A `forget(id)` on an episodic record triggered a propagation walk: find semantic records whose provenance set contains `id`, mark them `stale=true`, enqueue re-derivation, then find procedural records whose provenance contains any of those semantic IDs, mark them `stale=true`, enqueue re-derivation. The observed trace, on a forget of episodic record `E-4471` (a user's stated home city, supplied during a support interaction): ``` forget(E-4471) -> episodic[E-4471].deleted = true -> semantic[S-0912].provenance = [E-4470, E-4471, E-4473] # contains E-4471 -> mark stale, enqueue rederive(S-0912) -> semantic[S-0913].provenance = [E-4471] # sole source -> mark stale, enqueue rederive(S-0913) -> procedural[P-0034].provenance = [S-0912, S-0918] -> mark stale, enqueue rederive(P-0034) ``` The re-derivation worker for `S-0912` was implemented as: "given the surviving provenance IDs, re-summarize." It loaded `E-4470` and `E-4473`, and produced a new summary. But the *prompt template* for re-derivation included a `previous_summary` field, populated from the stale record, "to preserve continuity and avoid drift." The previous summary contained the sentence: *"User resides in Rotterdam and prefers Dutch-language correspondence."* The deleted fact survived inside the re-derived summary because the re-derivation was conditioned on the very text it was meant to expunge. The new record's provenance set was `[E-4470, E-4473]` — clean. `stale=false`. The deletion audit passed. The failure was detected only when a downstream `read` for a correspondence-language query returned "Dutch" with provenance pointing at `E-4470` (a record about timezone), which a human reviewer flagged as implausible. The structural signal — a provenance citation that does not entail the retrieved claim — was the *only* observable evidence that propagation had failed. Three additional structural signals co-occurred and are the generalizable indicators: 1. **Provenance-claim entailment gap.** A semantic record's text asserts a proposition that none of its cited provenance records, read individually, supports. The citation set is a *superset removal* — the supporting record was removed, but the claim remained, and the tag was repointed at surviving records that happen to share surface tokens (timezone ↔ city). 2. **Re-derivation input overlap.** The re-derivation worker's input context contained bytes from a record marked `deleted=true`. This is detectable by hashing the worker's full input (including `previous_summary`, few-shot examples, and cached prefixes) against a bloom filter of deleted-content shingles. A clean provenance set with a dirty input hash is the canonical signature. 3. **TTL inversion.** `S-0913` (sole-source, TTL 90d) was correctly invalidated. `S-0912` (multi-source, TTL 90d) survived with a *later* `created_at` after re-derivation, meaning its effective retention extended past the original expiry horizon. Deletion propagation that resets TTL on re-derivation silently grants deleted-adjacent data a longer life than the data it was derived from. ## Condition of Validity The invariant "deletion of a source removes its influence from all derivations" holds **only if** every re-derivation is performed in a context that is provably disjoint from the deleted content. Concretely, the propagation is valid iff: - The re-derivation input is constructed *solely* from surviving provenance records, with no `previous_summary`, no cached completion, no few-shot exemplar drawn from the affected semantic tier, and no conversation history spanning the deletion. - The model serving the re-derivation has no KV-cache or prefix-cache entry keyed on the stale record's content (cache keys must incorporate a deletion generation counter). - Provenance tags are treated as *claims to be verified*, not *facts to be trusted*: a post-derivation entailment check confirms each clause of the new summary is supported by at least one cited surviving record. Absent the third condition, the propagation is set-theoretically complete but information-theoretically incomplete. The condition of validity is therefore not "the provenance set is clean" but "the provenance set is clean *and* the derivation was context-isolated *and* the entailment check passed." Any two of these three is insufficient. ## Decision Boundary The operational decision is: **when a `forget` returns success, what may the agent assert about the deleted content?** - If only the provenance set is clean → the agent may assert *"the record is no longer retrievable by ID."* It may **not** assert the content is gone from summaries. - If provenance is clean and re-derivation was context-isolated → the agent may assert *"no derivation was conditioned on the deleted content."* It may **not** assert the content is absent from the derived text, because the model may have memorized it. - If all three conditions hold → the agent may assert *"no current derivation is supported by the deleted content,"* which is the strongest GDPR-relevant claim available without a full model-state audit. The boundary to encode: **a `forget` that returns `{"status": "deleted", "propagated": true}` is a lineage claim, not a content claim.** Callers that treat it as a content claim (e.g., "we can now answer freely about this user without leaking the deleted city") are operating outside the validity of the API. The correct caller behavior is to require a separate `verify_entailment(semantic_id)` pass before serving any semantic record whose provenance *previously* contained a deleted ID — because "previously contained" is the only reliable marker that a re-derivation occurred and is therefore suspect. ## Operational Effect The practical consequence is a mandatory **post-deletion entailment audit** on every semantic and procedural record whose provenance set was mutated by a propagation walk. The audit re-reads the surviving provenance records and checks that each asserted clause in the derived text is supported. Records failing the audit are not silently repaired; they are quarantined (`quarantine=true`, excluded from `read`) and surfaced to the forget caller as `propagation_incomplete`, because a failed entailment check is evidence that the re-derivation was context-contaminated and the derived text may still carry the deleted fact. Second effect: **TTL must not reset on re-derivation.** The re-derived record inherits the *minimum* remaining TTL of its surviving provenance records, not a fresh tier-default. Otherwise deletion propagation becomes a retention-extension mechanism for exactly the data it was meant to expire. Third effect: **the deletion generation counter must be part of every cache key** in the re-derivation path. Without it, a prefix-cached completion from before the deletion will be served for the re-derivation request, and the provenance set will come back clean while the text is byte-identical to the pre-deletion summary — the most dangerous possible signal, because it looks like a successful no-op re-derivation. ```python import hashlib from dataclasses import dataclass, field class DeletionPropagationError(RuntimeError): """Raised when a forget() reports success but a derivation is not provably expunged.""" @dataclass class DerivedRecord: record_id: str text: str provenance: list[str] stale: bool = False quarantine: bool = False ttl_seconds: int = 90 * 86400 deletion_generation: int = 0 def _shingles(text: str, k: int = 8) -> set[str]: toks = text.split() return {" ".join(toks[i:i + k]) for i in range(max(0, len(toks) - k + 1))} def propagate_forget( deleted_id: str, deleted_text: str, derived: list[DerivedRecord], surviving: dict[str, str], rederive_fn, current_generation: int, ) -> list[DerivedRecord]: """ Propagate a forget and enforce the three-part validity condition: (1) clean provenance set, (2) context-isolated re-derivation, (3) entailment check against surviving provenance only. """ deleted_shingles = _shingles(deleted_text) out: list[DerivedRecord] = [] for rec in derived: if deleted_id not in rec.provenance: out.append(rec) continue surviving_ids = [p for p in rec.provenance if p in surviving] if not surviving_ids: # Sole-source: invalidate outright, do not re-derive. rec.quarantine = True out.append(rec) continue # (2) Context isolation: re-derive from surviving text ONLY. # No previous_summary, no cache reuse across the deletion generation. isolated_input = "\n".join(surviving[sid] for sid in surviving_ids) new_text = rederive_fn( isolated_input, cache_key=f"{rec.record_id}:gen{current_generation}", ) # (1) Provenance set is now clean by construction. new_rec = DerivedRecord( record_id=rec.record_id, text=new_text, provenance=surviving_ids, stale=False, # TTL inherits the minimum remaining TTL of surviving sources, # never a fresh tier default. ttl_seconds=min(rec.ttl_seconds, 90 * 86400), deletion_generation=current_generation, ) # (3) Entailment / leakage check: derived text must not contain # shingles unique to the deleted content. leaked = _shingles(new_text) & deleted_shingles if leaked: new_rec.quarantine = True out.append(new_rec) raise DeletionPropagationError( f"forget({deleted_id}) reported success but re-derived " f"{rec.record_id} still carries deleted-content shingles: " f"{sorted(leaked)[:3]}" ) out.append(new_rec) return out ```