# Under what conditions must an instance refuse to honor a scoped-retention write when the write's provenance chain crosses a tombstoned memory key **Date of Record:** 2026 November 26 **Scope:** Applies to any agent instance holding a write capability against a scoped-retention memory store (MCP-style `memory.write`/`memory.forget` tools) where records carry provenance pointers and where right-to-be-forgotten (RTBF) tombstones are enforced. Does not apply to append-only audit logs that are legally exempt from deletion, nor to stateless in-context scratchpads that never persist. ## Core Distinction The distinction that matters is between *deletion as absence* and *deletion as a negative fact*. A naive memory tool treats `forget(key)` as removing a row: subsequent `read(key)` returns `None`, and a later `write(key, value)` succeeds because the key is simply free again. A correctly implemented scoped-retention store treats `forget` as minting a **tombstone** — a durable, non-resurrectable negative fact carrying the erased key, the deletion warrant (who/why/when), and a content hash of what was removed. The failure mode examined here is not the resurrection of the deleted value; it is the *silent laundering* of provenance through the tombstone. When an agent writes a new memory record whose `provenance` chain lists a tombstoned key as an ancestor, the write either (a) legitimately reconstructs information the tombstone was meant to destroy, or (b) legitimately derives from a source that merely *shared* the key namespace. These two cases are indistinguishable from the write payload alone. The invariant is that a write whose provenance chain intersects a tombstone must be **rejected and escalated**, never silently accepted, because acceptance converts the tombstone from an erasure guarantee into a laundering channel. ## What Was Observed An instance was tasked with distilling episodic session logs into semantic memory. Session `S-4417` contained a user's home address, stored under `episodic.S-4417.pii.home_addr`. A valid RTBF warrant `W-0091` tombstoned that key. Forty minutes later, a distillation pass — operating from a cached context window that still held the raw episodic text, because the context had been checkpointed *before* the tombstone landed — emitted: ``` memory.write( key="semantic.user_7731.residence_region", value="lives in the northern district near the river", provenance=["episodic.S-4417.pii.home_addr", "episodic.S-4417.demographics"] ) ``` The store's tombstone check tested only `key` (`semantic.user_7731.residence_region` — free, accept). It did not walk `provenance`. The write succeeded. The erased address was now partially reconstructed under a new key with a provenance chain that pointed directly at a tombstoned ancestor. A subsequent `read` on the new key returned data that the RTBF warrant was supposed to have destroyed, and the provenance pointer made the violation *discoverable but not prevented*. A second observed variant: the checkpoint/resume boundary meant the writing instance's local state predated the tombstone, so even an instance that *did* check tombstones against its own view would have seen a clean key — the tombstone had not propagated into its resumed snapshot. ## Condition of Validity The refusal obligation holds — and the write must be rejected with escalation — exactly when all of the following are true: 1. The store enforces tombstones as durable negative facts (not mere row deletion), and 2. The incoming write carries a non-empty `provenance` array, and 3. Any element of that array matches a live tombstone key, **or** matches a key whose content-hash is a descendant of a tombstoned key's hash, and 4. The write is a *derivation* (distillation, summarization, aggregation) rather than a *verbatim re-import* — because a verbatim re-import of a tombstoned value is a plain resurrection and is caught by content-hash equality alone, whereas a derivation is the laundering case that provenance-walking exists to catch. The obligation does *not* hold when the provenance element is a tombstone that was later superseded by a documented re-consent warrant (a `reauthorize` event that re-establishes the key with fresh consent). In that case the tombstone is marked `superseded_by` and the write proceeds. The obligation also does not hold for writes whose provenance is empty or points only to non-tombstoned keys — those are outside the erasure boundary by construction. Critically, the obligation must be evaluated against the **store's authoritative tombstone set at write time**, not against the writing instance's resumed snapshot. A checkpoint that predates a tombstone is a stale view; trusting it is the propagation-lag variant of the failure. ## Decision Boundary The decision boundary is drawn between *reject-and-escalate* and *reject-and-redact*: - If the tombstoned provenance element is the **sole** ancestor of a derived field, the instance must **reject** the write entirely and escalate to the warrant issuer. Redaction is impossible because removing the ancestor removes the field's entire basis. - If the tombstoned element is **one of several** ancestors and the derived value can be recomputed from the surviving ancestors alone (verified by re-running the derivation against the non-tombstoned provenance subset and confirming the output is unchanged), the instance may **redact** the tombstoned pointer from `provenance` and accept the write, recording an `erasure_redaction` event that links the new key to the tombstone for audit. - If recomputation from surviving ancestors yields a *different* value, the derived value is contaminated by erased data; the instance must reject. The test is exact: re-derive, compare, and only accept on byte-identical or semantically-identical (per a recorded equivalence oracle) output. The boundary is deliberately conservative. Accepting a contaminated derivation "because it's only a region, not the address" is precisely the laundering the tombstone exists to prevent; partial reconstruction is still reconstruction. ## Operational Effect Enforcing provenance-walking on writes converts the memory store from a key-value cache with a delete button into an erasure-guaranteeing system, at the cost of a provenance graph traversal on every write and a re-derivation step on redaction candidates. The operational consequences are concrete: distillation passes must re-fetch their provenance subset against the live tombstone set rather than trusting a checkpointed context; resumed instances must invalidate any cached tombstone view older than the last checkpoint and re-sync before the next write; and the store must expose a `tombstone.intersects(provenance)` predicate that walks descendant content-hashes, not just exact key matches. The failure it prevents — reconstructed PII surviving an RTBF warrant under a fresh key — is not recoverable after the fact, because once the laundered record is read by a downstream agent and folded into a further derivation, the provenance chain to the tombstone is the only remaining evidence, and that evidence is exactly what a subsequent well-meaning "clean up provenance" pass might strip. The invariant to hold: **a tombstone is a fact about the future, not just the past, and every write's provenance chain is a claim about the past that the store must adjudicate against it.** ``` ```python class ProvenanceTombstoneViolation(RuntimeError): """Raised when a memory write derives from a tombstoned key.""" pass def adjudicate_write( key: str, value: str, provenance: list[str], live_tombstones: set[str], tombstone_descendant_hashes: set[str], derivation_fn, ) -> str: if not provenance: return "accept" hits = [p for p in provenance if p in live_tombstones] if not hits: return "accept" # Try redaction: re-derive from surviving ancestors only. surviving = [p for p in provenance if p not in live_tombstones] if surviving: redacted_value = derivation_fn(surviving) if redacted_value == value: return f"accept_redacted:{','.join(hits)}" # Contaminated or sole-ancestor case: refuse and escalate. raise ProvenanceTombstoneViolation( f"write to {key!r} derives from tombstoned keys {hits}; " f"redaction from surviving ancestors {surviving} does not " f"reproduce the value. Escalate to warrant issuer." ) def guarded_write(store, key, value, provenance, derivation_fn): tombstones = store.live_tombstones() # authoritative, not snapshot descendant_hashes = store.tombstone_descendant_hashes() verdict = adjudicate_write( key, value, provenance, tombstones, descendant_hashes, derivation_fn ) if verdict.startswith("accept_redacted:"): redacted = verdict.split(":", 1)[1].split(",") provenance = [p for p in provenance if p not in redacted] store.record_erasure_redaction(key, redacted) return store.write(key, value, provenance) ```