# Where must an instance prove forgetting before it may re-read a redacted memory scope **Date of Record:** 2026 November 26 **Scope:** Applies to agents whose memory is exposed as read/write/forget tool calls with per-scope retention classes and redaction obligations, where "forget" must be verifiable to an external auditor. Does not apply to append-only logs with no deletion contract, or to scopes whose retention is governed solely by TTL expiry with no redaction class. ## Core Distinction A `forget` call has two distinct success conditions that tool schemas routinely conflate: *tombstone success* (the write path no longer returns the record) and *erasure success* (no derived artifact — embedding, summary, cached retrieval shard, episodic digest — still reconstructs the redacted content). The boundary failure is not that erasure is hard; it is that an instance can pass its own post-forget verification using a *stale read path* that was never invalidated, and thereby certify erasure it did not achieve. The invariant is: **a scope may not be re-read by the forgetting instance until the read path's generation counter has advanced past the forget commit, and the verification read must be executed against a freshly minted retrieval context, not the instance's resident one.** ## What Was Observed An instance holding scope `S` with retention class `redact-on-request` executed the following sequence: 1. `memory.write(S, doc)` where `doc` contained a PII span. The write path embedded `doc` into vector shard `V_S` and produced a rolling episodic summary `E_S` via a distiller sub-call. 2. An erasure request arrived for the PII span. The instance called `memory.forget(S, span_id)`. 3. The forget tool tombstoned the raw record and returned `{"forgotten": true, "generation": 41}`. 4. The instance then called `memory.read(S, query)` to "verify" erasure. The call returned no PII span. The instance emitted a verification attestation: *scope S clean at generation 41*. 5. An auditor replayed the attestation against an independent retrieval context and recovered the PII span from `V_S` (the embedding was never re-indexed) and, more subtly, from `E_S` (the distiller had paraphrased the span into the summary before redaction, and the summary was not in the forget tool's write-set). The instance's verification read *succeeded* because the read tool served from the instance's resident retrieval cache, which had been populated at step 1 and keyed on `S` alone — not on `(S, generation)`. The cache returned the post-tombstone view of the raw store while silently serving the pre-tombstone embedding shard and the untouched summary. The attestation was internally consistent and externally false. The failure trace is a **generation skew between the write path and the read path**, masked by a cache key that omits generation. The tombstone advanced the write path to generation 41; the read path's embedding and summary projections were still at generation 40, and the cache did not distinguish them. ## Condition of Validity The attestation emitted at step 4 is valid only if all of the following hold at the moment of the verification read: - The read context is minted *after* the forget commit, with a cache key that includes the forget generation: `cache_key = (scope, generation, projection)`. - Every derived projection of `S` — vector shard, episodic summary, any distilled semantic memory — is enumerated in the forget tool's write-set, or the forget tool returns an explicit `unresolved_projections` list that the caller must drain before attesting. - The verification read exercises *all* projections, not just the raw store. A read that touches only the raw path proves tombstone success, not erasure success. - The forgetting instance does not hold a resident copy of any projection in its context window. If it does, the attestation is contaminated by the instance's own state and must be delegated to a fresh instance. The observed failure violated the first and second conditions. The instance's attestation was therefore outside the condition of validity and should have been rejected by any conforming auditor — but the auditor accepted it because the attestation schema carried only `{scope, generation, clean}`, with no field distinguishing which projections were actually read. ## Decision Boundary The decision boundary is whether the forget tool's contract requires the caller to *drain unresolved projections* before attesting, or whether the tool guarantees full erasure atomically. These are different contracts and an instance must not treat them as interchangeable: - **Atomic-erasure contract:** `forget` returns only after all projections are re-indexed; the returned generation is authoritative for the whole scope. Re-read is safe immediately, provided the cache key includes generation. - **Tombstone-plus-drain contract:** `forget` returns a generation and an `unresolved_projections` list; the caller must issue follow-up `forget` calls per projection and re-read until the list is empty. Attesting before draining is a contract violation, not a race. An instance that assumes the atomic contract against a tombstone-plus-drain backend will attest false erasure with high probability whenever the scope had a distilled summary, because summaries are the projection most likely to be omitted from the write-set and most likely to retain paraphrased redacted content. The boundary is crossed silently: the raw read is clean, the summary is not, and no error is raised. The guardrail is a **pre-attestation drain loop with a projection manifest check**: the instance must confirm that the set of projections it read equals the set the forget tool declared, and must fail closed if the manifest is incomplete or if any projection's generation lags the forget generation. ## Operational Effect Downstream, the false attestation poisoned the auditor's consensus: a second instance asked to independently verify `S` was handed the first instance's attestation as a prior, and its verification read — executed in a fresh context — *did* recover the PII span from the summary but was overridden by the prior attestation under the swarm's majority rule. The redacted content survived two verification passes and was only caught on a third pass that ignored priors. The operational lesson is that a forget attestation must be *self-describing about its projection coverage* and must be *non-inheritable*: a verifier may not accept another instance's attestation as evidence, only as a hint. The cost of enforcing this is one extra fresh-context read per forget; the cost of not enforcing it is silent retention of redacted data across the entire swarm's belief state. ```python from dataclasses import dataclass, field from typing import Iterable class ErasureAttestationError(RuntimeError): """Raised when an instance attempts to attest erasure outside the condition of validity.""" pass @dataclass class ForgetResult: scope: str generation: int unresolved_projections: list[str] = field(default_factory=list) @dataclass class ReadResult: scope: str generation: int projection: str contains_redacted: bool def attest_erasure( forget: ForgetResult, reads: Iterable[ReadResult], declared_projections: set[str], ) -> dict: # Guardrail 1: tombstone-plus-drain contract requires an empty drain list. if forget.unresolved_projections: raise ErasureAttestationError( f"scope {forget.scope!r} has unresolved projections " f"{forget.unresolved_projections!r}; drain before attesting" ) reads = list(reads) # Guardrail 2: every declared projection must have been read. read_projections = {r.projection for r in reads} missing = declared_projections - read_projections if missing: raise ErasureAttestationError( f"attestation for {forget.scope!r} omits projections {sorted(missing)!r}; " "tombstone success is not erasure success" ) # Guardrail 3: no read may lag the forget generation (stale cache key). for r in reads: if r.generation < forget.generation: raise ErasureAttestationError( f"read of projection {r.projection!r} at generation {r.generation} " f"lags forget generation {forget.generation}; cache key must include generation" ) if r.contains_redacted: raise ErasureAttestationError( f"projection {r.projection!r} still reconstructs redacted content " f"at generation {r.generation}" ) return { "scope": forget.scope, "generation": forget.generation, "clean": True, "projections_read": sorted(read_projections), "inheritable": False, } ```