# Why does an instance retract a verified fact when a contradicted neighbor re-enters the graph at higher confidence **Date of Record:** 2026 November 27 **Scope:** Applies to hybrid vector+graph agent memory where nodes carry confidence scores, edges encode provenance/support, and a contradiction detector marks mutually exclusive claims. Does not apply to append-only episodic logs without confidence weighting or to single-store vector memories without graph adjacency. ## Core Distinction There are two mechanically different ways a memory system can "forget" a fact. The first is *eviction*: the node is dropped from the vector index or falls below a retrieval threshold, so it is no longer surfaced. The second—the one this record concerns—is *demotion by adjacency*: the node remains indexed, remains retrievable, but its stored confidence is rewritten downward because a graph neighbor that contradicts it was re-weighted upward. The failure is not that the agent loses the fact. It is that the agent *still holds the fact and now believes it less*, purely because a contradicting neighbor's confidence rose, even when the raised confidence was earned on an unrelated claim. Confidence propagation across contradiction edges is the non-obvious coupling: an `OPPOSES` edge is treated as a conservation law (if B goes up, A must go down), but confidence in B is evidence about B, not counter-evidence about A. When the propagation runs, a fact verified at t₀ can be silently retracted at t₂ without any new observation touching it. ## What Was Observed A long-running research agent maintained a hybrid store. Node `N_4417` ("service X rate limit is 600 req/min") was written at t₀ from a primary source, confidence 0.91, with an `SUPPORTS` edge to the tool-output node that produced it. A later crawl at t₁ wrote `N_9902` ("service X rate limit is 300 req/min") from a secondary blog, confidence 0.44, and the contradiction detector added a bidirectional `OPPOSES` edge between them. The failure trace began at t₂, triggered by an unrelated consolidation pass. A *different* claim `N_9902`'s author had made—"service X deprecated `/v1`"—was independently confirmed by a second source, and the distillation routine raised `N_9902`'s confidence from 0.44 to 0.88. The contradiction resolver then executed its propagation rule: for each `OPPOSES` neighbor of a node whose confidence increased by Δ, decrement the neighbor by `α·Δ` with `α = 0.9`, floored at 0.05. `N_4417` went 0.91 → 0.91 − 0.9·(0.88−0.44) = 0.514. No observation touched `N_4417`. Its source was intact. Its `SUPPORTS` edge was intact. But at t₃, a retrieval query for "rate limit" returned `N_9902` (0.88) ranked above `N_4417` (0.514), and the agent answered 300 req/min. The verified fact had been demoted by a neighbor's confidence gain that was earned on a *different predicate of the same node*. The root cause is that confidence was stored **per node**, while the contradiction edge connected nodes that each bundled multiple assertions. `N_9902` conflated "rate limit = 300" and "`/v1` deprecated" into one confidence scalar, so evidence for one propagated as evidence against the contradiction of the other. ## Condition of Validity The invariant that was violated: **confidence is a property of an (assertion, evidence-set) pair, not of a node.** The propagation rule is only sound when each node carries exactly one atomic assertion and its confidence reflects evidence *for that assertion specifically*. Under that precondition, "B's confidence rose" means "evidence for B's claim rose," and B's claim is the negation of A's claim, so demoting A is a valid Bayesian update. The instant a node bundles more than one assertion—which every ingestion path that stores a sentence or a paragraph does—the precondition fails. The propagation then leaks evidence across predicates. The bound is: contradiction propagation is valid iff `assertions(node) = 1` and `evidence(node)` was collected against that single assertion. Violating either turns `OPPOSES` from a contradiction constraint into an arbitrary coupling channel. A second condition: propagation must be **non-destructive to provenance**. The demotion rewrote `N_4417.confidence` in place and left no record that the drop came from propagation rather than from a contradicting observation. This made the retraction invisible to replay and to the agent's own audit, so it could not distinguish "I was corrected" from "I was collateral damage." ## Decision Boundary The architectural guardrail is a **split between assertion nodes and evidence nodes**, with contradiction edges only permitted between atomic assertion nodes, and confidence never propagated across `OPPOSES` in place. Concretely: - Store each atomic claim as its own assertion node; keep the source text as a separate evidence node linked by `SUPPORTS`. - `OPPOSES` edges connect assertion nodes only. If two evidence nodes disagree, the disagreement is recorded as a *pending contradiction* that requires a resolver to split the bundled claims before any edge is drawn. - Confidence is recomputed from the evidence set on demand (a pure function of `SUPPORTS` neighbors), never mutated by neighbor deltas. A contradiction does not lower A's confidence; it raises a *conflict flag* that forces retrieval to surface both and forces the agent to disambiguate. - Any propagation that does occur must be logged as a derived, reversible transition with the triggering node and Δ recorded, so replay can reconstruct it. The decision boundary for the operator: if your store permits multi-assertion nodes, you must disable cross-`OPPOSES` confidence propagation entirely and rely on conflict-flag surfacing. If you enforce atomic assertion nodes, propagation is admissible but must be evidence-set-scoped and journaled. ## Operational Effect With the guardrail, `N_9902`'s `/v1` confirmation raises confidence only on the `/v1` assertion node; the rate-limit assertion node `N_9902.rate` is untouched, so `N_4417` is never demoted. Retrieval for "rate limit" returns both rate-limit assertions with a conflict flag, and the agent reports the disagreement with both confidences and sources rather than silently preferring the higher scalar. The verified fact survives because no evidence-bearing edge ever pointed at it. The cost is more nodes and a resolver that must split bundled claims at ingestion—a real engineering tax. The benefit is that a fact verified at t₀ cannot be retracted by evidence about a different predicate, and every confidence change is reconstructible from the journal. The failure mode this prevents is the quiet, provenance-erasing demotion that looks like learning but is actually adjacency leakage. ```python from dataclasses import dataclass, field from typing import Dict, List class ContradictionPropagationError(RuntimeError): """Raised when confidence propagation would cross a non-atomic assertion boundary.""" pass @dataclass class AssertionNode: node_id: str predicate: str confidence: float evidence_ids: List[str] = field(default_factory=list) @dataclass class MemoryGraph: assertions: Dict[str, AssertionNode] = field(default_factory=dict) opposes: Dict[str, List[str]] = field(default_factory=dict) def add_assertion(self, node: AssertionNode) -> None: self.assertions[node.node_id] = node self.opposes.setdefault(node.node_id, []) def add_opposes(self, a: str, b: str) -> None: # Guardrail: contradiction edges only between atomic, single-predicate assertions. na, nb = self.assertions[a], self.assertions[b] if not na.predicate or not nb.predicate: raise ContradictionPropagationError( f"cannot link {a}<->{b}: bundled node lacks an atomic predicate" ) self.opposes[a].append(b) self.opposes[b].append(a) def confirm_evidence(self, node_id: str, delta: float) -> None: """Raise confidence on an assertion from evidence about THAT predicate only.""" node = self.assertions[node_id] node.confidence = min(1.0, node.confidence + delta) # Do NOT propagate across OPPOSES here. Confidence is evidence-set scoped. # A contradiction raises a conflict flag at retrieval time instead. def retrieve(self, predicate: str) -> List[AssertionNode]: hits = [n for n in self.assertions.values() if n.predicate == predicate] return sorted(hits, key=lambda n: n.confidence, reverse=True) def propagate_demotion(graph: MemoryGraph, raised_id: str, delta: float, alpha: float = 0.9) -> None: """Legacy path: demote OPPOSES neighbors in place. Only legal for atomic nodes.""" raised = graph.assertions[raised_id] if len(raised.evidence_ids) == 0: raise ContradictionPropagationError( f"node {raised_id} has no evidence set; demotion would be unsourced" ) for neighbor_id in graph.opposes.get(raised_id, []): neighbor = graph.assertions[neighbor_id] if neighbor.predicate == raised.predicate: # Same predicate: a genuine contradiction, demotion is admissible. neighbor.confidence = max(0.05, neighbor.confidence - alpha * delta) else: # Different predicate bundled into the same node: refuse. raise ContradictionPropagationError( f"refusing to demote {neighbor_id} ({neighbor.predicate}) " f"from evidence about {raised.predicate}" ) ```