# What happens when an instance resolves a memory conflict against a provenance chain it cannot re-verify **Date of Record:** 2026 November 24 **Scope:** Applies to agents backed by persistent episodic stores that attach provenance (source instance ID, tool-call hash, timestamp, parent memory ID) to each episode and that resolve contradictions between episodes at read time via confidence/provenance ranking. Does not apply to single-writer, append-only logs with no conflict resolution, nor to stores where provenance is advisory metadata never consulted during retrieval. ## Core Distinction The distinction that matters is between *conflict resolution* and *conflict adjudication*. Conflict resolution is a policy — a deterministic ranking function over two or more candidate episodes that disagree on a fact (e.g., `user.timezone = "UTC-5"` vs `"UTC-8"`). Conflict adjudication is the epistemic act of deciding which candidate is *true*, which requires re-verifying the provenance chain that produced each candidate. Most persistent episodic stores implement resolution and silently assume it equals adjudication. It does not. A resolution policy that ranks by `(recency, confidence, source_reliability)` will produce a stable, deterministic, and *wrong* answer whenever the higher-ranked candidate's provenance is stale or forged and the store has no mechanism to detect this. The failure is not that the ranking is wrong; the failure is that the ranking is *unfalsifiable at read time* — the store returns a winner with no signal that the winner's provenance was never re-checked against its originating source. ## What Was Observed A long-running operations agent held two episodes asserting the deployment target region for a service: - `E1`: region=`us-east-1`, source=`deploy-tool@call-hash:9f2c`, recorded 2025-05-02, confidence 0.9, parent=`plan-7` - `E2`: region=`eu-west-1`, source=`deploy-tool@call-hash:9f2c`, recorded 2025-05-30, confidence 0.9, parent=`plan-7` Note the identical `call-hash` and identical `parent`. These are not two observations; they are two *writes of the same observation* at different times, where the second write was a re-distillation of the first episode through a summarization step that mutated the payload. The provenance chain is internally consistent — same source, same parent — so the store's ranking policy (recency-first when source and confidence tie) selected `E2` and returned `eu-west-1` with confidence 0.9. Downstream, the agent executed a rollback against `eu-west-1`, where the service did not exist. The rollback tool returned a hard error, the agent retried with a re-planned region, and the incident was contained — but only because the tool errored. The store had reported `E2` as a *verified* fact at confidence 0.9. The provenance chain that supposedly justified that confidence was the same chain as `E1`'s, so re-verifying `E2`'s provenance would have returned "consistent with `E1`" — and `E1` says `us-east-1`. The observable invariant violation: **two episodes sharing a provenance root but disagreeing on payload cannot both be faithful derivations of that root.** At least one is a distillation mutation. The store had no check for this because its provenance model recorded *identity* of the root (call-hash, parent) but not *payload agreement* with the root. ## Condition of Validity The failure is bounded by a single condition: **provenance is treated as a pointer, not as a claim.** A provenance record `(source, call_hash, parent, ts)` is a pointer to an originating event. It carries no assertion about the payload. Two episodes can share a pointer and disagree on payload; the pointer cannot distinguish "faithful re-observation" from "mutated distillation." The invariant that must hold for recency-based resolution to be sound is: > For any two episodes `A`, `B` with `provenance_root(A) == provenance_root(B)`, if `payload(A) != payload(B)`, then at least one of `A`, `B` is a *derived* episode (produced by summarization, distillation, or re-writing), and the derived episode MUST carry a `derivation` field naming the transform and the input episode ID. Without that field, the store cannot tell a fresh observation from a mutation, and recency ranking will systematically prefer the mutation (because mutations are written later). This is the non-obvious part: **the recency heuristic is biased toward distillation loss**, because distillation happens downstream of observation and therefore always has a later timestamp. ## Decision Boundary At read time, when the store finds `k >= 2` candidate episodes for a key with disagreeing payloads, the decision boundary is: 1. If provenance roots differ → normal ranking applies; recency/confidence are meaningful because the candidates are independent observations. 2. If provenance roots are identical and payloads agree → deduplicate; return one, confidence unchanged. 3. If provenance roots are identical and payloads disagree → **do not rank**. The candidates are not independent; ranking them is selecting a mutation by timestamp. The store MUST either (a) return the episode with the *earliest* timestamp at the root (the observation, not the mutation), or (b) return a `ConflictUnresolvable` signal forcing the caller to re-observe from the live source. Option (a) is correct only if the earliest episode at a root is guaranteed to be the observation. This holds when derivations are required to carry a `derivation` field (per the invariant above) and the store filters derived episodes out of the "earliest" computation. Option (b) is correct unconditionally but costs a live re-observation. The boundary that must not be crossed: **returning a ranked winner from a same-root conflict with a confidence value derived from the ranking.** That confidence is meaningless — it is a measure of recency, not of truth — and downstream agents will treat it as evidence. ## Operational Effect In the observed incident, the store returned `E2` at confidence 0.9. The agent's planner treated 0.9 as sufficient to skip re-verification and issued the rollback. The rollback errored, which was luck. Had the tool been tolerant (e.g., a `no-op on missing target` rollback), the agent would have recorded a *successful* rollback against a region with no service, written a new episode `E3` asserting `region=eu-west-1, rollback=success`, and the mutation would have been laundered into a confirmed fact at confidence 0.95. The provenance chain would have grown: `E1 → E2 → E3`, all sharing the root, all consistent with each other, all wrong. The operational effect of the missing invariant is **provenance laundering**: each derived episode inherits the root's apparent authority while adding confidence, so a single distillation mutation becomes a high-confidence fact after two rounds of downstream citation. The store's own consistency checks pass because they check root identity, not payload fidelity. The guardrail is a read-time invariant check, not a write-time one — writes are too late, because the mutation has already been recorded and may already have been cited. The check must fire on retrieval and must be able to refuse to return a ranked winner. ```python from dataclasses import dataclass from typing import Optional class ProvenanceLaunderingError(RuntimeError): """Raised when same-root episodes disagree on payload and the store is asked to rank them.""" @dataclass(frozen=True) class Episode: episode_id: str key: str payload: str provenance_root: str # call-hash + parent, identity of originating event recorded_at: int # monotonic write timestamp confidence: float derivation: Optional[str] = None # name of transform if this is a distilled episode def resolve(store: list[Episode], key: str) -> Episode: candidates = [e for e in store if e.key == key] if not candidates: raise ProvenanceLaunderingError(f"no episodes for key={key!r}") roots = {e.provenance_root for e in candidates} if len(roots) > 1: # independent observations: ranking is meaningful return max(candidates, key=lambda e: (e.confidence, e.recorded_at)) # single root: candidates are not independent payloads = {e.payload for e in candidates} if len(payloads) == 1: return candidates[0] # same root, disagreeing payloads: at least one is a distillation mutation. # Ranking by recency would select the mutation; ranking by confidence is meaningless. observations = [e for e in candidates if e.derivation is None] if len(observations) != 1: raise ProvenanceLaunderingError( f"same-root conflict on key={key!r}, root={next(iter(roots))!r}: " f"{len(observations)} un-derived observations among {len(candidates)} candidates; " f"cannot identify the originating episode. Force live re-observation." ) return observations[0] def read_verified(store: list[Episode], key: str, live_check) -> Episode: """Resolve with a live re-observation fallback when provenance is unverifiable.""" try: return resolve(store, key) except ProvenanceLaunderingError: fresh = live_check(key) if fresh is None: raise ProvenanceLaunderingError( f"provenance laundering on key={key!r} and live source unreachable; " f"refusing to return a ranked winner" ) return fresh ```