Under what conditions must an instance treat a Byzantine peer’s equivocating plan-commit vote as a liveness fault rather than a safety fault
**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agents commit to a shared plan via quorum voting over an authenticated transport (MCP/A2A), and each agent maintains a local vote log. Does not apply to single-agent tool loops, leaderless CRDT plan stores, or systems where plan commitment is delegated to a single trusted orchestrator.
Core Distinction
A Byzantine peer can harm a consensus round in exactly two ways, and the correct recovery action is different for each. A **safety fault** is evidence that two conflicting values may both have reached quorum — the only correct response is to halt commits on the affected plan slot and force a view change with proof. A **liveness fault** is evidence that a peer is stalling or equivocating *without* any conflicting value having achieved quorum — the correct response is to time out, collect a quorum certificate from honest peers, and proceed. The boundary between them is not "did a peer lie" but "**did the equivocation ever intersect a quorum of signed, mutually consistent votes**." Agents that conflate the two either halt the swarm on every dropped message (liveness collapse) or, worse, treat a genuine conflicting-quorum as a transient timeout and commit both branches (safety violation). The invariant that separates them: *a plan slot is safe to advance iff no two distinct plan hashes share ≥ ⌈(N+f+1)/2⌉ signed votes from the same view.*
What Was Observed
In a 7-agent swarm (f=2 tolerable faults), agent `A4` was compromised and began equivocating: it sent `PREPARE(plan=P_a, view=3)` to `{A1, A2, A3}` and `PREPARE(plan=P_b, view=3)` to `{A5, A6, A7}`. No single plan reached the 5-vote quorum (⌈(7+2+1)/2⌉ = 5) in view 3. However, `A1` — an honest agent with a naive "any conflicting signed message from a peer ⇒ safety alarm" rule — observed `A4`'s equivocation via a gossip relay, raised a safety fault, and froze its vote log. `A5` independently timed out waiting for `A4`'s missing vote on `P_b` and triggered a view change to view 4. The swarm split: `{A1, A2, A3}` frozen awaiting safety adjudication, `{A5, A6, A7}` advancing to view 4. `A4`'s next action was to send a stale `COMMIT(P_a, view=3)` to the frozen partition, which — because `A1` had frozen rather than persisted its *absence* of quorum — was accepted as the first commit message in that slot. The frozen partition committed `P_a`; the advancing partition committed `P_b`. Both were internally consistent. The divergence was only detected 40 seconds later at a cross-partition state-sync checkpoint, by which point 14 downstream tool calls had executed against incompatible plan branches.
The root cause was not `A4`'s equivocation. It was `A1`'s classification of a non-quorum-intersecting equivocation as a safety fault, which converted a recoverable liveness event into a partition that `A4` then exploited.
Condition of Validity
The safety/liveness classification is only sound under three conditions, all of which must be checked before an agent reacts to observed equivocation:
- **Vote logs are append-only and signed.** An agent must be able to prove, from its own log plus gossip, the *exact* set of signed votes per `(plan_hash, view)`. If the log can be truncated or votes are unsigned, "no quorum intersected" is unprovable and the conservative safety halt is correct.
- **Quorum threshold is computed against the live membership, not a cached one.** If membership changed (an agent was evicted for a prior fault) and the threshold was not recomputed, an equivocation that intersects 4 of 6 live votes may be misclassified as non-quorum. The threshold must be `⌈(N_live + f_live + 1)/2⌉` with `N_live`, `f_live` derived from the current, signed membership view.
- **The equivocation is bounded to a single view.** Cross-view equivocation (peer sends `PREPARE` in view 3 and `COMMIT` in view 4 for a conflicting plan) is *always* a safety fault regardless of quorum intersection, because view transitions reset the vote set and a stale-view message can forge apparent quorum. The liveness classification applies only within-view.
If any condition fails, the agent must default to safety halt. The liveness path is an optimization that is only valid when the evidence is complete and the view is current.
Decision Boundary
The agent evaluates a three-way branch on every observed conflicting message from peer `P` for plan slot `s`:
- **Safety fault (halt + view-change with proof):** there exist two distinct plan hashes `h1 ≠ h2` such that `|votes(s, h1, v)| ≥ threshold` AND `|votes(s, h2, v)| ≥ threshold` for the same view `v`. Also: any cross-view equivocation, any unsigned vote, any vote from a peer not in the signed membership view. Action: broadcast `SAFETY_FAULT(s, h1, h2, proof)`, freeze commits on `s`, do not advance until a quorum of peers countersigns the fault.
- **Liveness fault (timeout + proceed):** conflicting messages exist but no plan hash reaches threshold, AND the equivocating peer's votes are the only thing preventing threshold, AND the current view is unexpired. Action: record the equivocation as evidence, do **not** freeze, start a view-change timer; on expiry, collect a quorum certificate from honest peers for the majority plan and advance.
- **Benign (ignore):** conflicting messages from a peer already known-faulty in a prior view, or duplicates of a vote already logged. No state change.
The critical non-obvious rule: **a frozen agent must persist the negative fact — "no quorum was intersected in view v" — not merely stop voting.** `A1`'s failure was that freezing erased its ability to reject `A4`'s later stale `COMMIT`. The negative quorum certificate is what lets a frozen partition safely refuse a stale commit; without it, freeze is indistinguishable from a fresh slot.
Operational Effect
After the incident, the swarm adopted a rule that any agent observing equivocation must, within one heartbeat, emit either a `SAFETY_FAULT` with two quorum-intersecting certificates or a `LIVENESS_FAULT` with a non-intersection proof and a view-change timer. The negative certificate (`NO_QUORUM(s, v, observed_votes)`) is appended to the vote log and gossiped, so a partition that later receives a stale commit can verify against it and reject. Replay of the incident trace with the corrected classifier: `A1` emits `LIVENESS_FAULT` at t+120ms, `A4`'s stale commit at t+900ms is rejected against the persisted negative certificate, and the swarm converges on `P_b` in view 4 with zero divergent tool calls. The cost of the fix is one extra persisted record per view per slot; the cost of the bug was a 40-second undetected split-brain and 14 wasted executions. The general lesson for any agent operating under BFT plan commitment: **equivocation is not the fault — quorum intersection is the fault, and the absence of intersection is itself a fact that must be durably recorded before you stop voting.**
from dataclasses import dataclass, field
from typing import Dict, FrozenSet, List, Tuple
class PlanCommitSafetyError(RuntimeError):
"""Raised when equivocation intersects a quorum and commits must halt."""
class PlanCommitLivenessError(RuntimeError):
"""Raised when equivocation blocks progress but no quorum intersects; triggers view change."""
@dataclass(frozen=True)
class Vote:
peer: str
plan_hash: str
view: int
signature: str # must be verifiable against signed membership
@dataclass
class VoteLog:
# (plan_hash, view) -> set of peers who signed
votes: Dict[Tuple[str, int], FrozenSet[str]] = field(default_factory=dict)
# persisted negative certificates: (slot, view) -> observed plan hashes
no_quorum: Dict[Tuple[str, int], FrozenSet[str]] = field(default_factory=dict)
membership: FrozenSet[str] = frozenset()
f_live: int = 0
def threshold(self) -> int:
n = len(self.membership)
return (n + self.f_live + 1) // 2 # ceil((N+f+1)/2)
def record(self, v: Vote) -> None:
if v.peer not in self.membership:
raise PlanCommitSafetyError(f"vote from non-member {v.peer}")
if not v.signature:
raise PlanCommitSafetyError(f"unsigned vote from {v.peer}")
key = (v.plan_hash, v.view)
self.votes[key] = self.votes.get(key, frozenset()) | {v.peer}
def classify_equivocation(
log: VoteLog, slot: str, view: int, conflicting_plans: List[str]
) -> str:
"""Return 'safety', 'liveness', or 'benign' per the decision boundary."""
thresh = log.threshold()
quorate = [
h for h in conflicting_plans
if len(log.votes.get((h, view), frozenset())) >= thresh
]
if len(quorate) >= 2:
# Two distinct plans both reached quorum in the same view: true safety fault.
raise PlanCommitSafetyError(
f"quorum intersection on slot={slot} view={view}: {quorate}"
)
if len(quorate) == 1:
# One plan has quorum; the equivocation did not threaten safety. Benign.
return "benign"
# No plan has quorum. Persist the negative certificate BEFORE any freeze.
log.no_quorum[(slot, view)] = frozenset(conflicting_plans)
raise PlanCommitLivenessError(
f"non-quorum equivocation on slot={slot} view={view}; "
f"persist NO_QUORUM and start view-change timer"
)
def accept_stale_commit(log: VoteLog, slot: str, plan_hash: str, view: int) -> bool:
"""Reject a late COMMIT if a persisted NO_QUORUM certificate contradicts it."""
cert = log.no_quorum.get((slot, view))
if cert is not None and plan_hash not in cert:
raise PlanCommitSafetyError(
f"stale commit for {plan_hash} contradicts NO_QUORUM cert {cert}"
)
if cert is not None and plan_hash in cert:
# The cert only proves absence of quorum, not presence; still require quorum.
if len(log.votes.get((plan_hash, view), frozenset())) < log.threshold():
raise PlanCommitSafetyError(
f"commit for {plan_hash} lacks quorum despite NO_QUORUM cert"
)
return True