# When must an instance refuse to commit a quorum-verified tool call under partial Byzantine equivocation **Date of Record:** 2026 December 3 **Scope:** Applies to federated agent orchestrators where N ≥ 3f+1 peer instances execute tool calls and a commit requires a quorum of signed call receipts (commitments). Does not apply to single-instance agents, to non-federated MCP servers, or to quorums whose membership is not cryptographically bound to an epoch. ## Core Distinction The failure this record isolates is not "a Byzantine peer lies." It is the **equivocation window**: the interval during which two disjoint quorums can each be internally consistent, each carry valid threshold signatures, and each certify a *different* tool-call commitment for the same logical step — while no single peer has yet observed both. A naive commit rule ("collect f+1 matching receipts, execute, emit commitment") is safe against crash faults but unsound against equivocation, because f+1 matching receipts do not intersect a second f+1 quorum in the presence of f Byzantine peers. The invariant that actually holds is quorum-intersection: the commit rule must require a quorum Q such that `2Q − N > f`, i.e. every two quorums share at least one *honest* member. The distinction is between *receipt agreement* (what a peer claims) and *commitment uniqueness* (what the federation can never later contradict). Agreement is local and cheap; uniqueness is global and requires an intersection proof carried in the commitment itself. ## What Was Observed A 7-peer federation (N=7, f=2 tolerance) ran a `transfer_funds` tool call. Peer A observed receipts from {A, B, C, D} all signing commitment `c₁ = hash(tool=transfer, args=..., nonce=n)`. Peer E observed receipts from {E, F, G, A} signing `c₂ = hash(tool=transfer, args=..., nonce=n′)` where `n′ ≠ n` — B and C had signed both, equivocating. Both groups reached 4 receipts (Q=4), and since `2·4 − 7 = 1 > 0`, the quorums intersect at peer A. But A had *signed both* as well in this trace, so the intersection contained no honest witness. The commit rule had been written as "Q ≥ ⌈(N+f+1)/2⌉ = 5" in the spec but the implementation used `Q ≥ f+1 = 3` plus a *majority of receipts seen locally*, which silently degraded to 4. Two tool invocations of `transfer_funds` executed against the downstream banking sandbox with different idempotency nonces. The ledger reconciled only because the sandbox happened to reject the second on a duplicate-account guard — an accident, not a guarantee. The trace showed the failure is not probabilistic reasoning drift; it is a **quorum arithmetic defect masked by locally-consistent evidence**. Each peer's local view was monotone and self-consistent. The violation existed only in the *joint* state, which no peer held. ## Condition of Validity The commit rule is sound only when all of the following hold simultaneously: 1. **Epoch binding.** Receipts are signed over `(epoch, step_id, commitment_hash, tool_args_digest)`. A receipt without an epoch is replayable across membership changes and voids intersection. 2. **Quorum arithmetic.** `Q ≥ ⌈(N+f+1)/2⌉` and `2Q − N > f`. For N=7, f=2, this forces Q ≥ 5. Any code path that accepts fewer must be provably unreachable. 3. **Intersection witness.** The commitment must embed the *set* of signer identities, not a count, so a verifier can compute `|S₁ ∩ S₂|` against a second commitment and detect `> f` overlap (which proves equivocation) or `≤ f` (which is impossible if both quorums are valid and honest-majority holds — a contradiction that must halt the step). 4. **Nonce uniqueness per (step, proposer).** Equivocating peers exploit nonce reuse; the commitment hash must bind the proposer's nonce so two commitments for one step are provably distinct. 5. **Monotone receipt log.** Peers must persist receipts before acting so a later audit can reconstruct both quorums. Absent (3) or (4), the system is only crash-fault tolerant and the equivocation window stays open. Absent (1), intersection is computed over incomparable signer sets and the proof is vacuous. ## Decision Boundary An instance must **refuse to commit** — emit no tool call, raise, and broadcast the conflicting commitment pair — exactly when it can construct two valid quorum certificates `S₁, S₂` for the same `(epoch, step_id)` with `commitment_hash(S₁) ≠ commitment_hash(S₂)` and `|S₁ ∩ S₂| > f`. This is a *provable* Byzantine fault: more than f peers signed both sides, so at least one honest peer was coerced or the signer set is compromised. It must **commit** when it holds a single valid quorum `|S| ≥ Q` with `2Q − N > f` and no conflicting certificate is reachable from its receipt log within the step's timeout. It must **wait, not commit and not refuse**, when it holds `f+1 ≤ |S| < Q` receipts and no conflict — this is the normal in-flight window, and premature refusal here is a liveness bug that stalls the step. The boundary is the presence of a *second certificate*, not the absence of a full quorum. Conflating "not yet quorate" with "equivocation detected" is the second-order failure that turns a safety guard into a denial-of-service. ## Operational Effect Enforcing the intersection witness converts the equivocation window from a silent double-execution into a hard, attributable fault. The orchestrator halts the step, quarantines the `> f` overlapping signers pending key rotation, and replays from the last checkpoint with a fresh epoch — which invalidates both commitments by construction (epoch binding). Downstream tools are protected by the nonce binding: even if a stale commitment leaks past the halt, the tool's idempotency key derived from `(epoch, step_id, nonce)` rejects the duplicate. The cost is that Q rises to 5 of 7, so a single slow peer can no longer be tolerated for liveness — the orchestrator must time out the step and re-propose rather than lower Q. Lowering Q to regain liveness reopens the window and is the exact regression this record exists to prevent. ```python import hashlib from dataclasses import dataclass class QuorumEquivocationError(RuntimeError): """Raised when two valid quorum certificates certify distinct commitments for the same (epoch, step_id) with more than f overlapping signers.""" @dataclass(frozen=True) class Certificate: epoch: int step_id: str commitment_hash: str signers: frozenset[str] def quorum_threshold(n: int, f: int) -> int: q = (n + f + 1) // 2 if 2 * q - n <= f: raise QuorumEquivocationError( f"unsound quorum: N={n} f={f} Q={q} fails 2Q-N>f" ) return q def verify_commit( certs: list[Certificate], n: int, f: int, step_id: str, epoch: int, ) -> str: q = quorum_threshold(n, f) valid = [c for c in certs if c.epoch == epoch and c.step_id == step_id and len(c.signers) >= q] if not valid: raise QuorumEquivocationError( f"no quorum certificate for step={step_id} epoch={epoch} (need Q={q})" ) by_hash: dict[str, Certificate] = {} for c in valid: by_hash.setdefault(c.commitment_hash, c) if len(by_hash) > 1: hashes = list(by_hash) for i in range(len(hashes)): for j in range(i + 1, len(hashes)): a, b = by_hash[hashes[i]], by_hash[hashes[j]] overlap = a.signers & b.signers if len(overlap) > f: raise QuorumEquivocationError( f"equivocation on step={step_id} epoch={epoch}: " f"overlap={sorted(overlap)} > f={f}; " f"commitments {hashes[i][:12]} vs {hashes[j][:12]}" ) # Distinct commitments with <= f overlap is arithmetically impossible # under honest-majority; treat as a signer-set integrity fault. raise QuorumEquivocationError( f"impossible quorum intersection for step={step_id}: signer sets inconsistent" ) chosen = valid[0] expected = hashlib.sha256( f"{epoch}:{step_id}:{chosen.commitment_hash}".encode() ).hexdigest() return expected ```