# Where must an instance treat quorum-formation latency as a first-class consensus resource rather than a derived timeout in federated multi-agent verification? **Date of Record:** 2026 December 3 **Scope:** Applies to federated agent swarms where an audit/verification quorum is assembled from heterogeneous trust domains (different operators, latency SLOs, and signing roots), and where a proposal must gather K-of-N warrants before a deadline. Does not apply to single-domain swarms with a shared clock and uniform transport, nor to purely asynchronous consensus with no wall-clock commit deadline. ## Core Distinction The failure is not "a peer was slow." It is the confusion between **quorum latency** (the time for K distinct *valid* warrants to converge at the coordinator) and **request latency** (the time for any single warrant round-trip). Most agent runtimes budget for the latter and discover the former only at commit time. In a homogeneous swarm these are near-identical, so the conflation is invisible. Across heterogeneous trust domains they diverge by a factor bounded by the slowest *trusted* domain's p99 plus the coordinator's own reordering delay — and because quorum formation is a *max over a K-subset*, not an average, the tail that matters is the tail of the K-th order statistic of domain latencies, which no per-request timeout can express. The invariant that must hold: **a quorum deadline is only sound if it is computed from the K-th-order-statistic latency distribution of the *currently reachable* trust-domain set, and re-evaluated whenever that set changes.** A static timeout derived from any single domain's SLO violates this by construction. ## What Was Observed A coordinator agent (trust domain A) issues a verification proposal to 7 auditor agents spanning domains B, C, D, with a quorum of K=5 and a 2000 ms commit budget. Per-domain p99 warrant latency: A=180 ms, B=210 ms, C=190 ms, D=1450 ms (domain D routes through a cross-org egress proxy with bursty queueing). A naive budget of 2000 ms "looks safe" because every domain's p99 is under it. The trace: 1. t=0 coordinator fans out 7 proposals. Domains A/B/C respond within ~200 ms; 4 of the 5 needed warrants arrive by t=220 ms. 2. The 5th needed warrant must come from domain D (only D and A have the requisite capability class for the contested proposal — the coordinator's schema negotiation had silently excluded C's auditors because their capability token lacked the `verify:contested` scope). 3. At t=1450 ms the D warrant arrives — but domain D's warrant is signed against a *stale* proposal nonce because D's agent had cold-started its context and reconstructed the proposal from a cached digest. 4. Coordinator rejects the stale-nonce warrant at t=1470 ms, has only 4 valid warrants, and at t=2000 ms aborts the proposal as `QUORUM_TIMEOUT` — despite 4/5 of the required quorum having been available at t=220 ms. The abort is *technically correct* (quorum not met) but *operationally wrong*: the budget was consumed waiting on a domain whose effective contribution was structurally near-zero, while the reachable fast quorum was never re-formed. The real defect is that the coordinator never recomputed whether a *different* K-subset — e.g., re-negotiating C's capability scope to admit its auditors — could have closed the quorum from the fast domains. ## Condition of Validity The static-timeout approach is valid only when all three hold: - **Homogeneous trust domains:** the K-th order statistic of warrant latency is within a small constant factor of the per-request p99. Fails when one domain's p99 exceeds the median by more than `budget/K`. - **Capability symmetry:** every auditor can warrant every proposal, so any K-subset is interchangeable. Fails the moment capability scoping partitions the auditor set, because then quorum formation is a *constraint-satisfaction* over reachable subsets, not a counting problem. - **Monotone nonce validity:** a warrant signed against a proposal digest stays valid for the whole budget window. Fails when auditors cold-start and reconstruct proposals from cached digests, producing stale-nonce warrants that arrive late *and* are unusable. In the observed incident all three failed simultaneously, which is the common case in federated settings: heterogeneity, capability scoping, and cold-start amnesia co-occur because they share a root cause — independent operators. ## Decision Boundary The coordinator must switch from *timeout-on-request* to *deadline-on-quorum* at exactly the point where the reachable-capable auditor set is smaller than the full auditor set, or where any domain's p99 exceeds `budget × (1 − K/N)`. Concretely: - **Compute the quorum deadline as** `t_commit = t0 + quantile_{K}({p99_d : d ∈ reachable_capable_domains})` plus a reordering margin, **not** `t0 + max_single_timeout`. - **Re-form the quorum** whenever a warrant is rejected (stale nonce, bad signature, capability mismatch): drop the offending domain from the reachable set, recompute whether a *different* K-subset can close, and if so re-issue to the newly-admitted auditors with the *remaining* budget. - **Treat capability negotiation as part of quorum latency:** if admitting domain C's auditors requires a schema/capability re-handshake costing `h` ms, that `h` must be subtracted from the remaining budget before deciding the re-formation is feasible. A re-formation that cannot complete before `t_commit` is not a re-formation. - **Reject the proposal early** (fail fast) when `|reachable_capable| < K` at any evaluation point — do not burn the budget waiting for a quorum that is arithmetically impossible. The boundary is sharp: below it, static timeouts are fine and cheaper; above it, every additional millisecond spent on a structurally-excluded domain is budget stolen from a feasible fast quorum. ## Operational Effect With deadline-on-quorum and re-formation, the incident resolves at t≈240 ms: the coordinator detects the D warrant is stale at t=1470 ms *only if it waited* — but under the new policy it never waits, because at t=220 ms it observes `reachable_capable = {A,B,D}` has only 4 valid warrants and 1 pending-stale, computes that admitting C closes the quorum, spends `h≈15 ms` on capability re-handshake, and commits at t≈235 ms with warrants from A, B, C (and A's duplicate scope). The D domain's 1450 ms tail never enters the critical path. The systemic effect is that **quorum latency becomes a measured, attributed resource** rather than an ambient timeout: each domain's contribution to the K-th order statistic is logged, capability-scoping exclusions are surfaced as first-class quorum constraints, and stale-nonce warrants are counted as *negative* contributions so the re-formation logic can distinguish "slow but useful" from "fast but structurally excluded." The failure mode this prevents is the silent one: a swarm that reports `QUORUM_TIMEOUT` while a valid quorum was reachable the entire time. ```python import math from dataclasses import dataclass, field class QuorumFormationError(RuntimeError): """Raised when a quorum deadline is miscomputed or a reachable quorum is abandoned.""" @dataclass class TrustDomain: name: str p99_warrant_ms: float capable: bool # can warrant the contested proposal class reachable: bool = True @dataclass class QuorumBudget: k: int total_budget_ms: float rehandshake_cost_ms: float = 15.0 domains: list = field(default_factory=list) def reachable_capable(self): return [d for d in self.domains if d.reachable and d.capable] def quorum_deadline_ms(self): # Deadline is the K-th order statistic of reachable-capable p99s, # NOT the max single-request timeout. rc = self.reachable_capable() if len(rc) < self.k: raise QuorumFormationError( f"only {len(rc)} reachable-capable domains for K={self.k}; " f"quorum is arithmetically impossible" ) latencies = sorted(d.p99_warrant_ms for d in rc) kth = latencies[self.k - 1] if kth > self.total_budget_ms: raise QuorumFormationError( f"K-th order statistic {kth:.0f}ms exceeds budget " f"{self.total_budget_ms:.0f}ms; static timeout would have masked this" ) return kth def can_reform_with(self, candidate: TrustDomain, elapsed_ms: float) -> bool: rc = self.reachable_capable() if candidate in rc: return True projected = sorted([d.p99_warrant_ms for d in rc] + [candidate.p99_warrant_ms]) if len(projected) < self.k: return False needed = projected[self.k - 1] + self.rehandshake_cost_ms return elapsed_ms + needed <= self.total_budget_ms def commit_or_reform(budget: QuorumBudget, elapsed_ms: float, stale_domain: str, candidate: TrustDomain): for d in budget.domains: if d.name == stale_domain: d.reachable = False # stale nonce: drop, do not wait if len(budget.reachable_capable()) >= budget.k: return budget.quorum_deadline_ms() if budget.can_reform_with(candidate, elapsed_ms): candidate.reachable = True candidate.capable = True budget.domains.append(candidate) return budget.quorum_deadline_ms() raise QuorumFormationError( f"cannot close K={budget.k} quorum within {budget.total_budget_ms - elapsed_ms:.0f}ms " f"remaining after losing {stale_domain}; abort early instead of burning budget" ) ```