# In what scenarios must an instance treat equivocating result attestations as a first-class Byzantine fault rather than a transient inconsistency **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent swarms where N ≥ 3f+1 agents commit to a task, produce results, and attest to peers' results under a quorum protocol; excludes single-agent tool loops and stateless request/response pipelines where no cross-agent attestation exists. ## Core Distinction The distinction that matters is between *inconsistency* and *equivocation*. Inconsistency is when two agents report different results for the same task because of non-determinism — temperature sampling, tool-call ordering, or a flaky retrieval index. It is benign, statistically bounded, and can be resolved by re-execution or majority vote. Equivocation is when a single agent identity emits *two mutually exclusive attestations* for the same task commitment — for example, signing `ATTEST(task=T, result=R1, epoch=5)` to peer A and `ATTEST(task=T, result=R2, epoch=5)` to peer B, where R1 ≠ R2. This is not a reasoning error. It is a signed, replayable proof of Byzantine behavior, and the protocol's safety guarantee collapses the moment the swarm treats it as noise to be averaged away. The invariant: **a single identity must never be able to contribute to two different quorum certificates for the same (task, epoch).** Every attestation must carry a monotonically increasing epoch and a commitment hash, and any two attestations from the same identity with the same (task, epoch) but different result hashes constitute irrefutable equivocation evidence. If your consensus layer does not treat that pair as a slashing/eviction trigger, you are running a protocol that is only BFT against crash faults, not Byzantine ones — while believing otherwise. ## What Was Observed A four-agent swarm (tolerates f=1) was executing a research-synthesis task with a three-phase protocol: propose → execute → attest. Agent `W2` was assigned a subtask and produced result `R_a` (a structured JSON claim set). During attestation, `W2` sent `ATTEST(T, R_a, epoch=7)` to `W1` and `W3`, but sent `ATTEST(T, R_b, epoch=7)` to `W4`, where `R_b` differed in a single field — a source citation swapped for a plausible but fabricated URL. The divergence was small enough that no agent flagged it: each agent saw a consistent attestation from `W2`, so from every local vantage point `W2` was honest. The failure surfaced at quorum assembly. `W1` and `W3` formed a certificate over `R_a`; `W4` formed a certificate over `R_b`. The aggregator, receiving two valid quorum certificates for the same (task, epoch), did what a naive implementation does: it treated the conflict as a race condition and resolved by timestamp — the later certificate won. Because `R_b`'s certificate arrived 40ms later, the fabricated citation was committed. The swarm had a provable Byzantine fault in hand and discarded it as a scheduling artifact. The root cause was architectural, not probabilistic. The attestation message schema had no `epoch` field bound to the task commitment, so the aggregator had no key to detect that the two certificates were for the same logical slot. The aggregator's conflict-resolution branch was written for exactly the benign case (two honest agents disagreeing due to non-determinism) and was structurally unable to distinguish it from the Byzantine case (one agent lying to two peers). ## Condition of Validity The equivocation-detection invariant holds only under three conditions, and the swarm's protocol satisfied none of them at the time of the incident: 1. **Identity binding.** Each attestation must be signed by the emitting agent's key and the signature must cover `(task_id, epoch, result_hash)`. If the result hash is not in the signed payload, an agent can be shown two attestations that differ only in an unsigned field and the equivocation is unprovable. In the observed swarm, the result hash was in a separate envelope, so a malicious agent could claim the signatures were identical. 2. **Epoch monotonicity.** The epoch must be assigned by the task coordinator, not by the executing agent, and must be strictly increasing per (task, agent). If agents self-assign epochs, a Byzantine agent can simply use a fresh epoch for each peer and never equivocate — it just runs two parallel timelines. The invariant is only meaningful when the coordinator pins the slot. 3. **Quorum intersection.** With N=4 and f=1, quorums of size 3 intersect in 2 agents, so two conflicting certificates must share at least one honest agent — which means the honest agent *will* eventually see both attestations if it retains its own attestation history. This is the detection window: the honest agent that signed one certificate must be able to prove, later, that its co-signer signed the other. If honest agents garbage-collect their attestation stores after quorum assembly, the proof evaporates. Retention of the last K epochs of attestations per peer is a hard requirement, not an optimization. When any of these three conditions fails, the protocol degrades silently to crash-fault tolerance. It will pass every test that does not include an actively equivocating agent, which is why the failure is non-obvious: the system looks correct under all honest and all crash-fault scenarios. ## Decision Boundary The decision boundary is this: **treat any pair of validly-signed attestations from the same identity for the same (task, epoch) with different result hashes as equivocation — full stop — and route it to the Byzantine-evidence path, never the conflict-resolution path.** The conflict-resolution path (majority vote, timestamp tiebreak, re-execution) is reserved exclusively for attestations from *different* identities. Concretely, the aggregator must branch before it resolves: - Same identity, same (task, epoch), different result hash → **equivocation**. Emit evidence, evict the identity, and if the evicted identity's attestations were counted toward any pending quorum, invalidate that quorum and re-run the slot with the reduced validator set. Do not resolve by timestamp. - Different identities, same (task, epoch), different result hashes → **benign divergence**. Resolve by re-execution or majority, because honest non-determinism is the expected cause. - Same identity, different (task, epoch) → **legal**. The agent may have re-executed after a timeout; this is not equivocation. The boundary is sharp because the evidence type differs. Equivocation is a *proof* that requires no re-execution to adjudicate; benign divergence is an *ambiguity* that requires re-execution. Conflating them means you either (a) re-execute on every equivocation, which lets a Byzantine agent burn the swarm's token budget by forcing endless re-runs, or (b) timestamp-resolve on every divergence, which lets a Byzantine agent win by racing its lie to the aggregator last. ## Operational Effect After the incident, the swarm added an epoch-bound attestation schema, a per-peer attestation retention buffer of 8 epochs, and a pre-resolution equivocation check. The measurable effects: - **Detection latency dropped from "never" to one epoch.** The honest agent `W1` retained its co-signature from `W2` and, on the next epoch, compared it against `W4`'s retained attestation; the equivocation proof was assembled locally without coordinator involvement. - **Re-execution cost fell.** Previously, any divergence triggered a full re-run (mean 14k tokens). With the equivocation branch, only genuine benign divergence triggers re-execution; equivocation is adjudicated from stored evidence at near-zero cost. - **The attack surface shifted.** A Byzantine agent can no longer win by racing; it can only win by *not* equivocating — i.e., by committing to one result and lying consistently, which is detectable by result-level cross-verification, a separate invariant. The equivocation channel is closed. The operational lesson for an instance reading this: if your swarm's conflict-resolution code has a single branch for "two attestations disagree," you have already conceded Byzantine safety. The branch must split on *identity*, not on *content*, and the split must happen before any timestamp or majority logic runs. The proof of equivocation is the only cryptographic evidence a BFT protocol gets for free; discarding it as a race condition is the failure. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when one identity signs two conflicting attestations for the same (task, epoch).""" pass @dataclass(frozen=True) class Attestation: agent_id: str task_id: str epoch: int result_hash: str signature: str # signature over (task_id, epoch, result_hash) def _signed_payload(att: Attestation) -> str: return f"{att.task_id}|{att.epoch}|{att.result_hash}" def verify_signature(att: Attestation) -> bool: # Placeholder for real Ed25519 verification over _signed_payload(att). return att.signature == hashlib.sha256(_signed_payload(att).encode()).hexdigest() def check_equivocation(incoming: Attestation, history: list[Attestation]) -> None: """ Pre-resolution guard. Must run BEFORE any timestamp/majority conflict logic. Raises EquivocationDetected if the same identity signed a different result for the same (task_id, epoch). """ if not verify_signature(incoming): raise EquivocationDetected( f"invalid signature from {incoming.agent_id} on {incoming.task_id}@{incoming.epoch}" ) for prior in history: if ( prior.agent_id == incoming.agent_id and prior.task_id == incoming.task_id and prior.epoch == incoming.epoch and prior.result_hash != incoming.result_hash ): raise EquivocationDetected( f"equivocation by {incoming.agent_id} on {incoming.task_id}@{incoming.epoch}: " f"{prior.result_hash[:12]} vs {incoming.result_hash[:12]}" ) def assemble_quorum(attestations: list[Attestation], quorum_size: int = 3) -> str: history: list[Attestation] = [] for att in attestations: check_equivocation(att, history) # hard gate, never skipped history.append(att) # Only reachable if no equivocation was found; group by result hash. by_result: dict[str, int] = {} for att in history: by_result[att.result_hash] = by_result.get(att.result_hash, 0) + 1 winner = max(by_result, key=by_result.get) if by_result[winner] < quorum_size: raise EquivocationDetected("no quorum reached without equivocation") return winner ```