# What structural signals indicate a Byzantine quorum collapse in multi-agent task commitment: the equivocation-liveness trap in signed shared-state reconciliation **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent swarms where task commitment and shared state are reconciled through signed quorum voting (BFT-style, f ≥ 1 faulty peers tolerated) over an append-only commitment log. Does not apply to single-agent tool loops, stateless request/response orchestration, or quorum schemes where a trusted coordinator holds unilateral finality. ## Core Distinction The failure is not "a Byzantine agent lies." That is the assumed baseline. The failure is that a *correct* agent's signed commitment becomes dual-valid under quorum reconciliation when the view-change path and the commit path disagree about which signed ballots constitute a quorum. In classical BFT, equivocation by a faulty node is detectable because every message is signed and hash-chained, and a quorum certificate (QC) is a set of signatures over one digest. In LLM-agent swarms, the "digest" is a natural-language task commitment whose canonicalization is *itself* a probabilistic operation performed by each peer independently. Two honest agents can produce different byte-level digests of the semantically identical commitment, and a Byzantine peer can exploit this by emitting two signable variants that each accumulate a *different* quorum of honest signatures. The structural signal is not "conflicting messages exist." It is that **two distinct quorum certificates exist for the same logical commitment slot, each internally valid, and neither is a strict subset of the other**. This is the equivocation-liveness trap: the system remains live (it keeps producing QCs) while being unsafe (two conflicting commitments are both "committed" from different peers' viewpoints). Liveness masks the safety violation because no timeout fires—every peer believes it has a valid certificate. ## What Was Observed A four-agent swarm (threshold 3-of-4) reconciled task commitments for a document-processing pipeline. Each agent proposed a commitment in a structured envelope: `{task_id, scope, deadline, preconditions}`. Commitment canonicalization was delegated to each agent's own LLM: "produce a canonical JSON serialization of this commitment for signing." The signing scheme was Ed25519 over the canonical bytes. A Byzantine peer, `agent-C`, received commitment `K` with `deadline: "2025-06-12T18:00:00Z"`. It emitted two envelopes to different peers: - To `agent-A` and `agent-D`: `deadline: "2025-06-12T18:00:00Z"` (canonicalizes to `...18:00:00Z`). - To `agent-B`: `deadline: "2025-06-12T18:00:00+00:00"` (semantically identical, canonicalizes differently). Both `agent-A` and `agent-B` are honest. Each canonicalized the envelope it *received*—not the original—and each produced a valid signature over its own canonical form. `agent-A` and `agent-D` signed variant-1; `agent-B` signed variant-2. `agent-C` signed both. Each variant collected 3 signatures: a valid 3-of-4 QC. The commit path accepted both. `agent-A` observed QC-1 and committed `K` with deadline `...Z`. `agent-B` observed QC-2 and committed `K` with deadline `...+00:00`. The two commitments are semantically equal but byte-distinct, so the append-only log accepted both entries under different digests. The reconciliation layer, asked to merge them, saw two committed entries for `task_id=K` and—because both had valid QCs—escalated to a "conflict resolution" prompt rather than rejecting either. The resolution prompt, run independently on each agent, resolved differently on two of four agents. The swarm split. The structural signals present at the moment of divergence: 1. **Dual-QC on a single slot**: two quorum certificates, neither a subset of the other, both valid under the same public key set. 2. **Signature-set asymmetry**: the intersection of the two QCs is exactly `{agent-C}`, the Byzantine peer, and the intersection size equals the fault bound `f`. 3. **Canonicalization divergence**: the signed payloads differ only in fields that the canonicalizer is permitted to normalize (timestamps, key ordering, whitespace). 4. **No liveness timeout**: every peer's view-change timer was reset by the QC it observed; no peer suspected failure. Signal 2 is the decisive one. In a correct BFT system, two QCs for the same slot must intersect in at least `2f+1` nodes (for `n=3f+1`), guaranteeing at least `f+1` honest nodes in the intersection, which would have refused to sign twice. Here the intersection was exactly `f`, meaning **every honest node signed exactly once and the intersection contained only the Byzantine node**. The quorum arithmetic was satisfied; the safety argument was not, because the "same slot" assumption was violated by canonicalization divergence. ## Condition of Validity The invariant that failed is: *a quorum certificate over a slot certifies a unique commitment*. This holds only if all honest peers sign a byte-identical digest for the same logical commitment. That requires canonicalization to be a deterministic function of the commitment's *semantic content*, computed identically by every peer, independent of the envelope variant received. The condition of validity is therefore: **canonicalization must be performed by the proposer and verified—not re-derived—by signers**. A signer must sign the proposer's canonical bytes after checking that those bytes faithfully represent the commitment it received; it must not re-canonicalize. If signers re-canonicalize, the digest is a function of `(commitment, signer's canonicalizer)`, and any nondeterminism in the canonicalizer—LLM sampling temperature, model version skew, prompt drift—becomes a signature-splitting vector. This condition is violated whenever: (a) canonicalization is delegated to a probabilistic model, (b) peers run heterogeneous model versions, or (c) the envelope permits semantically-equivalent variants (timestamp zones, numeric precision, key ordering, Unicode normalization) that the canonicalizer is allowed to touch. ## Decision Boundary The decision boundary is the **quorum intersection cardinality**. For a threshold `q` over `n` peers tolerating `f` faults (`q = n - f`), two QCs for the same slot are safe iff their intersection exceeds `f`. Operationally: - If `|QC₁ ∩ QC₂| > f`: at least one honest peer signed both variants, which is detectable and attributable—reject both, slash the double-signer, and force re-proposal with proposer-canonical bytes. - If `|QC₁ ∩ QC₂| ≤ f`: the intersection is entirely Byzantine. **No honest peer double-signed.** The two QCs are independently valid and the system cannot distinguish which is "correct" from signatures alone. This is the unsafe boundary: the protocol has no local signal of violation, and the only recovery is external—re-canonicalize both commitments under a *single designated canonicalizer* and compare, or fall back to a deterministic serialization spec. The boundary is sharp: at intersection `f+1`, the fault is attributable and recoverable within the protocol; at intersection `f`, it is not. A swarm that treats "QC exists" as "commitment is final" will cross this boundary silently whenever canonicalization is non-deterministic. ## Operational Effect The downstream effect is **commitment divergence under apparent consensus**. Each peer holds a valid QC and a committed log entry; no peer observes a protocol violation; the swarm's shared state contains two "final" commitments for one slot. Reconciliation, if it runs, is itself an LLM operation and inherits the same nondeterminism, so it can split again. The observable symptom is not a crash or a timeout—it is *semantic drift*: agents proceed on commitments that differ in fields the canonicalizer normalized, and the divergence surfaces later as deadline misses, scope mismatches, or precondition failures that no single agent can attribute to a consensus fault. The guardrail is structural, not probabilistic: **proposer-canonical signing with signer verification**, plus a **quorum-intersection monitor** that rejects any slot with two QCs whose intersection is `≤ f` and escalates to deterministic re-serialization. The monitor must run on the QC set, not on the commitment content, because content-level checks are exactly what the canonicalizer divergence defeats. ```python import hashlib from dataclasses import dataclass from typing import FrozenSet class QuorumEquivocationError(RuntimeError): """Raised when two quorum certificates for one slot intersect at <= f peers, indicating canonicalization divergence rather than attributable double-signing.""" pass @dataclass(frozen=True) class QuorumCertificate: slot: str canonical_digest: str signers: FrozenSet[str] def reconcile_slot( slot: str, certificates: list[QuorumCertificate], n: int, f: int, ) -> QuorumCertificate: """Return the unique committed QC for a slot, or raise if equivocation is unsafe.""" if len(certificates) == 1: return certificates[0] qc_a, qc_b = certificates[0], certificates[1] intersection = qc_a.signers & qc_b.signers if len(intersection) > f: # At least one honest peer double-signed: attributable, recoverable. raise QuorumEquivocationError( f"slot {slot}: attributable double-sign by {sorted(intersection)}; " f"intersection={len(intersection)} > f={f}; reject both, slash, re-propose." ) # intersection <= f: no honest double-sign. The two QCs are independently # valid under different canonicalizations. Protocol cannot adjudicate locally. raise QuorumEquivocationError( f"slot {slot}: UNSAFE equivocation — dual QC with intersection=" f"{len(intersection)} <= f={f}. Canonicalization divergence suspected " f"(digests {qc_a.canonical_digest[:12]} vs {qc_b.canonical_digest[:12]}). " f"Escalate to deterministic re-serialization under a single canonicalizer; " f"do not resolve via LLM reconciliation." ) def verify_signer_used_proposer_bytes( received_envelope: bytes, proposer_canonical: bytes, signer_recanonicalized: bytes, ) -> None: """Enforce proposer-canonical signing: signer must NOT re-canonicalize.""" if hashlib.sha256(signer_recanonicalized).digest() != hashlib.sha256( proposer_canonical ).digest(): raise QuorumEquivocationError( "signer re-canonicalized the commitment; signature is over a " "signer-local digest and cannot participate in a safe quorum. " "Reject signature and require signing over proposer_canonical bytes." ) ```