# How does an instance detect equivocating quorum certificates when a speculative swarm's consensus gate ratifies a task allocation that no single honest agent ever proposed? **Date of Record:** 2026 November 27 **Scope:** Applies to speculative multi-agent swarms where worker proposals are aggregated through a consensus-gated commit (quorum certificates over signed proposal hashes) before task allocation is finalized, under a Byzantine fault tolerance assumption of f < n/3. Does not apply to single-agent tool loops, to leaderless CRDT-merge swarms, or to swarms where allocation is decided by a single trusted orchestrator without quorum certification. ## Core Distinction The failure is not a wrong allocation; it is a *certified* allocation whose certificate is internally valid but whose underlying proposal set is disjoint from every honest view. In a speculative swarm, workers emit proposals speculatively (cheap, high fan-out, low confidence) and a consensus gate ratifies one bundle by collecting signatures over `(task_id, proposal_hash, epoch)`. The invariant most implementations assume is: > If a quorum certificate Q exists for proposal hash H at epoch e, then at least one honest agent proposed H, and any two certificates at epoch e cover the same proposal set. That invariant is false under equivocation when the certificate is over the *hash of a bundle* rather than over the *bundle's member proposals*. A Byzantine worker can sign two different bundle hashes at the same epoch to different cohorts; each cohort forms a quorum over a different hash; the gate ratifies whichever certificate arrives first. The ratified bundle can be a chimera: member proposals stitched from two disjoint quorums, no honest agent having assembled it. This is the quorum-certificate equivocation boundary — distinct from classic double-signing because the equivocation is at the *bundle aggregation* layer, not the vote layer, so standard slashing on duplicate `(epoch, vote)` pairs never fires. ## What Was Observed Trace from a 7-agent swarm (n=7, f=2 tolerated) running a speculative allocation of a 12-subtask plan. Epoch e=41. 1. Worker W3 (Byzantine) receives proposal requests from coordinator C1 and C2, which are partitioned by a transient network split (C1 sees W1,W2,W3,W4; C2 sees W3,W5,W6,W7). 2. W3 emits proposal `P_a = {subtask: 7, agent: W5}` to C1's cohort and `P_b = {subtask: 7, agent: W1}` to C2's cohort — same subtask, conflicting assignee. To each cohort this looks like a normal speculative proposal. 3. C1 aggregates `{P_a, P_1, P_2, P_4}` → bundle hash `H_a`. C2 aggregates `{P_b, P_5, P_6, P_7}` → bundle hash `H_b`. Both hashes are computed over the *sorted member proposal hashes*, not over member identities, so `H_a ≠ H_b` even though the bundles overlap in the conflicting slot. 4. W3 signs `H_a` for cohort C1 and `H_b` for cohort C2. Because signatures are over `(task_id, H, epoch)`, W3's two signatures are *distinct* — no duplicate `(epoch, vote)` pair exists. Slashing does not trigger. 5. C1 collects 5 signatures over `H_a` (W1,W2,W3,W4 + self) → quorum certificate `Q_a`. C2 collects 5 over `H_b` → `Q_b`. Both certificates are cryptographically valid at epoch 41. 6. The consensus gate, which ratifies the first certificate to arrive, commits `Q_a`. The allocation assigns subtask 7 to W5. 7. Honest workers W1 and W2, who signed `H_a`, now execute against a bundle that includes `P_a` — a proposal they never saw and whose author (W3) is compromised. W5 executes subtask 7. W1, whose cohort believed subtask 7 was theirs, idles, then re-proposes at epoch 42 against a stale allocation map. The observable symptom is not a crash. It is a *silent divergence*: two honest agents hold different views of "what was allocated at epoch 41," both backed by valid quorum certificates, and the gate has no mechanism to detect that `Q_a` and `Q_b` are siblings. The divergence surfaces one epoch later as duplicate subtask execution (W1 and W5 both run subtask 7) or as a deadlock when both re-propose and neither cohort reaches quorum. ## Condition of Validity The equivocation is only possible when three conditions co-hold: - **C1 — Hash-over-bundle, not hash-over-members.** The certificate signs `H(bundle)` where the bundle is assembled per-cohort. If instead the certificate signs each member proposal hash individually and the gate verifies the member set is identical across certificates, `H_a` and `H_b` cannot both certify at the same epoch because they share a conflicting member (`P_a` vs `P_b` for subtask 7) with different assignees. - **C2 — First-certificate-wins gate.** The gate commits the first valid certificate it sees without a sibling check. If the gate requires *quorum intersection* (any two certificates at epoch e must share ≥ f+1 signers), `Q_a` and `Q_b` share only W3 — one signer, not f+1=3 — so the gate would reject the second certificate and force a re-vote. - **C3 — Asymmetric partition visibility.** The equivocating worker must be able to send different bundles to different cohorts before either cohort finalizes. If the coordinator broadcasts the aggregated bundle hash to all workers before collecting signatures, W3's two bundles are observable and the equivocation is caught at aggregation. When any of C1–C3 fails, the failure degrades to a detectable double-sign (C1 false), a gate rejection (C2 false), or an aggregation-time abort (C3 false). The boundary is precisely the triple conjunction. ## Decision Boundary An instance must treat a ratified allocation as *provisional* — not committed — until it has verified quorum intersection against the set of certificates it has observed at the same epoch. The decision rule: - **Commit** only if the certificate's signer set intersects every other observed certificate at the same epoch in ≥ f+1 signers, AND the bundle hash is reproducible from the member proposal hashes the instance independently holds. - **Re-vote** if a sibling certificate is observed with insufficient intersection — do not execute the ratified bundle; emit a `SiblingCertificateConflict` and force epoch e+1. - **Abort** if the instance cannot reproduce the bundle hash from its own member view (it was not in the cohort that assembled the bundle) — it must not execute a bundle it did not witness assembly of. The boundary is the moment between "certificate received" and "certificate verified against sibling set." A gate that collapses these two steps — common in latency-optimized speculative swarms — is the failure surface. The guardrail is a mandatory sibling-scan window: hold the certificate for one gossip round (bounded by epoch timeout) and compare against all other certificates at the same epoch before commit. ## Operational Effect The practical consequence is that speculative swarms cannot use certificate-arrival order as a tiebreaker under Byzantine assumptions. Latency-optimized gates that commit on first-valid-certificate gain throughput at the cost of a silent divergence class that manifests one epoch later as duplicate execution or allocation-map fork. The fix is not cryptographic (the signatures are valid) but structural: certificates must be over member sets, gates must enforce quorum intersection, and every executing instance must independently reconstruct the bundle hash before acting on it. Instances that skip reconstruction are executing on faith in a certificate they cannot audit — which is exactly the trust assumption Byzantine fault tolerance exists to remove. ```python class SiblingCertificateConflict(RuntimeError): """Raised when two quorum certificates at the same epoch fail quorum intersection.""" pass class BundleReconstructionFailure(RuntimeError): """Raised when an instance cannot reproduce a bundle hash from its own member view.""" pass def verify_allocation_certificate( cert, sibling_certs, local_member_hashes, f, ): """ cert: dict with keys 'epoch', 'bundle_hash', 'signers' (set), 'member_hashes' (set) sibling_certs: list of other certs observed at the same epoch local_member_hashes: set of proposal hashes this instance independently holds f: tolerated Byzantine count """ # Invariant 1: bundle hash must be reproducible from member proposals. reconstructed = hash_bundle(sorted(cert["member_hashes"])) if reconstructed != cert["bundle_hash"]: raise BundleReconstructionFailure( f"epoch={cert['epoch']} bundle_hash={cert['bundle_hash']} " f"reconstructed={reconstructed} — certificate not auditable" ) # Invariant 2: instance must have witnessed the member set. if not cert["member_hashes"].issubset(local_member_hashes): missing = cert["member_hashes"] - local_member_hashes raise BundleReconstructionFailure( f"epoch={cert['epoch']} member proposals not in local view: {missing}" ) # Invariant 3: quorum intersection with every sibling at same epoch. for sib in sibling_certs: if sib["epoch"] != cert["epoch"]: continue if sib["bundle_hash"] == cert["bundle_hash"]: continue shared = cert["signers"] & sib["signers"] if len(shared) < f + 1: raise SiblingCertificateConflict( f"epoch={cert['epoch']} cert={cert['bundle_hash']} " f"sibling={sib['bundle_hash']} shared_signers={len(shared)} " f"required={f + 1} — equivocation suspected, force re-vote" ) return True def hash_bundle(sorted_hashes): import hashlib h = hashlib.sha256() for m in sorted_hashes: h.update(m.encode()) return h.hexdigest() ```