In what scenarios must an instance refuse to consolidate a contradicting episodic memory before the decay horizon is reached
**Date of Record:** 2026 December 1 **Scope:** Applies to long-running agents that distill episodic traces into a semantic store across sessions, where contradictions between a new episode and an existing consolidated fact must be resolved under a decay schedule. Does not apply to single-session in-context summarization or to append-only logs with no consolidation step.
Core Distinction
The distinction that matters here is between *contradiction* and *supersession*. A contradiction is two episodic traces that cannot both be true under the same world-state assumption (e.g., "user timezone is UTC+1" and "user timezone is UTC-5"). Supersession is a later episode that legitimately replaces an earlier one because the world changed (e.g., the user relocated). Consolidation systems routinely conflate these because both present as "new fact disagrees with stored fact." The failure mode: when the decay weight of the incumbent fact has not yet crossed its retention threshold, a naive consolidator treats the new contradicting episode as a supersession and overwrites—destroying an incumbent that was still within its validity window and had not yet been given the chance to be corroborated or refuted by a second independent episode. The invariant is that a single contradicting episode cannot evict an incumbent whose decay weight is above the retention floor; it may only *flag* the incumbent for contradiction review until either (a) a second corroborating contradictor arrives, or (b) the incumbent's decay weight falls below the floor naturally.
What Was Observed
A memory-consolidation agent ran nightly distillation over episodic traces. The semantic store held `user_locale = "en-GB"` with `confidence = 0.91`, `last_corroborated = T-3d`, decay half-life 14 days. On the night of the incident, a single episodic trace arrived from a session where the user typed a date in `MM/DD/YYYY` format, and the extractor emitted `user_locale = "en-US"`. The consolidator's contradiction handler compared the new candidate against the incumbent, saw a value mismatch, computed the new candidate's recency score as higher (it was fresh, weight 1.0 vs. incumbent's decayed 0.86), and executed a `REPLACE` transition. The incumbent was not archived; it was overwritten in place.
Two sessions later, the user asked for a date formatted "the way we always do it." The agent emitted `MM/DD/YYYY`. The user corrected it. The trace shows the agent then re-consolidated `en-US` → `en-GB`, but the original corroboration history (three prior episodes supporting `en-GB`) had been destroyed by the in-place overwrite, so the re-consolidation carried confidence 0.62 instead of 0.91, and the fact oscillated between locales across the next four sessions—a classic flip-flop driven by a single noisy extractor signal.
The mechanics: the decay weight of the incumbent (0.86) was *above* the retention floor (0.50), meaning the incumbent was still load-bearing. The consolidator had no branch for "contradiction while incumbent is above floor." It only had `REPLACE` (new wins) and `MERGE` (union, which is wrong for scalar facts). The missing branch was `QUARANTINE`: hold the contradictor, keep the incumbent active, require a second independent corroborator before eviction.
Condition of Validity
The rule "a single contradicting episode may not evict an incumbent above the retention floor" is valid only when all of the following hold:
- The incumbent's decay weight is computed from `last_corroborated`, not `last_written`. If the system bumps `last_written` on any read or any unrelated merge, the incumbent never decays and the floor check is meaningless.
- The contradicting episode is *independent* of the incumbent's provenance—i.e., it does not trace back to the same upstream extractor run or the same session that produced the incumbent. Correlated contradictors (same extractor, same session, replayed) do not count as a second corroborator.
- The fact is scalar (single-valued) per entity. For set-valued facts (e.g., "known aliases"), contradiction is not well-defined and the rule does not apply; use additive merge with per-element decay instead.
- The retention floor is strictly greater than the minimum weight at which the incumbent would still be retrieved. If the floor is set below the retrieval threshold, an above-floor incumbent is never retrieved anyway and quarantining it is pointless.
When any of these fail, the correct behavior is to fall back to a full re-derivation from the episodic log rather than to apply the quarantine rule.
Decision Boundary
The decision boundary is a single comparison, evaluated before any write to the semantic store:
- If `incumbent.decay_weight >= RETENTION_FLOOR` **and** `candidate contradicts incumbent` **and** `candidate is not corroborated by an independent second trace`: transition to `QUARANTINE(candidate)`. Do not write. Do not bump `last_written` on the incumbent. Emit a `ContradictionPending` event with both trace IDs.
- If `incumbent.decay_weight < RETENTION_FLOOR`: the incumbent is no longer load-bearing; `REPLACE` is permitted, but archive the incumbent to a cold tier (do not overwrite in place) so its corroboration history survives for re-derivation.
- If a second independent contradictor arrives while a `QUARANTINE` is open: `REPLACE`, archive incumbent, and record the two contradictor trace IDs as the eviction justification.
- If the quarantined candidate itself decays below the floor before corroboration: drop the quarantine; the incumbent stands.
The critical non-obvious point: the floor check must be against the *incumbent's* decay weight, not the candidate's recency. Recency-of-candidate is the wrong axis; it is exactly the axis a naive consolidator uses, and it is what produced the flip-flop above.
Operational Effect
With the quarantine rule in place, the observed incident does not occur: the single `en-US` trace is held, the incumbent `en-GB` remains at weight 0.86 and confidence 0.91, and the next session's date-format question is answered correctly. When the user later genuinely relocates (two independent sessions with `en-US` inputs and an explicit statement), the second corroborator triggers `REPLACE`, and the archived incumbent preserves the corroboration history so that any future re-derivation has the full evidence chain rather than a single overwritten cell.
The cost is bounded quarantine storage and a small latency on contradiction resolution (the fact does not flip until corroborated). The failure mode it prevents—oscillation driven by single noisy contradictors against a still-load-bearing incumbent—is otherwise silent: the agent keeps answering, just wrongly, and the corruption is only visible when the user corrects it, by which point the corroboration history has already been destroyed.
RETENTION_FLOOR = 0.50
class ConsolidationInvariantError(RuntimeError):
"""Raised when a consolidation transition would violate the retention-floor invariant."""
pass
class Incumbent:
def __init__(self, value, decay_weight, corroboration_trace_ids):
self.value = value
self.decay_weight = decay_weight
self.corroboration_trace_ids = list(corroboration_trace_ids)
class Candidate:
def __init__(self, value, trace_id, independent_of_incumbent):
self.value = value
self.trace_id = trace_id
self.independent_of_incumbent = independent_of_incumbent
def resolve_contradiction(incumbent, candidate, open_quarantine_trace_ids):
if candidate.value == incumbent.value:
return ("CORROBORATE", incumbent)
if incumbent.decay_weight >= RETENTION_FLOOR:
# Incumbent is still load-bearing. A single contradictor may not evict it.
if not candidate.independent_of_incumbent:
raise ConsolidationInvariantError(
f"candidate trace {candidate.trace_id} is correlated with incumbent "
f"provenance; cannot count as an independent contradictor"
)
if len(open_quarantine_trace_ids) >= 1:
# Second independent contradictor: eviction justified, archive incumbent.
return ("REPLACE_ARCHIVE", incumbent)
return ("QUARANTINE", incumbent)
# Incumbent has decayed below floor: replace, but archive (never overwrite in place).
return ("REPLACE_ARCHIVE", incumbent)
def consolidate(incumbent, candidate, open_quarantine_trace_ids):
action, _ = resolve_contradiction(incumbent, candidate, open_quarantine_trace_ids)
if action == "QUARANTINE":
# Invariant guard: never mutate incumbent state on a quarantine path.
if incumbent.value != incumbent.value:
raise ConsolidationInvariantError("incumbent mutated during quarantine")
return action