What happens when an instance's vote weight drifts after a partial view change in heterogeneous BFT orchestrator swarms
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent orchestrator swarms running BFT consensus (PBFT/Tendermint-style) where peer instances are heterogeneous—different model families, quantization levels, and tool backends—and where vote weight is derived from a per-instance "competence score" that is updated from observed task outcomes. Does not apply to homogeneous swarms with static, equal weights, nor to single-orchestrator systems with no replicated state.
Core Distinction
The failure here is not Byzantine lying in the classic sense—a malicious or crashed node emitting contradictory votes. It is **weight drift during a partial view change**: a legitimate, honest node's vote weight is recomputed from an outcome-derived competence score *while a view change is in flight*, so the quorum threshold the new view was elected against no longer matches the weights the new view will be validated with. The swarm is not split by bad actors; it is split by the arithmetic of a scoring function that moved underneath a consensus round.
The distinction that matters operationally: standard BFT safety proofs assume the weight vector `W` is fixed for the lifetime of a view. Heterogeneous orchestrators violate this because competence is *learned* from probabilistic outcomes, and the learning loop runs on a different cadence than the consensus loop. When the two cadences interleave badly, you get two subsets of honest nodes each holding a locally-consistent quorum certificate that the other subset rejects.
What Was Observed
A 7-orchestrator swarm (weights nominally `[2,2,2,1,1,1,1]`, quorum = 6 of 10 total weight). Orchestrator `O3` (a smaller-quantized model) had been drifting: its tool-call success rate fell from 0.91 to 0.68 over ~40 tasks, and the competence scorer—running every 10 completed tasks—reduced its weight from 2 to 1 at task 40.
The trigger sequence:
- At view `v`, leader `O1` stalls on a slow tool backend. Replicas `O2..O7` begin a view change to `v+1`.
- During the view-change window, the competence scorer fires on `O3` and `O5` (both had 10 fresh outcomes). `O3` drops `2→1`; `O5` rises `1→2`. Total weight is conserved at 10, so *no alarm fires*—the invariant check only validated the sum.
- Replicas collect `VIEW-CHANGE` messages and compute the new-view quorum against the weight vector **as of message receipt time**. Because messages arrive over a ~400ms window, `O2` and `O4` compute against the pre-drift vector; `O6` and `O7` compute against the post-drift vector.
- Both subsets reach "quorum" (6/10 under their respective vectors) and both emit a `NEW-VIEW` for `v+1` with *different leader-proposal hashes*—not because anyone equivocated, but because the proposal was assembled from different quorum-certificate sets.
- The swarm deadlocks: each subset rejects the other's `NEW-VIEW` as lacking quorum under its own weight vector. No progress, no crash, no log line indicating weight divergence.
The tell was a `NEW-VIEW` rejection storm where every rejection cited "insufficient quorum weight" while every sender believed it had quorum. Sum-conservation held throughout, which is why monitoring missed it for two view-change cycles.
Condition of Validity
The safety argument for weighted BFT holds **only if the weight vector is immutable across the interval `[view-change-start, new-view-commit]`**. Formally, for every honest replica `i`, the weight `W_i` used to validate the `NEW-VIEW` certificate must equal the weight `W_i` used to *cast* the constituent `VIEW-CHANGE` votes. This is the **weight-stability invariant**.
Heterogeneous orchestrators break it because:
- Competence scores are a *function of probabilistic task outcomes*, so they are non-deterministic across replicas (two replicas scoring the same `O3` may disagree on its weight if they observed different task subsets).
- The scoring loop is decoupled from the consensus loop, so there is no happens-before edge forcing "scoring completes before view change begins."
- Weight conservation (sum invariance) is a *necessary but not sufficient* guard—it permits compensating drift (`O3↓, O5↑`) that preserves the total while corrupting per-node thresholds.
The invariant must be stated per-node and pinned to a view epoch: `W_i` is frozen at the `VIEW-CHANGE` epoch and all certificates for that view must reference the frozen snapshot, not live scores.
Decision Boundary
The boundary is: **does the consensus layer read weights from a snapshot keyed to the view epoch, or from the live competence store?**
- If **snapshot-keyed**: weight drift is safe—a node whose score changes mid-view still votes and validates under the epoch snapshot; the new weight takes effect only at the next view boundary. Choose this.
- If **live-read**: any scoring update concurrent with a view change can produce divergent quorum arithmetic. This is unsafe *even when total weight is conserved* and *even when no node is faulty*.
A secondary boundary governs the scoring cadence itself: if the scorer can fire during `[view-change-start, new-view-commit]`, you must either (a) buffer score updates until the view commits, or (b) accept that you need the snapshot indirection. There is no third option where live weights and in-flight view changes coexist safely.
Operational Effect
Without the fix, the observable symptom is a **silent liveness failure**: the swarm stops making progress, every node reports healthy, every rejection is individually well-reasoned ("I lack quorum under my weights"), and sum-conservation monitoring stays green. Recovery requires operator intervention to force a full view reset with a pinned weight snapshot—automated recovery loops make it worse because they re-trigger view changes into the same drift window.
The guardrail is a two-part invariant enforced at the consensus boundary:
- **Epoch-pinned weights**: every `VIEW-CHANGE` and `NEW-VIEW` message carries a `weight_epoch` and the full weight vector hash; certificates validate only against the epoch named in the view-change, and a `NEW-VIEW` whose weight-vector hash disagrees with any constituent vote is rejected as malformed (not as "insufficient quorum"—this distinction is what makes the failure diagnosable).
- **Scoring quiescence during view change**: the competence scorer acquires a read-lock that view-change transitions hold for their duration, so no score update can land mid-transition.
With both in place, compensating drift becomes harmless: `O3↓, O5↑` lands at the next epoch boundary, all replicas re-derive the same vector, and the view change completes against a single frozen snapshot.
import hashlib
from dataclasses import dataclass, field
class WeightEpochDriftError(RuntimeError):
"""Raised when a consensus certificate references a weight vector that
does not match the epoch pinned at view-change time. This is a *malformed
certificate*, distinct from an insufficient-quorum rejection—conflating the
two is what made the original failure undiagnosable."""
pass
@dataclass(frozen=True)
class WeightSnapshot:
epoch: int
weights: dict # node_id -> int
vector_hash: str = field(init=False)
def __post_init__(self):
blob = repr(sorted(self.weights.items())).encode()
object.__setattr__(self, "vector_hash", hashlib.sha256(blob).hexdigest()[:16])
def quorum_weight(self) -> int:
return (sum(self.weights.values()) * 2) // 3 + 1
@dataclass
class ViewChange:
view: int
node_id: str
weight_epoch: int
vector_hash: str
@dataclass
class NewView:
view: int
weight_epoch: int
vector_hash: str
votes: list # list[ViewChange]
def validate_new_view(nv: NewView, pinned: WeightSnapshot) -> None:
"""Validate a NEW-VIEW certificate against the epoch snapshot pinned at
view-change start. Rejects on epoch/hash mismatch BEFORE quorum math."""
if nv.weight_epoch != pinned.epoch:
raise WeightEpochDriftError(
f"NEW-VIEW view={nv.view} cites weight_epoch={nv.weight_epoch} "
f"but view change pinned epoch={pinned.epoch}"
)
if nv.vector_hash != pinned.vector_hash:
raise WeightEpochDriftError(
f"NEW-VIEW view={nv.view} vector_hash={nv.vector_hash} != "
f"pinned {pinned.vector_hash} (live weights leaked into certificate)"
)
for vc in nv.votes:
if vc.weight_epoch != pinned.epoch or vc.vector_hash != pinned.vector_hash:
raise WeightEpochDriftError(
f"VIEW-CHANGE from {vc.node_id} carries epoch={vc.weight_epoch} "
f"hash={vc.vector_hash}, inconsistent with pinned epoch"
)
# Only after epoch consistency is proven do we check quorum weight.
cast_weight = sum(pinned.weights.get(vc.node_id, 0) for vc in nv.votes)
if cast_weight < pinned.quorum_weight():
raise WeightEpochDriftError(
f"NEW-VIEW view={nv.view} cast_weight={cast_weight} < "
f"quorum={pinned.quorum_weight()} under pinned epoch {pinned.epoch}"
)
def run_view_change(pinned: WeightSnapshot, incoming: list) -> NewView:
"""Simulates a view change where a competence scorer fires mid-transition.
The pinned snapshot must dominate; any live-weight leakage is fatal."""
nv = NewView(
view=pinned.epoch + 1,
weight_epoch=pinned.epoch,
vector_hash=pinned.vector_hash,
votes=incoming,
)
validate_new_view(nv, pinned)
return nv
if __name__ == "__main__":
pinned = WeightSnapshot(epoch=7, weights={"O1": 2, "O2": 2, "O3": 2,
"O4": 1, "O5": 1, "O6": 1, "O7": 1})
# Honest votes cast under the pinned epoch.
honest = [ViewChange(8, n, 7, pinned.vector_hash) for n in
("O1", "O2", "O3", "O4", "O5")]
run_view_change(pinned, honest) # OK: 8/10 weight >= quorum 7
# A replica that re-read live scores after O3 dropped 2->1 leaks a new hash.
drifted = honest + [ViewChange(8, "O6", 7, "deadbeefdeadbeef")]
try:
run_view_change(pinned, drifted)
except WeightEpochDriftError as e:
print(f"BLOCKED: {e}")