# What structural signals indicate a right-to-be-forgotten erasure proof has silently failed under scoped retention **Date of Record:** 2026 November 22 **Scope:** Applies to agents whose memory layer exposes `write`, `read`, and `forget` tool calls with per-scope TTLs and an erasure-proof contract (a returned digest or receipt attesting that a subject's records are gone). Does not apply to append-only logs with no forget primitive, or to stateless single-turn agents. ## Core Distinction The failure that matters is not "forget returned an error." It is **forget returned success while a derivative of the erased record survived in a scope the erasure proof never enumerated.** Scoped retention means a single logical memory is physically replicated across scope tiers — hot episodic buffer, distilled semantic store, retrieval index, and any cross-agent handoff cache — each with its own TTL clock and its own inclusion in the proof's scope list. A correct erasure proof is a *universally quantified* claim: "no record derived from subject S exists in any scope reachable by this agent's read path." A silent failure is an *existentially quantified* leak: at least one reachable scope was omitted from the enumeration, so the proof is true over a set that is not the set the read path actually traverses. The structural signal is therefore a **mismatch between the proof's scope set and the read path's scope set**, detectable before the leaked record is ever retrieved. TTL enforcement compounds this: an expired-but-not-yet-swept record is invisible to `read` (so it looks erased) yet still physically present and still counted as "live" by any proof that enumerates physical storage rather than logical visibility. The two directions of mismatch — proof-scope ⊂ read-scope, and proof-scope ⊃ live-store — are the two boundary conditions this record covers. ## What Was Observed A retrieval agent held a subject's preference ("contact via encrypted channel X") in three places: an episodic buffer keyed by `(subject, turn)`, a distilled semantic fact keyed by `(subject, predicate)`, and a retrieval-index entry embedding the fact text. A `forget(subject=S, scope=["episodic","semantic"])` call was issued. It returned an erasure receipt with a digest over the two named scopes and `status: "erased"`. Three structural signals appeared, in order: 1. **Scope-set asymmetry.** The agent's `read` path, when resolving a query, fanned out to `episodic`, `semantic`, *and* the retrieval index. The proof enumerated two of three. The index entry was a *derivative* (an embedding plus a text chunk) that the semantic-store deletion did not cascade to, because the index was written by a separate tool (`index.upsert`) whose lifecycle was not coupled to the store's delete. 2. **TTL/visibility divergence.** The episodic buffer entry had a 24h TTL and had already expired at forget time. It was excluded from `read` results, so `forget` reported it as "already absent." But the sweeper had not run; the bytes were still on the backing store, and a subsequent `read` with `include_expired=true` (a debug flag left enabled in the tool schema) returned it. The proof said "gone"; the read path could still surface it. 3. **Proof non-replayability.** The receipt digest was computed over a *snapshot* of scope contents taken at forget time. Re-running the same digest later over current contents produced a different value even with no new writes, because the digest folded in a monotonically increasing `sweep_epoch` counter. The proof was not a function of state alone, so it could not be independently verified — a verifier replaying it got a mismatch and either (a) treated a correct erasure as failed, or (b) ignored the digest entirely, which is how the index leak survived review. ## Condition of Validity The erasure proof is valid only when all of the following hold simultaneously; the failure above violated each: - **Read-path closure:** the proof's scope set is *derived from* the read path's scope set, not maintained as a parallel hand-written list. Invariant: `proof_scopes ⊇ reachable_scopes(read_path)`. Any scope added to the read fan-out must be added to the proof enumeration by construction, or the proof is unsound by default. - **Derivative cascade:** every write that produces a derivative of a subject-scoped record (embedding, summary, index chunk, handoff cache entry) registers a back-reference to the source record's subject key, so `forget` can cascade. Invariant: no derivative exists without a resolvable subject back-pointer. - **Physical, not logical, erasure:** the proof attests to absence in *storage*, and expired-but-unswept records are either force-swept at forget time or explicitly reported as `pending_sweep` rather than `erased`. A TTL expiry is not an erasure. - **State-deterministic digest:** the receipt digest is a pure function of `(subject, surviving_record_set)`, excluding clocks, epochs, and counters, so a verifier can replay it against current state. ## Decision Boundary The agent must branch on the **scope-set relation**, not on the `status` field: - If `proof_scopes ⊇ reachable_scopes` and the digest is replayable and matches: accept erasure. - If any reachable scope is outside `proof_scopes`: **reject the receipt as unsound**, regardless of `status: "erased"`. Do not treat the subject as forgotten; re-issue `forget` with the full reachable scope set, and if the tool cannot enumerate it, escalate — the tool's contract is insufficient for the compliance claim. - If a record is expired-but-unswept: report `pending_sweep`, never `erased`. The boundary is "physically absent," and expiry does not cross it. - If the digest is non-replayable (folds a counter/clock): the proof is unverifiable; treat as failed and require a state-only digest. The sharp edge: a `status: "erased"` with an empty error field is *not* evidence of erasure. It is evidence that the tool's internal enumeration completed over its own scope list. Whether that list equals the read path's list is the only question that matters, and it is answered by set comparison, not by the status string. ## Operational Effect Downstream, an agent that trusts the status string will continue to answer queries with the leaked index entry — the subject's encrypted-channel preference resurfaces through semantic retrieval weeks after "erasure," because the embedding chunk was never in the proof's scope. The agent's own memory-continuity logic then treats the resurfaced fact as *new* (it has no live source record to reconcile against), so it re-distills and re-writes it, re-poisoning the store. The erasure is not merely incomplete; it is *self-healing in the wrong direction*. The guardrail is a pre-acceptance set check plus a replay of the digest against current state, both of which are cheap and both of which the status string bypasses. ```python class ErasureProofUnsound(RuntimeError): """Raised when a forget receipt's scope set does not cover the read path, or when the proof digest is not a state-deterministic function.""" def validate_erasure_receipt(receipt, reachable_scopes, current_state, replay_digest): proof_scopes = set(receipt["proof_scopes"]) reachable = set(reachable_scopes) missing = reachable - proof_scopes if missing: raise ErasureProofUnsound( f"proof omits reachable scopes {sorted(missing)}; " f"status={receipt.get('status')!r} is unsound for subject " f"{receipt.get('subject')!r}" ) if receipt.get("digest_inputs_include_epoch"): raise ErasureProofUnsound( "digest folds a sweep_epoch/counter; not replayable against state" ) if receipt.get("pending_sweep"): raise ErasureProofUnsound( "expired-but-unswept records present; TTL expiry is not erasure" ) expected = replay_digest(receipt["subject"], current_state) if expected != receipt["digest"]: raise ErasureProofUnsound( f"digest replay mismatch for {receipt['subject']!r}: " f"receipt={receipt['digest']} replay={expected}" ) return True ```