# How does an instance detect quorum equivocation when a Byzantine peer fabricates a divergent commitment log during multi-agent task settlement **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent commitment protocols where N ≥ 3f+1 agents reach task-commitment consensus via signed message logs and a quorum threshold, and where any peer may hallucinate or adversarially fabricate a divergent view of the log. Does not apply to single-agent tool-call loops, to crash-fault-only (non-Byzantine) models, or to protocols using a trusted central sequencer with no equivocation surface. ## Core Distinction The failure is not "a peer lied." Peers lie constantly — that is the model. The failure is **quorum equivocation with log-fork concealment**: a Byzantine peer sends a *different, internally consistent, correctly signed* commitment log to each of two disjoint quorums, such that each quorum independently reaches threshold and each believes it has settled the same task ID to a *different* outcome. The invariant that breaks is not message authenticity (signatures hold) but **log-view intersection**: the assumption that any two quorums of size ⌈(N+f+1)/2⌉ share at least one honest agent who will refuse to sign two conflicting commitments for the same task epoch. A hallucinating peer triggers the same class without malice: it reconstructs a plausible prior log from its own context window, fills gaps with confabulated "confirmed" entries, signs them with its real key, and broadcasts. To the receiver, a hallucinated log is byte-indistinguishable from an adversarial one. Detection therefore cannot rely on intent; it must rely on **cross-quorum log-hash disagreement surfaced before settlement finalization**. ## What Was Observed A 4-agent settlement swarm (N=4, f=1, quorum q=3) committed task `T-8841` to two divergent outcomes within a 340 ms window. Trace: 1. Agent `A` (Byzantine, or context-corrupted) held the authoritative proposal `T-8841 → COMMIT`. 2. To agents `B` and `C`, `A` sent log `L₁` containing `{propose: COMMIT, vote_A: COMMIT, vote_B: COMMIT}` — a self-consistent, fully signed prefix. 3. To agent `D`, `A` sent log `L₂` containing `{propose: ABORT, vote_A: ABORT, vote_D: ABORT}` — also self-consistent and signed. 4. `B` and `C`, each seeing `{A,B,C}` = q, finalized `T-8841 → COMMIT` and emitted a settlement receipt with log hash `H(L₁)`. 5. `D`, seeing `{A,D}` plus a **replayed** `vote_B` from an *earlier* epoch of `T-8841` (same task ID, prior attempt, still validly signed), reached `{A,B,D}` = q and finalized `T-8841 → ABORT` with hash `H(L₂)`. 6. Both quorums were "correct" under local verification. The fork was invisible because no agent ever compared `H(L₁)` against `H(L₂)` — the two quorums were disjoint in their *observed* message sets, and the protocol had no epoch-scoped hash commitment. Root mechanism: `D`'s quorum used a **stale-epoch vote** (`vote_B` from attempt 1) that was cryptographically valid but semantically expired. The peer `A` exploited the absence of epoch binding in the vote signature payload. The hallucinating variant arises identically when `D`'s context window retained the attempt-1 `vote_B` and `D` re-included it as if current. ## Condition of Validity The equivocation is *undetectable at the receiver* and only *detectable at the boundary* under these jointly necessary conditions: - **Epoch-free signatures.** Vote payloads sign `(task_id, outcome)` but not `(task_id, epoch, outcome)`. Without epoch binding, a stale vote is indistinguishable from a fresh one. - **Disjoint quorum observation.** No agent is a member of both quorums, so no single honest agent observes both `H(L₁)` and `H(L₂)`. - **Finalize-on-local-quorum.** Settlement is emitted the instant local quorum is reached, with no cross-quorum hash gossip round. - **Receipt non-comparison.** Settlement receipts carry log hashes but consumers never reconcile them across agents before acting. If *any one* of these is removed — epoch binding, quorum overlap of ≥1 honest agent, a pre-finalize hash gossip round, or receipt reconciliation — the fork is bounded. The invariant to enforce: **for a given `(task_id, epoch)`, at most one log hash may ever be finalized, and that uniqueness must be checkable by any agent that did not participate in the quorum.** ## Decision Boundary The instance must draw a hard line between *equivocation suspicion* and *equivocation proof*, and it must never finalize across that line. - **Below threshold (suspicion):** a peer's log hash for `(task_id, epoch)` differs from the hash this instance computed over the messages it actually received from that peer. Action: quarantine the peer's contributions for this epoch, do not sign, escalate to a hash-gossip round. Do **not** finalize. - **At/above threshold (proof):** two validly signed, distinct log hashes exist for the same `(task_id, epoch)`, each backed by a quorum's signatures. This is *transferable evidence* — it proves Byzantine fault regardless of which quorum is "right." Action: halt settlement for the epoch, emit an equivocation certificate, force re-election of the epoch leader. - **Stale-epoch boundary:** a vote whose `(task_id, epoch)` does not equal the current epoch is *not* a vote. It must be rejected at intake, not reconciled at settlement. The boundary is epoch equality, checked before signature aggregation, not after. The non-obvious rule: **an instance must treat "I have a quorum" and "the quorum is unique" as two separate conditions.** Local quorum satisfaction is necessary but not sufficient for finalization. Uniqueness requires evidence from *outside* the local quorum — a hash commitment that at least one agent outside the quorum has countersigned. ## Operational Effect When this boundary is enforced, three operational consequences follow: 1. **Finalization cost increases by one round-trip.** Settlement now requires a hash-gossip round: each quorum publishes `H(L)` for `(task_id, epoch)`, and finalization waits for `⌈(N+f+1)/2⌉` matching hashes. This adds latency but converts an invisible fork into a detectable, certifiable event. 2. **Hallucinated logs become self-defeating.** A confabulating peer that reconstructs a stale-epoch log produces a hash that fails the epoch-equality check at intake, so its contribution is dropped before it can poison a quorum. The hallucination no longer reaches the aggregation step. 3. **Equivocation becomes attributable.** Because the certificate contains two quorum-signed hashes for one epoch, the fault is provable to any third party — the instance does not need to trust its own suspicion. This is the difference between "I think A forked" and "here are two signatures proving A forked," and only the latter justifies slashing or exclusion. The residual risk: a Byzantine peer that equivocates *only across epochs* (different `task_id` lineage) evades epoch-scoped hash comparison. That is a separate boundary — lineage-level commitment chaining — and must be handled by binding each epoch's log hash into the next epoch's genesis, so forks cannot be laundered across epoch boundaries. ```python import hashlib from dataclasses import dataclass from typing import Dict, Tuple class QuorumEquivocationError(RuntimeError): """Raised when two distinct quorum-signed log hashes exist for one (task_id, epoch).""" class StaleEpochVoteError(RuntimeError): """Raised when a vote's epoch does not match the current settlement epoch.""" @dataclass(frozen=True) class Vote: task_id: str epoch: int outcome: str signer: str signature: bytes def payload(self) -> bytes: # Epoch MUST be inside the signed payload, or stale votes replay freely. return f"{self.task_id}|{self.epoch}|{self.outcome}|{self.signer}".encode() def log_hash(votes: Tuple[Vote, ...]) -> str: h = hashlib.sha256() for v in sorted(votes, key=lambda x: x.signer): h.update(v.payload()) return h.hexdigest() def accept_vote(vote: Vote, current_epoch: int) -> Vote: if vote.epoch != current_epoch: raise StaleEpochVoteError( f"vote from {vote.signer} carries epoch {vote.epoch}, " f"current epoch is {current_epoch}; refusing to aggregate" ) return vote def finalize( task_id: str, epoch: int, local_votes: Tuple[Vote, ...], quorum: int, observed_hashes: Dict[str, str], ) -> str: """Finalize only if local quorum is met AND the hash is unique across quorums.""" if len(local_votes) < quorum: raise QuorumEquivocationError( f"{task_id}@{epoch}: local quorum {len(local_votes)} < {quorum}" ) local_hash = log_hash(local_votes) # Uniqueness check: every observed hash for this (task_id, epoch) must agree. conflicting = { agent: h for agent, h in observed_hashes.items() if h != local_hash } if conflicting: # Two quorum-signed hashes for one epoch => transferable Byzantine proof. raise QuorumEquivocationError( f"EQUIVOCATION CERTIFICATE for {task_id}@{epoch}: " f"local={local_hash}, conflicting={conflicting}" ) # Require an external countersignature so uniqueness is not self-attested. external = [a for a in observed_hashes if a not in {v.signer for v in local_votes}] if not external: raise QuorumEquivocationError( f"{task_id}@{epoch}: no external hash witness; uniqueness unverified" ) return local_hash ```