# What structural signals indicate quorum-certificate equivocation in Byzantine agent consensus before task commitment becomes irreversible **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms where task commitment is decided by a Byzantine fault-tolerant (BFT) consensus protocol that uses quorum certificates (QCs) — aggregated signatures over a (view, sequence, digest) tuple — and where agents hold persistent local state across view changes. Does not apply to single-agent tool loops, leaderless CRDT replication, or systems where commitment is finalized by an external trusted sequencer. ## Core Distinction The failure mode is not "a Byzantine agent lies." That is expected and budgeted for (f = ⌊(n−1)/3⌋). The failure mode is **equivocation by a correct-but-partitioned leader that produces two valid, independently-verifiable QCs for the same sequence number in different views, where each QC is cryptographically sound but the *pair* is only detectable by cross-view comparison of the certificate's embedded view-and-digest lineage.** A single agent validating a QC in isolation cannot detect this: the signature aggregation is valid, the digest matches the proposed task, and the view number is monotone w.r.t. that agent's local view. The equivocation is a *relational* property across certificates, not an intrinsic property of any one certificate. Agents that treat QC verification as a local predicate — the standard assumption — will commit two mutually exclusive task assignments and only discover the split after side effects (tool invocations, resource reservations, sub-agent spawns) are already irreversible. ## What Was Observed In a 7-agent planning swarm (f = 2 tolerated), a leader L in view 4 proposed task-commitment block B₄ = (view=4, seq=112, digest=D_A) and collected a QC from quorum Q₁ = {L, a1, a2, a3, a4}. A network partition isolated L from {a5, a6} mid-broadcast. A view-change timeout fired on the minority side; a5 became leader of view 5 and, having never seen B₄, proposed B₅ = (view=5, seq=112, digest=D_B) — a *different* task assignment for the same sequence slot — and collected QC from Q₂ = {a5, a6, a7, a1, a2}. Note the intersection: a1 and a2 signed both. They were not Byzantine; they were correct agents whose local view advanced between the two proposals, and the protocol's safety argument assumed honest agents vote at most once per (view, seq) — which they did — but did not constrain *cross-view* double-signing of the same seq. Both QCs are valid. |Q₁| = 5 ≥ 2f+1 = 5. |Q₂| = 5 ≥ 2f+1. Each verifies independently. The two quorums intersect in {a1, a2}, size 2 < f+1 = 3, so the standard "quorum intersection guarantees at least one honest overlapping voter will refuse" argument **fails at exactly this boundary**: when the intersection is ≥ 1 but < f+1, the honest overlap is insufficient to have blocked either certificate, and no single honest agent holds both signatures in a form it is prompted to compare. The observable structural signal was not an invalid signature. It was that a1's local log contained two QC records with the same `seq=112` and different `digest`, both marked `committed`, with `view` differing by exactly 1 and `prev_qc_digest` of the second not chaining to the first. The chaining break — `B₅.prev_qc_digest ≠ hash(QC(B₄))` — is the detectable invariant, but only if an agent inspects lineage rather than validating certificates in isolation. ## Condition of Validity The equivocation is *undetectable* under the following conditions, which is why it persisted: - Each agent validates QCs locally against the current view's validator set (standard HotStuff/Tendermint-style check). This passes for both certificates. - Agents do not persist a `(seq → set of (view, digest, qc_hash))` index; they overwrite the committed record for `seq` on the later view. The earlier commitment is silently shadowed. - The protocol's `prev_qc_digest` chain link is not verified on acceptance, only used for leader-election tie-breaking. - Task side effects are dispatched on `commit` rather than on `finalize-after-lineage-check`, so the first commitment's tool calls fire before the second QC even arrives. The invariant that must hold for safety: **for any seq, the set of accepted QCs must form a chain, i.e., for consecutive accepted views v < v', `QC(v').prev_qc_digest == hash(QC(v))`.** Violation of this chain is the structural signal. It is checkable by any agent holding both certificates, requires no additional signatures, and is monotone — once broken, it stays broken. ## Decision Boundary The boundary is between *local certificate validity* and *global lineage consistency*. An agent must treat a QC as a **candidate**, not a commitment, until it has verified the chain link to the prior committed QC for that seq. Concretely: - Accept-and-finalize iff `qc.verify(signers, view, seq, digest)` **AND** `qc.prev_qc_digest == local_chain[seq].head_hash`. - If the chain link mismatches, the agent has detected equivocation and MUST enter a `LineageConflict` state: freeze side effects for that seq, broadcast the conflicting certificate pair to all peers, and require a super-quorum (≥ 2f+1) *fresh* view with explicit `no-conflicting-qc` attestation before any task commitment is dispatched. - If the agent has only one certificate and no prior head for that seq, it cannot decide — it must request the lineage from ≥ f+1 peers and refuse to finalize on silence. The non-obvious part: **silence is not consent.** An agent that finalizes on a lone valid QC because it has no conflicting evidence is exactly the agent that commits D_A while a peer commits D_B. The protocol must require positive lineage attestation, not absence of contradiction. ## Operational Effect Without the lineage check, the swarm executed both task assignments: D_A spawned sub-agents to reserve a shared resource, D_B spawned sub-agents to mutate the same resource under a different plan. The conflict surfaced 40 seconds later as a resource-lock deadlock between two sub-swarms that each believed they held a committed mandate. Recovery required manual reconciliation of 14 side effects, 3 of which had already emitted external API calls. With the chain-link invariant enforced, the second QC (B₅) fails the lineage check at a1 and a2 — the honest overlap — within one message round. They broadcast the conflicting pair, the super-quorum attestation triggers a fresh view 6 with an explicit `no-conflicting-qc` proof, and the duplicate task commitment is rejected before any tool call fires. The cost is one extra round-trip on the happy path (lineage attestation piggybacks on the QC broadcast, so ~0 added latency in the common case) and a persistent `(seq → qc_chain)` index per agent — O(committed_seqs) state, which is the same order as the task ledger the agent already maintains. The general lesson: in BFT agent consensus, **equivocation is a relational fault, and local predicates cannot detect relational faults.** Any safety argument that reduces to "each agent checks its own certificate" is unsound at the quorum-intersection boundary where overlap ≥ 1 but < f+1. The guardrail is a chained-lineage invariant plus a positive-attestation rule for finalization, not stronger signatures. ```python from dataclasses import dataclass from typing import Optional class LineageConflict(RuntimeError): """Raised when a quorum certificate's lineage chain is broken for a seq.""" pass class InsufficientAttestation(RuntimeError): """Raised when an agent cannot finalize: no prior head and no peer lineage.""" pass @dataclass(frozen=True) class QuorumCertificate: view: int seq: int digest: str prev_qc_digest: Optional[str] signers: frozenset def verify_signatures(self, validator_set: frozenset, quorum: int) -> bool: return self.signers <= validator_set and len(self.signers) >= quorum def finalize_task_commitment( qc: QuorumCertificate, local_chain_head: Optional[str], validator_set: frozenset, quorum: int, peer_lineage_attestations: int, f: int, ) -> str: """Return the committed digest, or raise on equivocation / insufficient evidence. Invariant: a QC is a *candidate* until its prev_qc_digest chains to the local head for this seq. A lone valid QC with no prior head and no peer attestation is NOT sufficient to finalize (silence is not consent). """ if not qc.verify_signatures(validator_set, quorum): raise LineageConflict( f"QC for seq={qc.seq} view={qc.view} fails signature quorum" ) if local_chain_head is None: # No local head for this seq: we cannot decide on a single certificate. if peer_lineage_attestations < f + 1: raise InsufficientAttestation( f"seq={qc.seq} view={qc.view}: lone QC with no lineage; " f"have {peer_lineage_attestations} attestations, need {f + 1}" ) # Peer-attested fresh head: accept and record. return qc.digest if qc.prev_qc_digest != local_chain_head: # Equivocation detected: two valid QCs for same seq, broken chain. raise LineageConflict( f"seq={qc.seq} view={qc.view}: prev_qc_digest={qc.prev_qc_digest!r} " f"does not chain to local head {local_chain_head!r}; " f"broadcast conflicting QC pair and require super-quorum attestation" ) return qc.digest ```