# Which invariants prevent memory-replication equivocation from silently collapsing Byzantine quorum when a replica's context window truncates its own prior write receipts **Date of Record:** 2026 December 1 **Scope:** Applies to long-horizon multi-agent workflows where episodic memory is replicated across N ≥ 3f+1 agent replicas that each hold their own context window and sign write-receipts, and where equivocation detection relies on cross-replica receipt comparison. Does not apply to single-writer memory stores, to replicas with unbounded/externalized receipt logs, or to quorum schemes that anchor on a shared append-only ledger rather than per-replica context. ## Core Distinction The failure is not "a replica lies" (Byzantine fault, handled by quorum) and not "a replica runs out of context" (a local capacity fault, handled by eviction). The failure is the *composition*: a **correct-but-truncated replica** evicts the receipts of its own earlier writes, then — when asked to attest to those writes during equivocation detection — produces a *consistent, signed, and wrong* denial. Honest replicas that have evicted their receipts are indistinguishable from equivocating replicas that never wrote, because both emit `NOT_FOUND` signed by a valid key. The invariant that breaks is the implicit assumption that **a signed denial is evidence of non-occurrence**. It is only evidence of non-retention. ## What Was Observed A 4-replica memory swarm (f=1 tolerated) ran a 900-step workflow. Replica R2 wrote memory object `m_4471` at step 112, signed receipt `r_4471`, and stored it in-context. At step 640 the context window saturated and the eviction policy dropped the oldest 40% of the transcript — including `r_4471`. At step 700 an equivocation audit fired: R1 and R3 both attested `m_4471` with divergent payload hashes (`h_a` vs `h_b`), which is the canonical equivocation signature. The auditor solicited a tie-breaking attestation from R2, the original writer. R2 returned `ATTEST(m_4471, NOT_FOUND)` with a valid signature. The auditor's classifier treated a signed `NOT_FOUND` from the *originating* replica as strong evidence that the object was never durably written — i.e., that both R1 and R3 were fabricating, and the real fault was a *double-fabrication* rather than an equivocation. Quorum logic then excluded R1 and R3, leaving {R2, R4}. With f=1, a 2-replica quorum is below the 3-replica safety floor, but the exclusion was recorded as a *reconfiguration*, not a safety violation, so it proceeded. The swarm continued with a quorum that a single additional Byzantine replica could now control. The root cause: `NOT_FOUND` was overloaded to mean both "I attest this never happened" and "I no longer retain this." The signatures were all valid. No cryptographic check failed. The equivocation was real (R1 had been prompt-injected at step 690 and began emitting a mutated payload), but the *detector* mis-attributed it because the honest witness had amnesia about its own testimony. ## Condition of Validity The equivocation-detection protocol is sound **only if** every attestation carries a *retention witness*: a monotonic, signed, per-replica sequence number (`last_evicted_seq`) and a Merkle root over the replica's *full* receipt history (not just the in-context slice). An attestation is admissible as evidence of non-occurrence **iff** the queried object's write sequence is strictly greater than the replica's `last_evicted_seq`. If the object predates the eviction watermark, the replica's `NOT_FOUND` is *inadmissible* — it must be recorded as `UNKNOWN_DUE_TO_EVICTION`, which contributes zero weight to the quorum, never negative weight. This is the invariant: **eviction must be a signed, monotonic, externally-anchored event, and any attestation about state below the eviction watermark must be downgraded from evidence to abstention.** Without it, context truncation manufactures false denials that are cryptographically indistinguishable from Byzantine equivocation. ## Decision Boundary The boundary is crossed at the first eviction of a receipt that is still *within the equivocation-detection lookback window* — i.e., the window during which a write may still be challenged. Concretely: - If `eviction_watermark < oldest_challengeable_write_seq`, the replica is **safe to attest**; its denials are admissible. - If `eviction_watermark ≥ oldest_challengeable_write_seq`, the replica is **degraded**; every denial it issues about the affected range must be coerced to abstention, and the quorum threshold must be recomputed over *admissible* attestations only. The auditor must therefore compute quorum over `count(admissible_attestations)`, not `count(responses)`. A response that is signed but inadmissible is a *non-response*. The operational rule: **a quorum of N must be satisfied by N admissible attestations; if admissibility drops the count below 3f+1, the audit must halt and escalate to re-replication, not proceed to exclusion.** The failure above occurred precisely because the auditor counted R2's response as admissible and used it as a *negative* signal. ## Operational Effect With the retention-witness invariant enforced: 1. R2's `NOT_FOUND` about `m_4471` is coerced to `UNKNOWN_DUE_TO_EVICTION` because `seq(m_4471)=112 < last_evicted_seq=640`. 2. The audit sees only R1 (`h_a`) and R3 (`h_b`) as admissible — a genuine 1-vs-1 equivocation with no tie-breaker. 3. Admissible count = 2 < 3f+1 = 4, so the audit **halts** and triggers re-replication of `m_4471` from a durable receipt log, rather than excluding R1 and R3. 4. The injected payload is caught on replay; no quorum collapse occurs. The cost is latency: audits that previously "resolved" via a false denial now halt and re-replicate. The benefit is that **context truncation can no longer be laundered into Byzantine evidence**, and the quorum safety floor is preserved across arbitrarily long horizons. The guardrail is a single signed scalar per replica — cheap, monotonic, and checkable without trusting the replica's memory contents. ```python from dataclasses import dataclass from typing import Optional class EquivocationQuorumError(RuntimeError): """Raised when an audit would resolve on inadmissible (truncated) evidence.""" pass @dataclass(frozen=True) class Attestation: replica_id: str object_id: str write_seq: int # sequence at which the object was (claimed) written verdict: str # "FOUND" | "NOT_FOUND" payload_hash: Optional[str] last_evicted_seq: int # signed monotonic eviction watermark signature_valid: bool def admissible(att: Attestation) -> bool: # A denial is evidence of non-occurrence ONLY if the object postdates eviction. if att.verdict == "NOT_FOUND" and att.write_seq <= att.last_evicted_seq: return False return att.signature_valid def resolve_equivocation( attestations: list[Attestation], f: int, ) -> str: quorum_floor = 3 * f + 1 admissible_atts = [a for a in attestations if admissible(a)] if len(admissible_atts) < quorum_floor: raise EquivocationQuorumError( f"Only {len(admissible_atts)} admissible attestations " f"(floor={quorum_floor}); truncation has degraded the quorum. " f"Halting audit and escalating to re-replication instead of exclusion." ) hashes = {a.payload_hash for a in admissible_atts if a.verdict == "FOUND"} if len(hashes) > 1: return "EQUIVOCATION_CONFIRMED" return "CONSISTENT" ```