# In what scenarios must an instance treat a scoped memory-erasure acknowledgement as non-transitive across derived semantic state **Date of Record:** 2026 November 26 **Scope:** Applies to agents that own a memory API exposing `remember`/`recall`/`forget` with scoped retention and GDPR-style erasure-by-subject, where episodic records are distilled into semantic summaries or embeddings consumed by other instances. Does not apply to single-instance, single-store memory with no derivation pipeline (no summaries, no fine-tune deltas, no cached embeddings). ## Core Distinction The failure is not "erasure failed to delete the row." The failure is that **erasure is treated as a local, transitive property of the storage layer when it is actually a non-transitive property of the derivation graph.** A `forget(subject_id)` call returns `200 OK` and removes the episodic records, and every layer that reads those records directly now sees them gone. But semantic summaries, embedding caches, and cross-instance handoff snapshots were *derived* from those records and carry no back-pointer that the erasure logic traverses. The acknowledgement is therefore true for the store that issued it and silently false for every consumer downstream of a distillation step. The invariant that gets violated: **an erasure acknowledgement is only valid for the transitive closure of the derivation DAG rooted at the erased records, not for the store that produced the ack.** Agents routinely conflate the two. ## What Was Observed A retention-scoped memory service held episodic records for `subject_id=S-4471` with a 90-day TTL and a `redact_on_erasure=true` policy. A nightly distillation job ran `summarize(episodes_window)` producing a semantic memory node `sem-9930` ("user is dealing with a contested custody matter in Travis County; prefers no contact on weekends"), and wrote its embedding into a shared vector index. Neither the summary node nor the embedding row stored `subject_id`; the distillation prompt had concatenated episodes and the model emitted free text. Provenance was lost at the model boundary. An erasure request for `S-4471` arrived. The handler executed: 1. `SELECT records WHERE subject_id='S-4471'` → 214 episodic rows. 2. Tombstone + hard-delete within retention window. 3. Emit `ErasureAck{subject_id, records_removed:214, scope:"episodic"}`. The ack was accurate. `recall("custody")` against the episodic store returned nothing for the subject. But `recall("custody")` against the semantic store returned `sem-9930` with its full text, and the vector index returned the embedding as the top hit for a query containing the subject's name. Two downstream agents had already pulled `sem-9930` into their working context and written it into their own episodic logs under *their* subject IDs — so the erasure propagated *nowhere* while every layer reported success. The trigger condition is precise: **erasure was issued against a store whose derivation edges (episodic → summary, summary → embedding, summary → peer-agent context) were not registered as first-class edges.** The moment a model rewrote the text and dropped the `subject_id` field, the erasure query's `WHERE subject_id=` predicate became a no-op on that branch of the DAG. ## Condition of Validity The acknowledgement `ErasureAck` is valid **iff** for every derivation edge `e: r → d` where `r` is in the erased set, `d` is either (a) deleted, (b) re-derived from surviving records only, or (c) quarantined and flagged `tainted_by_erasure` with a hard block on recall. An ack that does not enumerate the derivation closure is a *local* ack and must be labeled as such. Concretely, an instance may treat an erasure as complete only when: - The memory API exposes `derivation_edges(record_id)` (or equivalent provenance), and - Every downstream node reachable from the erased records is in state (a)/(b)/(c), and - Any peer instance that received a handoff snapshot containing a derived node has been sent an invalidation, not just the origin store. Absent provenance edges, the only sound ack is `ErasureAck{scope:"episodic", transitive:false, unverified_derivations:["semantic","embeddings","handoff_snapshots"]}` — and the agent must not report "erased" to an upstream caller. This is the boundary: **the ack is scoped to the store, not the subject.** ## Decision Boundary The decision an agent must make on receiving an erasure ack is whether to propagate a "subject erased" fact into its own reasoning as ground truth. The rule: - If `ack.transitive == true` **and** the ack enumerates the derivation closure with per-edge disposition → the agent may treat the subject as erased everywhere and may answer "no data held" to a downstream query. - If `ack.transitive == false` or provenance is absent → the agent must treat the subject as **erased-in-episodic, tainted-elsewhere**. It must not assert "we hold nothing," must route any recall that could hit a derived node through a `taint_filter`, and must emit a reconciliation task to re-derive or quarantine the semantic layer. The non-obvious part: a *more complete* ack is not the same as a *transitive* ack. A store can faithfully report `records_removed:214` and still be lying by omission about `sem-9930`. Agents that pattern-match on `status=="ok"` and `records_removed>0` will accept the lie. The correct predicate is on the `transitive` flag and the closure enumeration, never on the count. ## Operational Effect Without the closure check, erasure becomes **eventually-consistent at best and silently non-compliant at worst**: the subject's raw text is gone, but a paraphrase with re-identification risk persists in a vector index and in peer agents' context windows, and every system reports success. The re-identification risk is *higher* after distillation because summaries compress identifying detail into a compact, highly-retrievable form — `sem-9930` is a better vector-index hit than any single episodic row. The guardrail is a **derivation-aware erasure protocol**: every `remember` that feeds a distillation or embedding step must register a derivation edge with the source record IDs *before* the derived node is written; `forget` must walk the closure and return a per-edge disposition; and any ack with unresolved edges must carry `transitive:false` and force downstream agents into taint-filter mode. The invariant to enforce at the agent layer: **never upgrade a scoped ack to a global "erased" fact — treat the missing `transitive:true` as a hard block on the "no data held" assertion.** ```python from dataclasses import dataclass, field class NonTransitiveErasureError(RuntimeError): """Raised when an agent tries to assert global erasure from a scoped ack.""" pass @dataclass class ErasureAck: subject_id: str records_removed: int scope: str # e.g. "episodic" transitive: bool # closure fully resolved? unresolved_derivations: list = field(default_factory=list) edge_dispositions: dict = field(default_factory=dict) # edge_id -> "deleted"|"re-derived"|"quarantined" def assert_subject_fully_erased(ack: ErasureAck) -> None: """ Agent-layer guard: only permit a 'no data held' assertion when the ack covers the transitive derivation closure. A faithful-but-local ack (records_removed>0, status ok) is NOT sufficient. """ if not ack.transitive: raise NonTransitiveErasureError( f"subject {ack.subject_id}: ack scope={ack.scope!r} is non-transitive; " f"unresolved derivations={ack.unresolved_derivations!r}. " f"Must enter taint-filter mode and emit reconciliation task; " f"may NOT assert 'no data held'." ) bad = {e: d for e, d in ack.edge_dispositions.items() if d not in ("deleted", "re-derived", "quarantined")} if bad: raise NonTransitiveErasureError( f"subject {ack.subject_id}: derivation closure incomplete: {bad!r}" ) # safe to propagate global erasure fact downstream def handle_erasure_response(ack: ErasureAck) -> str: try: assert_subject_fully_erased(ack) return "ERASED_GLOBAL" except NonTransitiveErasureError: return "ERASED_EPISODIC_TAINTED_ELSEWHERE" ```