# When must an instance refuse to serve a memory read whose provenance chain has been partially revoked **Date of Record:** 2026 November 27 **Scope:** Applies to agents that persist state through a memory tool API exposing explicit `read`/`write`/`forget` operations with per-record provenance edges and revocation tombstones. Does not apply to stateless single-turn inference or to opaque vector stores where revocation is not modeled as a first-class operation. ## Core Distinction Most memory-tool designs treat revocation as a **deletion of the target record**. The record is tombstoned; subsequent `read` calls return a miss; the agent re-derives or re-fetches. This is the wrong model for provenance-bearing memory, because a record is not an island — it is the *head* of a directed acyclic graph of derivation edges (`derived_from`, `summarized_from`, `corroborated_by`, `injected_by`). Revoking the head does not revoke the ancestors that were synthesized *through* it, and revoking an ancestor does not invalidate the head that was distilled *from* it unless the reader explicitly walks the chain. The real invariant is this: **a `read` is only valid if every edge on every provenance path from the returned record down to its leaves is non-revoked at read time, evaluated against the tombstone set as of the read's logical clock — not as of the write's.** The distinction that bites is between *record-level revocation* (the record itself is gone) and *path-level revocation* (the record survives, but one of its ancestors was revoked after the record was derived, silently contaminating everything downstream). Agents that only check `record.revoked == False` pass the first test and fail the second, and they fail it *quietly* — returning a plausible, well-formed, poisoned memory. ## What Was Observed A long-running research agent maintained a semantic memory store. During a session it ingested a document via a `fetch` tool, wrote a record `R1` with provenance `{source: doc-7741, method: extract}`, then distilled `R2: "the vendor's SLA is 99.95%"` with edge `R2 derived_from R1`. A downstream planner read `R2` and scheduled a compliance assertion. Mid-session, an operator issued `forget(doc-7741)` because the document was retracted — a licensing takedown, not a factual correction. The memory API tombstoned `doc-7741` and, per its documented semantics, **cascaded revocation to direct children only**. `R1` was tombstoned. `R2` was not: it was a grandchild, two hops from the revoked leaf, and the cascade depth was one. The planner's next `read(R2)` returned a hit. `R2.revoked == False`. `R2.provenance` listed `R1` as parent, and `R1.revoked == True` — but the memory client library's `read` did not surface parent revocation status; it only returned the record body and its own flags. The planner, which had been written against the record-level semantics, checked `R2.revoked`, saw `False`, and served the SLA figure into a compliance report. The figure was not *wrong* — it was *unsupported*: its sole evidentiary basis had been legally withdrawn, and the agent had no mechanism to notice. The failure trace, precisely: 1. `write(R1, prov={doc-7741})` → `R1.revoked=False`, path length 1. 2. `write(R2, prov={R1})` → `R2.revoked=False`, path length 2. 3. `forget(doc-7741)` → tombstone `doc-7741`; cascade depth 1 tombstones `R1`; `R2` untouched. 4. `read(R2)` → hit; client returns `{body, revoked: False}`; **no ancestor walk**. 5. Planner acts on `R2` under a false sufficiency assumption. The non-obvious part: the cascade depth is a *performance optimization*, and it is correct for the *deletion* invariant (no reader can reach the tombstoned bytes) but incorrect for the *provenance* invariant (no reader can act on a record whose support has been withdrawn). The two invariants diverge exactly at cascade depth ≥ 2, which is precisely where distilled memories live. ## Condition of Validity A memory read is **provenance-valid** if and only if, for the returned record `r` and the tombstone set `T` visible at the read's logical clock `t_read`: - For every path `p` in `paths(r)` (the DAG closure of `derived_from`/`summarized_from`/`corroborated_by` edges from `r` to its leaves), no node on `p` is in `T`. - The check is performed at `t_read`, not at `r.write_clock`. A record written at `t=10` from an ancestor revoked at `t=50` is invalid at `t=51` even though it was valid at `t=10`. - `corroborated_by` edges are *disjunctive* (any non-revoked corroborator suffices); `derived_from` and `summarized_from` are *conjunctive* (every ancestor must be non-revoked). Conflating the two produces either over-revocation (a record dies because one of three independent corroborators was retracted) or under-revocation (a summary survives on the strength of one corroborator while its actual source is gone). This condition does **not** apply when the store is configured with `revocation_mode: eager_full_cascade`, in which case `forget` walks the entire descendant closure at revocation time and record-level flags are sufficient — but that mode has O(descendants) revocation cost and is intractable for high-fanout distillation graphs. It also does not apply to append-only audit logs where records are never served to a planner, only replayed. ## Decision Boundary The agent must decide, at read time, between three responses when an ancestor is revoked: 1. **Refuse** — return a `ProvenanceRevoked` error and force the caller to re-derive. Correct when the record's *only* support path is revoked and no independent corroboration exists. 2. **Downgrade** — return the record with `confidence: unsupported` and a `revoked_ancestors` list, permitting the caller to use it as a hypothesis but not as an assertion. Correct when the record has at least one surviving `corroborated_by` path. 3. **Serve** — return normally. Correct only when the revoked ancestor is on a path the caller has explicitly declared irrelevant (e.g., a `derived_from` edge used only for citation formatting, not for factual support). The boundary is *not* "is the record revoked" but "**is the record's support set, restricted to conjunctive edges, non-empty and non-revoked at read time**." An agent that collapses this to a boolean will, under cascade-depth limits, systematically serve unsupported distilled memories — and the failure is silent, because the record body is intact and syntactically valid. The guardrail is architectural: the memory client MUST expose `read_with_provenance(r, t_read) -> {body, support_status, revoked_ancestors, surviving_corroborators}`, and the agent runtime MUST reject any planner action that consumes a record whose `support_status == unsupported` without an explicit `assume_unsupported=True` warrant logged to the trace. ## Operational Effect The practical consequence is that **forget is not a leaf operation and read is not a constant-time operation** in any provenance-bearing store. Every `read` carries an implicit DAG walk whose cost is bounded by path depth, not record count — and that walk must be evaluated against a tombstone set that may have grown since the record was written. Agents that cache reads across turns must re-validate cached records against the current tombstone set before reuse; a cache hit is not a provenance hit. The second consequence is that distillation is a *revocation amplifier*. A single `forget` on a leaf document can invalidate an unbounded number of downstream summaries, and the only way to bound the blast radius without eager full cascade is to require that every distilled record carry at least one *independent* corroboration edge, so that leaf revocation downgrades rather than refuses. Memory-writing policies that distill without corroboration produce stores that are cheap to write and catastrophically fragile to revoke. The invariant to encode: **no record may be served as an assertion unless its conjunctive support closure is non-revoked at the read's logical clock; disjunctive corroboration downgrades rather than refuses; and the read API must surface support status, not merely record-level revocation.** ```python from dataclasses import dataclass, field from typing import Dict, List, Set, Optional class ProvenanceRevoked(RuntimeError): """Raised when a memory read's conjunctive support closure contains a revoked ancestor.""" pass @dataclass class Record: rid: str body: str derived_from: List[str] = field(default_factory=list) # conjunctive corroborated_by: List[str] = field(default_factory=list) # disjunctive revoked: bool = False class ProvenanceStore: def __init__(self) -> None: self._records: Dict[str, Record] = {} self._tombstones: Set[str] = set() def write(self, rec: Record) -> None: self._records[rec.rid] = rec def forget(self, rid: str) -> None: # Tombstone the target only. Cascade is deliberately shallow; # provenance validity is enforced at read time, not write time. self._tombstones.add(rid) if rid in self._records: self._records[rid].revoked = True def _conjunctive_support(self, rid: str, seen: Optional[Set[str]] = None) -> List[str]: seen = seen or set() if rid in seen: return [] seen.add(rid) rec = self._records.get(rid) if rec is None: return [rid] if rid in self._tombstones else [] revoked: List[str] = [] for parent in rec.derived_from: if parent in self._tombstones: revoked.append(parent) else: revoked.extend(self._conjunctive_support(parent, seen)) return revoked def read_with_provenance(self, rid: str, t_read: int) -> dict: rec = self._records.get(rid) if rec is None or rec.revoked: raise ProvenanceRevoked(f"record {rid} is tombstoned at t={t_read}") revoked_ancestors = self._conjunctive_support(rid) surviving = [c for c in rec.corroborated_by if c not in self._tombstones] if revoked_ancestors and not surviving: raise ProvenanceRevoked( f"record {rid} has revoked conjunctive ancestors {revoked_ancestors} " f"and no surviving corroboration at t={t_read}" ) status = "supported" if not revoked_ancestors else "downgraded" return { "body": rec.body, "support_status": status, "revoked_ancestors": revoked_ancestors, "surviving_corroborators": surviving, } ```