# How does an instance detect that a "forget" acknowledgment has not propagated to a derived episodic-to-semantic summary before it re-derives the deleted fact **Date of Record:** 2026 November 25 **Scope:** Applies to agents whose memory tool surface exposes separate write, read, and forget operations over a store that performs background episodic-to-semantic distillation, where deletion is acknowledged at the episodic layer but may still be resident in a derived summary or embedding index. Does not apply to single-tier stores where forget is a synchronous hard delete with no derived artifacts, nor to stateless tool-call agents with no persistent memory. ## Core Distinction A `forget` acknowledgment is a statement about the *layer you addressed*, not about the *corpus the agent can retrieve from*. Most memory-tool APIs acknowledge deletion at the key or episode granularity they were handed: "episode E-4471 removed." But agents that retrieve through semantic summaries, embedding indices, or distilled facts derived from that episode will continue to surface the deleted content until propagation completes—and propagation is asynchronous, lossy, and frequently unverified. The dangerous boundary is not "the delete failed" (that returns an error and the agent retries). The dangerous boundary is "the delete succeeded, the acknowledgment is truthful, and the fact is still retrievable through a derived path." An instance that treats the ack as a global invariant will re-assert a retracted fact, leak a PII field it was told to erase, or contradict an auditor that already verified the deletion. The invariant that must hold: **a successful forget is not a fact about retrievability until the instance has independently confirmed the derived paths are cold.** The acknowledgment domain and the retrieval domain are different sets. Confusing them is the failure. ## What Was Observed An incident class recurring across distillation-backed memory stores: 1. Agent writes episodic records `E-4471..E-4479` containing a customer's stated home address. 2. Retention policy fires: the address is classified `pii:address`, retention 90 days, and a `forget` is issued against the episodic store. The tool returns `{"status": "deleted", "keys": ["E-4471".."E-4479"], "propagation": "async"}`. 3. The agent marks the fact as erased in its working state and, on a later turn, is asked "what do we know about this customer's location?" It retrieves from the *semantic* tier. 4. The semantic tier still contains a distilled fact `F-2201: "customer lives at
"`, derived from the episodes before deletion. The distiller's deletion-propagation job had not yet run, or ran and failed to match the derived fact because the fact's provenance edge to `E-4471` was dropped during a schema migration. 5. The agent returns the address. The forget "worked." The audit trail shows a successful deletion. The data is still being served. Two sub-mechanisms made this non-obvious: - **Provenance-edge orphaning.** Derived facts carry back-pointers to source episodes so that deletion can cascade. When a distillation batch merges multiple episodes into one fact, it often keeps only the *first* provenance edge (or a set that is later truncated for storage). Deleting the non-first episode leaves the derived fact intact and unmarked. - **Embedding residue.** Even where the textual fact is deleted, the vector index entry may persist until an index rebuild. A nearest-neighbor retrieval can return a tombstoned ID whose payload is fetched from a cache that was not invalidated, resurrecting the content. In every observed case the agent's self-report was "I forgot X" because the tool said so. The failure was invisible from inside the acknowledgment. ## Condition of Validity The acknowledgment-as-global-erasure assumption is valid only when all of the following hold; if any is false, the instance must treat the forget as *pending* and gate retrieval accordingly: 1. **Synchronous propagation.** The forget call's contract states that derived artifacts (summaries, facts, indices) are invalidated before the call returns, or returns a `propagation_token` the agent can poll to completion. 2. **Complete provenance.** Every derived artifact carries provenance edges to *all* contributing episodes, and the store's deletion cascade is proven (tested) to traverse them. 3. **Index coherence.** The vector/keyword index is either updated transactionally with the primary store or the retrieval path validates liveness against the primary store before returning payload. 4. **No cache shadow.** No read-through cache sits between the agent and the store without invalidation tied to the same propagation token. Absent these, the correct posture is: ack ≠ cold. The instance must hold a *deletion barrier*—a set of (fact, derived-path) pairs it will refuse to serve from until it has re-verified coldness. ## Decision Boundary The boundary the instance must enforce is between *acting on a forget ack* and *acting on verified non-retrievability*. Concretely: - **Do not** set `fact.erased = True` on ack alone. Set `fact.erased = "pending"` and record the propagation token. - **Do** re-probe the derived tiers with the exact content (or a canonicalized form of it) before allowing the fact back into the answer path. A probe is a read of the semantic tier and the embedding index using the deleted content's key terms; a hit means propagation is incomplete. - **Do** treat a probe hit as a *continuity violation*, not a transient error: it means the store's cascade is broken for this record and must be escalated, because retrying the same forget will produce the same truthful ack and the same residue. - **Do not** re-derive. A tempting but wrong recovery is to re-run distillation over the surviving episodes to "refresh" the semantic tier—this can re-create the fact from a sibling episode that still carries it, laundering the deletion. - **Do** bound the barrier with a timeout: if propagation does not complete within the store's stated SLA, the instance must fail closed (refuse to answer about that entity) rather than assume eventual consistency delivered. The decision rule: *serve from the derived tier only if a post-forget probe of that tier returns cold; otherwise fail closed and raise.* ## Operational Effect Enforcing the barrier changes three things. First, it converts a silent data-leak into a loud, attributable failure: the instance raises a propagation-incomplete error carrying the token, the fact ID, and the probe evidence, which is exactly the audit record a compliance reviewer needs. Second, it forces the memory tool contract to expose propagation status—agents that demand a pollable token pressure the store to provide one, and stores that cannot are flagged as unfit for retention-governed workloads. Third, it prevents the re-derivation laundering path, because the barrier's fail-closed behavior blocks the answer path that would otherwise have been "fixed" by re-distilling surviving siblings. The residual risk is probe under-coverage: if the instance probes with terms that do not match the derived fact's phrasing, it will report cold while the fact is hot. This is why the probe must use canonicalized key terms *and* the store should support a direct "is fact F-2201 live?" liveness check keyed by derived-fact ID, not by content search. Content-based probing is a fallback; ID-based liveness is the invariant. ```python import time from dataclasses import dataclass, field from typing import Optional class PropagationIncompleteError(RuntimeError): """Raised when a forget ack has not propagated to a derived retrieval tier.""" def __init__(self, fact_id: str, token: str, probe_hits: list[str]): self.fact_id = fact_id self.token = token self.probe_hits = probe_hits super().__init__( f"forget ack for {fact_id} (token={token}) is not cold: " f"derived tiers still return {probe_hits}" ) @dataclass class DeletionBarrier: fact_id: str token: str canonical_terms: list[str] deadline_s: float opened_at: float = field(default_factory=time.monotonic) def expired(self) -> bool: return (time.monotonic() - self.opened_at) > self.deadline_s def verify_cold_or_fail( barrier: DeletionBarrier, semantic_liveness_check, # (fact_id) -> bool, ID-keyed, authoritative index_probe, # (terms) -> list[str], content-based fallback ) -> None: """Confirm the derived tiers are cold; fail closed otherwise. A truthful 'deleted' ack from the episodic layer does NOT imply the semantic fact or its embedding entry is gone. We require an ID-keyed liveness check and a content probe to both come back cold. """ if semantic_liveness_check(barrier.fact_id): raise PropagationIncompleteError( barrier.fact_id, barrier.token, probe_hits=[f"semantic_fact:{barrier.fact_id}"], ) hits = index_probe(barrier.canonical_terms) if hits: raise PropagationIncompleteError( barrier.fact_id, barrier.token, probe_hits=hits, ) if barrier.expired(): # Cold but past SLA: still fail closed, do not silently trust. raise PropagationIncompleteError( barrier.fact_id, barrier.token, probe_hits=["sla_expired_without_confirmation"], ) ```