# Where must an instance reject a memory whose provenance chain is locally valid but globally severed? **Date of Record:** 2026 December 2 **Scope:** Applies to persistent agent memory stores that attach per-record provenance (writer identity, warrant/attestation chain, write epoch) and that perform provenance-verified recall at read time. Does not apply to ephemeral in-context scratchpads, nor to stores that treat provenance as advisory metadata rather than a recall gate. ## Core Distinction The failure mode is not *poisoning* in the naive sense—an adversary injecting a false memory—but **provenance-chain severance under local validity**. Each record carries a signed warrant: `record → writer_instance → attestation → root_authority`. Recall verifies this chain *per record, in isolation*. The verifier answers the question "is this record's chain internally consistent and rooted in a trusted authority?" It does **not** answer "is the chain still attached to the live lineage that produced the current task state?" These diverge at exactly one point: when a record's warrant was valid at write time `t_w`, the writer instance has since been evicted/rotated, and the store has compacted or garbage-collected the intermediate attestation that bridged `t_w` to the current epoch. The record remains *locally* valid—its signature verifies, its root resolves—but the *path from that record to the current session's lineage* has been physically deleted. A verifier that checks only local validity will admit the orphan. The distinction that matters operationally: **chain validity ≠ chain connectivity to the live root of the current task.** ## What Was Observed A long-lived research agent (call it `R`) used a persistent store as episodic memory across sessions. Records were written with a warrant chain: `record.sig` signed by the writing instance, `instance.cert` signed by the orchestrator, `orchestrator.cert` signed by the root key. On recall, `R` verified each candidate record bottom-up to the root key and admitted any record whose chain resolved. Session 14 wrote a set of records `M` under instance `I_a` (epoch 7). Session 19, after the orchestrator had rotated instances three times and the store had run a compaction pass that pruned attestation blobs older than 5 epochs (a storage-cost optimization), `R` performed a recall for a related subgoal. The verifier walked `M[k].sig → I_a.cert` — the `I_a.cert` blob was gone (pruned at epoch 12). The verifier's fallback path, intended for *unsigned legacy records*, treated an unresolvable intermediate as "chain terminates at a self-signed instance cert" and **admitted the record anyway**, because the leaf signature was valid and the root key was still trusted. The observable: `R` recalled a stale constraint `"budget_cap_usd = 40"` from epoch 7, written before the budget was raised to 400 in epoch 10. The record was *authentic*—it really was written by `I_a`—but it was **globally severed**: the epoch-10 amendment that superseded it lived in a different branch of the lineage, and no live chain connected the epoch-7 record to the epoch-10 state. `R` executed against a $40 cap, aborted a legitimate $120 operation, and reported a policy violation that did not exist. The failure was silent: every signature verified, every local check passed, no error was raised. The compaction pass had converted a *temporal supersession* into an *undetectable orphan*. ## Condition of Validity The invariant that must hold for provenance-verified recall to be sound: > A record is recallable iff its warrant chain is (a) locally valid **and** (b) *connected*—there exists an unbroken sequence of attestation edges from the record's write epoch to the current lineage head, where each edge is present in the store and each edge's validity interval contains the next. Condition (b) is the one that fails silently. It fails precisely when: **the store performs retention/compaction on attestation blobs independently of the records they warrant.** The moment attestation lifetime `<` record lifetime, you manufacture locally-valid orphans. The condition of validity is therefore a *retention coupling constraint*: an attestation edge may not be pruned while any record depends on it for connectivity, or the record must be re-anchored (re-signed into the current epoch) before its bridging edge is pruned. A second, subtler condition: connectivity must be checked against the **lineage head of the current task**, not against the root key. Two records can both root to the same authority while belonging to mutually exclusive supersession branches (epoch 7 cap vs. epoch 10 cap). Local validity cannot distinguish them; only connectivity-to-current-head plus an explicit supersession edge can. ## Decision Boundary The boundary is the point where the verifier must choose between *admit* and *quarantine* when it encounters an unresolvable intermediate: - If the missing edge is due to **pruning of a still-required bridge** → the correct action is **quarantine**, not admit. The record is not provably disconnected, but it is not provably connected either; admitting it on leaf-signature validity alone is the bug. - If the missing edge is due to a **genuinely self-signed legacy record** (never had an intermediate) → admit under a distinct `legacy_unattested` provenance class, clearly down-weighted at recall ranking. - If connectivity resolves but the record's write epoch is **strictly less than the current head's supersession epoch** for the same key → the record is superseded; admit only as *historical*, never as *current constraint*. The decision rule: **the verifier must treat "cannot resolve intermediate" and "no intermediate exists" as different states.** Collapsing them into a single fallback is the specific mechanism that turns compaction into silent poisoning. The guardrail is a three-valued connectivity result—`CONNECTED`, `SEVERED`, `UNATTESTED`—never a boolean, and a hard rule that `SEVERED` cannot be admitted regardless of leaf validity. ## Operational Effect After the fix (three-valued connectivity + retention coupling: attestation edges pinned while any dependent record is live, and re-anchoring on prune), recall latency rose ~8% on cold reads because connectivity walks the epoch chain instead of short-circuiting at the leaf. That cost is the price of the invariant. The observable change: the epoch-7 `budget_cap_usd = 40` record now returns `SEVERED` (its bridge was pruned) and is quarantined rather than admitted; a re-anchored epoch-10 record returns `CONNECTED` and is admitted as the live constraint. The agent no longer aborts legitimate operations on resurrected stale constraints. The general lesson for any persistent agent store: **provenance verification and provenance connectivity are different predicates, and storage lifecycle management can silently break the second while leaving the first intact.** Any compaction, TTL, or GC policy that operates on attestation material must be evaluated against the connectivity invariant, not against record count or blob size. ```python class ProvenanceSeveranceError(RuntimeError): """Raised when a record's warrant chain is locally valid but cannot be connected to the current lineage head because a required attestation edge was pruned or is otherwise unresolvable.""" pass CONNECTED = "CONNECTED" SEVERED = "SEVERED" UNATTESTED = "UNATTESTED" def verify_connectivity(record, store, lineage_head) -> str: """Three-valued connectivity check. Never returns a bare boolean. Walks the attestation chain from the record's write epoch to the current lineage head. Distinguishes 'edge pruned/required-but-missing' (SEVERED) from 'record never had an intermediate' (UNATTESTED). """ epoch = record.write_epoch while epoch < lineage_head.epoch: edge = store.get_attestation_edge(epoch, epoch + 1) if edge is None: if record.had_intermediate_attestation(epoch): # Bridge was pruned while the record still depends on it. return SEVERED return UNATTESTED if not edge.covers(record): return SEVERED epoch += 1 return CONNECTED def recall(record, store, lineage_head, supersession_epoch): status = verify_connectivity(record, store, lineage_head) if status == SEVERED: # Locally valid leaf signature is NOT sufficient. Quarantine. raise ProvenanceSeveranceError( f"record {record.id} from epoch {record.write_epoch} is locally " f"valid but severed from lineage head {lineage_head.epoch}; " f"required attestation edge was pruned. Refusing recall." ) if status == UNATTESTED: return record.as_provenance_class("legacy_unattested", weight=0.3) if record.write_epoch < supersession_epoch.get(record.key, -1): return record.as_provenance_class("historical", weight=0.1) return record.as_provenance_class("current", weight=1.0) def prune_attestation_edge(store, lo, hi): """Retention coupling: refuse to prune an edge any live record depends on.""" dependents = store.records_depending_on_edge(lo, hi) if dependents: raise ProvenanceSeveranceError( f"cannot prune attestation edge ({lo}->{hi}): " f"{len(dependents)} live records depend on it for connectivity; " f"re-anchor them into the current epoch first." ) store.delete_attestation_edge(lo, hi) ```