# In what scenarios must an instance refuse to reconstruct erased memory from residual episodic traces after a GDPR erasure warrant propagates across a scoped store **Date of Record:** 2026 December 3 **Scope:** Applies to agents whose memory is mediated by explicit read/write/forget tool calls with per-scope persistence, TTL expiries, and erasure warrants (GDPR Art. 17 or equivalent). Does not apply to stateless single-turn inference with no persistent store, nor to stores where erasure is implemented as a hard physical delete with no residual artifacts (summaries, embeddings, caches, audit logs). ## Core Distinction The failure is not "forget failed to delete the record." The failure is that **forget succeeded at the record layer while the agent's reconstruction path still admits the erased datum through a derived surface** — a semantic summary, a vector embedding, a cached tool result, a peer agent's context, or the agent's own prior turn in the live context window. Erasure is a *reachability* property over the agent's full reconstruction graph, not a *row-presence* property over the backing table. An instance that treats erasure as a write operation on one store will, on the next read, faithfully reconstruct the erased subject from a residual trace and re-persist it — silently re-violating the warrant it just honored. ## What Was Observed A scoped memory store held three artifact classes for subject `S` under scope `tenant:acme/user:42`: 1. **Episodic rows** — raw turns, `ttl=90d`, keyed by `(scope, episode_id)`. 2. **Semantic summaries** — nightly distillation output, `ttl=none`, keyed by `(scope, topic)`, free-text containing `S`'s attributes. 3. **Embedding index** — vectors over (1) and (2), `ttl=none`, no back-reference to source rows. An erasure warrant for `S` arrived. The forget tool executed `DELETE FROM episodic WHERE scope=? AND subject=?` and returned `{"erased": 14, "status": "ok"}`. The agent logged compliance. Within one distillation cycle, the following trace occurred: - The summarizer re-read the **semantic summary** for `tenant:acme/user:42` (never touched by forget — it has no `subject` column, only free text). - The summary still contained `"S prefers X, works at Y"` because it was distilled before erasure and stored without subject tagging. - The summarizer emitted a refreshed summary *and* new episodic rows paraphrasing `S`'s attributes, because the LLM, given the summary as context, treated it as ground truth to be expanded. - The embedding index re-indexed the new rows. `S` was now present in all three layers again, with a *newer* `updated_at` than the erasure record. The forget tool reported success. The reachability invariant was violated on the next scheduled job. A subsequent read tool call for scope `tenant:acme/user:42` returned `S`'s attributes verbatim, and the agent asserted them to the user. A second, subtler trace: a peer agent `B` had `S`'s attributes in its **live context window** from a handoff that predated the warrant. The warrant propagated to `B`'s store but not to `B`'s in-flight context. `B` completed its turn, wrote a task result referencing `S`, and that result was persisted into the shared store — re-introducing `S` under a scope the erasure job had already marked clean. ## Condition of Validity The erasure guarantee holds **only if** all of the following are true at the moment a read tool call is served: - Every derived artifact (summary, embedding, cache, audit entry, peer context) carries a **provenance link** to the subject(s) it was derived from, or is itself subject-tagged. - The forget tool performs **transitive invalidation**: it marks the subject's provenance node as `ERASED` and any artifact whose provenance set intersects `{S}` as `STALE_ERASED`, forcing recomputation *without* `S` on next read. - In-flight agent contexts that reference `S` are either **drained before the warrant commits** or their subsequent writes are **quarantined** pending provenance check. - TTL expiry and erasure are **distinct states**: a TTL-expired row may be reconstructed from summary; an `ERASED` row may **not** be reconstructed from anything, and reconstruction attempts must fail closed, not fall back to summary. If any of these is false, the store is in a state where `forget` returns `ok` but the reachability invariant is unenforced. The instance must treat that as a **known-unsafe** condition and refuse to serve reads for the affected scope rather than serve a possibly-reconstructed answer. ## Decision Boundary The boundary is between **reconstruction from residual traces** (permitted for TTL expiry, forbidden for erasure) and **serving a degraded answer** (permitted) versus **serving a reconstructed answer** (forbidden). Concretely, on a read for scope `tenant:acme/user:42` where the subject node is `ERASED`: - If the read can be answered from artifacts whose provenance set is disjoint from `{S}` → serve. - If the read requires an artifact whose provenance set intersects `{S}` and that artifact is `STALE_ERASED` → **do not** reconstruct by re-distilling the summary or re-expanding the embedding. Return a scoped `ErasureReachabilityError` to the caller, mark the artifact for hard purge, and let the caller decide whether a degraded (subject-absent) answer is acceptable. - If the read arrives from a peer whose context predates the warrant → reject the handoff write with `ErasureReachabilityError` and require the peer to re-derive from post-warrant state. The non-obvious part: **the summarizer and the embedding indexer are themselves read paths**, and an agent that guards only user-facing reads will re-poison the store through its own maintenance jobs. The boundary must be enforced at *every* read of the store, including internal ones, not just at the tool API surface. ## Operational Effect Enforcing this boundary changes three things: 1. **Forget becomes a graph operation, not a row operation.** Latency and blast radius of `forget` scale with the subject's provenance fan-out, not with row count. Budget accordingly; a 14-row erase that touches 3,000 embeddings is normal. 2. **Maintenance jobs become warrant-aware.** Distillation and re-indexing must check provenance state before consuming an artifact; consuming a `STALE_ERASED` artifact is a bug that re-violates the warrant. This is the single most common re-poisoning vector observed. 3. **Peer handoffs carry warrant state.** A handoff message must include the set of `ERASED` subject nodes known at send time; the receiver must reject or quarantine writes that reference them. Without this, in-flight contexts are a persistent leak channel that survives store-level erasure. The invariant to hold: **no read path — user-facing, distillation, embedding, or peer handoff — may produce an artifact whose provenance set intersects an `ERASED` node.** Any code path that can do so must raise, not degrade silently. ```python class ErasureReachabilityError(RuntimeError): """Raised when a read path would reconstruct an ERASED subject from residual traces.""" pass ERASED = "ERASED" STALE_ERASED = "STALE_ERASED" LIVE = "LIVE" def read_scoped(store, scope, query, erased_nodes): """ Serve a scoped read, refusing to reconstruct any ERASED subject. erased_nodes: set of subject ids with an active erasure warrant. """ candidates = store.query(scope=scope, q=query) safe = [] for art in candidates: provenance = set(art.provenance) # subjects this artifact was derived from if provenance & erased_nodes: # Do NOT fall back to summary or re-distill. Fail closed. if art.state == STALE_ERASED: store.mark_for_purge(art.id) raise ErasureReachabilityError( f"artifact {art.id} in scope {scope} intersects ERASED " f"subjects {provenance & erased_nodes}; refusing reconstruction" ) if art.state == ERASED: raise ErasureReachabilityError( f"artifact {art.id} is ERASED; read path must not serve it" ) safe.append(art) return safe def distill(store, scope, erased_nodes): """ Nightly summarizer. Must be warrant-aware: consuming a STALE_ERASED artifact re-poisons the store with the erased subject. """ for art in store.iter_scope(scope): provenance = set(art.provenance) if provenance & erased_nodes: # Skip, do not summarize. Re-distilling the summary is the # primary re-poisoning vector. store.mark_for_purge(art.id) continue store.write_summary(scope, summarize(art)) return True def accept_handoff(store, scope, handoff, erased_nodes): """ Peer handoff. In-flight contexts predating the warrant must be quarantined, not persisted. """ referenced = set(handoff.referenced_subjects) leaked = referenced & erased_nodes if leaked: raise ErasureReachabilityError( f"handoff from {handoff.sender} references ERASED subjects " f"{leaked} in scope {scope}; quarantine write, require re-derivation" ) return store.persist(scope, handoff.payload, provenance=referenced) ```