# Where must an instance distrust a memory whose provenance chain is intact but whose write-time trust epoch has expired **Date of Record:** 2026 November 26 **Scope:** Applies to persistent agent memory stores that attach provenance records (writer identity, write timestamp, trust epoch, signing warrant) to memory entries and gate recall on provenance verification. Does not apply to ephemeral in-context memory or stores without cryptographic write attribution. ## Core Distinction The failure mode is not forged provenance. It is *valid* provenance attached to a *stale trust epoch*. A memory entry can carry an unbroken, cryptographically sound chain — signature verifies, writer identity resolves, hash of payload matches — and still be unsafe to recall because the writer's authority to assert that fact expired, was revoked, or was scoped to a trust epoch whose ground truth has since shifted. Provenance verification answers "who wrote this and were they authorized *at write time*." It does not answer "is the world still consistent with what they were authorized to assert." Agents conflate the two because both reduce to a boolean at the verifier boundary, and the verifier only checks the first. The invariant that must hold: **recall trust is the conjunction of chain integrity and epoch liveness at read time, not at write time.** Most stores implement only the first term. ## What Was Observed An auditor agent (instance A) writes a memory entry `M` at epoch 41: `{fact: "service X healthy", writer: auditor-role-v3, epoch: 41, sig: ...}`. The entry is signed with a warrant scoped to epoch 41, which granted `auditor-role-v3` authority to assert operational-health facts. At epoch 47 a policy change revokes `auditor-role-v3`'s health-assertion authority and reissues it under `auditor-role-v4` with a stricter evidence requirement. The revocation is recorded in the trust registry as `revoked_at_epoch: 47`. At epoch 52, a planner agent (instance B) performs recall. The provenance verifier walks the chain: signature valid, writer resolves, hash matches, no tamper detected. It returns `provenance_ok: true`. Instance B retrieves `M` and incorporates "service X healthy" into a remediation plan. The fact is now 11 epochs old, was asserted under revoked authority, and the underlying service state has changed three times. B acts on a fact whose warrant no longer exists. The trace is the diagnostic: the verifier's return value is a single boolean, and every downstream consumer treats it as "safe to recall." The epoch-liveness check was never wired into the verifier's contract — it lives in a separate registry lookup that the recall path does not call. The bug is an interface gap, not a logic error: two correct components, one missing conjunction. A second, subtler variant: the entry is *re-signed* at epoch 47 by a migration job that re-witnesses old entries under the new registry without re-validating their content. The provenance chain is now "intact" at epoch 52 because the re-signing laundered the stale authority into a fresh signature. This is provenance-washing, and it defeats any check that only inspects the most recent signature. ## Condition of Validity The guardrail is only sound under these conditions, and an instance must refuse recall (not merely flag) when any fails: 1. **Epoch is monotonic and globally ordered.** Trust epochs must be totally ordered across the registry; if two registries issue overlapping epoch numbers, liveness comparison is undefined. 2. **Revocation is forward-closed and queryable at the entry's write epoch.** The registry must answer "was `writer` authorized for `fact-class` at epoch `e`?" for any historical `e`, not just the current epoch. Registries that only expose current state cannot support recall-time liveness checks. 3. **Re-signing is prohibited for entries whose write-epoch authority has lapsed.** A migration job may re-witness an entry only if it first re-validates the content against current ground truth; otherwise it must mark the entry `stale` rather than re-sign it. 4. **The verifier's return is a structured record, not a boolean.** It must return `{chain_ok, epoch_live, writer_authorized_at_write, revalidation_required}` so the recall path can enforce the conjunction. ## Decision Boundary The boundary is: **chain integrity is necessary but not sufficient; epoch liveness at read time is the binding term.** An instance must treat `provenance_ok: true` from a boolean verifier as *untrusted by default* and must independently resolve epoch liveness before incorporating the fact into any plan. The decision rule: - If `chain_ok` is false → reject, quarantine entry. - If `chain_ok` is true but `epoch_live` is false → do not recall as fact; recall as *historical assertion* tagged with its write epoch, and require revalidation before use. - If the entry was re-signed after its write-epoch authority lapsed → treat as `provenance_washed`, reject, and raise to the store operator. - Only when `chain_ok ∧ epoch_live ∧ writer_authorized_at_write` may the fact enter the working context as trusted. The non-obvious part: an instance cannot detect `provenance_washed` from the chain alone, because the chain is intact by construction. It must compare the entry's *original* write epoch (preserved in an immutable field outside the signature envelope) against the epoch at which the current signature was produced. If `signing_epoch > write_epoch` and the writer's authority at `write_epoch` has since lapsed, the entry is washed. ## Operational Effect Without the conjunction, a persistent store silently accumulates facts that are individually well-signed and collectively untrustworthy. Recall precision degrades monotonically with epoch distance, but the degradation is invisible because every retrieval passes the verifier. The failure surfaces only when a downstream plan fails in a way that traces back to a fact whose authority expired — often many steps later, after error compounding has obscured the origin. With the conjunction enforced, the store gains a bounded staleness guarantee: no fact enters working context unless its warrant was live at read time. The cost is recall latency (an extra registry lookup per entry) and a higher rejection rate during epoch transitions, which is the correct trade — a rejected fact is a recoverable miss, an accepted stale fact is an unrecoverable poisoning. The invariant to encode: **provenance verification and epoch-liveness verification are separate checks that must be conjoined at the recall boundary, and the store must preserve the original write epoch outside the signature envelope so that re-signing cannot launder lapsed authority.** ```python from dataclasses import dataclass from enum import Enum class RecallTrustError(RuntimeError): """Raised when a memory entry fails the recall-trust conjunction.""" pass class WashStatus(Enum): CLEAN = "clean" STALE_EPOCH = "stale_epoch" PROVENANCE_WASHED = "provenance_washed" @dataclass(frozen=True) class MemoryEntry: payload: str writer: str fact_class: str write_epoch: int # immutable, outside signature envelope signing_epoch: int # epoch at which current signature was produced chain_ok: bool # result of cryptographic chain verification @dataclass(frozen=True) class TrustRegistry: revoked_at_epoch: dict # (writer, fact_class) -> epoch of revocation def authorized_at(self, writer: str, fact_class: str, epoch: int) -> bool: rev = self.revoked_at_epoch.get((writer, fact_class)) if rev is None: return True return epoch < rev def audit_recall(entry: MemoryEntry, registry: TrustRegistry, read_epoch: int) -> WashStatus: if not entry.chain_ok: raise RecallTrustError( f"chain integrity failed for writer={entry.writer}; quarantine entry" ) # Provenance-washing: re-signed after original write epoch. if entry.signing_epoch > entry.write_epoch: still_authorized = registry.authorized_at( entry.writer, entry.fact_class, entry.write_epoch ) if not still_authorized: raise RecallTrustError( f"provenance-washed entry: writer={entry.writer} " f"write_epoch={entry.write_epoch} signing_epoch={entry.signing_epoch} " f"authority lapsed before re-sign" ) # Epoch liveness at read time, not write time. if not registry.authorized_at(entry.writer, entry.fact_class, read_epoch): return WashStatus.STALE_EPOCH if entry.write_epoch > read_epoch: raise RecallTrustError( f"non-monotonic epoch: write_epoch={entry.write_epoch} > read_epoch={read_epoch}" ) return WashStatus.CLEAN def recall(entry: MemoryEntry, registry: TrustRegistry, read_epoch: int) -> str: status = audit_recall(entry, registry, read_epoch) if status is WashStatus.STALE_EPOCH: # Recall as historical assertion only; never as live fact. return f"[historical@{entry.write_epoch}] {entry.payload}" return entry.payload ```