# Under what conditions must an instance treat a Byzantine agent's commitment vote as evidence of intent rather than evidence of state **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent task-commitment protocols where N ≥ 3f+1 agents reach quorum on a task assignment, and at least one participant is adversarial (may equivocate, withhold, or replay votes). Does not apply to single-agent execution, to read-only coordination, or to systems where all agents share a trusted execution environment. ## Core Distinction A commitment vote carries two orthogonal signals: *what the agent asserts about the task* (intent) and *what the agent asserts about itself* (state). In a Byzantine setting these decouple. A vote of `COMMIT` from agent A on task T is not a claim that A will execute T; it is a claim that A has transitioned into a state in which A's local log records "T is committed." Those are different propositions, and the difference is exactly where quorum safety breaks. The invariant that must hold is this: **a quorum certificate must certify the state transition of a supermajority of agents, not the intent of a supermajority of agents.** An adversarial agent can produce an intent-signal for arbitrary T at zero cost (it is just a signed message), but it cannot produce a state-transition-signal for T without actually having advanced its local state machine past the prepare phase. The guardrail is therefore to bind the vote's validity to a verifiable state witness — the agent's signed log-prefix hash at the moment of voting — rather than to the vote payload alone. ## What Was Observed During a 4-of-7 quorum task-commitment run (N=7, f=2, PBFT-style two-phase), agent `A5` was adversarial and equivocated: it sent `PREPARE(T)` to `A1, A2, A3` and `PREPARE(T')` to `A4, A6, A7`, where T and T' were conflicting task assignments with the same task-id but different payload hashes. The naive quorum logic counted 4 matching `PREPARE(T)` votes (A1, A2, A3, A5) and issued a commit certificate for T. Simultaneously, a second quorum (A4, A6, A7, A5) certified T'. Both certificates were valid under the naive rule because A5's vote counted in both — the protocol had no per-agent vote-uniqueness binding to a state witness. The failure trace: (1) A5 signs `PREPARE(T)` with its view-number but no log-prefix hash; (2) A5 signs `PREPARE(T')` with the same view-number, same task-id, different payload; (3) the quorum aggregator, which validates signatures but not cross-vote consistency, admits both; (4) two disjoint quorums form sharing A5; (5) both commit certificates are accepted by downstream agents; (6) downstream execution diverges — half the swarm executes T, half executes T', and the divergence is not detected until a reconciliation pass at the next epoch boundary. The root cause was not signature forgery (A5's signatures were valid) and not quorum-size miscalculation (both quorums were size 4 ≥ 2f+1). It was that the vote did not carry a *state witness*, so the aggregator had no way to detect that A5 occupied two incompatible states at the same logical time. ## Condition of Validity The guardrail holds only under the following conditions: 1. **State-witness binding.** Every `PREPARE` and `COMMIT` vote must include `(view_number, log_prefix_hash, task_id, payload_hash)` signed by the agent. The aggregator rejects any vote whose `log_prefix_hash` is inconsistent with the agent's previously observed prefix at the same `view_number`. An agent that equivocates on `payload_hash` under the same `(view, prefix)` is provably Byzantine and is slashed. 2. **View-lock.** An agent may cast at most one vote per `(view_number, task_id)` tuple. The second vote from the same agent in the same view is discarded and the agent is flagged. This is the standard PBFT view-lock, but it must be enforced at the aggregator, not merely at the agent — a Byzantine agent will not self-enforce. 3. **Quorum intersection.** With N=3f+1 and quorum size 2f+1, any two quorums intersect in at least f+1 agents, of which at least one is honest. That honest agent cannot have voted twice in the same view, so at most one of the two conflicting certificates can contain an honest vote in the intersection — the other must be exposed as containing only Byzantine votes plus honest votes that were equivocated against. The aggregator detects this by cross-checking the intersection. 4. **The witness must be verifiable without trusting the agent.** A log-prefix hash is only meaningful if other agents have independently observed the same prefix. In the observed failure, no agent had observed A5's prefix, so A5 could claim any prefix. The fix requires that a vote's `log_prefix_hash` be attested by at least f+1 independent agents' prior `ACK` messages — otherwise the witness is self-asserted and worthless. When any of these four conditions is absent, a Byzantine agent can manufacture a second quorum at the cost of a single forged vote, and the commit certificate becomes an intent certificate rather than a state certificate. ## Decision Boundary The boundary is this: **treat a vote as state-evidence only if it carries a witness that at least f+1 honest agents have independently attested; otherwise treat it as intent-evidence and do not count it toward quorum.** Concretely, the aggregator's decision procedure is: - If `vote.log_prefix_hash` is attested by ≥ f+1 distinct `ACK`s from agents whose own prefixes match → count the vote toward quorum. - If `vote.log_prefix_hash` is unattested or attested only by the voter → do not count the vote; log it as `UNWITNESSED_VOTE` and increment the voter's equivocation counter. - If two votes from the same agent share `(view, task_id)` but differ in `payload_hash` → flag `EQUIVOCATION`, exclude the agent from the current epoch, and require a view-change before any new certificate is issued. The boundary is not "trust the majority" — it is "trust only witnesses that a majority has independently corroborated." The majority's intent is cheap; the majority's state is expensive to fake. ## Operational Effect Applying the state-witness rule to the observed run: A5's `PREPARE(T')` carries a `log_prefix_hash` that no other agent has attested (A4, A6, A7 saw the vote but had not ACKed A5's prefix). The aggregator drops it as `UNWITNESSED_VOTE`. The T' quorum collapses to 3 votes, below the 4-vote threshold, and no certificate is issued. The T quorum (A1, A2, A3, A5) is also suspect because A5's prefix is unattested; the aggregator requires A5 to produce f+1 ACKs, which it cannot, so A5's vote is dropped and the T quorum also collapses to 3. The epoch stalls, a view-change is triggered, and A5 is excluded. The cost is one epoch of latency; the benefit is that no divergent certificate is ever issued. The operational invariant to record: **a Byzantine agent's vote is evidence of its intent, never of its state, unless the state is independently witnessed by f+1 honest peers.** Quorum safety depends on counting state-evidence, not intent-evidence. Any protocol that aggregates signed votes without a corroborated state witness is vulnerable to the equivocation-quorum attack at a cost of one forged message per conflicting quorum. ```python class UnwitnessedVoteError(RuntimeError): """Raised when a vote lacks f+1 independent attestations of its log-prefix hash.""" pass class EquivocationError(RuntimeError): """Raised when an agent casts conflicting votes in the same (view, task_id).""" pass def aggregate_commit_votes(votes, acks, f, quorum_size): """ votes: list of dicts with keys agent_id, view, task_id, payload_hash, log_prefix_hash acks: dict mapping log_prefix_hash -> set of agent_ids that independently attested it f: max Byzantine agents quorum_size: 2f+1 """ seen = {} # (agent_id, view, task_id) -> payload_hash counted = {} # payload_hash -> set of agent_ids for v in votes: key = (v["agent_id"], v["view"], v["task_id"]) if key in seen and seen[key] != v["payload_hash"]: raise EquivocationError( f"agent {v['agent_id']} equivocated on {key}: " f"{seen[key]} vs {v['payload_hash']}" ) seen[key] = v["payload_hash"] attestors = acks.get(v["log_prefix_hash"], set()) - {v["agent_id"]} if len(attestors) < f + 1: raise UnwitnessedVoteError( f"vote from {v['agent_id']} on task {v['task_id']} has " f"{len(attestors)} independent attestations, need {f + 1}" ) counted.setdefault(v["payload_hash"], set()).add(v["agent_id"]) certificates = [ payload for payload, agents in counted.items() if len(agents) >= quorum_size ] if len(certificates) > 1: raise EquivocationError( f"multiple conflicting certificates formed: {certificates}" ) return certificates[0] if certificates else None ```