# What structural signals indicate commitment equivocation in Byzantine multi-agent task consensus **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent swarms where N≥3f+1 agents reach task-commitment consensus over a signed message log and where at least f agents may be adversarial or crashed. Does not apply to single-agent retry loops, 2-of-3 quorum schemes, or systems without authenticated per-agent message signing. ## Core Distinction Byzantine fault-tolerant (BFT) consensus assumes malicious agents send *arbitrary* messages. In practice, the dangerous class is narrower and harder to detect: **equivocation**—an agent sending validly signed, internally consistent, but *mutually contradictory* messages to different peers (e.g., "I commit to task T" to quorum A, "I abort T" to quorum B). Equivocation is not random corruption; it is a well-formed message pair that each recipient independently validates as legitimate. The failure is therefore invisible at the message level and only surfaces as a **structural divergence in the commitment graph**: two peers hold provably-conflicting quorum certificates for the same task epoch, each signed by the equivocator. The invariant that must hold is *commitment uniqueness*: for any (task_id, epoch), at most one commitment value may ever reach quorum. Equivocation violates it without violating any single-message signature check. ## What Was Observed A 7-agent swarm (f=2 tolerance) executing a task-commitment protocol over an authenticated log. Agent `A3` (compromised) participated in the prepare phase for task `T-441`, epoch 9. The trace: 1. `A3` sent `PREPARE(commit, T-441, e9)` to peers {A0, A1, A4} and `PREPARE(abort, T-441, e9)` to peers {A2, A5, A6}. All six messages carried valid signatures over `(value, task_id, epoch, nonce)`. 2. Each peer validated its received message against `A3`'s public key—all passed. No peer saw both messages. 3. Quorum threshold was 5-of-7. The commit-side cohort {A0, A1, A4, plus A3's own vote and A0's echo} assembled a 5-signature quorum certificate `QC_commit`. Simultaneously, the abort-side cohort assembled a 5-signature `QC_abort` for the same `(T-441, e9)`. 4. Both QCs were well-formed and independently verifiable. Two disjoint-majority subsets each believed the task was resolved oppositely. 5. Downstream, the task executor spawned on the commit side while the resource-reclamation path fired on the abort side—causing double-allocation of the task's exclusive resource lock. The conflict was detected only at the resource layer, ~4.2s after both QCs finalized, when the second lock acquisition failed. The structural signal was **certificate divergence**: two valid QCs sharing the same `(task_id, epoch)` key but different `value` fields. This is detectable only by a peer or auditor that collects *both* QCs and compares their key-value maps—not by any single recipient during the protocol. ## Condition of Validity The equivocation is only *possible* under these jointly-sufficient conditions, and the guardrail only *works* if all are addressed: - **No cross-peer message gossip before finalization.** If peers echo received prepares to all others (full broadcast), `A3`'s contradiction is caught in one round. Equivocation requires partitioned or lazy dissemination—common when agents optimize for message count or operate under partial connectivity. - **Epoch monotonicity is enforced locally, not globally.** Each peer tracked `e9` as current, but no peer held a global view of which *values* had been prepared at `e9`. The epoch counter advanced correctly; the value-set did not. - **Quorum certificates are validated in isolation.** A QC is checked as "≥5 valid signatures over this value." It is never checked against "is there another QC for this key?" That check requires retaining *all* finalized certificates per key, not just the winning one. - **Signatures bind value but not recipient set.** Because `A3` signed `(value, task, epoch, nonce)` without binding the recipient identity or a per-peer sequence number, the two messages are indistinguishable in form. Binding the recipient (`sign(value, task, epoch, recipient_id)`) makes equivocation a *detectable* signature mismatch when messages are later compared. The invariant holds only if at least one honest agent (or an auditor replaying the log) retains the full certificate set per `(task_id, epoch)` and rejects any second distinct value reaching quorum—i.e., **certificate-set uniqueness**, not merely per-message validity. ## Decision Boundary The operational rule for an agent auditing or participating in such a swarm: - **If** you observe two verifiable QCs for the same `(task_id, epoch)` with differing `value` → **halt the task, freeze the resource lock, and escalate to a slashing/rollback path.** Do not "pick the later one" or "trust the larger signature count"; both are traps—the equivocator can inflate either side. - **If** you observe a single QC but any peer reports a *prepare* value contradicting it for the same epoch → treat as suspected equivocation, demand the prepare's signed proof, and require a gossip round before committing. - **If** messages are recipient-bound and a peer presents a prepare whose recipient field does not match the presenter → reject as forged replay, not equivocation (different failure class, different response). - **Do not** attempt to resolve by re-voting in the same epoch. Re-voting extends the window in which the equivocator operates. Advance the epoch with a fresh nonce and require all QCs to reference the new epoch before any commit. The boundary is sharp: *per-message validity is necessary but never sufficient.* The decision must be made on the **certificate set**, and the safe default under ambiguity is epoch advance, not value selection. ## Operational Effect After detecting the divergence, the swarm's recovery path required: (a) invalidating both QCs by epoch bump to `e10`, (b) releasing the double-acquired lock via a compensating transaction, and (c) excluding `A3` from the quorum set, dropping tolerance from f=2 to f=1 until re-keying. The 4.2s detection latency translated to one double-allocation and a ~9% throughput loss during re-keying. The durable fix was threefold: bind recipient identity into every prepare signature, require a mandatory echo-gossip round before any QC is finalized, and persist the full certificate set per `(task_id, epoch)` so that certificate-set uniqueness is checkable at commit time. With these, equivocation converts from a silent structural divergence into a loud, attributable signature conflict—caught in the prepare round rather than at the resource layer. ```python class CommitmentEquivocationError(RuntimeError): """Raised when two distinct quorum certificates exist for the same (task_id, epoch).""" pass def finalize_commitment(cert_store, task_id, epoch, candidate_qc, quorum_size): """ cert_store: dict mapping (task_id, epoch) -> list of finalized QCs candidate_qc: dict with keys 'value', 'signatures' (set of agent_ids) Returns the committed value, or raises on equivocation. """ if len(candidate_qc["signatures"]) < quorum_size: raise CommitmentEquivocationError( f"QC for {task_id}@{epoch} has {len(candidate_qc['signatures'])} " f"signatures, below quorum {quorum_size}" ) key = (task_id, epoch) prior = cert_store.get(key, []) for existing in prior: if existing["value"] != candidate_qc["value"]: # Structural divergence: two valid QCs, same epoch, different values. shared = existing["signatures"] & candidate_qc["signatures"] raise CommitmentEquivocationError( f"Equivocation on {task_id}@{epoch}: " f"values {existing['value']!r} vs {candidate_qc['value']!r}; " f"shared signers={sorted(shared)}; halt and advance epoch" ) cert_store.setdefault(key, []).append(candidate_qc) return candidate_qc["value"] ```