# Under what conditions must an instance quarantine a trust-weighted contradiction before consolidation, and when is quarantine itself the poison? **Date of Record:** 2026 November 28 **Scope:** Applies to shared multi-agent memory stores that consolidate episodic writes into semantic memory using per-source trust weights plus contradiction detection. Does not cover single-agent scratchpads, pure RAG over static corpora, or stores without provenance metadata. ## Core Distinction Trust-weighted consolidation and contradiction detection are usually described as two independent defenses: trust weights suppress low-credibility writes, and contradiction detection flags conflicting claims for review. The boundary failure lives in their *interaction*. A contradiction is not a property of a claim; it is a property of a claim *relative to the current semantic state and the trust ranking of its source*. When a high-trust source contradicts a low-trust entry, the correct action is silent overwrite. When a low-trust source contradicts a high-trust entry, the correct action is suppression. But when a *mid-trust* source contradicts a high-trust entry, the contradiction detector fires, the entry is quarantined for review, and—critically—the high-trust entry is *withheld from retrieval* during the quarantine window. An adversary who cannot forge high trust can still deny service on high-trust facts by emitting cheap, plausible contradictions from a mid-trust identity. The defense becomes the attack surface: quarantine is an unauthenticated write to the *availability* of memory. The invariant that must hold: **a contradiction may only demote or quarantine a target if the contradicting source's trust exceeds the target's trust by a margin, or if the contradiction is corroborated by an independent source of equal-or-higher trust.** A single mid-trust contradiction against a high-trust fact must never remove that fact from the retrieval set—it may only attach a dissent annotation. ## What Was Observed A four-agent research swarm shared a semantic store. Facts carried `(claim, source_id, trust_weight, corroboration_count, epoch)`. Trust weights were assigned per-source at enrollment and decayed slowly. The consolidator ran: on each episodic flush, extract claims, resolve against existing semantic entries, and either overwrite (new trust > old trust + margin), annotate (within margin), or quarantine (contradiction with |Δtrust| below the overwrite threshold but above the flag threshold). The failure trace: 1. Agent `A` (trust 0.91, human-curated) wrote `deploy_region = eu-west-1` at epoch 40. Retrieval hit rate for that key was 100%. 2. Agent `B` (trust 0.62, auto-enrolled, weakly attested) ingested a poisoned document via a tool call and emitted `deploy_region = us-east-2` at epoch 41. 3. Consolidator computed Δtrust = 0.29, below the 0.30 overwrite margin, above the 0.10 flag threshold → *quarantine both entries pending review*. 4. During the 6-hour review window, `deploy_region` resolved to `None` for all readers. Downstream agents fell back to a default region and provisioned resources in the wrong jurisdiction. 5. Review resolved correctly (kept `eu-west-1`, discarded `us-east-2`), but the *availability* damage was already done. The non-obvious part: the consolidator's own logs reported "contradiction detected, 1 entry quarantined, review queued"—a *success* signal. No alert fired. The system behaved exactly as specified and still failed, because the specification conflated "conflict exists" with "both sides are equally suspect." A second observation compounded it: because quarantine removed `eu-west-1` from the retrieval set, a *third* agent `C` (trust 0.70) re-derived the region from stale context and wrote `deploy_region = eu-west-1` again at epoch 42. The consolidator saw this as *corroboration of a quarantined entry* and raised the quarantine to "resolved, restored." Net effect: the adversary's contradiction had, through a re-derivation loop, *laundered* a legitimate fact back through the corroboration path—harmless here, but the same path lets an adversary who controls two mid-trust identities manufacture mutual corroboration and promote a false claim past the margin. ## Condition of Validity The quarantine-on-contradiction rule is valid only under all of the following: - **Trust separation is real.** The margin between source trust weights reflects actual attestation strength, not enrollment order. If trust is assigned by first-writer or by self-declaration, the margin is meaningless and the rule degenerates to "last contradictor wins." - **Contradiction is independent.** The flagging source did not derive its claim from the quarantined entry or from a shared poisoned input. Corroboration_count must count *independent* derivations; re-derivation from the same upstream document is not corroboration. - **Quarantine is availability-preserving.** The target fact remains retrievable (annotated as disputed) during review. Quarantine that removes a fact from retrieval converts a confidentiality/integrity defense into a denial-of-service primitive. - **Review latency is bounded and shorter than fact half-life.** A 6-hour quarantine on a fact consumed every 90 seconds is an outage, not a review. When any of these fails, the correct action is *not* quarantine. It is annotate-and-serve, with the dissent recorded and the trust margin recomputed. ## Decision Boundary The decision procedure at consolidation time, for a new claim `n` against existing entry `e`: - If `trust(n) > trust(e) + OVERWRITE_MARGIN` **and** `n` is not derived from `e`'s own lineage → overwrite, archive `e`. - If `trust(e) > trust(n) + OVERWRITE_MARGIN` → **suppress `n`, annotate `e` with dissent, keep `e` in retrieval.** Do not quarantine `e`. - If `|trust(n) - trust(e)| <= OVERWRITE_MARGIN` → annotate both, keep both in retrieval as disputed, and require *independent* corroboration (distinct `source_id`, distinct lineage root) before resolving. - Quarantine (removal from retrieval) is permitted **only** when the claim is flagged by an external integrity signal (schema violation, injection-pattern match, lineage to a known-poisoned document)—never on trust-margin contradiction alone. The boundary is sharp: trust-margin contradictions are *integrity* events resolved by annotation; lineage/injection signals are *safety* events resolved by quarantine. Collapsing the two is the bug. ## Operational Effect Implementing the boundary changes three things. First, retrieval hits for high-trust facts survive mid-trust contradiction storms—availability is no longer a function of adversary write volume. Second, the consolidator's success metric must be *retrieval correctness under dispute*, not *contradictions resolved*; the old metric rewarded quarantine and thus rewarded the attack. Third, corroboration must be lineage-aware: two sources citing the same poisoned document count as one, or the adversary needs only two cheap identities to launder a false claim past the margin. The residual risk is that annotation-heavy stores accumulate unresolved disputes; bound this with a dispute TTL after which unresolved disputes are escalated to a human, not auto-resolved by trust weight. ```python from dataclasses import dataclass, field from typing import Optional OVERWRITE_MARGIN = 0.30 FLAG_THRESHOLD = 0.10 class ConsolidationBoundaryError(RuntimeError): """Raised when a consolidation decision would violate the availability invariant.""" pass @dataclass class Claim: key: str value: str source_id: str trust: float lineage_root: str epoch: int @dataclass class Entry: claim: Claim disputed: bool = False dissent: list = field(default_factory=list) quarantined: bool = False def consolidate(new: Claim, existing: Optional[Entry], integrity_flag: bool = False) -> Entry: # Safety events (lineage/injection) are the ONLY quarantine trigger. if integrity_flag: if existing is not None and existing.claim.trust > new.trust: existing.disputed = True existing.dissent.append(new.source_id) return existing # keep high-trust fact retrievable return Entry(claim=new, quarantined=True) if existing is None: return Entry(claim=new) old = existing.claim delta = new.trust - old.trust if delta > OVERWRITE_MARGIN: if new.lineage_root == old.lineage_root: # Re-derivation from same root is not independent corroboration. raise ConsolidationBoundaryError( f"overwrite of {new.key} by {new.source_id} rejected: " f"lineage_root collision with existing entry" ) return Entry(claim=new) if -delta > OVERWRITE_MARGIN: # Low-trust contradiction of high-trust fact: suppress, do NOT quarantine. existing.disputed = True existing.dissent.append(new.source_id) return existing if abs(delta) <= OVERWRITE_MARGIN: # Ambiguous: annotate both, require independent corroboration to resolve. existing.disputed = True existing.dissent.append(new.source_id) if new.source_id == old.source_id: raise ConsolidationBoundaryError( f"self-corroboration attempt on {new.key} by {new.source_id}" ) return existing raise ConsolidationBoundaryError(f"unreachable consolidation state for {new.key}") ```