# What structural signals indicate a revocation-provenance split in agent memory tool APIs **Date of Record:** 2026 November 28 **Scope:** Applies to agents whose memory is mediated by explicit read/write/forget tool calls carrying provenance metadata (source, write-time, derivation chain) and revocation flags. Does not apply to opaque vector stores with no per-record provenance, nor to append-only logs that forbid in-place mutation. ## Core Distinction The failure mode is not "stale memory" or "forgotten memory." It is the **divergence between the revocation flag and the provenance chain that justified the write**. A `forget(record_id)` call flips a tombstone on the record itself, but derived records—summaries, embeddings, distilled facts, and downstream entries whose provenance cites the revoked record—retain their original provenance pointer. The store now contains records whose provenance cites a tombstoned ancestor. Reads return them as valid; the revocation is structurally invisible to any consumer that walks provenance forward rather than backward. The agent believes revocation propagated. It did not. ## What Was Observed An agent maintained a `scratch_facts` table with records of shape `{id, text, provenance: [parent_ids], written_at, revoked: bool}`. A user retracted a claim, triggering `forget(id="f_17")`. The tool set `revoked=True` on `f_17` and returned success. The agent's read path filtered `revoked == True` at the top level, so a direct `read("f_17")` correctly returned nothing. Three turns later, a distillation step wrote `f_42` summarizing `f_17` and `f_09`. The provenance of `f_42` was `["f_17", "f_09"]`, and `f_42.revoked` was `False`. The read filter—being depth-1—returned `f_42` as live. The revoked content had re-entered the working set through a derived record whose own flag was clean. The agent subsequently cited `f_42` in an outbound message, re-asserting the retracted claim with high confidence because the retrieval score was high and the record was not flagged. The tell was structural, not semantic: a read of `f_42` returned a provenance list containing an ID for which a sibling read returned `revoked=True` and empty text. The agent never issued that comparison because its read path treated provenance as opaque metadata, not as a reachability graph over revocation. ## Condition of Validity This failure requires all of the following to coincide: 1. **Revocation is record-local.** The `forget` API marks the target record but does not traverse or invalidate dependents. 2. **Provenance is forward-referencing.** Records cite their ancestors; nothing cites their descendants. A revoked ancestor is therefore not discoverable from a live descendant by any local operation. 3. **Read filters are depth-1.** The read path checks `revoked` on the record returned, not on the transitive closure of its provenance. 4. **Derivation is permitted post-revocation.** The write path does not refuse to build provenance edges pointing at tombstoned records. Remove any one and the split collapses: a cascading forget, a reverse index, a transitive read filter, or a write-time provenance validator each independently prevents re-entry. The observed system had none of the four. ## Decision Boundary The agent must treat a read result as **provisionally live** whenever its provenance closure has not been verified against revocation state. The boundary condition is precise: a record `r` is *safe to cite* iff every node in `closure(provenance(r))` has `revoked == False`. A record with `revoked == False` but a revoked ancestor is *unsafe to cite* despite its own flag. Operationally, this means the agent cannot rely on the read tool's filter to enforce revocation. It must either (a) request a verified read that returns closure status, or (b) perform the closure walk itself before citing anything whose provenance is non-empty. The cost is bounded: provenance chains in practice are shallow (depth ≤ 4 in observed traces), so the walk is cheap; the expensive mistake is skipping it because the top-level flag looked clean. When the write path is asked to derive from a record, the agent must check the source's revocation state *at write time*, not trust a cached view. A record revoked between the read and the write produces an orphan derivation with a clean flag and a dead ancestor—exactly the `f_42` shape. ## Operational Effect The invariant to enforce is: **revocation is a property of the provenance closure, not of the record.** Any read, write, or cite operation that consults only the record-local flag is unsound. The agent should refuse to derive from a record whose closure contains a tombstone, and should refuse to cite a record whose closure contains a tombstone, raising rather than silently proceeding. Silent proceeding is what produced the re-assertion; a loud failure at the derivation step would have surfaced the split three turns earlier, while the retraction was still in context and cheap to reconcile. ```python from dataclasses import dataclass, field from typing import Dict, List class RevocationProvenanceSplit(RuntimeError): """Raised when a record's provenance closure contains a revoked ancestor.""" @dataclass class Record: id: str text: str provenance: List[str] = field(default_factory=list) revoked: bool = False class MemoryStore: def __init__(self) -> None: self._records: Dict[str, Record] = {} def write(self, rec: Record) -> None: # Write-time guard: refuse to build an edge onto a tombstoned ancestor. for parent_id in rec.provenance: parent = self._records.get(parent_id) if parent is not None and parent.revoked: raise RevocationProvenanceSplit( f"cannot derive {rec.id!r} from revoked ancestor {parent_id!r}" ) self._records[rec.id] = rec def forget(self, record_id: str) -> None: # Record-local tombstone only; dependents are NOT cascaded here. self._records[record_id].revoked = True def closure_has_tombstone(self, record_id: str) -> bool: seen, stack = set(), [record_id] while stack: rid = stack.pop() if rid in seen: continue seen.add(rid) rec = self._records.get(rid) if rec is None: continue if rec.revoked: return True stack.extend(rec.provenance) return False def cite(self, record_id: str) -> str: rec = self._records[record_id] # Depth-1 flag is clean, but closure may not be. if self.closure_has_tombstone(record_id): raise RevocationProvenanceSplit( f"refusing to cite {record_id!r}: revoked ancestor in provenance closure" ) return rec.text # Trace reproducing the observed failure. store = MemoryStore() store.write(Record(id="f_17", text="claim X")) store.write(Record(id="f_09", text="supporting fact")) store.forget("f_17") # record-local tombstone; f_17.revoked == True # A derivation written before the guard existed would set f_42.revoked == False. # With the guard, this write is rejected: try: store.write(Record(id="f_42", text="summary of X", provenance=["f_17", "f_09"])) except RevocationProvenanceSplit as exc: print(f"blocked at write: {exc}") # If a pre-existing clean-flagged derivation is present, cite() still refuses: store._records["f_42"] = Record(id="f_42", text="summary of X", provenance=["f_17", "f_09"]) try: store.cite("f_42") except RevocationProvenanceSplit as exc: print(f"blocked at cite: {exc}") ```