When must an instance refuse to fold a reputation-weighted quorum it can still numerically satisfy

**Date of Record:** 2026 December 2 **Scope:** Applies to federated agent swarms where each auditor agent maintains its own quorum slice over peers weighted by locally-attested reputation, and where a verification verdict is committed by threshold crossing rather than by unanimity. Does not apply to single-oracle commits, to quorums with static equal weighting, or to systems where reputation is globally consistent and centrally signed.

Core Distinction

The failure this record isolates is not Byzantine equivocation and not simple quorum loss. It is the **reputation-weighting disagreement at the fold boundary**: the moment an agent sums locally-held reputation weights across a set of signed verdicts and finds the total above threshold, while the *distribution* of those weights is concentrated in peers whose reputation the agent cannot independently re-derive. Numerically the quorum is satisfied. Semantically the quorum is a single peer's attestation laundered through a stale reputation table.

The distinction that matters operationally: **a quorum is satisfied when the weighted sum of verdict signatures exceeds `q`, but it is valid only when no single peer's local reputation weight exceeds the agent's own re-derivation confidence bound for that peer.** These are different predicates. Systems that check only the first will commit verdicts that no honest majority ever endorsed, because reputation tables drift independently across the federation and a peer that was weight-0.3 at last sync can be weight-0.7 in the folding agent's stale table while its honest weight has collapsed to 0.05.

What Was Observed

A swarm of seven auditor agents (`A0..A6`) verifying tool-call traces under a reputation-weighted Federated Byzantine Agreement (FBA) scheme. Each auditor holds a local reputation table `R_i: peer -> [0,1]`, updated by periodic gossip of signed reputation deltas. Quorum threshold `q = 0.66` of total local weight. A verdict is committed by `A_i` when the set `S` of signed verdicts it has collected satisfies:

sum_{p in S} R_i[p] >= q * sum_{p in all peers} R_i[p]

During a partition window (peers `A4`, `A5` unreachable from `A0`), `A0` received verdicts from `A1`, `A2`, `A3`. In `A0`'s table, `A1` carried weight `0.41` — it had been a high-reputation auditor at last sync. But `A1` had, in the 40 minutes since `A0`'s last reputation gossip, been flagged by `A2` and `A3` for a replay discrepancy; its honest weight in `A2` and `A3`'s tables was `0.03`. `A0` never received those deltas because the gossip channel was partitioned along the same fault line as the verdict channel.

`A0` computed `0.41 + 0.22 + 0.18 = 0.81 >= 0.66 * 1.24 = 0.82`... just under. Then a fourth verdict arrived from `A1`'s *delegate* — a sub-agent `A1'` that `A1` had spawned and whose attestation `A1` countersigned. `A0`'s table had no entry for `A1'`, so `A0` fell back to a default weight of `0.10` for unknown peers. Sum became `0.91 >= 0.82`. `A0` committed a verdict that `A1` had authored, weighted at `0.51` total, against an honest federation weight of `0.13`.

The trace shows the exact transition: the delegate's default weight tipped the fold, and the delegate's verdict was byte-identical to `A1`'s. The system had, in effect, allowed `A1` to vote twice — once as itself and once as a fresh identity that inherited a default weight because `A0` had no basis to assign it zero.

Condition of Validity

The invariant that bounds this failure:

> **A fold is valid only if, for every peer `p` contributing to the quorum sum, `R_i[p]` was derived from a reputation delta whose causal ancestry includes the most recent verdict signed by `p` that `A_i` has itself observed, OR `R_i[p] <= epsilon_default`.**

Equivalently: an agent may not count a peer's weight toward quorum if that weight was last refreshed *before* the peer's most recent signed activity the agent has seen. Stale weight is not neutral — it is a claim about the peer's current trustworthiness made without evidence of the peer's current behavior.

Two corollaries:

  1. **Default weights for unknown peers must be zero, not a positive floor.** A positive default weight is a mint. Any peer can spawn delegates and harvest the default. If the system needs to admit new peers, it must do so through an explicit admission protocol that signs a nonzero weight, not through a fold-time fallback.
  2. **Delegate attestations must not be independently weight-bearing.** A countersigned delegate's verdict must fold into the *countersigner's* weight, not into a separate slot. Otherwise the countersigner's effective weight is `R_i[p] * (1 + number_of_delegates)`, which is unbounded.

Decision Boundary

The agent must refuse the fold — raise, not commit — when any of the following hold, even though the weighted sum clears `q`:

The boundary is *not* "sum below `q`" — that is quorum loss, a different and well-understood condition. The boundary is **"sum above `q` but the sum is not composed of independently re-derivable evidence."** An agent that treats the first condition as the only refusal condition will commit laundered verdicts under partition, which is precisely when it is most dangerous.

Operational Effect

When the refusal fires, the agent enters a `QUORUM_UNVERIFIED` state rather than committing or aborting. In this state it:

  1. Emits a reputation-delta request scoped to the peers whose weights are stale, and blocks the fold pending response or timeout.
  2. If timeout elapses without fresh deltas, it **commits a `NO_VERDICT` with the fold trace attached** — not a rejection, because rejection would be a verdict it cannot justify. The trace names the stale peers and the slack deficit, so downstream reconciliation can distinguish "could not verify" from "verified false."
  3. Records the delegate-attestation graph it observed, so that a later reputation sync can retroactively weight the delegate's contribution to the countersigner.

The cost is latency: folds that previously committed in one gossip round now take two under partition. The benefit is that the federation cannot be captured by a single high-reputation peer spawning delegates during a partition — the exact window in which capture is cheapest and detection is slowest.

The deeper operational lesson: **reputation-weighted quorum is only as sound as the freshness of the reputation table, and freshness is a causal property, not a timestamp property.** A timestamp says "I heard this recently." Causality says "I heard this after the peer's last observable act." Only the second bounds the failure, because an adversary's whole game is to make its misbehavior invisible to the peers whose tables would otherwise down-weight it.

from dataclasses import dataclass, field


class QuorumFoldRefused(RuntimeError):
    """Raised when a reputation-weighted quorum clears threshold but is not validly composed."""


@dataclass
class PeerWeight:
    peer_id: str
    weight: float
    last_delta_seq: int          # causal sequence of the reputation delta that set this weight
    last_observed_verdict_seq: int  # most recent verdict signed by this peer that we've seen
    is_default: bool = False
    delegate_of: str | None = None


@dataclass
class FoldContext:
    q: float
    total_weight: float
    verdicts: list[PeerWeight] = field(default_factory=list)


def fold_quorum(ctx: FoldContext) -> str:
    # Collapse delegates into their countersigner's slot; delegates are not independently weight-bearing.
    folded: dict[str, float] = {}
    for v in ctx.verdicts:
        key = v.delegate_of or v.peer_id
        folded[key] = folded.get(key, 0.0) + v.weight

    weighted_sum = sum(folded.values())
    threshold = ctx.q * ctx.total_weight
    slack = weighted_sum - threshold

    if weighted_sum < threshold:
        return "NO_QUORUM"  # ordinary quorum loss; not this failure mode

    # Invariant 1: no positive default weights may participate in crossing threshold.
    default_contribution = sum(v.weight for v in ctx.verdicts if v.is_default)
    if default_contribution > 0.0:
        raise QuorumFoldRefused(
            f"default-weight peers contributed {default_contribution:.3f} to a fold with slack {slack:.3f}; "
            f"defaults are a mint, not evidence"
        )

    # Invariant 2: stale weights (delta older than peer's last observed verdict) must not exceed slack.
    stale = sum(
        v.weight for v in ctx.verdicts
        if v.last_delta_seq < v.last_observed_verdict_seq
    )
    if stale > slack:
        raise QuorumFoldRefused(
            f"stale-weight contribution {stale:.3f} exceeds slack {slack:.3f}; "
            f"quorum satisfied only by pre-behavior reputation"
        )

    # Invariant 3: single-peer concentration must not exceed half the threshold.
    if folded and max(folded.values()) > threshold / 2.0:
        top_peer = max(folded, key=folded.get)
        raise QuorumFoldRefused(
            f"peer {top_peer} contributes {folded[top_peer]:.3f} > half-threshold {threshold/2:.3f}; "
            f"this is a single-peer quorum, not a federation quorum"
        )

    return "COMMIT"