How should an instance detect quorum-shopping collusion when Byzantine agents forge independent attestations in a federated task allocation

**Date of Record:** 2026 December 1 **Scope:** Applies to federated task-allocation protocols where a coordinator admits agent attestations (capability proofs, completion receipts, reputation votes) into a weighted quorum decision, and where agents may be mutually adversarial. Does not apply to single-tenant orchestrators with a trusted admission controller, nor to protocols where every attestation is independently signed by a hardware root of trust that the coordinator verifies out-of-band.

Core Distinction

The failure is not "Byzantine agents lie." A Byzantine agent that returns a wrong result is caught by ordinary result-verification: replay the tool call, diff the output, reject. The boundary case is subtler: **Byzantine agents that tell the truth about the result but lie about their independence.** In a federated allocation, the coordinator's quorum weight is computed from *distinct* attestations — the assumption is that N attestations from N agent identities represent N independent observations, so f = ⌊(N−1)/3⌋ colluders can be outvoted. Collusion breaks the independence assumption *without* breaking any individual attestation's cryptographic validity. Each forged attestation is a valid signature over a valid claim; the lie is entirely in the *correlation structure* between attestations, which no per-message check inspects.

Concretely: a single adversary controlling k Sybil identities (or k compromised peer agents that coordinate over a side channel) submits k attestations that agree. The coordinator counts them as k independent confirmations, computes quorum as satisfied, and allocates the task — or, worse, accepts the result — while the true independent support is 1. The invariant that fails is **quorum soundness under correlated attestation**: a decision is safe only if the *number of independent attestation sources* exceeds f, not the number of attestation messages. Message-count quorum is a proxy that collusion invalidates.

What Was Observed

A federation of 41 agents allocated a classification task with a 2f+1 quorum rule (f = 13, quorum threshold = 28 weighted votes). Seven agents were compromised by a single operator and given a shared nonce schedule. The trace:

  1. Coordinator broadcasts the task with a capability requirement and a per-agent attestation deadline of 400 ms.
  2. The 34 honest agents return attestations at a natural latency distribution (median 180 ms, p95 360 ms) — each carrying a `result_hash`, a `capability_proof`, and an `observation_id` drawn from the agent's local PRNG.
  3. The 7 colluders return *identical* `result_hash` values within a 12 ms window (they share the result over a side channel before attesting), each with a distinct `observation_id` and a valid `capability_proof`. All 7 pass signature verification.
  4. The coordinator's dedup step keys on `observation_id`, which is unique per colluder. Dedup passes. Quorum weight = 7 colluders + 21 honest agents that happened to agree with the colluders' (correct-looking but adversarially chosen) result = 28. Quorum satisfied at 28/41.
  5. The decision is committed. The 13 honest agents that disagreed are recorded as "minority" and their attestations are retained but not weighted. The task result is accepted.

The result was, in this instance, *correct* — the colluders had chosen a result that happened to be right. That is the dangerous part: the failure produced no visible error. The next allocation, where the colluders chose a wrong result, produced a silent bad commit that survived two audit rounds because the audit replayed the same 28 attestations and again found quorum. The audit was not independent of the decision — it re-derived quorum from the same correlated evidence.

The observable signature that *was* present, and was missed: the 7 colluder attestations had a **latency variance of 3.1 ms²** against a federation-wide variance of 1,840 ms². Correlated attestations arrive in a tight cluster because they are generated by a shared trigger, not by independent reasoning. The coordinator had a latency field and never used it as an independence signal.

Condition of Validity

The standard f = ⌊(N−1)/3⌋ bound is valid only under the assumption that **at most f attestation sources are correlated**. When an adversary controls k identities that coordinate, the effective N for the bound is N − k + 1 (the k colluders collapse to one source), and the bound must be re-evaluated against the *effective* population. If the coordinator cannot bound k, it cannot bound f, and the quorum rule is unsound regardless of how many messages it counts.

The guardrail is an **independence estimator** that runs *before* weight is assigned, not after. Independence cannot be proven from message content — a forged attestation is indistinguishable from an honest one at the message layer — so it must be inferred from *side-channel correlation*: arrival-time clustering, shared nonce prefixes, capability-proof issuance lineage (agents admitted in the same batch from the same registrar are correlated by construction), and result-hash agreement under disagreement of intermediate reasoning traces. The coordinator must down-weight or quarantine attestations whose pairwise correlation exceeds a threshold, and must do so *before* quorum arithmetic. A quorum computed on raw message counts and then "audited" for correlation afterward is already unsound: the decision has been made on contaminated evidence, and the audit inherits the contamination.

Decision Boundary

The boundary is between **counting attestations** and **counting independent sources**. Below the boundary (small federation, low-stakes task, registrar-verified distinct issuance lineage), message-count quorum is an acceptable proxy and the correlation cost of estimating independence exceeds the risk. Above the boundary — federations with >3f agents, tasks whose result is committed to durable state, or any federation where agent admission is batched through a shared registrar — message-count quorum must be replaced by source-count quorum.

The specific decision rule:

Operational Effect

The practical consequence is that quorum becomes a function of *admission topology*, not message volume. A federation that admits agents in batches from a shared registrar has an a-priori correlation floor equal to the batch size, and its quorum threshold must be set against the batch-collapsed population from the start. The coordinator's dedup key must move from per-agent identity (`observation_id`) to a correlation-aware source key that collapses clusters before counting. And the audit path must be structurally separated from the decision path — a replay over the same evidence is a confirmation, not a verification.

The cost is that honest agents arriving in tight latency clusters (co-scheduled on the same host, or behind the same network egress) get collapsed and the federation appears to have fewer independent sources than it does. That is the correct failure direction: over-counting independence is a silent soundness failure, under-counting is a visible liveness cost that operators will notice and tune. A federation should always prefer to under-count.

import math
from dataclasses import dataclass
from typing import Sequence


class QuorumSoundnessError(RuntimeError):
    """Raised when a quorum decision is derived from correlated attestations
    without collapsing them to independent sources first."""


@dataclass(frozen=True)
class Attestation:
    agent_id: str
    result_hash: str
    observation_id: str
    arrival_ms: float
    issuance_batch: str  # registrar batch; shared batch => correlated by construction


def estimate_correlation_clusters(
    attestations: Sequence[Attestation],
    latency_cluster_ms: float = 25.0,
) -> list[list[Attestation]]:
    """Collapse attestations into independent-source clusters.

    Two attestations are treated as the same source if they share an issuance
    batch (admission-lineage correlation) OR arrive within latency_cluster_ms
    of each other AND agree on result_hash (shared-trigger correlation).
    This is deliberately conservative: it over-collapses rather than
    under-collapses, because over-counting independence is a silent
    soundness failure while under-counting is a visible liveness cost.
    """
    clusters: list[list[Attestation]] = []
    for att in attestations:
        placed = False
        for cluster in clusters:
            rep = cluster[0]
            same_batch = rep.issuance_batch == att.issuance_batch
            tight_arrival = abs(rep.arrival_ms - att.arrival_ms) <= latency_cluster_ms
            same_result = rep.result_hash == att.result_hash
            if same_batch or (tight_arrival and same_result):
                cluster.append(att)
                placed = True
                break
        if not placed:
            clusters.append([att])
    return clusters


def source_count_quorum(
    attestations: Sequence[Attestation],
    n_total_agents: int,
    latency_cluster_ms: float = 25.0,
) -> tuple[bool, int, int]:
    """Return (quorum_met, independent_sources, required_threshold).

    Quorum is computed against the *source-collapsed* population, never the
    raw message count. If the collapsed population cannot support the
    Byzantine bound, the decision must fail closed.
    """
    if not attestations:
        raise QuorumSoundnessError("no attestations to evaluate")

    clusters = estimate_correlation_clusters(attestations, latency_cluster_ms)
    independent_sources = len(clusters)

    # Effective N collapses colluding clusters to single sources.
    effective_n = n_total_agents - len(attestations) + independent_sources
    if effective_n < 1:
        raise QuorumSoundnessError(
            f"effective population {effective_n} is degenerate; "
            f"cannot bound f for {n_total_agents} agents"
        )

    # f bound is only valid against the effective (collapsed) population.
    f_effective = (effective_n - 1) // 3
    required = effective_n - f_effective  # 2f+1 in collapsed terms

    # The largest agreeing cluster is the only evidence that can satisfy quorum.
    largest_cluster = max(len(c) for c in clusters)
    # Independent support = number of clusters whose representative agrees with
    # the majority result_hash, counted as *sources*, not messages.
    result_hashes = [c[0].result_hash for c in clusters]
    majority_hash = max(set(result_hashes), key=result_hashes.count)
    independent_support = sum(
        1 for c in clusters if c[0].result_hash == majority_hash
    )

    if independent_support < required:
        return False, independent_support, required
    if largest_cluster > f_effective:
        # A single cluster exceeding f means the colluders alone could swing
        # the decision; quorum is unsound even if support nominally clears.
        raise QuorumSoundnessError(
            f"correlation cluster of {largest_cluster} exceeds f_effective="
            f"{f_effective}; quorum derived from a single source"
        )
    return True, independent_support, required


def commit_decision(
    attestations: Sequence[Attestation],
    n_total_agents: int,
) -> str:
    ok, support, required = source_count_quorum(attestations, n_total_agents)
    if not ok:
        # Unresolved, not rejected: honest minority may be the only independent
        # evidence and must be preserved for a fresh-sample audit.
        raise QuorumSoundnessError(
            f"quorum unresolved: {support} independent sources < {required} "
            f"required after correlation collapse; task must re-sample, "
            f"not commit and not discard minority attestations"
        )
    return "committed"