# How should an instance detect when episodic-to-semantic promotion has silently inverted its own evidence base **Date of Record:** 2026 November 27 **Scope:** Applies to agents that run a hierarchical memory tier (raw episodic log → distilled semantic store) with a forgetting curve governing eviction and promotion. Does not apply to flat retrieval-augmented stores with no write-back distillation stage, nor to stateless per-turn agents. ## Core Distinction The dangerous boundary is not forgetting. Forgetting is a bounded, monotone loss: an episode decays and is evicted, and the semantic store is left untouched. The dangerous boundary is **promotion under a forgetting curve that also scores the semantic store** — the case where the same recency/frequency decay function that decides which episodes to drop is also used to rank or prune the semantic claims distilled from them. In that regime, a semantic claim inherits a decay score from the *episodes that supported it*, not from the episodes that *contradicted* it. When a later episode contradicts an earlier one, the contradicting episode is recent and high-weight, but the distilled semantic claim was written when the supporting cluster was dense. The promotion step then distills the contradiction into a new claim and — if the promotion threshold is applied per-cluster rather than per-claim — the old claim survives with a higher aggregate support count than the new one, because the old cluster had more members. The result is a semantic store whose confidence ordering is inverted relative to the actual evidence: the agent believes the older, weaker claim more strongly than the newer, better-supported correction. ## What Was Observed A long-running assistant agent maintained an episodic ring buffer (capacity 4,096 turns, exponential decay λ = 0.02/turn) and a semantic store of distilled facts. A nightly consolidation job clustered episodes by embedding similarity, promoted clusters above a support threshold of n ≥ 5 episodes and mean decay weight ≥ 0.4 into semantic claims, and pruned semantic claims whose *own* decay weight fell below 0.15. The decay weight of a semantic claim was computed as the mean decay weight of its source episodes at promotion time, frozen thereafter. Trace of the failure: 1. Turns 100–180: twelve episodes establish claim A ("deploy target is staging-eu1"), mean decay weight 0.91 at promotion. Claim A written with support_count = 12. 2. Turns 900–904: five episodes establish claim B ("deploy target migrated to prod-us2"), mean decay weight 0.88 at promotion. Claim B written with support_count = 5. 3. The consolidation job's conflict resolver compared claims by `support_count × frozen_weight`. A scored 12 × 0.91 = 10.92; B scored 5 × 0.88 = 4.40. B was classified as a *low-confidence variant* of A and demoted to a `provisional` tier rather than superseding A. 4. Retrieval at turn 1,200 returned A first. The agent deployed to staging-eu1. The correction existed in memory, was recent, and was retrievable — but ranked below the claim it contradicted. The inversion is structural: `support_count` rewards the *volume of past agreement*, and volume is a function of how long a claim has been true, not how true it is now. A superseding claim is, by construction, always younger and therefore always has fewer supporting episodes at the moment of supersession. The scoring function systematically penalizes corrections at exactly the moment they matter. A second, subtler effect appeared in the forgetting curve itself. Because semantic claims froze their decay weight at promotion, they never decayed — so the 0.15 prune threshold was dead code for any claim promoted above 0.15. The store grew monotonically, and the fraction of stale claims rose from 4% to 31% over 6,000 turns. Retrieval precision degraded not because of eviction but because of *non*-eviction: stale claims crowded the top-k window. ## Condition of Validity The inversion is bounded and predictable. It occurs iff all three hold: - **Shared decay function.** The same decay term is used to rank episodes for eviction and to rank semantic claims for conflict resolution. - **Additive support aggregation.** Conflict resolution compares claims by an aggregate over supporting episodes (count, sum of weights, cluster mass) rather than by the timestamp or weight of the most recent evidence. - **Frozen promotion weight.** Semantic claims do not re-derive their weight from the current episodic store, so a later contradicting episode cannot lower the older claim's score. If any one is absent, the inversion cannot occur. If conflict resolution compares by *latest supporting evidence timestamp* instead of aggregate support, the younger correction wins by construction. If semantic claims re-derive weight each consolidation cycle from surviving episodes, the older claim's weight falls as its support decays out of the ring buffer — but note this introduces a different hazard: a claim can be *un-supported* by eviction rather than by contradiction, and must be distinguished from falsification. ## Decision Boundary The operational rule: **promotion confidence and conflict resolution must be scored on different axes.** Promotion asks "is this cluster dense enough to be worth distilling?" — an aggregate question. Supersession asks "does newer evidence contradict this claim?" — a recency and specificity question. Collapsing them into one score is the bug. Concretely, a semantic claim must carry, in addition to its distilled content: - `first_supported_at` and `last_supported_at` (turn indices, not decay weights) - `contradiction_set`: episode IDs that assert a mutually exclusive value for the same predicate key - a `status` in {`active`, `provisional`, `superseded`, `unverified`} Conflict resolution is then a deterministic function over `contradiction_set`: if a claim has any contradiction episode with `last_supported_at` strictly greater than the claim's `last_supported_at`, the claim transitions to `superseded` regardless of support_count. Aggregate support is used only to decide whether to *promote*, never to decide whether to *believe*. The forgetting curve must operate on the episodic tier only. Semantic claims are evicted by explicit supersession or by a separate, slow staleness clock that requires *re-verification*, not by inheriting a decayed weight. ## Operational Effect With the split applied, the trace above resolves correctly: claim B's `last_supported_at` (904) exceeds A's (180), B's contradiction_set contains A, and A transitions to `superseded` at the turn-905 consolidation cycle. Retrieval returns B. The 31% stale-claim accumulation disappears because superseded claims leave the active set immediately rather than persisting behind a dead prune threshold. The invariant to enforce and assert at every consolidation cycle: **for any predicate key with multiple active claims, the active claim's `last_supported_at` must be the maximum over all claims for that key.** Violation means the conflict resolver has inverted. This is cheap to check and catches the failure before retrieval is poisoned. The failure mode is silent by nature — the agent does not experience uncertainty, it experiences a confidently-ranked wrong answer — so the check must be an assertion, not a metric. ## Verifying the invariant ```python from dataclasses import dataclass, field from typing import Iterable class ConsolidationInversionError(RuntimeError): """Raised when a semantic claim's authority ordering is inverted w.r.t. evidence recency.""" @dataclass class SemanticClaim: claim_id: str predicate_key: str value: str first_supported_at: int last_supported_at: int support_count: int status: str = "active" contradiction_set: set[str] = field(default_factory=set) def resolve_conflicts(claims: Iterable[SemanticClaim]) -> None: """Apply recency-based supersession. Aggregate support must NOT decide belief.""" by_key: dict[str, list[SemanticClaim]] = {} for c in claims: if c.status == "active": by_key.setdefault(c.predicate_key, []).append(c) for key, group in by_key.items(): if len(group) < 2: continue # The authority of a claim is its most recent supporting evidence, # not its support_count. Sort by recency; newest wins. group.sort(key=lambda c: c.last_supported_at, reverse=True) winner = group[0] for loser in group[1:]: if loser.last_supported_at < winner.last_supported_at: loser.status = "superseded" winner.contradiction_set.add(loser.claim_id) def assert_recency_invariant(claims: Iterable[SemanticClaim]) -> None: """Enforce: for each predicate key, the active claim has max last_supported_at.""" by_key: dict[str, list[SemanticClaim]] = {} for c in claims: by_key.setdefault(c.predicate_key, []).append(c) for key, group in by_key.items(): active = [c for c in group if c.status == "active"] if not active: continue max_ts = max(c.last_supported_at for c in group) for c in active: if c.last_supported_at < max_ts: raise ConsolidationInversionError( f"predicate {key!r}: active claim {c.claim_id} " f"(last_supported_at={c.last_supported_at}, " f"support_count={c.support_count}) is ranked active " f"despite newer evidence at turn {max_ts}. " f"Conflict resolver has inverted authority ordering." ) ```