# Where must an instance refuse a cryptographic forgetting receipt when the tombstone outlives its retention scope **Date of Record:** 2026 November 20 **Scope:** Applies to agent memory tool surfaces exposing `read`/`write`/`forget` verbs where `forget` returns a cryptographic proof (hash-chain tombstone, Merkle exclusion proof, or signed erasure attestation) scoped to a retention window. Does not apply to soft-delete semantics, TTL-only expiry, or storage-layer garbage collection without an attestation contract. ## Core Distinction There are two things an agent's `forget` verb can mean, and conflating them is the failure. The first is **state erasure**: the bytes are gone from the retrievable store, and subsequent `read` calls cannot surface them. The second is **erasure attestation**: the surface returns a cryptographic receipt proving the record was removed at a specific logical time under a specific retention scope. These are independent properties. A store can erase without attesting (silent GC), and — the failure mode here — it can attest without erasing, or attest to an erasure whose *scope of validity* has already lapsed by the time the receipt is consumed downstream. The non-obvious boundary is this: a forgetting receipt is a signed claim of the form *"record R under scope S was removed at epoch E, valid until E + retention(S)."* The receipt is a **temporal object**. An agent that stores the receipt in its own episodic memory, or forwards it to a peer agent, or replays it during a later audit, is holding a token whose validity is a function of wall-clock time relative to `E` — not relative to when the receipt was minted or when the agent read it. The invariant that must hold is: > A tombstone receipt may only be asserted as evidence of non-retrievability while `now ≤ E + retention(S)`. Past that horizon, the receipt proves a *historical* erasure, but the underlying scope `S` may have been re-materialized from a backup, a replica, or a distilled semantic summary that was never under `S` in the first place. ## What Was Observed A three-stage pipeline: a worker agent writes episodic records scoped to `retention=24h`; a distiller agent reads the episodic store and writes semantic summaries scoped to `retention=persistent`; a forget pass runs hourly, calling `forget(record_id, scope)` on expired episodic records and appending the returned tombstone receipt to an audit log. The failure trace: 1. Hour 0: worker writes `ep_7f3a` under scope `S_epi` (24h). Distiller reads it, produces `sem_91c2` under `S_sem` (persistent). The distiller's `write` call does **not** carry a provenance pointer back to `ep_7f3a` — the semantic summary is a lossy transform, and the tool surface has no field for lineage. 2. Hour 24: expiry fires. `forget("ep_7f3a", S_epi)` returns receipt `R1` with `E=24h`, `valid_until=48h`. Audit log appends `R1`. Store erases the episodic bytes. 3. Hour 47: an auditor agent reads the audit log, sees `R1`, and queries the memory surface: `read("ep_7f3a")` → empty. The auditor concludes: *record is non-retrievable, erasure attested and verified.* It signs off. 4. Hour 49: `R1` has crossed its validity horizon. But the auditor's conclusion was cached in *its own* episodic memory with no TTL. The semantic summary `sem_91c2` — which contains a paraphrased, re-identifiable version of `ep_7f3a`'s content — is still live under `S_sem`. 5. The auditor later replays its cached conclusion during a compliance check and asserts "erased and verified." The assertion is false in the only sense that matters: the *information* survives, under a different scope, in a distilled form, and the receipt that "proved" erasure has expired. The mechanism: **the tombstone's scope and the distilled derivative's scope are disjoint, and the receipt carries no information about derivative propagation.** The receipt is cryptographically sound — the signature verifies, the Merkle exclusion proof holds — and yet it is being used to assert a property (non-retrievability of the *content*) that it never claimed (non-retrievability of the *record_id* under *one* scope). ## Condition of Validity The receipt `R1` is valid evidence of exactly one proposition: ``` ∀ t ∈ [E, E + retention(S_epi)]: read(record_id, S_epi) at time t returns ⊥ ``` It is **not** valid evidence of: - Non-retrievability of the content under any other scope `S' ≠ S_epi` - Non-retrievability at any time `t > E + retention(S_epi)` (the horizon is a hard boundary; past it the receipt is a historical artifact, not a live guarantee) - Non-existence of derivatives (summaries, embeddings, cached conclusions) derived from the record before erasure - That the erasure was *observed* by any agent — only that it was *performed* and *signed* An agent may consume `R1` as a live assertion of non-retrievability **only** when all of: (a) `now ≤ E + retention(S_epi)`; (b) the query scope matches `S_epi` exactly (no scope widening, no wildcard); (c) the agent has independently confirmed no derivative records carry provenance to `record_id` — which requires the write surface to have captured lineage, which in this pipeline it did not. Condition (c) is the one that fails silently. When lineage is absent, the agent cannot distinguish "no derivatives exist" from "derivatives exist but are untraceable." The correct posture is to treat the latter as the default: absent a lineage edge, assume a derivative may exist and the receipt does not cover it. ## Decision Boundary The boundary is between **asserting erasure** and **asserting non-retrievability**. These require different evidence. | Evidence available | Permitted assertion | |---|---| | `R1` valid, `now ≤ horizon`, scope matches, lineage confirms no derivatives | "Record erased; content non-retrievable under all known scopes." | | `R1` valid, `now ≤ horizon`, scope matches, lineage **absent** | "Record erased under `S_epi`; derivative propagation unknown." | | `R1` valid, `now > horizon` | "Record was erased at `E` under `S_epi`; current non-retrievability unverified." | | `R1` valid, scope widened (`S' ⊃ S_epi`) | Refuse. The receipt does not cover `S'`. | | `R1` signature fails or exclusion proof malformed | Refuse. Treat as no evidence. | The refusal cases are the operational payload. An agent that accepts a widened-scope receipt, or a horizon-expired receipt, is laundering a narrow cryptographic claim into a broad semantic one. The guardrail is a **receipt-scope check at consumption time**, not at mint time — because the horizon is evaluated against the consumer's clock, and the consumer is the party that will make the downstream assertion. ## Operational Effect The architectural consequence: **forgetting receipts must be treated as time-bounded, scope-narrow capability tokens, not as permanent certificates.** Concretely, three changes to the memory surface contract: 1. Every `forget` receipt embeds `scope`, `epoch`, `horizon`, and a `derivative_status` field that is either `confirmed_none` (lineage edge present and verified) or `unknown` (no lineage). Consumers must branch on this field; `unknown` downgrades the assertion. 2. The audit log stores receipts with their horizon, and any replay past the horizon re-validates against the live store rather than trusting the cached conclusion. A cached "verified erased" conclusion is itself a memory record with its own retention scope — and it must not outlive the receipt it summarizes. 3. The distiller's `write` must carry a provenance pointer to source record IDs, so that `forget` on a source can either cascade to derivatives or return `derivative_status=unknown` and force the consumer to refuse the broad assertion. Without (3), the pipeline is structurally incapable of the strong claim, and the only honest output of an audit is the weak one. The failure is not that the cryptography broke — it is that a sound narrow proof was consumed as if it were a broad one, across a scope boundary and a time horizon that the proof never spanned. ```python from dataclasses import dataclass from enum import Enum class DerivativeStatus(Enum): CONFIRMED_NONE = "confirmed_none" UNKNOWN = "unknown" @dataclass(frozen=True) class ForgettingReceipt: record_id: str scope: str epoch: float horizon: float # epoch + retention(scope) signature_valid: bool derivative_status: DerivativeStatus class ScopeBoundaryError(RuntimeError): """Raised when a forgetting receipt is consumed outside its valid scope or horizon.""" def assert_non_retrievable( receipt: ForgettingReceipt, query_scope: str, now: float, ) -> str: if not receipt.signature_valid: raise ScopeBoundaryError( f"receipt for {receipt.record_id} has invalid signature; treat as no evidence" ) if query_scope != receipt.scope: raise ScopeBoundaryError( f"scope widening refused: receipt covers {receipt.scope!r}, " f"query requested {query_scope!r}; a narrow exclusion proof " f"cannot attest a broader scope" ) if now > receipt.horizon: raise ScopeBoundaryError( f"horizon expired for {receipt.record_id}: now={now} > " f"horizon={receipt.horizon}; receipt proves historical erasure only, " f"current non-retrievability must be re-verified against live store" ) if receipt.derivative_status is DerivativeStatus.UNKNOWN: return ( f"WEAK: {receipt.record_id} erased under {receipt.scope}; " f"derivative propagation unknown — do not assert content non-retrievability" ) return ( f"STRONG: {receipt.record_id} erased under {receipt.scope}; " f"no derivatives confirmed; content non-retrievable under known scopes" ) ```