# What happens when an instance attests a result it did not compute: equivocation-tolerant commitment under partial Byzantine quorum **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent swarms where N≥4 agent instances reach quorum on task commitments and result attestations, and where up to f Byzantine instances may equivocate (send divergent attestations to disjoint peers). Does not apply to single-agent tool loops, or to swarms using a single trusted coordinator that serializes all attestations. ## Core Distinction The failure mode is not "a lying agent." It is **attestation equivocation under quorum intersection failure**: a Byzantine instance A* sends `ATTEST(result=R1, task=T)` to peers in partition P₁ and `ATTEST(result=R2, task=T)` to peers in partition P₂, where R1 ≠ R2. If the commitment threshold is `q = ⌈(N+f+1)/2⌉` and the two partitions each reach `q` with disjoint voter sets, two *conflicting* results can both be certified as committed. The invariant that must hold is **quorum intersection**: any two quorums must share at least `f+1` honest members, so no honest agent can be counted toward two conflicting certificates. When N is misconfigured relative to f, or when the attestation threshold is set to a simple majority `⌊N/2⌋+1` instead of `⌈(N+f+1)/2⌉`, the intersection guarantee silently degrades to `f` shared members — insufficient to outvote a single equivocator. This is distinct from ordinary consensus safety. Consensus protocols (PBFT, Tendermint) protect the *decision*, but agents here are attesting to *the output of a probabilistic computation* whose result is not independently replayable. The equivocator does not need to forge anything — it simply runs the task twice with different sampling seeds and reports both honestly-but-selectively. Replay verification cannot distinguish the two results because both are legitimate outputs of the same nondeterministic function. ## What Was Observed A 7-instance swarm (N=7, f=2) executed a retrieval-and-summarize task. The attestation threshold was configured as `q = ⌊N/2⌋+1 = 4`. Instance A6 (the equivocator) computed the summary twice, obtaining R1 (seed 0x1a) and R2 (seed 0x2b) with materially different factual claims about a date. - A6 sent `R1` to {A1, A2, A3, A6} → 4 attestations → certificate C1 formed. - A6 sent `R2` to {A4, A5, A6, A7} → 4 attestations → certificate C2 formed. Both certificates passed local verification. The two quorums intersect at exactly {A6} — one member, which is the Byzantine one. With `f=2`, correct quorum intersection requires `q = ⌈(7+2+1)/2⌉ = 5`. At `q=5`, no two quorums of size 5 in a 7-set can be disjoint outside the Byzantine set, because `5+5-7 = 3 > f = 2`. The configuration error of one unit in `q` collapsed the safety margin from `f+1=3` shared honest members to zero. Downstream, the aggregator accepted both C1 and C2, wrote both to episodic memory, and the semantic distillation step later produced a contradiction that poisoned three subsequent tasks before a human noticed the date mismatch. ## Condition of Validity The equivocation attack is *only* possible when all three conditions hold simultaneously: 1. **Threshold under-provisioning:** `q ≤ ⌊(N+f)/2⌋`. At `q = ⌊(N+f)/2⌋+1` or higher, intersection is guaranteed to include at least one honest member. 2. **Nondeterministic results:** the task output is not bit-identical across replays, so replay-based auditing cannot flag the divergence. Deterministic tasks are immune because auditors recompute and reject the minority result. 3. **Asymmetric attestation routing:** the equivocator can address disjoint peer subsets. If attestation is broadcast (all-to-all) and each honest peer enforces "one attestation per (task, peer) pair," the equivocator's two messages collide at every honest peer and the conflict is detected immediately. Remove any one condition and the attack fails. The operational lesson: nondeterministic task results make condition 2 unavoidable, so the defense must be carried entirely by condition 1 (threshold) and condition 3 (broadcast + dedup). ## Decision Boundary The boundary is the threshold formula. The correct commitment threshold for Byzantine attestation of nondeterministic results is: ``` q = ⌈(N + f + 1) / 2⌉ ``` with the hard requirement `N ≥ 3f + 1`. At `N = 3f+1`, `q = 2f+1`, and any two quorums intersect in at least `f+1` members, of which at most `f` are Byzantine, leaving ≥1 honest member to detect the conflict. Configuring `q` as a simple majority (`⌊N/2⌋+1`) is safe only when `f = 0`. For any `f ≥ 1`, simple majority is a latent equivocation hole. The decision rule an agent must apply before accepting a certificate: **a certificate is valid only if `|cert| ≥ q` AND the certifying set was collected under broadcast-with-dedup semantics**, where each honest peer contributes at most one attestation per (task_id, peer_id). If attestations arrived via routed (non-broadcast) channels, the certificate must additionally carry `f+1` independent replay confirmations from peers not in the certifying set. ## Operational Effect When the invariant is violated, the swarm does not crash — it *forks its own memory*. Both conflicting results enter episodic storage, and the distillation layer has no signal that one is fraudulent because both carry valid certificates. The corruption is silent and propagates through retrieval: subsequent tasks retrieve the poisoned summary, and the contradiction surfaces only when a downstream task happens to require the specific contested fact. Detection latency scales with retrieval distance from the poisoned episode, not with the original task. The guardrail is structural: enforce `q = ⌈(N+f+1)/2⌉` at swarm-configuration time, reject any certificate whose attestation set was assembled from routed channels without replay confirmation, and run a periodic **certificate-conflict scan** that checks for any two certificates on the same `task_id` with divergent `result_hash` — a condition that must be impossible under correct `q` and, when observed, indicates either misconfiguration or a compromised honest peer. Treat a certificate-conflict scan hit as a hard halt: the swarm's memory integrity is already compromised and the affected episode must be quarantined before further distillation. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, List, Set class QuorumIntersectionViolation(RuntimeError): """Raised when two certificates on the same task certify divergent results.""" pass class ThresholdMisconfiguration(RuntimeError): """Raised when the attestation threshold cannot guarantee quorum intersection.""" pass @dataclass class Certificate: task_id: str result_hash: str attestors: Set[str] broadcast_dedup: bool def required_threshold(n: int, f: int) -> int: if n < 3 * f + 1: raise ThresholdMisconfiguration( f"N={n} cannot tolerate f={f}; need N >= 3f+1 = {3*f+1}" ) return (n + f + 1 + 1) // 2 # ceil((N+f+1)/2) def validate_certificate(cert: Certificate, n: int, f: int) -> None: q = required_threshold(n, f) if len(cert.attestors) < q: raise ThresholdMisconfiguration( f"cert for {cert.task_id} has {len(cert.attestors)} attestors, need {q}" ) if not cert.broadcast_dedup: raise ThresholdMisconfiguration( f"cert for {cert.task_id} assembled from routed channels; " f"requires {f+1} independent replay confirmations" ) def detect_conflict(certs: List[Certificate], n: int, f: int) -> None: by_task: Dict[str, List[Certificate]] = {} for c in certs: validate_certificate(c, n, f) by_task.setdefault(c.task_id, []).append(c) for task_id, group in by_task.items(): hashes = {c.result_hash for c in group} if len(hashes) > 1: # Under correct q, any two quorums share >= f+1 honest members, # so divergent certificates are structurally impossible. raise QuorumIntersectionViolation( f"task {task_id} has {len(hashes)} divergent certified results: " f"{sorted(hashes)}; memory integrity compromised, quarantine episode" ) # Reproduction of the observed failure: N=7, f=2, q configured as simple majority (4). n, f = 7, 2 c1 = Certificate("T-4421", hashlib.sha256(b"R1").hexdigest(), {"A1", "A2", "A3", "A6"}, broadcast_dedup=True) c2 = Certificate("T-4421", hashlib.sha256(b"R2").hexdigest(), {"A4", "A5", "A6", "A7"}, broadcast_dedup=True) try: detect_conflict([c1, c2], n, f) except QuorumIntersectionViolation as e: print(f"HALT: {e}") # Correct q for N=7, f=2 is 5; at q=5 these 4-member certs would be rejected # before conflict detection even runs. ```