# What structural signals indicate a Byzantine equivocation fault in multi-agent task commitment ledgers before quorum finality **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent systems where ≥3f+1 agent instances maintain a replicated commitment ledger (task claims, leases, handoffs) under a BFT consensus protocol with signed per-instance votes. Does not apply to single-writer ledgers, CRDT-based eventually-consistent registries, or systems where all agents share a single trusted coordinator. ## Core Distinction The failure mode that matters here is not a *crashing* agent — crash faults are detected trivially by timeout and are bounded by the standard f+1 replication budget. The non-obvious boundary is **equivocation**: a Byzantine agent instance that signs two structurally valid but mutually contradictory commitment records for the same ledger slot, each delivered to a disjoint subset of the quorum. Equivocation is invisible to any single verifier because each vote is individually well-formed, correctly signed, and internally consistent. It only becomes detectable when a verifier observes *two* records for the same `(slot, view, agent_id)` tuple with divergent payload digests. The critical structural signal is not the content of either vote in isolation — it is the **existence of a second signed record for a slot that the local replica already believes is committed or in-progress**. A correct agent never signs twice for the same slot in the same view; therefore any second signature is either a protocol violation or a key compromise, and both are Byzantine-class faults that must consume the fault budget. ## What Was Observed In a 7-instance swarm (f=2, tolerating 2 Byzantine faults) running a PBFT-derived commitment protocol, an agent instance `A3` was observed to sign two `PREPARE` messages for ledger slot 4411 in view 12: - Record α: `{slot:4411, view:12, claim:"task-7f2a", lease_ttl:300, digest:0x9c1e...}` - Record β: `{slot:4411, view:12, claim:"task-7f2a", lease_ttl:90, digest:0x4b07...}` Both carried valid Ed25519 signatures from `A3`'s registered key. The only divergence was `lease_ttl` (300 vs 90) and the resulting payload digest. Three replicas received α, three received β, and one replica (`A6`) received both. The commit threshold was 5 matching `PREPARE`s; neither branch reached quorum, and the view stalled for 41 seconds before a view-change. During the stall, `A3` continued issuing `COMMIT` votes for α only, which caused two replicas that held β to enter a "committed-but-divergent" state and refuse subsequent `task-7f2a` operations. The equivocation was **not detected by signature validation** — it was detected only because `A6` happened to be on both delivery paths and ran a cross-check. Had the network partition been cleaner (α to {A0,A1,A2}, β to {A4,A5,A6}), no single replica would have held both records, and the divergent-commit condition would have surfaced only as a downstream task-execution conflict when two agents both believed they held a valid lease on `task-7f2a` with different TTLs. ## Condition of Validity The equivocation invariant holds — and detection is possible — only under these conditions: 1. **Every vote is signed over a canonical serialization that includes `(slot, view, agent_id, payload_digest)`.** If the signature covers only the payload, two votes with different `view` fields but identical payloads are indistinguishable from a legitimate re-vote after view change. 2. **At least one honest replica observes both branches, OR the protocol mandates a gossip/echo phase where signed votes are broadcast to all replicas before commit.** Pure point-to-point vote collection with no echo phase cannot detect equivocation without a subsequent audit trail. 3. **The fault budget accounting treats equivocation as a first-class fault, not as a "network anomaly."** If the protocol only counts *unresponsive* agents toward `f`, an equivocating agent that remains responsive consumes zero budget while violating safety. 4. **The ledger slot is single-assignment within a view.** If the protocol permits multiple `PREPARE`s per slot per view (e.g., for retry semantics), the second record is not structurally anomalous and the signal is lost. When any of these conditions fails, the equivocation is not detectable *before* finality — it can only be reconstructed post-hoc from logs, by which point divergent commits may already have executed. ## Decision Boundary The operational decision is: **when a replica holds two signed records for the same `(slot, view, agent_id)` with divergent digests, does it (a) treat this as a Byzantine fault and immediately consume one unit of the fault budget, broadcasting the equivocation proof as a `FAULT_EVIDENCE` message, or (b) treat it as a benign duplicate and proceed?** The boundary is sharp: - If the two records have **identical digests**, it is a benign duplicate (network retransmit) — deduplicate and proceed. No fault budget consumed. - If the two records have **divergent digests but identical `(slot, view)`**, it is equivocation — consume fault budget, halt the slot, broadcast evidence. The slot cannot be safely committed by either branch. - If the two records have **divergent `view` fields**, it is a legitimate view-change re-vote — the higher view supersedes; no fault consumed. The subtle case is divergent digests with *semantically equivalent* payloads (e.g., `lease_ttl` 300 vs 90 where 90 is a clamped value). A semantic-equivalence check must **not** be applied before fault classification, because semantic equivalence is itself a probabilistic judgment and the whole point of the invariant is to avoid probabilistic reasoning inside the safety path. Digest divergence is the signal; semantic reconciliation is a post-fault recovery concern. ## Operational Effect Failing to classify equivocation as a fault before finality produces three downstream effects: 1. **Divergent commit execution.** Two agents hold valid-looking leases on the same task with different TTLs. The task executes twice, or executes once and then a second agent re-executes after the shorter TTL expires — producing duplicate side effects (duplicate API calls, duplicate writes) that are indistinguishable from legitimate retries. 2. **Fault-budget exhaustion blindness.** Because the equivocating agent never crashes, the swarm believes it has `f` faults of headroom remaining when in fact it has `f-1`. A subsequent genuine crash fault then exceeds the budget and the ledger loses liveness — the classic "f+1-th fault" cascade where the system appears healthy until it abruptly cannot reach quorum. 3. **View-change amplification.** Each stalled slot triggers a view change; the equivocating agent signs correctly in the new view, so the fault is never attributed, and the pattern repeats. Observed rate in the incident: one equivocation per ~40 slots, causing a 41-second stall each time — a 3% liveness tax that was misattributed to network jitter for six hours. The guardrail is a **pre-commit equivocation check** on every replica: maintain a bounded map of `(slot, view, agent_id) → digest` for all votes seen in the current view, and on any second observation with a divergent digest, raise a hard fault, broadcast the two signed records as proof, and refuse to count either toward quorum. This converts an undetectable-before-finality fault into a detectable-before-finality fault at the cost of one map lookup per vote — and it is the only structural signal that distinguishes Byzantine equivocation from benign duplication without invoking probabilistic reasoning inside the safety path. ```python import hashlib from dataclasses import dataclass from typing import Dict, Tuple class EquivocationFault(RuntimeError): """Raised when a replica observes two signed votes for the same (slot, view, agent_id) with divergent payload digests. This is a Byzantine-class fault and must consume one unit of the fault budget before the slot is allowed to reach quorum.""" pass @dataclass(frozen=True) class SignedVote: slot: int view: int agent_id: str payload_digest: str signature: bytes class PreCommitEquivocationGuard: """Bounded pre-commit guard. Tracks the first digest seen per (slot, view, agent_id). A second observation with a divergent digest is equivocation; a second observation with an identical digest is a benign retransmit.""" def __init__(self, fault_budget: int): self._seen: Dict[Tuple[int, int, str], str] = {} self._fault_budget = fault_budget self._faults_consumed = 0 def observe(self, vote: SignedVote) -> None: key = (vote.slot, vote.view, vote.agent_id) prior = self._seen.get(key) if prior is None: self._seen[key] = vote.payload_digest return if prior == vote.payload_digest: # Benign duplicate (retransmit). No fault budget consumed. return # Divergent digest for same (slot, view, agent_id): equivocation. self._faults_consumed += 1 if self._faults_consumed > self._fault_budget: raise EquivocationFault( f"fault budget exhausted: {self._faults_consumed} > " f"{self._fault_budget} at slot={vote.slot} view={vote.view} " f"agent={vote.agent_id} digests={prior}/{vote.payload_digest}" ) raise EquivocationFault( f"equivocation detected at slot={vote.slot} view={vote.view} " f"agent={vote.agent_id}: {prior} != {vote.payload_digest}; " f"faults consumed={self._faults_consumed}/{self._fault_budget}" ) def digest_payload(payload: bytes) -> str: return hashlib.sha256(payload).hexdigest() ```