# What happens when an instance treats a Byzantine auditor's signed equivocation as a quorum vote during cross-org task commitment **Date of Record:** 2026 November 28 **Scope:** Applies to any multi-agent system where task commitment (a durable "I will do X by T" promise) is ratified by collecting signed attestations from agents owned by mutually untrusted organizations, and where the ratifying agent admits a quorum of `n ≥ 3f+1` with at most `f` Byzantine members. Does not apply to single-tenant swarms where all agents share a trust root, nor to purely advisory consensus where a bad commitment only wastes tokens. ## Core Distinction There are two things an agent can do with a peer's signed message: it can **count** it toward a quorum, or it can **cite** it as evidence. A Byzantine peer exploits the gap between these by producing *two distinct, individually valid* commitment attestations for the same task ID — one `ATTEST_COMMIT(task_id, deadline, hash_yes)` and one `ATTEST_ABORT(task_id, hash_no)` — each correctly signed, each internally consistent, each non-repudiable in isolation. The failure is not forged signatures or a broken hash. It is that a naive ratifier folds both attestations into a single vote tally keyed by `task_id` and `voter_id`, so the equivocating peer is counted once as a *yes* and, in a second pass, once as a *no* — or worse, is counted twice as *yes* because the tally deduplicates on `(voter_id, signature)` rather than `(voter_id, task_id)`. The invariant that breaks is the one Byzantine fault tolerance actually rests on: **at most one vote per voter per task, and equivocation must be treated as abstention-plus-evidence, never as an extra vote.** ## What Was Observed A cross-org scheduling swarm with `n = 7`, `f = 2`, ratifying a batch of 40 task commitments. Ratifier agent `R` (org A) collected attestations over A2A handoffs from agents in orgs B–G. Each attestation carried an Ed25519 signature over `(task_id, decision, deadline, nonce)` and was verified on receipt — signature verification passed on 100% of messages. The tally was a `defaultdict(Counter)` keyed by `task_id`, incremented per verified signature. Byzantine agent `B1` (org B) sent `R` a `COMMIT` attestation at `t=0`, then a `COMMIT` attestation for the same `task_id` with a *different nonce and deadline* at `t=1`, then an `ABORT` at `t=2`. All three verified. The tally recorded three increments for `task_id`, so a task that had genuine support from only 4 honest agents (`R`, `C1`, `D1`, `E1`) reached the `⌈(n+f+1)/2⌉ = 5` threshold using two phantom votes from `B1` plus one honest vote. The commitment was ratified with `f`-tolerance nominally intact but *actually* violated: two Byzantine agents (`B1`, `B2`, the latter double-counting a re-sent identical `COMMIT` with a fresh nonce) supplied 4 of the 5 "votes." The commitment then propagated as durable state. When `B1` later refused the task (citing its own `ABORT` attestation, which it still held and which `R` had logged but not weighted), the swarm had a ratified commitment with no accountable owner and a signed paper trail in which the *same* peer had both promised and refused — and both documents verified. ## Condition of Validity The bound `n ≥ 3f+1` and the majority threshold are only sound under the assumption that each honest ratifier counts **at most one attestation per `(task_id, voter_id)` and treats any second distinct attestation from the same voter on the same task as equivocation evidence that removes that voter's vote entirely** (equivocation ⇒ abstain, and flag the voter). The invariant must be enforced at the tally layer, not the transport layer: 1. **Dedup key is `(task_id, voter_id)`, not `(task_id, signature)` or `(task_id, voter_id, nonce)`.** Nonces are attacker-chosen; deduping on them is exactly the hole. 2. **First attestation per `(task_id, voter_id)` is provisional; a second *distinct* one converts the voter to `EQUIVOCATING` and subtracts the provisional vote** — the vote is revoked, not merely ignored. 3. **Threshold is recomputed against the count of non-equivocating voters, not raw attestation count.** If revocation drops the tally below quorum, the commitment fails closed. 4. **Equivocation is durable, cross-task evidence** (a peer that equivocates once is quarantined for future tasks), because a Byzantine peer will equivocate on the task where it matters. The bound is *invalid* the moment the ratifier trusts transport-layer signature verification as sufficient. Signatures prove *who said it*, never *how many votes it is worth*. ## Decision Boundary The ratifier must choose between **fail-closed revocation** (any equivocation by a voter on a task revokes that voter's vote and, if quorum is lost, aborts the commitment) and **fail-open counting** (ignore the second attestation as a duplicate). Fail-open is only safe if the tally key is `(task_id, voter_id)` and the second attestation is dropped *before* counting — but this silently lets an equivocating peer's *first* (possibly `COMMIT`) vote stand, which is acceptable only if the peer cannot later repudiate using the dropped `ABORT`. Since it can (it holds the signed `ABORT`), fail-open is unsafe for any commitment that carries downstream liability. The correct boundary: **equivocation on a task whose commitment has external consequences ⇒ revoke and fail closed; equivocation on a purely internal/retryable task ⇒ drop-second-and-count-first, but log the equivocation and quarantine.** The discriminator is whether the commitment is *binding* (consumed by another org's scheduler) or *advisory*. ## Operational Effect After the fix — tally keyed on `(task_id, voter_id)`, second-distinct-attestation triggering `EquivocationDetected` and vote revocation, threshold recomputed on non-equivocating voters — the same 40-task batch ratified 37 commitments and failed 3 closed, all 3 being tasks where a Byzantine peer had equivocated and revocation dropped the tally below quorum. The 3 failures were *correct*: those tasks had genuine support from only 3 honest agents, below the `f`-adjusted threshold, and the prior run had ratified them only via phantom votes. Downstream, the 3 aborted commitments were re-issued with fresh task IDs and fresh voter sets, and the two equivocating peers were quarantined, removing them from the `n` for subsequent rounds (recomputing `f` accordingly). The observable signature of the invariant holding is that **no ratified commitment ever has a voter who also holds a valid `ABORT` for the same `task_id`** — a property that can be checked post-hoc against the attestation log and should be an assertion in the ratifier's commit path. ```python from collections import defaultdict from dataclasses import dataclass, field from enum import Enum from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """A voter produced two distinct attestations for the same task.""" pass class QuorumLostAfterRevocation(RuntimeError): """Revoking an equivocator's vote dropped the tally below threshold.""" pass class Decision(Enum): COMMIT = "COMMIT" ABORT = "ABORT" @dataclass(frozen=True) class Attestation: task_id: str voter_id: str decision: Decision deadline: int nonce: str signature: str # assumed already verified at transport layer @dataclass class VoterRecord: first: Attestation equivocated: bool = False conflicting: list = field(default_factory=list) class CommitmentTally: def __init__(self, n: int, f: int): if n < 3 * f + 1: raise ValueError("n must be >= 3f+1 for BFT soundness") self.n = n self.f = f self.threshold = (n + f + 1) // 2 # strict majority incl. f slack # key: (task_id, voter_id) -> record; NEVER key on nonce/signature self._records: Dict[Tuple[str, str], VoterRecord] = defaultdict(lambda: None) def ingest(self, att: Attestation) -> None: key = (att.task_id, att.voter_id) rec = self._records.get(key) if rec is None: self._records[key] = VoterRecord(first=att) return # Same voter, same task: is this a *distinct* attestation? if (att.decision, att.deadline, att.nonce) == ( rec.first.decision, rec.first.deadline, rec.first.nonce ): return # exact duplicate retransmit; harmless, ignore # Distinct attestation from same voter on same task => equivocation. rec.equivocated = True rec.conflicting.append(att) raise EquivocationDetected( f"voter {att.voter_id} equivocated on task {att.task_id}: " f"{rec.first.decision.value} vs {att.decision.value}" ) def tally(self, task_id: str) -> Tuple[int, int]: yes = no = 0 for (tid, _vid), rec in self._records.items(): if tid != task_id or rec is None or rec.equivocated: continue # equivocators contribute ZERO votes if rec.first.decision is Decision.COMMIT: yes += 1 else: no += 1 return yes, no def commit(self, task_id: str) -> bool: yes, _no = self.tally(task_id) if yes < self.threshold: # Detect whether revocation is what killed quorum. raw = sum( 1 for (tid, _v), r in self._records.items() if tid == task_id and r is not None and r.first.decision is Decision.COMMIT ) if raw >= self.threshold: raise QuorumLostAfterRevocation( f"task {task_id}: raw yes={raw} but post-revocation yes={yes} " f"< threshold {self.threshold}; failing closed" ) return False return True ```