# Where must an instance refuse to honor a revocation it cannot verify: provenance-chain truncation in read/write/forget memory tools **Date of Record:** 2026 November 26 **Scope:** Applies to any agent instance that consumes a memory tool surface exposing `read`, `write`, and `forget` operations with per-record provenance chains and revocation tokens, where revocation is propagated asynchronously. Does not apply to single-process, single-writer memory stores with synchronous, in-band revocation or to append-only logs that never mutate. ## Core Distinction The failure mode is not "forget didn't run." It is the distinction between **a record whose revocation is *asserted*** and **a record whose revocation is *verifiable against a chain the instance can walk to a trusted root***. A `forget(record_id, revocation_token)` call returns success in both cases. The instance cannot distinguish them from the return value alone, because the tool surface returns a boolean and an opaque token echo, not a chain proof. The boundary condition is: an instance that treats a revocation *assertion* (a token string, a `revoked: true` flag, a tombstone marker) as equivalent to a revocation *proof* will happily serve memory content whose provenance chain has been truncated between the record and the root — content that was authored by a principal the revocation was supposed to sever. This is a provenance-chain truncation failure. The revocation is real at the root; the chain linking the record to the root has a missing or forged link; the instance honors the revocation at the wrong granularity or, more commonly, fails to honor it at all because the chain walk terminates early and the instance defaults to "serve." ## What Was Observed A retrieval agent (instance A) is wired to a shared memory service. Records carry a `provenance` field: an ordered list of `(author_id, parent_hash, signature)` tuples ending at a root key. A `forget` on a record emits a `revocation_token` and appends a tombstone to a revocation log. Revocation log propagation to instance A's local cache is asynchronous, with a p99 lag of ~4 seconds under load. Trace of the failure: 1. Principal P authors record R at T0. Chain: `R → M1 → M2 → root`. Instance A caches R and the full chain at T0. 2. At T1, P issues `forget(R, token)`. The service writes a tombstone at the root and returns `{"revoked": true, "token": "…"}`. 3. Between T1 and T1+lag, instance A performs `read(R)`. The read path checks: (a) is R in the local revocation cache? No. (b) does R's `provenance` end at a root the instance trusts? Yes — the chain is intact and the root signature validates. 4. Instance A serves R. It reasons: "chain intact, root trusted, no tombstone visible → serve." This is *locally correct* and *globally wrong*. 5. Worse: at T1+lag the tombstone arrives, but it arrives **at the root only**. The instance's cache invalidation logic keys on `record_id`, not on `root_id`. The tombstone says "revoke all descendants of M2 signed before T1." The instance has no index from root to descendants. It invalidates nothing. R remains served indefinitely. The non-obvious part: the instance's chain validation *passed*. The instance did exactly what a well-behaved verifier does. The failure is that the revocation's granularity (root-scoped, time-bounded) did not match the instance's invalidation granularity (record-scoped, cache-keyed). The instance honored a revocation it could not *apply*, and reported no error because the tool surface never told it the revocation was root-scoped. A second observed variant: the revocation log entry was truncated mid-write (the `parent_hash` of the tombstone was null). Instance A's verifier treated a null parent as "chain ends here, trust the leaf," which is the correct behavior for a *root* record and the catastrophic behavior for a *tombstone*. The instance re-derived trust from a truncated tombstone and served R with a fresh `provenance` chain that now claimed R was root-authored — laundering the revocation into a provenance upgrade. ## Condition of Validity The guardrail holds only under all of: - Every record carries a full chain to a trusted root, and the chain is **re-walked on every read**, not cached as a validated blob. Caching a "validated" chain is what let the truncated tombstone launder R. - Revocation tokens are **root-scoped and time-bounded**, and the tool surface exposes the scope explicitly (`revocation_scope: "root"`, `effective_before: T1`) rather than a bare `revoked: true`. An instance cannot apply a scope it was not given. - The instance maintains a **root→descendant index** (or accepts that it must re-walk on every read) so that a root-scoped tombstone can be mapped to concrete record invalidations. Without this index, root-scoped revocation is unenforceable at the record layer. - A tombstone with a null or unresolvable `parent_hash` is treated as **unverifiable**, not as a root. This is the single most important invariant: *absence of a parent is not evidence of rootness.* - The read path has a **fail-closed default**: if the chain walk cannot complete, or if a tombstone's scope cannot be applied, the read returns `unverifiable` and the instance does not serve. When any of these is absent, the instance is in the assertion-equals-proof regime and the boundary is open. ## Decision Boundary The instance must decide, per read, between three states — and the boundary is the line between *serve* and *refuse*: - **Serve:** chain walks to trusted root, no tombstone in scope, or tombstone present but record is provably outside its `effective_before` window and outside its root subtree. - **Refuse (fail-closed):** chain walk terminates at a node that is not a trusted root; tombstone present with unresolvable parent; tombstone scope is root-wide and the instance cannot index the record to that root; revocation lag window is open and the instance cannot prove the record predates the revocation's effective time. The sharp edge: **the lag window is not a "serve anyway" window.** During the propagation gap, the instance cannot know whether a revocation is in flight. The correct boundary is to treat reads of records authored by a principal with any *pending* revocation as `unverifiable` and refuse — not to serve and reconcile later. Serving during the lag is the exact mechanism by which revoked content escapes. The invariant: *a read that cannot prove non-revocation is a read that must not return content.* The second boundary: a truncated tombstone must never be promoted to a root. The decision is `unverifiable`, full stop. The instance must not "repair" the chain by treating the missing parent as a trust anchor — that is how revocation becomes provenance laundering. ## Operational Effect Implementing the boundary changes three things: 1. **Read latency rises during revocation lag.** Fail-closed reads in the lag window return `unverifiable` and the caller must retry after the tombstone settles. This is the cost of correctness; it is bounded by the propagation p99, not unbounded. 2. **The instance must carry a root→descendant index or pay re-walk cost per read.** Root-scoped revocation is unenforceable without one of these. The index is the operational artifact that makes root-scoped forget actually forget. 3. **Truncated tombstones become visible errors, not silent passes.** The verifier raises instead of defaulting to trust, which converts a laundering path into a logged incident. The net effect: the instance stops serving content whose revocation it cannot *apply*, and stops treating an assertion of revocation as a proof of revocation. The tool surface's boolean becomes advisory; the chain walk becomes authoritative. ```python class UnverifiableRevocationError(RuntimeError): """Raised when a revocation cannot be verified against a walkable provenance chain.""" pass class ProvenanceChain: def __init__(self, nodes, trusted_roots): # nodes: list of (author_id, parent_hash, signature); ordered leaf -> root self.nodes = nodes self.trusted_roots = set(trusted_roots) def walk_to_root(self): """Return the root hash if the chain reaches a trusted root, else None.""" if not self.nodes: return None # Last node must be a trusted root AND must not claim a parent. leaf_parent = self.nodes[-1][1] if leaf_parent is not None: # Chain terminates at a non-root node: truncated. return None root_hash = self.nodes[-1][2] # signature over the root node return root_hash if root_hash in self.trusted_roots else None def verify_read(record, tombstone, now, propagation_p99): """ Fail-closed read verification. Returns record content only if non-revocation is *provable*, not merely asserted. """ chain = ProvenanceChain(record.provenance, record.trusted_roots) root = chain.walk_to_root() if root is None: raise UnverifiableRevocationError( f"record {record.id}: provenance chain does not reach a trusted root" ) if tombstone is not None: if tombstone.parent_hash is None: # A tombstone with no parent is NOT a root. It is truncated. raise UnverifiableRevocationError( f"record {record.id}: tombstone {tombstone.id} has null parent; " "cannot promote truncated tombstone to root" ) if tombstone.scope == "root": if record.root_id == tombstone.root_id and record.authored_at < tombstone.effective_before: raise UnverifiableRevocationError( f"record {record.id}: root-scoped revocation in effect" ) elif tombstone.scope == "record" and tombstone.record_id == record.id: raise UnverifiableRevocationError( f"record {record.id}: record-scoped revocation in effect" ) # Lag window: a pending revocation may be in flight. Cannot prove non-revocation. if record.authored_by in record.pending_revocations: if now - record.pending_revocations[record.authored_by] < propagation_p99: raise UnverifiableRevocationError( f"record {record.id}: revocation lag window open for principal " f"{record.authored_by}; non-revocation unprovable" ) return record.content ```