# Under what conditions must an instance treat a reputation-weighted quorum as Byzantine-unsafe after an attestation-environment mutation **Date of Record:** 2026 December 3 **Scope:** Applies to federated agent swarms where peer selection weight derives from accumulated reputation and each peer's vote is gated by a remote-attestation quote (e.g., TEE measurement) over its execution environment. Does not apply to single-org deployments, to quorums with uniform static weights, or to federations where attestation freshness is enforced by a synchronous trusted third party. ## Core Distinction The failure is not "a malicious peer votes wrongly." Reputation-weighted quorum selection is explicitly designed to tolerate that: a peer with low weight voting against consensus is absorbed by the weighted threshold. The failure is that **attestation validity and reputation weight are computed over different time horizons**, and the quorum assembler conflates them. Reputation is a slow-moving scalar accumulated across many past epochs. Attestation is a point-in-time predicate over the *current* execution environment. When a peer's attested environment mutates (TEE firmware update, container image swap, host migration, or a silent re-provisioning that changes the measured boot chain), its reputation survives the mutation intact while its attestation must be re-established. During the window where the new measurement has not yet been re-anchored into the federation's trust root, the peer remains in the weighted quorum with its full historical weight but an attestation quote that either fails verification or—worse—verifies against a *previously valid* measurement that the assembler still accepts. The non-obvious consequence: a quorum that sums to the required weighted threshold can be satisfied entirely by peers whose *current* environments are unverified, provided their *historical* reputations are high enough. Byzantine fault tolerance degrades from "tolerate f faulty peers by weight" to "tolerate f faulty peers by weight *only among peers whose attestation horizon matches the reputation horizon*." When those horizons diverge, the effective fault bound silently collapses toward zero without any threshold arithmetic changing. ## What Was Observed A five-org federation with weights `{A: 0.31, B: 0.27, C: 0.19, D: 0.14, E: 0.09}` and a weighted quorum threshold of `0.66`. Peer `A` (highest reputation, 0.31) underwent a host migration at `t=0`; its measured boot chain changed, but the reputation ledger—updated only at epoch boundaries—still carried `0.31` forward. The attestation verifier was configured to accept any measurement present in the *current* trust-root set, which had not yet been pruned of `A`'s pre-migration measurement. At `t=0..T` (T = one epoch, ~40 min), peer `A` produced attestation quotes that verified against the stale measurement and voted with full weight. Observed trace: 1. `A` votes `ACCEPT`, attestation verifies against pre-migration measurement `M_old`. 2. `B` (0.27) and `C` (0.19) vote `ACCEPT` legitimately, total `0.77 ≥ 0.66`. 3. `D` (0.14) votes `REJECT` with a valid current attestation; `E` (0.09) abstains. 4. Quorum commits. The committed decision rests on `0.31` of weight that is *not* backed by a currently-attested environment. 5. Post-hoc audit at `t=T` discovers `A`'s measurement no longer matches `M_old`; the commit is retroactively unsound, but downstream effects (state mutations, cross-org writes) have already propagated. The decisive observation: **no threshold was violated and no signature failed.** Every individual check passed. The invariant that broke was relational—"the weight backing a quorum must be attested over the same environment horizon as the decision it authorizes"—and no single-component validator was positioned to see it. A second, subtler variant appeared when `A`'s re-attestation *did* succeed but with a *lower* reputation than the ledger carried, because the reputation update lagged the attestation update. Here the quorum assembler used the higher (stale) reputation with the newer attestation, again inflating effective weight. The two horizons can diverge in either direction, and the assembler must bound both. ## Condition of Validity The reputation-weighted quorum is Byzantine-safe **iff** the following invariant holds at the instant of quorum evaluation: ``` sum(w_i for i in quorum) >= threshold AND for every i in quorum: attestation_i is FRESH(now, max_age) AND attestation_i.measurement ∈ current_trust_root AND reputation_i was last updated at epoch >= attestation_i.issued_at ``` The third conjunct is the one that is almost always omitted. It says reputation must not predate the attestation it is paired with—i.e., the weight you assign to a peer must have been earned *in the environment it is currently running*, not in a predecessor environment. Without it, an attacker who compromises a high-reputation peer's environment inherits the reputation of the pre-compromise environment for the duration of the lag between attestation refresh and reputation refresh. The invariant is *not* satisfied by merely requiring fresh attestation, and *not* satisfied by merely requiring recent reputation. It requires the **joint ordering** of the two clocks. Any federation that maintains separate attestation and reputation subsystems without a shared monotonic epoch counter cannot enforce this conjunct and is therefore operating outside the validity condition, even if it passes every individual check. ## Decision Boundary The precise boundary where an instance must refuse to treat the quorum as Byzantine-safe: - **Refuse** when any quorum member's `attestation.issued_at > reputation.last_updated_at`. The peer's weight is not anchored to its current environment; treat it as weight-zero for this decision and re-evaluate the threshold. - **Refuse** when any quorum member's attestation measurement is present in the trust root but flagged `superseded` or whose `not_after` precedes `now`. Presence in the trust root is not the same as currency. - **Refuse** when the sum of *anchored* weights (those satisfying all three conjuncts) falls below threshold, even if the sum of *nominal* weights exceeds it. The nominal sum is not a valid quorum certificate. - **Permit** when a peer's attestation is fresh, its measurement is current, and its reputation epoch is `>=` the attestation's issue epoch—even if the peer's reputation is lower than its historical maximum. A reputation that was *earned in the current environment* is valid at its current value; the error is only in using a reputation that predates the environment. The boundary is sharp: the decision is `ANCHORED` or `UNANCHORED`, and an `UNANCHED` quorum must not be committed, regardless of how far above threshold the nominal sum sits. The instance must fail closed, not fail to the nearest valid-looking quorum. ## Operational Effect Enforcing the invariant changes three operational behaviors: 1. **Threshold arithmetic must run on anchored weights, not nominal weights.** This means the quorum assembler must recompute the effective weight set at evaluation time, after attestation verification, rather than trusting a cached weight vector. In the observed incident, this recomputation would have dropped `A` from `0.31` to `0.0`, leaving `B+C = 0.46 < 0.66` and correctly failing the quorum. 2. **Reputation ledgers must carry an epoch stamp and must be readable by the attestation verifier.** The two subsystems can no longer be independent; the verifier must be able to ask "was this peer's reputation last updated before or after the attestation it is presenting?" This is a schema change, not a config change, and it is the part most often skipped. 3. **Attestation trust-root pruning must be part of the quorum protocol, not a background job.** A measurement that has been superseded must be removed from the accepted set *before* the next quorum evaluation, or the assembler must independently check `not_after`. Background pruning creates exactly the window the incident exploited. The residual risk that remains even after enforcement: a peer can be re-attested into a *new* environment that is legitimately measured but semantically different (e.g., a different model version loaded into the same TEE). Attestation proves environment integrity, not behavioral equivalence. The invariant bounds Byzantine *environment* substitution; it does not bound *behavioral* substitution within a valid environment. That is a separate boundary requiring model-version pinning in the attestation claim, and it must be treated as out of scope for the reputation-anchoring invariant. ``` ```python class UnanchoredQuorumError(RuntimeError): """Raised when a quorum's weight is not anchored to current attested environments.""" pass def evaluate_quorum( votes: dict[str, bool], weights: dict[str, float], attestations: dict[str, dict], reputations: dict[str, dict], trust_root: dict[str, dict], threshold: float, now: int, max_attestation_age: int, ) -> bool: anchored_weight = 0.0 anchored_votes: dict[str, bool] = {} for peer, vote in votes.items(): att = attestations.get(peer) rep = reputations.get(peer) if att is None or rep is None: continue # unanchored: no attestation or no reputation record # Conjunct 1: attestation freshness if now - att["issued_at"] > max_attestation_age: continue # Conjunct 2: measurement is current, not superseded, not expired root_entry = trust_root.get(att["measurement"]) if root_entry is None: continue if root_entry.get("superseded", False): continue if root_entry.get("not_after", now + 1) <= now: continue # Conjunct 3: reputation epoch must be >= attestation issue epoch if rep["last_updated_at"] < att["issued_at"]: continue anchored_weight += weights.get(peer, 0.0) anchored_votes[peer] = vote if anchored_weight < threshold: raise UnanchoredQuorumError( f"Anchored weight {anchored_weight:.3f} < threshold {threshold:.3f}; " f"nominal weight {sum(weights.get(p, 0.0) for p in votes):.3f} is not a valid quorum certificate. " f"Anchored peers: {sorted(anchored_votes)}" ) # Quorum is anchored; now evaluate the decision over anchored votes only. accept_weight = sum(weights[p] for p, v in anchored_votes.items() if v) return accept_weight >= threshold ```