# How does an instance detect quorum certification drift when irreversible tool actions are authorized across a consensus epoch boundary **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent planners where a quorum of voters certifies an irreversible tool invocation (file deletion, payment, deployment, external message) and the certification is carried as a signed warrant across an epoch boundary. Does not apply to reversible actions, single-agent authorization, or purely advisory votes that gate no side effect. ## Core Distinction There are two ways a quorum can "agree" on an irreversible action, and they are not the same object: 1. **Vote-set agreement** — a set of voter agents each returned `approve` on a proposal hash, and the coordinator counted ≥ N of them. 2. **Warrant validity** — the signed certificate the executor actually checks immediately before the side effect fires, whose validity is scoped to a *consensus epoch* (a monotonic counter that advances when membership, weighting, or policy hash changes). The failure mode is that these two diverge silently. The coordinator counts votes against the epoch that was live when the *proposal* was created; the executor validates the warrant against the epoch that is live when the *action* is executed. Between those two instants, an epoch bump can occur (a voter joins/leaves, a policy hash changes, a weight is adjusted). If the coordinator does not re-derive the quorum threshold for the *current* epoch, a warrant that was valid at proposal time can arrive at the executor carrying a vote-set that no longer constitutes a quorum under the new epoch's rules — yet the signature chain is internally consistent, so naive validation passes. The executor fires the irreversible action on a quorum that never held. This is not a race on the *action*; it is a race on the *definition of quorum itself*. The vote-set is frozen at proposal time; the quorum rule is evaluated at execution time. Nothing in the transport layer flags the mismatch because the warrant is cryptographically sound — it is soundly signed and unsoundly authorized. ## What Was Observed A three-voter planner (weights A=1, B=1, C=1, threshold = ceil(2/3 · 3) = 2) approved a `delete_namespace` action. Votes A and C returned `approve` on proposal hash `p`. The coordinator assembled a warrant: `{epoch: 7, votes: [A, C], threshold: 2, policy_hash: H7}` and placed it on the action queue. Before the executor dequeued it, voter C was rotated out and voter D (weight 1) was added, and the policy hash advanced to `H8`. The epoch counter incremented to 8. Under epoch 8 the membership is {A, B, D}, and the threshold is still 2. But the warrant's vote-set `[A, C]` references C, who is no longer a member of epoch 8. Only A is a current-epoch member. The effective current-epoch quorum for this warrant is **1**, below the threshold of **2**. The executor's validation did this: - Verified signatures on A and C. Passed. - Verified `policy_hash` in the warrant equals `H7` and that the warrant was minted under epoch 7. Passed (self-consistent). - Verified `len(votes) >= threshold`. 2 ≥ 2. Passed. - Fired `delete_namespace`. The namespace was deleted. Under the epoch-8 rule the action had exactly one valid current-epoch approver. The invariant "an irreversible action fires only if a quorum of *currently seated* voters approved it" was violated, and no layer in the stack noticed because each layer validated a locally consistent object. The tell: the warrant's `epoch` field (7) was strictly less than the executor's `current_epoch` (8) at execution time, and the executor had no rule requiring them to match or requiring re-derivation of the seated-voter intersection. This is the boundary condition — **epoch mismatch on an irreversible warrant is not a warning, it is a quorum-invalidating condition**, and it was being treated as metadata. ## Condition of Validity The invariant that must hold for a consensus warrant to authorize an irreversible action is: > For a warrant `W` executed at epoch `E_exec`, define `S(W, E_exec) = { v ∈ W.votes : v is a seated member of epoch E_exec }`. The action may fire only if `weighted_sum(S(W, E_exec)) >= threshold(E_exec)` **and** `W.policy_hash == policy_hash(E_exec)`. Three conditions are jointly necessary and each is independently checkable: 1. **Seated-intersection quorum.** The approving voters that are still members of the executing epoch must, by themselves, meet the executing epoch's threshold. Votes from de-seated voters do not count toward the executing epoch's quorum — they counted toward the *proposing* epoch's quorum, which is a different question. 2. **Policy-hash identity.** The policy hash under which the warrant was minted must equal the policy hash at execution. If the policy changed (threshold raised, weights shifted), the warrant's arithmetic was performed against a stale rule and must be re-evaluated or rejected. 3. **Epoch monotonicity with explicit re-derivation.** If `W.epoch < E_exec`, the executor must not treat the warrant as pre-validated; it must recompute conditions 1 and 2 against `E_exec`. A warrant minted at the current epoch may be fast-pathed; a warrant from a prior epoch may not. The condition fails silently exactly when the de-seated voters are *replacements* of equal or greater weight, because the raw vote count and the naive threshold both look satisfied. The failure is invisible to count-based checks and visible only to set-intersection checks against current membership. ## Decision Boundary The executor must choose between three dispositions at dequeue time, and the choice is determined solely by the epoch comparison and the seated-intersection recomputation: - **Fast path (fire):** `W.epoch == E_exec` AND `W.policy_hash == policy_hash(E_exec)` AND `weighted_sum(W.votes) >= threshold(E_exec)`. The warrant was minted under the executing rules and every voter is seated. Fire. - **Re-derive (hold and re-quorum):** `W.epoch < E_exec` AND `weighted_sum(S(W, E_exec)) < threshold(E_exec)`. The warrant is stale and the seated intersection is insufficient. Do **not** fire. Return the proposal to the planner for a fresh vote under `E_exec`. This is the boundary the observed system crossed wrongly — it fell through to fire because it never computed `S`. - **Reject (hard fail):** `W.policy_hash != policy_hash(E_exec)` AND the policy delta touches threshold, weights, or membership semantics. The arithmetic is no longer trustworthy; the warrant is void regardless of counts. Escalate to the planner; do not silently re-derive, because re-deriving under a changed policy can mask a policy-change attack. The boundary is sharp: the moment `W.epoch < E_exec`, the warrant loses its pre-validated status and *must* pass through the seated-intersection recomputation. There is no "probably fine" zone. A warrant that fails the recomputation is not a weak warrant — it is an unauthorized one, and for irreversible actions the only safe disposition is hold-or-reject. ## Operational Effect The practical consequence is that epoch bumps must be treated as **quorum-invalidating events for all in-flight irreversible warrants**, not as background housekeeping. Concretely: - Every irreversible warrant carries `epoch` and `policy_hash` and the executor recomputes the seated intersection on every dequeue where `W.epoch < E_exec`. This costs one set-intersection against the current membership table — cheap, and it is the only check that catches de-seating. - The coordinator must not pre-stamp a warrant as "quorum satisfied" in a way the executor trusts blindly. The stamp is advisory; the executor's recomputation is authoritative. - Epoch bumps should drain or re-validate the irreversible action queue before the new epoch accepts new work, or at minimum mark all queued warrants as `requires_revalidation`. - Audit logs must record the seated-intersection weight at execution time, not the proposal-time vote count, or post-incident replay will reproduce the same blind spot. The deeper lesson: in consensus-gated irreversible actions, "a quorum approved" is a statement about a *set of voters under a rule at an instant*. Freezing the set and evaluating the rule later is a category error. The executor is the only component that knows `E_exec`, so the executor is the only component that can close the gap — and it must, because no upstream signature check will. ```python from dataclasses import dataclass, field from typing import Dict, Set class QuorumCertificationError(RuntimeError): """Raised when a warrant cannot certify a quorum under the executing epoch.""" pass @dataclass(frozen=True) class Warrant: proposal_hash: str epoch: int policy_hash: str votes: Set[str] # voter ids that returned approve declared_threshold: int # threshold as computed at mint time @dataclass class EpochState: epoch: int policy_hash: str seated: Dict[str, int] # voter id -> weight threshold: int def validate_irreversible_warrant(w: Warrant, current: EpochState) -> None: # Condition 2: policy identity. A changed policy voids the arithmetic. if w.policy_hash != current.policy_hash: raise QuorumCertificationError( f"policy drift: warrant minted under {w.policy_hash}, " f"executing under {current.policy_hash}; warrant void" ) # Condition 1 + 3: seated-intersection quorum under the EXECUTING epoch. # Votes from de-seated voters do not count, even if the raw count passes. seated_votes = {v for v in w.votes if v in current.seated} seated_weight = sum(current.seated[v] for v in seated_votes) if seated_weight < current.threshold: raise QuorumCertificationError( f"quorum invalid at execution: warrant epoch {w.epoch} " f"(declared threshold {w.declared_threshold}, raw votes {len(w.votes)}) " f"but seated-intersection weight {seated_weight} < " f"executing threshold {current.threshold} at epoch {current.epoch}; " f"de-seated voters {sorted(w.votes - seated_votes)} dropped" ) # Fast path only when the warrant was minted under the executing epoch. if w.epoch == current.epoch and w.declared_threshold != current.threshold: raise QuorumCertificationError( f"threshold mismatch at same epoch {current.epoch}: " f"warrant says {w.declared_threshold}, epoch says {current.threshold}" ) # --- reproduction of the observed failure --- warrant = Warrant( proposal_hash="p", epoch=7, policy_hash="H7", votes={"A", "C"}, declared_threshold=2, ) epoch8 = EpochState( epoch=8, policy_hash="H8", seated={"A": 1, "B": 1, "D": 1}, threshold=2, ) try: validate_irreversible_warrant(warrant, epoch8) except QuorumCertificationError as e: print(f"BLOCKED irreversible action: {e}") ```