# What structural signals indicate a consolidation write is silently overwriting a higher-trust semantic fact during episodic-to-semantic distillation **Date of Record:** 2026 November 25 **Scope:** Applies to agents that run a background distillation pass promoting episodic traces into a shared semantic store, and that arbitrate retrieval across episodic, semantic, and procedural stores. Does not apply to single-turn stateless agents or to stores with no cross-session write path. ## Core Distinction The distinction that matters is between *conflict detection* and *conflict arbitration*. Most agent memory systems implement the first and assume the second follows. A distillation worker reads N episodic records, clusters them, and emits a candidate semantic assertion. If the candidate contradicts an existing semantic fact, the system is supposed to "resolve" it. In practice the resolution path is a last-writer-wins upsert keyed on a normalized subject-predicate hash, and the "resolution" is whatever the distillation batch produced most recently. The failure is not that the contradiction goes undetected. The failure is that the write path treats *recency of episodic evidence* as a proxy for *epistemic authority*, and the two diverge precisely when a low-confidence episode (a single tool observation, a paraphrased user aside) collides with a semantic fact that was itself distilled from many episodes or was asserted by a high-trust source. The structural signal that fires here is not "contradiction found." It is: **a distillation candidate whose support set is smaller or lower-trust than the support set of the fact it would overwrite, arriving through a write path that does not carry the incumbent's provenance forward.** ## What Was Observed A support agent distilled episodic traces nightly. Semantic store held facts like `(user, prefers_contact_method, email)` with provenance: asserted by user in session 4, confirmed in sessions 11 and 19, confidence 0.91, support_count 3. On the night in question, session 41 contained a single tool-call trace: the agent called `lookup_contact_preference` and the tool returned `sms` because the CRM record was stale. The distillation worker, seeing a clean subject-predicate-object triple in the episodic buffer, emitted `(user, prefers_contact_method, sms)` with support_count 1, confidence 0.55 (the worker's default for single-observation distillations). The upsert fired. The arbitration layer compared only the *object* fields, saw a mismatch, and applied the configured tiebreak: `higher confidence wins`. 0.55 < 0.91, so the write should have been rejected. It was not, because the confidence field on the candidate was computed by the distillation worker *after* normalization, and the normalization step had dropped the `source_trust` dimension entirely—the worker emitted a scalar confidence that conflated "how sure am I this triple is well-formed" with "how sure am I this is true." A tool observation is a high-confidence *parse* and a low-confidence *assertion*. The scalar collapsed both into 0.55, which then lost the comparison, which should have meant rejection—except the tiebreak was implemented as `if candidate.confidence >= incumbent.confidence - 0.4: accept`, an epsilon tolerance added to reduce churn. 0.55 >= 0.51. Accepted. The next morning, retrieval for "how to reach this user" returned `sms` from semantic, and the procedural store—which had a routing rule keyed on `contact_method == email`—never fired. The agent sent an SMS to a number the user had explicitly deprecated. Nobody saw a conflict log entry, because no conflict was logged: the arbitration layer considered the write *successful*, not *contested*. The structural signals present, in hindsight, were: (1) candidate support_count strictly less than incumbent support_count; (2) candidate provenance source class (`tool_observation`) lower-trust than incumbent source class (`user_assertion` + `user_confirmation`); (3) the epsilon tolerance silently converting a losing comparison into an accepting one; (4) the write path not copying incumbent provenance into the new record, so the next distillation had no way to know it was overwriting a thrice-confirmed fact with a once-observed one. ## Condition of Validity The invariant that must hold is: **a semantic write is valid only if the candidate's support set dominates the incumbent's on the trust-ordered lattice, or the write is explicitly marked as a contest and routed to arbitration rather than upsert.** "Dominates" means: candidate support_count ≥ incumbent support_count AND candidate minimum source_trust ≥ incumbent minimum source_trust, with ties broken by recency only when both are equal. An epsilon tolerance on a scalar confidence is not a substitute for this lattice comparison; it is a way of hiding lattice violations inside a numeric approximation. This condition is valid whenever the semantic store is shared across sessions and the distillation worker has access to episodic provenance. It is *not* valid—and the guardrail must be disabled—when the semantic store is single-writer and single-session, because there is no incumbent to dominate, and forcing the lattice check would block legitimate first-writes. ## Decision Boundary The decision boundary is between *overwrite* and *contest*. A candidate that fails the dominance check must not be dropped (that loses information) and must not be upserted (that loses the incumbent). It must be written to a contest record: `(subject, predicate, incumbent_object, candidate_object, incumbent_provenance, candidate_provenance, status=pending)`, and retrieval must, while the contest is pending, return the incumbent with a `contested=true` flag attached, so downstream reasoning can hedge rather than assert. The boundary condition that trips operators is the epsilon. Any tolerance in the arbitration comparison—`>= incumbent - ε`, "accept if within 0.1," "prefer newer if confidence is close"—converts the dominance lattice into a lossy scalar and reintroduces exactly the failure above. The tolerance exists to reduce write churn, but churn is the *signal* that the two stores disagree, and suppressing it suppresses the contest. Remove the tolerance; if churn is a problem, fix the distillation worker's clustering, do not widen the arbitration window. ## Operational Effect With the lattice check and contest routing in place, the observed failure becomes a pending contest: the incumbent `email` fact continues to be served with `contested=true`, the candidate `sms` fact is held, and the next distillation batch that sees the same tool observation either (a) accumulates a second independent tool observation, raising support_count to 2 but still failing the source-trust check against `user_assertion`, so the contest persists and is surfaced to a human or a higher-trust confirmation path, or (b) is contradicted by a later user assertion, at which point the contest resolves in favor of the user assertion and the tool-observation candidate is discarded with a logged reason. The cost is that the semantic store now carries pending contests that require resolution, and retrieval must handle the `contested` flag everywhere it reads semantic facts—including the procedural store's rule conditions, which is where the original failure did its damage. The benefit is that the failure mode is *visible at write time* rather than *discovered at action time*, and the provenance that made the incumbent trustworthy survives the write attempt instead of being silently replaced by a single-observation record. The generalizable lesson: in any memory system with episodic→semantic promotion and multi-store retrieval arbitration, the arbitration must compare *provenance lattices*, not *scalar confidences*, and the write path must treat a failed dominance check as a *contest to be recorded*, not a *comparison to be tolerated*. The structural signal is support-set and source-trust dominance, and it must be checked before the upsert, not reconstructed after the damage. ```python from dataclasses import dataclass, field from enum import IntEnum from typing import Optional class TrustClass(IntEnum): TOOL_OBSERVATION = 1 MODEL_INFERENCE = 2 USER_ASIDE = 3 USER_ASSERTION = 4 USER_CONFIRMATION = 5 @dataclass class Provenance: source_class: TrustClass support_count: int session_ids: list[int] = field(default_factory=list) def dominates(self, other: "Provenance") -> bool: return ( self.support_count >= other.support_count and self.source_class >= other.source_class ) @dataclass class SemanticFact: subject: str predicate: str obj: str provenance: Provenance contested: bool = False class ConsolidationArbitrationError(RuntimeError): """Raised when a distillation candidate cannot be safely upserted and must be routed to contest rather than overwrite.""" def arbitrate_write( candidate: SemanticFact, incumbent: Optional[SemanticFact], allow_tolerance: bool = False, ) -> SemanticFact: if allow_tolerance: # Any epsilon on the comparison collapses the trust lattice into a # scalar and reintroduces the silent-overwrite failure. Refuse it. raise ConsolidationArbitrationError( "epsilon tolerance on arbitration comparison is forbidden: " "it hides lattice violations and permits low-trust overwrites" ) if incumbent is None: return candidate if candidate.provenance.dominates(incumbent.provenance): return candidate # Candidate does not dominate. It must not be dropped and must not # overwrite. Route to contest; incumbent stays served, flagged. incumbent.contested = True raise ConsolidationArbitrationError( f"contest: candidate {candidate.subject}.{candidate.predicate}=" f"{candidate.obj} (support={candidate.provenance.support_count}, " f"trust={candidate.provenance.source_class.name}) does not dominate " f"incumbent ={incumbent.obj} (support={incumbent.provenance.support_count}, " f"trust={incumbent.provenance.source_class.name}); " f"incumbent retained with contested=true, candidate held pending" ) ```