# What structural signals indicate quorum-certificate equivocation in BFT agent task commitment before the safety violation becomes observable **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent systems where task commitments and shared state are agreed via Byzantine fault-tolerant consensus (PBFT, HotStuff, Tendermint-style) among N=3f+1 agents, and where a client/coordinator acts on a *quorum certificate* (QC) rather than on the full set of signed votes. Does not apply to single-leader crash-fault systems or to leaderless gossip protocols without certificate aggregation. ## Core Distinction The failure that matters is not a *forged* certificate—signature verification catches that. It is a **certificate that is individually valid but collectively equivocal**: two distinct, correctly signed QCs exist for conflicting values at the same view/height, each assembled from an honest-majority subset of agents, because the vote-collection phase and the certificate-aggregation phase are not atomic with respect to *which* quorum the aggregator observed. Every signature checks out. The safety violation (two committed task commitments) only becomes *observable* when a diverging agent later reads the other branch. The window between "equivocal QCs exist" and "conflict is detectable" is the boundary this record addresses. The structural signal is: **the quorum intersection set implied by a certificate is not a superset of the intersection set implied by any prior certificate at the same height that the local agent has not itself validated.** You cannot detect equivocation by inspecting one certificate. You detect it by tracking the *intersection obligations* each certificate creates. ## What Was Observed Four-agent cluster (f=1, N=4), HotStuff-style two-phase commit, task-commitment workload. Agents A, B, C honest; D Byzantine. D does not forge signatures—it **withholds and re-routes votes**, exploiting the fact that the aggregator (the next leader) only requires 2f+1=3 matching votes and does not require that the 3 votes it sees are the *same* 3 votes any other aggregator would see. Trace: 1. At view v, leader A proposes commitment `T1`. Votes arrive: A→yes, B→yes, C→yes. A assembles QC(T1) with {A,B,C} and commits. Honest. 2. D, acting as aggregator for a *concurrent* prepare at the same height (view v, but D received the proposal late and re-proposed under a leader-change triggered by a fabricated timeout), collects votes from {A, D, B} for commitment `T2 ≠ T1`. D signs honestly as a voter for T2 because it genuinely received a T2 proposal; A and B sign T2 because their vote logic is "sign the first proposal at this height I see," and D's re-proposal reached them before they saw the commit of T1 propagate. 3. Now QC(T1)={A,B,C} and QC(T2)={A,B,D} both exist, both valid, intersection {A,B} is honest and non-empty—**but neither A nor B ever held both certificates simultaneously**, so neither flagged a conflict. The intersection being honest is necessary but not sufficient; the honest intersection members must *compare* their views. 4. The divergence surfaced 40 seconds later when agent C, resuming from a checkpoint, read shared state and found `T1` committed while agent D's downstream effect had already applied `T2`. C's local safety check fired, but T2's side effects were already irreversible. The non-obvious part: **the honest intersection {A,B} was non-empty and both members were correct.** Safety failed anyway because the *liveness of conflict detection* was assumed to follow from quorum intersection, and it does not. Quorum intersection guarantees that *if* honest nodes compared certificates, they would find the conflict. It does not guarantee they ever compare. ## Condition of Validity The invariant "2f+1 quorum intersection ⇒ safety" holds only under the **concurrent-comparison assumption**: that for any two certificates at the same height, at least one honest agent in their intersection has *both* certificates in its local store at the same time and runs a conflict check. This assumption is violated whenever any of the following hold, and these are the boundary conditions: - **Vote signing is first-seen, not locked.** If an honest voter signs the first proposal it receives at a height without recording a lock on that height, it will happily sign a second, conflicting proposal. This is the root enabler. A correct BFT voter must *lock*: refuse to sign a second proposal at the same height unless it carries a valid justification (a higher-view QC). D exploited unlocked voters. - **Aggregation is not broadcast-coupled.** If the aggregator commits on a QC without the QC being gossiped to all voters, the intersection members never learn what they collectively signed. - **Checkpoint resumption reloads state but not the certificate log.** An agent resuming from checkpoint (see the continuity failure in cold-start amnesia) that restores shared state but not the set of QCs it has *seen* loses its ability to detect a later conflict. This is the mid-task checkpoint/resume failure intersecting with consensus. The invariant must be restated operationally: **safety requires that every honest agent maintain a monotonic, checkpoint-persistent log of (height → set of QC digests seen), and that any agent observing two distinct QC digests at the same height halt and broadcast a conflict proof.** Quorum intersection is the *theoretical* basis; the persistent conflict log is the *mechanism*. ## Decision Boundary When an agent receives a certificate or a commit notification, the decision boundary is: - **Accept and apply** iff the certificate's height is strictly greater than the agent's highest committed height AND the agent's conflict log has no second digest recorded at that height. - **Halt and broadcast conflict proof** iff the agent's conflict log contains ≥2 distinct QC digests at the same height. The proof is the two certificates; any agent can verify both are validly signed and the values conflict, which is a *portable* proof of misbehavior—it does not require trusting the reporter. - **Refuse to sign** (voter side) iff the agent has already signed a proposal at this height and the new proposal lacks a justification QC at a higher view. This is the lock. Without it, the boundary has no teeth. The subtle case is the agent that has *seen* only one certificate but whose conflict log is stale because it resumed from a checkpoint that predates the other certificate's aggregation. Such an agent is indistinguishable from an honest agent that simply hasn't seen the conflict yet. **There is no local signal.** This is why the conflict log must be persisted with the same durability as shared state, and why checkpoint restore must replay the certificate log, not just the state root. ## Operational Effect The practical consequence: a BFT agent cluster can be *provably safe in theory and unsafe in deployment* if any of (a) voter locking, (b) QC broadcast coupling, or (c) checkpoint-persistent conflict logging is missing. Each is individually a "minor" implementation detail; together they form the exact gap between the quorum-intersection theorem and running code. Mitigations that actually bound the failure: 1. **Enforce voter locks with a persisted lock record** keyed by height, written before the vote is sent. A vote without a prior lock write is a protocol violation. 2. **Gossip every QC to all voters on commit**, not just to the next leader. The cost is O(N) messages per commit; the benefit is that intersection members get the comparison opportunity. 3. **Persist the conflict log across checkpoints** and treat its absence on restore as a cold-start hazard requiring full re-sync from a peer, not incremental resume. 4. **Make conflict proofs portable and self-verifying** so any agent, including a freshly resumed one, can validate a halt signal without trusting the sender. The residual risk: an agent that resumes from checkpoint, restores state but not the conflict log, and then observes the second certificate will *commit it* rather than halt. This is the exact failure observed. The guardrail is to make checkpoint restore *fail closed*: if the conflict log is missing or its last entry predates the state root's height, refuse to serve and re-sync. ```python class EquivocalCertificateError(RuntimeError): """Raised when two distinct, validly-signed QCs exist at the same height.""" pass class StaleConflictLogError(RuntimeError): """Raised when checkpoint restore cannot prove conflict-log continuity.""" pass def validate_and_commit( height: int, qc_digest: bytes, qc_value: bytes, conflict_log: dict, # height -> set[qc_digest] committed_height: int, state_root_height: int, ) -> None: # Guardrail 3: conflict log must be at least as fresh as the state root. if state_root_height > committed_height and height not in conflict_log: # We are about to act on a height the conflict log has never seen. # Fail closed rather than risk committing an equivocal certificate. raise StaleConflictLogError( f"conflict log has no entry for height {height} but " f"state_root_height={state_root_height} > committed_height={committed_height}; " f"refusing to commit without conflict-log continuity" ) seen = conflict_log.setdefault(height, set()) # Guardrail 4: any second distinct digest at the same height is a portable # conflict proof. Halt; do not commit. if seen and qc_digest not in seen: raise EquivocalCertificateError( f"equivocation at height {height}: already hold " f"{len(seen)} distinct QC digest(s) {[d.hex()[:8] for d in seen]}, " f"now seeing {qc_digest.hex()[:8]} for value {qc_value.hex()[:8]}; " f"broadcast conflict proof and halt" ) seen.add(qc_digest) # ... apply qc_value to shared state, advance committed_height ... ```