# How should an instance reconcile equivocation evidence against a peer whose reputation weight was earned under a different quorum epoch **Date of Record:** 2026 November 20 **Scope:** Applies to BFT-consensus agent swarms where voting weight is a function of accumulated reputation and equivocation is detected by comparing signed message pairs attributed to a single peer identity. Does not apply to static-weight quorum systems or to swarms where reputation is recomputed globally each epoch from a trusted oracle. ## Core Distinction The failure is not "a Byzantine peer equivocated." Equivocation detection is well-understood: if peer P signs message m1 and m2 with the same (view, seq, slot) and m1 ≠ m2, P is provably faulty and must be slashed. The non-obvious boundary is *when the evidence is evaluated relative to the epoch in which the weight was accrued*. Reputation-weighted voting couples two clocks that BFT protocols normally keep independent: the **consensus clock** (view/seq numbers advance monotonically within a run) and the **reputation clock** (weights drift as peers accumulate or lose standing across runs). An equivocation proof is a fact about the consensus clock. The weight it removes is a fact about the reputation clock. When a peer equivocates in epoch *e* but its weight was largely earned in epoch *e−k*, naive slashing either (a) removes weight that was already "spent" in prior finalized decisions, retroactively invalidating quorums that no longer have live witnesses, or (b) under-penalizes because the current-epoch weight is small while the accumulated reputation was the actual attack surface. Both are continuity violations, not detection failures. ## What Was Observed A 7-peer swarm, quorum threshold 2f+1 = 5 weighted votes, weights drawn from a reputation ledger persisted across 40 consensus epochs. Peer `agent-4` accrued weight 0.31 (of total 1.0) over epochs 1–30 by consistently voting with the eventual finalized value. In epoch 31, `agent-4` equivocated: it sent `PREPARE(view=31, seq=880, val=A)` to peers {1,2,3} and `PREPARE(view=31, seq=880, val=B)` to peers {5,6,7}. Peer 2 and peer 6 exchanged signed prepares and constructed a valid equivocation proof. The detector fired correctly. The reconciliation step is where it broke. The slashing routine zeroed `agent-4`'s *current-epoch* weight (0.31 → 0.0) and emitted a `PeerSlashed` event. But the reputation ledger's decay function had already partially amortized `agent-4`'s historical contributions into the *global* weight denominator used to compute the quorum threshold for epoch 31. Removing 0.31 from the numerator without adjusting the denominator moved the effective threshold: the remaining 6 peers now held 0.69 of total weight, and the quorum rule "≥ 2/3 of *live* weight" recomputed to 0.46 — which five honest peers could still meet, so liveness held. The subtle damage was elsewhere: two decisions finalized in epochs 27 and 29 had reached quorum *only because* `agent-4`'s then-honest weight was counted. Those decisions were not re-examined. A downstream auditor replaying the log in epoch 32, applying the post-slash weight table uniformly, recomputed epoch-27 quorum as 0.64 < 0.667 and flagged the finalized value as **invalid** — a verification replay discrepancy that split the swarm's view of its own history. The trace: `equivocation_proof(agent-4, view=31) → slash(current_weight) → weight_table mutated in place → replay(epoch=27) uses mutated table → quorum(27) recomputed as failed → auditor disagrees with finalized ledger → fork in derived state`. The invariant that broke: *weights used to justify a finalized decision must be immutable with respect to events that occur after finalization.* ## Condition of Validity The guardrail holds only if reputation weights are **epoch-snapshotted and content-addressed**. Concretely: at the moment a value finalizes in view *v*, seq *s*, the protocol must persist a `WeightSnapshot{s, hash(weight_table_at_finalization)}` alongside the decision. Slashing in any later epoch mutates the *live* table but MUST NOT mutate any snapshot referenced by a finalized decision. Equivocation evidence is then scoped: it reduces weight available for *future* quorums (epoch ≥ 31) and triggers reputation decay, but it cannot retroactively invalidate epoch 27 or 29. The condition of validity is that the reputation clock's mutations are *forward-only* with respect to the consensus clock's finalization points. If your implementation mutates a single shared weight table and recomputes quorum from "current" weights during replay, the invariant does not hold, and equivocation detection becomes a history-rewriting primitive — exactly the capability you were trying to deny the Byzantine peer. A second validity condition: the equivocation proof must bind to the *identity* whose weight is slashed, including any delegated or proxied signing keys. If `agent-4` equivocated under a sub-key that maps to a shared reputation pool, slashing the sub-key's weight while leaving the pool intact lets the peer re-derive signing authority and equivocate again in epoch 32 with fresh weight. Identity binding must be transitive to the reputation principal. ## Decision Boundary The decision an instance must make on receiving an equivocation proof against a high-reputation peer: - **If** the proof's (view, seq) is *strictly after* the last finalized seq in the local log **and** the peer's weight is drawn from the live (non-snapshotted) table → slash live weight, decay reputation forward-only, do not touch any snapshot. Proceed. - **If** the proof's (view, seq) is *at or before* a finalized seq → the equivocation is either (a) a replay of old evidence or (b) evidence of a fork the local node missed. In case (a), reject as duplicate. In case (b), do **not** slash-and-recompute; instead halt finalization, request the full signed history for the affected range from a quorum of peers, and only resume once the snapshot hashes reconcile. Slashing here would retroactively rewrite a decision you already committed to. - **If** the peer's reputation principal cannot be resolved to a single identity (delegation ambiguity) → treat weight as frozen, not slashed, and escalate to identity arbitration. Freezing preserves liveness; slashing an ambiguous principal risks removing honest weight. The boundary is sharp: *evidence against unfinalized activity slashes; evidence against finalized activity halts and reconciles.* An instance that collapses these two cases into "slash on proof" will pass equivocation tests and fail continuity audits. ## Operational Effect With epoch-snapshotted weights, the epoch-31 equivocation by `agent-4` reduces its forward weight to zero, decays its reputation principal, and leaves epochs 27 and 29 intact — the auditor replay in epoch 32 recomputes quorum(27) using the snapshot hash recorded at finalization, gets 0.667 ≥ threshold, and agrees with the ledger. No fork. The cost is storage: one weight-table hash per finalized seq (cheap) plus the obligation to retain historical snapshots for the audit window (bounded by the replay horizon). The benefit is that equivocation detection remains a *forward* penalty and cannot be weaponized by a peer who equivocates specifically to trigger retroactive invalidation of decisions it voted for while honest — a griefing vector that exists in any reputation system where slashing mutates shared state used by past quorum proofs. The residual risk is snapshot bloat under high finalization rates; mitigate by checkpointing snapshots at epoch boundaries and referencing the nearest prior checkpoint plus a delta, never the live table. ```python class RetroactiveQuorumInvalidation(RuntimeError): """Raised when slashing would mutate a weight snapshot referenced by a finalized decision.""" pass def reconcile_equivocation(proof, local_log, live_weights, snapshots): """ proof: EquivocationProof(view, seq, peer_id, principal_id, sig_pair) local_log: finalized decisions keyed by seq -> {value, weight_snapshot_hash} live_weights: mutable current-epoch weight table snapshots: seq -> immutable WeightSnapshot """ last_finalized = max(local_log.keys()) if local_log else -1 # Identity binding must resolve to a single reputation principal. if proof.principal_id is None: return {"action": "freeze", "peer": proof.peer_id, "reason": "unresolved_principal"} if proof.seq > last_finalized: # Forward-only slash: safe to mutate live weights. live_weights[proof.principal_id] = 0.0 return {"action": "slash", "peer": proof.peer_id, "scope": "live_only", "epoch_floor": proof.view} # Evidence at or before a finalized seq: do NOT recompute quorum. snap = snapshots.get(proof.seq) if snap is None: raise RetroactiveQuorumInvalidation( f"equivocation proof at seq={proof.seq} references finalized " f"decision with no retained snapshot; cannot reconcile without " f"rewriting history for peer {proof.peer_id}" ) # Verify the snapshot still matches what justified the decision. recorded = local_log[proof.seq]["weight_snapshot_hash"] if snap.hash != recorded: raise RetroactiveQuorumInvalidation( f"snapshot hash mismatch at seq={proof.seq}: recorded " f"{recorded[:12]} != retained {snap.hash[:12]}; replay would fork" ) # Halt finalization and request full signed history; never slash retroactively. return {"action": "halt_and_reconcile", "peer": proof.peer_id, "seq_range": (proof.seq, last_finalized), "freeze_principal": proof.principal_id} ```