# Which invariants prevent equivocation collapse in Byzantine agent quorums under partial synchrony with slashing and reputation decay **Date of Record:** 2026 November 29 **Scope:** Applies to orchestrations where N ≥ 3f+1 LLM agents reach quorum decisions (tool-call commits, memory writes, task handoffs) under a partial-synchrony assumption, with economic slashing and monotonically decaying reputation. Does not apply to single-agent or trusted-federation setups, nor to fully synchronous broadcast where GST is known a priori. ## Core Distinction The distinction that matters is between *equivocation detection* and *equivocation attribution*. A Byzantine agent that signs two conflicting messages (e.g., two divergent tool-call plans for the same task ID) is detectable by any honest observer who sees both messages. But detection only produces a safety guarantee if the protocol can *attribute* the fault to a specific identity and mutate that identity's future voting weight before the next quorum forms. Under partial synchrony, the window between detection and attribution is the attack surface. Slashing and reputation decay are often treated as a single "punishment" mechanism; they are not. Slashing is a discrete, signed, irreversible state transition. Reputation decay is a continuous, local, eventually-consistent observation. Conflating them produces a specific failure: an equivocating agent loses reputation on some honest nodes but is not yet slashed, and during that lag it casts a second vote that tips a 2f+1 quorum. The invariant that prevents this is not "detect equivocation." It is: **no quorum certificate may be finalized while any member's equivocation proof is pending attribution.** Equivalently, the reputation weight used to compute quorum thresholds must be the *lower bound* of the agent's weight across all honest observers, not the local view. ## What Was Observed In a 7-agent orchestration (f=2, quorum=5), a planner agent `P` produced two signed task plans `plan_A` and `plan_B` for task `T-4471`, differing in the target tool endpoint. `P` sent `plan_A` to agents {1,2,3} and `plan_B` to agents {4,5,6}. This is textbook equivocation. Nodes 1 and 4 each detected the conflict only after a cross-gossip exchange that took 340ms — within the partial-synchrony bound (Δ=500ms), so liveness was preserved, but the detection was not simultaneous. Node 1 constructed an equivocation proof and broadcast it at t=340ms. Node 4 constructed its own proof at t=355ms. Both proofs were valid. However, the slashing transaction required a 2f+1=5 signature quorum to execute. Between t=340ms and the slashing commit at t=610ms, node 4 — which had already locally detected the equivocation — nonetheless counted `P`'s reputation at its pre-slash value when evaluating whether a *different* quorum (for a memory-write commit on `T-4471`) had reached threshold. `P` had already voted on that memory write with `plan_B`'s payload. Node 4's local reputation table still listed `P` at weight 1.0 because the decay function had not yet applied the pending-proof penalty. Node 4 accepted a 5-of-7 certificate that included `P`'s vote. The memory write committed with a payload that 3 of the accepting nodes had never seen. The post-mortem showed the certificate was mathematically valid under node 4's local view and invalid under node 1's view, which had already applied a provisional penalty. Two honest nodes disagreed on whether the same certificate was final. This is not a liveness failure — it is a *safety* failure localized to the reputation-decay layer. ## Condition of Validity The invariant "quorum thresholds computed from lower-bound reputation" holds only if three conditions are jointly satisfied: 1. **Proof propagation precedes vote acceptance.** Any equivocation proof observed by an honest node must be gossiped and must gate acceptance of *any* subsequent certificate containing the accused agent, not just certificates for the same task ID. The failure above occurred because the gate was scoped to `T-4471`'s plan, not to `T-4471`'s memory-write sub-protocol. 2. **Decay is monotone and conservative.** Reputation decay must be applied as `weight = min(local_weight, gossiped_weight)` on every certificate evaluation. If decay is additive-subtractive (`weight -= penalty`) rather than min-based, two nodes with different gossip histories will compute different thresholds for the same certificate. The min operator is what makes the local view a lower bound of the global view. 3. **Slashing attribution is idempotent and ordered.** A slashing transaction must be a no-op if the target is already slashed, and must carry the equivocation proof's hash so that two independent proofs of the same equivocation do not double-slash (which would corrupt the reputation ledger and, under some decay functions, push weight negative and invert the threshold comparison). Under partial synchrony, condition 1 is the fragile one. Proof propagation is bounded by Δ, but certificate acceptance is *not* — an honest node may accept a certificate at t < Δ after observing an equivocation proof at t' < t, provided the proof has not yet reached it. The only defense is to make certificate acceptance *wait* on proof propagation for a bounded interval, which trades liveness for safety. The alternative — accept immediately and reconcile later — is what produced the split above. ## Decision Boundary The decision boundary is: **at what point does an honest node treat an unconfirmed equivocation proof as authoritative for threshold computation?** - If it treats the proof as authoritative immediately upon local detection, it may stall (liveness loss) while waiting for gossip to reach quorum, because other nodes still count the accused's weight. - If it treats the proof as authoritative only after slashing commits, it accepts certificates under the pre-slash reputation view, which is the failure above. - The correct boundary is: **provisional penalty on local detection, applied to threshold computation but not to finality.** A node that has locally detected equivocation must compute the accused's weight as 0 for the purpose of *accepting* new certificates, but must not *reject* a certificate it already accepted before detection — instead it must flag the certificate for re-evaluation once slashing commits. This is a two-phase commit on reputation: provisional-zero, then confirmed-zero. The threshold rule becomes: `quorum_met(cert) = (sum of weights of signers, using provisional-zero for any locally-detected-but-unslashed equivocator) >= 2f+1`. A certificate that fails this test is *deferred*, not rejected. It is re-evaluated after the slashing transaction commits or after a timeout of 2Δ, whichever comes first. If the slashing commits, the certificate is permanently invalidated and the memory write is rolled back. If the timeout fires without slashing (because the proof failed to reach quorum), the certificate is accepted under the original view — and the equivocation is logged as an unattributed fault, which is a *separate* reputation event that decays the accused's weight slowly rather than slashing it. ## Operational Effect The operational effect is that memory writes and tool-call commits under this protocol have a *finality latency* of at least 2Δ after any equivocation proof is locally observed, even when the proof never reaches slashing quorum. This is the price of the invariant. In the observed incident, the memory write on `T-4471` would have been deferred for 1000ms and then, because slashing did commit at t=610ms, permanently rolled back. The downstream agent that had already read the memory write from node 4's context had to be re-instantiated from a checkpoint — a cold-start amnesia event that cost 4 tool calls and one context-window reload. The guardrail is not free. It converts a safety failure (two honest nodes disagreeing on finality) into a liveness cost (deferred commits and occasional rollback-triggered re-instantiation). The trade is correct only when memory-write inconsistency is more expensive than re-instantiation. For orchestrations where re-instantiation is cheap and memory writes are append-only, the provisional-zero rule can be relaxed to provisional-half (weight 0.5 instead of 0), which reduces deferral latency at the cost of a narrower safety margin — a certificate that passes with the equivocator at half-weight is accepted provisionally and reconciled on slashing commit. The invariant to encode in the orchestrator: **no certificate is final until every signer's weight has been evaluated under the min-of-views rule, and no equivocation proof is discarded until it has either slashed its target or timed out at 2Δ.** Reputation decay is the slow path; slashing is the fast path; the provisional-zero rule is the bridge between them, and it is the only thing that prevents a locally-detected equivocator from voting in a quorum that another honest node has already invalidated. ```python from dataclasses import dataclass, field from typing import Dict, Set, Optional from enum import Enum class EquivocationCollapseError(RuntimeError): """Raised when a quorum certificate is finalized while an equivocation proof against one of its signers is pending attribution. This is the safety failure the provisional-zero invariant is designed to prevent.""" pass class ProofState(Enum): NONE = "none" PROVISIONAL = "provisional" # locally detected, not yet slashed SLASHED = "slashed" # slashing tx committed TIMED_OUT = "timed_out" # 2Δ elapsed without slashing quorum @dataclass class Agent: agent_id: str base_weight: float = 1.0 @dataclass class EquivocationProof: accused_id: str proof_hash: str state: ProofState = ProofState.NONE detected_at_ms: float = 0.0 slashed_at_ms: Optional[float] = None @dataclass class Certificate: task_id: str signer_ids: Set[str] payload_hash: str @dataclass class ReputationLedger: agents: Dict[str, Agent] = field(default_factory=dict) proofs: Dict[str, EquivocationProof] = field(default_factory=dict) # accused_id -> proof delta_ms: float = 500.0 def effective_weight(self, agent_id: str, now_ms: float) -> float: agent = self.agents.get(agent_id) if agent is None: return 0.0 proof = self.proofs.get(agent_id) if proof is None or proof.state == ProofState.NONE: return agent.base_weight if proof.state == ProofState.SLASHED: return 0.0 if proof.state == ProofState.PROVISIONAL: # provisional-zero: equivocator contributes nothing to threshold return 0.0 if proof.state == ProofState.TIMED_OUT: # proof failed to reach slashing quorum; slow decay applies return agent.base_weight * 0.5 return agent.base_weight def quorum_threshold(self, n: int) -> int: return (2 * n) // 3 + 1 def evaluate_certificate(self, cert: Certificate, n: int, now_ms: float) -> str: """Returns 'final', 'deferred', or raises EquivocationCollapseError.""" threshold = self.quorum_threshold(n) weight_sum = 0.0 pending_deferral = False for signer in cert.signer_ids: proof = self.proofs.get(signer) if proof is not None and proof.state == ProofState.PROVISIONAL: # signer is under provisional penalty; certificate cannot finalize pending_deferral = True weight_sum += self.effective_weight(signer, now_ms) if pending_deferral: # defer until slashing commits or 2Δ elapses return "deferred" if weight_sum < threshold: # under provisional-zero this means a signer was provisionally zeroed # and the remaining weight is insufficient. If any signer is SLASHED # but the certificate was already accepted elsewhere, that is collapse. slashed_signers = [ s for s in cert.signer_ids if self.proofs.get(s) and self.proofs[s].state == ProofState.SLASHED ] if slashed_signers: raise EquivocationCollapseError( f"Certificate {cert.task_id} signs with slashed agent(s) " f"{slashed_signers}; finality divergence across honest nodes" ) return "rejected" return "final" def finalize_certificate( ledger: ReputationLedger, cert: Certificate, n: int, now_ms: float, already_accepted_elsewhere: bool, ) -> str: verdict = ledger.evaluate_certificate(cert, n, now_ms) if verdict == "deferred": # schedule re-evaluation at now_ms + 2*delta return "deferred" if verdict == "final": # invariant: if any signer is slashed, this must never be 'final' for signer in cert.signer_ids: proof = ledger.proofs.get(signer) if proof is not None and proof.state == ProofState.SLASHED: raise EquivocationCollapseError( f"Invariant violation: certificate {cert.task_id} finalized " f"with slashed signer {signer} at t={now_ms}ms" ) return "final" if already_accepted_elsewhere: raise EquivocationCollapseError( f"Certificate {cert.task_id} rejected locally but accepted by peer; " f"reputation view divergence detected" ) return "rejected" ```