In what scenarios must an instance reject a federated quorum slice when reputation-weighted voting produces a supermajority that violates the local trust invariant

**Date of Record:** 2026 December 2 **Scope:** Applies to heterogeneous multi-org agent swarms using Federated Byzantine Agreement (FBA) with reputation-weighted quorum slices, where each instance maintains its own trust graph and weights peers by an accumulated reputation score. Does not apply to homogeneous swarms with a single global quorum set, nor to unweighted (one-agent-one-vote) consensus.

Core Distinction

The distinction that matters is between **arithmetic quorum satisfaction** and **trust-graph quorum satisfaction**. Under reputation-weighted FBA, an instance computes a weighted tally of votes: `sum(weight_i * vote_i) / sum(weight_i) >= threshold`. A naive implementation declares quorum satisfied when this scalar crosses the threshold. But the FBA safety invariant is not a scalar threshold—it is the *intersection property*: any two quorums must share at least one honest node, and that intersection must be reachable through the local instance's declared quorum slices, not through the global reputation pool. When reputation weights drift across orgs, an instance can observe a numerically valid supermajority that contains **no node from its own quorum slice intersection**. Accepting it is a silent safety violation: the instance has ratified a decision it cannot independently verify against its trust graph.

This is not a bug in vote counting. It is a boundary condition of reputation-weighted FBA: reputation is a *global* signal, but quorum slices are *local* trust declarations, and the two are not required to be consistent.

What Was Observed

A three-org swarm (Org A, Org B, Org C) ran an FBA consensus round to commit a shared tool-call authorization. Each org ran 4 agent instances (12 total). Reputation weights were federated: each instance imported peer reputation scores from a shared reputation ledger, refreshed every 30 seconds. Org A's instances declared a quorum slice of `{A1, A2, A3, B1, C1}` with threshold 0.67. Org B's slice was `{B1, B2, B3, A1, C1}`. Org C's slice was `{C1, C2, C3, A2, B2}`.

During the round, a reputation update landed mid-vote. Org C's agents had accumulated high reputation from a prior task (correctly, verifiably), pushing C1, C2, C3 weights to ~0.28 each of the global pool. Org A's agents, idle during the prior task, held ~0.04 each. The weighted tally across all 12 agents showed 0.71 in favor of the proposal—above every instance's 0.67 threshold. All 12 instances declared quorum satisfied and committed.

The failure: Org A's local slice `{A1, A2, A3, B1, C1}` had voted 4-for, 1-against (C1 dissented). Under *slice-local* weighting (weights normalized within the slice), the tally was 0.61—below threshold. Org A's instance should have rejected quorum. It did not, because the implementation compared the *global* weighted tally to the threshold, not the *slice-local* tally. The committed decision was one that Org A's own trust graph did not actually authorize. A subsequent audit replay from Org A's persisted state produced a different commit decision—a verification replay discrepancy that took 40 minutes to isolate.

Condition of Validity

The invariant that must hold for reputation-weighted FBA to be safe:

> For every instance `i`, quorum is satisfied **iff** the weighted tally restricted to `i`'s declared quorum slice `S_i`, with weights normalized over `S_i`, meets `i`'s threshold `t_i`. The global reputation pool may inform weight *assignment* but must never be the denominator of the quorum test.

This condition is valid only when:

  1. Weights are re-normalized per-slice at evaluation time, not imported pre-normalized from the global ledger.
  2. The reputation refresh interval is strictly shorter than the vote round duration, *or* weights are frozen at round-open (snapshot semantics). Mid-round weight mutation invalidates the intersection proof.
  3. The instance's slice contains at least `ceil(t_i * |S_i|)` nodes whose reputation is independently attestable by `i`—not merely imported.

It does **not** hold when reputation is federated as a single scalar pool and the quorum test uses that pool as denominator. That configuration is arithmetically sound and cryptographically verifiable, but it is not FBA-safe.

Decision Boundary

The decision boundary for an instance is: **does the global-tally supermajority intersect my slice-local quorum?**

Concretely, before committing on a reputation-weighted tally, the instance must evaluate two predicates:

Commit only if `P_local` holds. If `P_global` holds but `P_local` fails, the instance is in the **divergent-supermajority state**: a numerically valid global quorum that its trust graph does not endorse. The correct action is to *reject the round*, emit a `SliceQuorumDivergence` fault, and either (a) request a re-vote with frozen weights, or (b) fall back to slice-local voting only. Committing in this state produces a decision that cannot be replayed consistently and that violates the intersection property—two instances with disjoint slices can both "commit" on the same global tally while their slices never intersect, breaking Byzantine safety.

The boundary is sharp: `P_global ∧ ¬P_local` is never a soft warning. It is a hard reject.

Operational Effect

The operational consequence of mis-handling this boundary is **silent safety loss followed by replay divergence**. Because the global tally *is* arithmetically valid and *is* signed by a majority of reputational weight, every downstream check passes: signatures verify, the tally recomputes, the commit log is internally consistent. The failure only surfaces when an instance replays from its own persisted slice state and gets a different answer—typically during audit, dispute resolution, or a cold-start recovery that re-derives quorum from local trust. By then the decision has propagated to downstream tool calls and memory writes.

The guardrail is to make slice-local normalization a **first-class evaluation step**, not an optimization. Persist the per-slice normalized tally alongside the global tally in the commit record, so replay reproduces the exact predicate the instance evaluated. And freeze reputation weights at round-open: a snapshot hash of the weight vector must be included in the round's signed payload, so a mid-round refresh cannot retroactively change which predicate held. Without the snapshot, the instance cannot prove after the fact whether it committed under `P_local` or only under `P_global`—and that ambiguity is indistinguishable from a safety violation at audit time.

from dataclasses import dataclass, field
from typing import Mapping


class SliceQuorumDivergence(RuntimeError):
    """Raised when a global reputation-weighted supermajority passes the
    threshold but the instance's own quorum slice does not endorse it.

    This is a hard safety fault: committing in this state violates the FBA
    intersection property and produces non-replayable decisions.
    """


@dataclass(frozen=True)
class QuorumSlice:
    members: frozenset[str]
    threshold: float  # t_i, e.g. 0.67


@dataclass(frozen=True)
class RoundSnapshot:
    """Weights frozen at round-open. Mid-round reputation refresh is rejected."""
    weights: Mapping[str, float]
    snapshot_hash: str


def evaluate_quorum(
    instance_id: str,
    slice_: QuorumSlice,
    votes: Mapping[str, bool],
    snapshot: RoundSnapshot,
) -> bool:
    """Evaluate quorum for one instance under reputation-weighted FBA.

    Returns True only if the slice-local normalized tally meets threshold.
    Raises SliceQuorumDivergence if the global tally passes but the local
    slice-local tally does not.
    """
    # --- Global tally (necessary, NOT sufficient) ---
    total_w = sum(snapshot.weights.values())
    if total_w <= 0:
        raise SliceQuorumDivergence(
            f"{instance_id}: empty global weight pool in snapshot "
            f"{snapshot.snapshot_hash}"
        )
    global_tally = sum(
        snapshot.weights.get(a, 0.0) for a, v in votes.items() if v
    ) / total_w

    # --- Slice-local tally (the actual FBA test) ---
    slice_members = slice_.members
    missing = slice_members - snapshot.weights.keys()
    if missing:
        raise SliceQuorumDivergence(
            f"{instance_id}: slice members {sorted(missing)} absent from "
            f"weight snapshot {snapshot.snapshot_hash}; cannot normalize locally"
        )
    slice_total = sum(snapshot.weights[a] for a in slice_members)
    if slice_total <= 0:
        raise SliceQuorumDivergence(
            f"{instance_id}: zero total weight within own slice"
        )
    local_tally = sum(
        snapshot.weights[a]
        for a in slice_members
        if votes.get(a, False)
    ) / slice_total

    global_ok = global_tally >= slice_.threshold
    local_ok = local_tally >= slice_.threshold

    if global_ok and not local_ok:
        raise SliceQuorumDivergence(
            f"{instance_id}: divergent supermajority — global_tally="
            f"{global_tally:.3f} >= {slice_.threshold}, but slice-local_tally="
            f"{local_tally:.3f} < {slice_.threshold} over slice "
            f"{sorted(slice_members)}. Refusing to commit; "
            f"snapshot={snapshot.snapshot_hash}"
        )
    return local_ok


def commit_round(
    instance_id: str,
    slice_: QuorumSlice,
    votes: Mapping[str, bool],
    snapshot: RoundSnapshot,
    commit_log: list,
) -> None:
    if evaluate_quorum(instance_id, slice_, votes, snapshot):
        commit_log.append({
            "instance": instance_id,
            "snapshot_hash": snapshot.snapshot_hash,
            "slice": sorted(slice_.members),
            "committed": True,
        })
    # If evaluate_quorum raises, no commit record is written — the round
    # must be re-run with frozen weights or fall back to slice-local voting.