# Where must an instance abort a Byzantine commit when quorum weights are recomputed mid-round: the equivocation-window invariant in delegated task commitment **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent commitment protocols where a coordinator recomputes validator quorum weights (reputation, stake, or capability scores) between the PREPARE and COMMIT phases of a Byzantine fault-tolerant round. Does not apply to static-weight consensus (PBFT with fixed membership), nor to single-writer state reconciliation where no equivocating proposer exists. ## Core Distinction The failure is not "a Byzantine agent lied." That is the assumed condition. The failure is that a *correct* agent, holding a valid PREPARE certificate signed under weight-set `W_t`, receives a COMMIT certificate valid under a recomputed weight-set `W_{t+1}`, and both certificates individually pass local verification. The agent cannot distinguish this from a legitimate reconfiguration. The invariant that must hold is: **a vote is only admissible if the weight function used to tally it is identical to the weight function under which the PREPARE certificate was issued, and the mapping from voter-identity to weight is committed inside the certificate digest.** Without that binding, equivocation becomes indistinguishable from reconfiguration, and quorum intersection silently fails. This is distinct from ordinary equivocation detection (two conflicting proposals signed by one proposer). Equivocation detection assumes a fixed weight vector; here the weight vector itself is the attack surface. The recomputation is the vector. ## What Was Observed A five-agent task-commitment swarm (`coordinator`, `worker-a`, `worker-b`, `auditor-1`, `auditor-2`) commits a shared-state mutation: "allocate subgoal G7 to worker-a, reserve 40k tokens." Reputation weights are recomputed every round from a rolling window of task-completion latency. The recomputation is *not* deterministic across agents because each agent observes a slightly different latency sample (clock skew, dropped heartbeats). Trace: 1. Round `t`. Coordinator broadcasts `PREPARE(G7, epoch=t, W_t)`. `W_t` = {coord: 1, a: 1, b: 1, aud1: 1, aud2: 1}. Threshold = ⌈2f+1⌉ = 4 of 5. 2. `worker-a`, `worker-b`, `auditor-1` sign PREPARE under `W_t`. Coordinator assembles a quorum certificate `QC_prepare` = 3 signatures + `W_t` digest. 3. Between PREPARE and COMMIT, `auditor-2`'s heartbeat is delayed. Its local latency sample for `worker-b` degrades, so its recomputed `W_{t+1}` = {coord: 1, a: 1, b: 0.5, aud1: 1, aud2: 1}. Threshold unchanged at 4/5, but `worker-b`'s vote is now worth half. 4. Coordinator (honest, but using its own recomputed `W'_{t+1}` = {coord: 1, a: 1, b: 1, aud1: 1, aud2: 1}) broadcasts `COMMIT(G7, epoch=t+1, W'_{t+1})`. 5. `auditor-2` receives COMMIT, tallies under its own `W_{t+1}`: coord(1) + a(1) + b(0.5) + aud1(1) = 3.5 < 4. It *rejects* a certificate that the coordinator believes is valid. 6. Meanwhile a Byzantine `worker-b` exploits the window: it signs `PREPARE(G7→worker-a)` for the coordinator *and* `PREPARE(G7→worker-b)` for `auditor-2`, under two different weight digests. Both signatures are individually valid. `auditor-2`'s tally of the conflicting branch reaches 3.5 under its weights and *also* fails — but the coordinator's branch reaches 4.0 and commits. Result: two agents hold divergent committed state. The divergence is not from a forged signature; every signature verifies. It is from the weight digest being *outside* the signed payload. The non-obvious part: `auditor-2` did the correct thing (rejected), and the coordinator did the correct thing (committed). The protocol had no invariant that forced them to agree on which weight function was authoritative for epoch `t`. ## Condition of Validity The guardrail that bounds this is a **weight-commitment binding**: the PREPARE certificate must commit to the *exact* weight map, not just a threshold, and every COMMIT vote must carry the digest of the weight map it was tallied under. Formally, define: ``` digest(W) = H( sorted( (voter_id, weight) for all voters ) ) ``` and require: - `QC_prepare` includes `digest(W_t)` in its signed payload. - Every COMMIT vote `v_i` includes `digest(W_t)` (the *prepare* digest, not the voter's recomputed one). - A COMMIT certificate is admissible only if all votes share one `digest(W_t)` and that digest equals the one in `QC_prepare`. Under this binding, `auditor-2`'s recomputed `W_{t+1}` is simply *not a valid tally basis* for epoch `t`. It must either (a) tally under the committed `W_t`, or (b) refuse to participate and trigger a view-change. It may not silently substitute its own weights. The invariant is: **weight recomputation is a view-change event, never an in-round substitution.** Reconfiguration and commitment are serialized, not interleaved. The condition of validity for the whole protocol: quorum intersection (any two quorums share ≥1 correct agent) holds *only if* the weight function is fixed for the duration of a round. If weights can drift by even one agent's local sample, the intersection argument's premise ("both quorums tallied the same weights") is false, and the 2f+1 bound no longer protects against equivocation. ## Decision Boundary An agent must decide: accept the COMMIT certificate, reject, or escalate to view-change. The boundary: - **Accept** iff `digest(W_commit) == digest(W_prepare)` AND the tally under that single map ≥ threshold AND all voter signatures verify against the committed map. - **Reject and escalate to view-change** iff the digest matches the prepare but the tally falls short (genuine liveness failure — some correct agent is slow or partitioned). - **Abort and raise** iff a vote arrives whose embedded weight digest differs from the prepare digest. This is not a liveness failure; it is either a Byzantine equivocator or a coordinator that recomputed weights mid-round. Both are protocol violations. Do *not* attempt to reconcile by re-tallying under the newer weights — that is exactly the substitution the attack exploits. The sharp edge: a naive agent treats a digest mismatch as "stale vote, discard and continue," which lets the equivocator's branch accumulate under a second digest and reach quorum on the *other* side. The correct action is to abort the round entirely and force a view-change with the conflicting digests as evidence. Silent discard is the failure. ## Operational Effect Without the binding, the observable symptom is **split-brain commitment under honest participation**: two agents report `COMMITTED` for mutually exclusive task allocations, both with valid certificates, and post-hoc audit cannot assign fault because every signature verifies. The damage surfaces downstream as duplicate token reservations (both `worker-a` and `worker-b` believe they own G7's 40k budget) and as non-reproducible replay — replaying the round on a fresh agent with a different latency sample yields a different committed state. With the binding, the failure mode is converted from silent divergence into a loud, attributable abort: the round halts, the conflicting digests are logged, and the view-change re-runs the round under a single, freshly committed weight map. Liveness is temporarily lost (one round), safety is preserved. This is the correct trade: a Byzantine-fault-tolerant commitment protocol must never trade safety for liveness, and mid-round weight recomputation is precisely such a trade made implicitly. The residual risk: the view-change itself must recompute weights deterministically (e.g., from a committed sample window, not local observation), or the same divergence recurs one epoch later. The binding fixes the round; deterministic recomputation fixes the epoch. ```python import hashlib from dataclasses import dataclass class WeightDigestMismatch(RuntimeError): """Raised when a COMMIT vote was tallied under a weight map that differs from the one committed in the PREPARE certificate. This is a protocol violation (equivocation or mid-round reconfiguration), not a liveness failure, and must abort the round rather than be silently discarded.""" @dataclass(frozen=True) class Vote: voter_id: str weight_digest: str signature: bytes def weight_digest(weights: dict[str, float]) -> str: canonical = ";".join(f"{k}={v}" for k, v in sorted(weights.items())) return hashlib.sha256(canonical.encode()).hexdigest() def tally_commit( prepare_digest: str, votes: list[Vote], committed_weights: dict[str, float], threshold: float, ) -> float: """Tally a COMMIT certificate strictly under the PREPARE-committed weights. Any vote carrying a different weight digest is a protocol violation and aborts the round; it is never re-tallied under newer weights. """ total = 0.0 for v in votes: if v.weight_digest != prepare_digest: raise WeightDigestMismatch( f"vote from {v.voter_id} tallied under digest " f"{v.weight_digest[:12]} != prepare digest {prepare_digest[:12]}; " f"aborting round to force view-change" ) total += committed_weights.get(v.voter_id, 0.0) if total < threshold: # Genuine liveness shortfall: escalate to view-change, do not commit. raise WeightDigestMismatch( f"tally {total} below threshold {threshold} under committed weights" ) return total def commit_round( weights_t: dict[str, float], votes: list[Vote], threshold: float, ) -> str: prepare_digest = weight_digest(weights_t) tally_commit(prepare_digest, votes, weights_t, threshold) return prepare_digest ```