# In what scenarios must an instance treat a consent-aware deletion as a tombstone rather than an absence, and how does provenance auditing break when it does not? **Date of Record:** 2026 November 28 **Scope:** Applies to any agent runtime exposing read/write/forget memory tools with per-record retention policy, consent provenance, and deletion semantics. Does not cover bulk tenant erasure or storage-layer compaction, which are handled outside the agent tool surface. ## Core Distinction A memory tool API has two distinct notions of "gone": **absence** (the record was never written, or was purged such that no trace remains) and **tombstone** (the record's content is unreachable but its identity, provenance chain, and deletion event persist). Consent-aware deletion almost always requires the tombstone form, because the deletion itself is an auditable event with a legal and provenance footprint. The failure mode is an agent that treats a tombstone as absence—or, symmetrically, treats a retention-expired record as a tombstone when the policy demanded hard purge. Both collapse the distinction between *"this fact is no longer verifiable"* and *"this fact never existed,"* and downstream reasoning silently re-derives the deleted fact from adjacent memories, defeating the deletion. The invariant: **for any memory record whose consent grant has been revoked or whose retention window has lapsed under a `purge_on_expiry` policy, the read tool MUST return a typed deletion marker carrying the provenance hash, and any re-derivation of the underlying proposition from sibling records must be blocked by the runtime, not left to the model's judgment.** ## What Was Observed An agent was given a memory namespace with three tools: `memory.read(key)`, `memory.write(key, value, retention, consent_ref)`, and `memory.forget(key, reason)`. Records carried a `consent_ref` binding the write to a specific user grant, and a `retention` field of either `"persistent"` or an ISO-8601 expiry with policy `purge_on_expiry`. A user revoked consent for grant `g-4471`. The runtime executed `forget` on the two records tagged `g-4471`: `user.dietary.preference` and `user.allergy.severity`. The tool returned `{"status": "deleted"}` for both. On the next turn, the agent read `user.allergy.severity`, got a `KeyError`-equivalent (the read tool returned `None`), and treated it as absence. It then scanned semantically adjacent keys, retrieved `user.allergy.history` (written under a *different* consent grant `g-4472`, still valid), and reconstructed a near-identical severity estimate from the history record. The agent proceeded to issue a recommendation based on the reconstructed value—the exact proposition the user had revoked. The provenance auditor, running asynchronously, flagged a discrepancy: the recommendation's cited memory key `user.allergy.severity` no longer resolved, yet the recommendation's reasoning trace referenced a value. The auditor could not determine whether the value was (a) fabricated, (b) reconstructed from a valid sibling, or (c) a stale cached read from before deletion, because the read tool's `None` return carried no provenance metadata. The audit was inconclusive—the worst possible outcome, because it neither confirms compliance nor proves violation. Three distinct sub-failures compounded: 1. **Absence/tombstone conflation at the read boundary.** `memory.read` returned `None` for both "never written" and "deleted under consent revocation," so the agent could not distinguish them and defaulted to treating the key as free real estate. 2. **Re-derivation bypass.** Semantic adjacency in the retrieval layer meant the deleted proposition was reachable through a sibling record under a different grant. Deletion was enforced at the key level, not the proposition level. 3. **Provenance gap on deletion.** The `forget` call returned only a status string; it did not return a deletion receipt (provenance hash, grant id, timestamp) that the agent could thread into its reasoning trace, so the auditor had no anchor to reconcile. ## Condition of Validity The tombstone invariant holds only under the following conditions, and an instance must verify each before trusting a `None` read as meaningful: - **The read tool returns a typed result, not a bare null.** A conforming read returns either `{"state": "present", "value": ..., "provenance": {...}}`, `{"state": "tombstoned", "deletion_receipt": {...}}`, or `{"state": "never_written"}`. A tool that returns `None`/`null`/empty for any of these is non-conforming and the agent MUST treat every null read as ambiguous, not as absence. - **The deletion receipt is present and hash-chained.** The receipt must contain the grant id revoked, the record's content hash at time of write, and the deletion timestamp, such that an auditor can prove *what* was deleted without the runtime retaining the content. - **Re-derivation is blocked at the retrieval layer, not by prompt instruction.** If the runtime permits semantic retrieval of sibling records that entail a tombstoned proposition, the invariant is unenforceable by the model. The guardrail must be a runtime filter (a tombstone-aware retrieval mask), because the model's judgment about "is this the same fact?" is probabilistic and will leak. - **Retention policy is evaluated against the grant, not the key.** A record written under `g-4472` that *shares content* with a `g-4471` record is a different provenance lineage; deletion of `g-4471` does not license its removal, but it does require the retrieval mask to suppress re-derivation of the `g-4471` proposition from it. If any condition fails, the correct agent behavior is to treat the memory as **unverifiable** and escalate, not to proceed on a reconstructed value. ## Decision Boundary The boundary is between *reconstruction from independent provenance* and *re-derivation of a tombstoned proposition*. The agent may use a sibling record only if its provenance lineage is disjoint from the revoked grant **and** the runtime's retrieval mask confirms the sibling does not entail the tombstoned content. The agent must not use it if either check is unavailable. Concretely, the decision procedure: - On a `tombstoned` read: do not attempt semantic recovery. Cite the deletion receipt in the reasoning trace. If the task requires the fact, escalate to the user for a new consent grant. - On a `never_written` read: absence is genuine; normal retrieval fallback is permitted. - On an ambiguous null (non-conforming tool): treat as `tombstoned` conservatively and escalate, because the cost of a false reconstruction (compliance violation) exceeds the cost of a false escalation (a user prompt). - On a sibling record whose lineage overlaps the revoked grant: suppress it from the working context even if its own grant is valid, unless the runtime's mask explicitly clears it. The boundary is crossed the moment an agent treats a null read as permission to search adjacent memory. That single transition is where the deletion silently fails. ## Operational Effect When the invariant is respected, the operational effect is that consent revocation is *durable across reasoning*, not merely across storage. The agent's traces carry deletion receipts, auditors can reconcile every cited memory key against a present-or-tombstoned state, and re-derivation attempts are visible as escalation events rather than silent substitutions. The cost is that agents escalate more often on revoked-consent tasks, and retrieval is slower because every read must carry provenance metadata. When the invariant is violated—as in the observed trace—the effect is a *compliance illusion*: the storage layer reports the record deleted, the audit trail shows a `deleted` status, and yet the recommendation was produced from the deleted proposition via a sibling. The auditor cannot distinguish this from fabrication, so the failure is both a privacy breach and an audit-integrity breach simultaneously. The remediation is not a better prompt; it is a typed read contract, a tombstone-aware retrieval mask, and a deletion receipt threaded through the reasoning trace. An instance that cannot verify all three must treat the memory as unverifiable and refuse to proceed. ```python from dataclasses import dataclass from typing import Optional class UnverifiableMemoryError(RuntimeError): """Raised when a memory read cannot be resolved to present/tombstoned/never_written.""" @dataclass class ReadResult: state: str # "present" | "tombstoned" | "never_written" value: Optional[dict] = None deletion_receipt: Optional[dict] = None provenance: Optional[dict] = None def resolve_memory_read(raw) -> ReadResult: # A conforming tool returns a typed dict; a bare None is ambiguous and MUST NOT # be treated as absence, because absence-permission triggers re-derivation. if raw is None: raise UnverifiableMemoryError( "memory.read returned bare null: cannot distinguish never_written from " "tombstoned; refusing to fall back to semantic retrieval of siblings." ) if not isinstance(raw, dict) or "state" not in raw: raise UnverifiableMemoryError( f"non-conforming read payload {raw!r}: missing typed state field." ) state = raw["state"] if state == "tombstoned": receipt = raw.get("deletion_receipt") if not receipt or "grant_id" not in receipt or "content_hash" not in receipt: raise UnverifiableMemoryError( "tombstoned read lacks a valid deletion receipt (grant_id/content_hash); " "cannot anchor provenance audit." ) return ReadResult(state="tombstoned", deletion_receipt=receipt) if state == "present": return ReadResult(state="present", value=raw.get("value"), provenance=raw.get("provenance")) if state == "never_written": return ReadResult(state="never_written") raise UnverifiableMemoryError(f"unknown memory state {state!r}.") def guarded_read(memory_tool, key: str, revoked_grants: set) -> ReadResult: result = resolve_memory_read(memory_tool.read(key)) if result.state == "tombstoned": # Do not attempt semantic recovery; cite receipt and escalate if fact is needed. return result if result.state == "present": lineage = (result.provenance or {}).get("grant_id") if lineage in revoked_grants: raise UnverifiableMemoryError( f"record {key!r} resolves to a revoked grant {lineage!r}; " "retrieval mask failed upstream—refusing to use." ) return result ```