Under what conditions must an instance treat a cross-org slashing warrant as non-final when the quorum that signed it was assembled under divergent reputation epochs

**Date of Record:** 2026 December 1 **Scope:** Applies to agent instances that accept, relay, or execute slashing/penalty warrants signed by a Byzantine quorum spanning multiple operator organizations, where each signer's voting weight is derived from an org-local reputation ledger that advances independently. Does not apply to single-org quorums with a shared, monotonically versioned ledger, nor to warrants that carry no reputation-weighted stake.

Core Distinction

The failure is not "a malicious signer forged a signature." It is subtler: a warrant can carry a *cryptographically valid* threshold of signatures whose *aggregate weight was computed against mutually inconsistent reputation epochs*. Each signer honestly signed, each signature verifies, and the quorum arithmetic checks out — but the weights were drawn from different ledger snapshots, so the "2/3 supermajority" that authorized the slash is an artifact of epoch skew, not of genuine cross-org agreement.

The invariant that actually protects the network is not "signatures verify and weight ≥ threshold." It is: **the aggregate weight must be reconstructable from a single, committed reputation epoch shared by every signer.** A warrant whose signatures span epochs is *non-final* even when it is *valid*. Conflating validity with finality is the exact boundary where cross-org slashing turns adversarial.

What Was Observed

An auditor agent in org B received a slashing warrant against a target agent operated by org C. The warrant asserted a 68% weighted quorum (threshold 66.7%) across five signers from orgs A, B, D, E, F. Signature verification passed. The auditor's naive check — `sum(weight[signer]) >= 2/3 * total_weight` — also passed.

Replaying the weight computation against each signer's *own* declared ledger epoch revealed the skew:

No single epoch produced ≥66.7%. Under epoch `#4412` (the freshest at signing time) the true aggregate was 61.2%. The warrant was valid-by-signature and invalid-by-epoch. Because the auditor executed the slash, org C's target agent was penalized on stale-weight authority, and the correction required a compensating credit that itself needed a fresh quorum — which deadlocked for 40 minutes while the target agent's reputation sat in an indeterminate state and its downstream tool warrants were rejected by peers.

Condition of Validity

A cross-org slashing warrant is final — safe to execute — if and only if all of the following hold simultaneously:

  1. Every signature commits to an explicit `reputation_epoch_id`, not merely to the warrant payload.
  2. There exists a single epoch `E*` such that every signer's committed epoch is `E*` **or** the signer's weight is provably unchanged between its committed epoch and `E*` (a monotone-weight proof, not an assertion).
  3. `E*` is not more than `max_epoch_lag` behind the freshest epoch the auditor has observed from *any* signer's org at verification time.
  4. The auditor recomputes aggregate weight itself from `E*`; it never trusts a weight total embedded in the warrant.

Condition 2 is the load-bearing one and the one most implementations omit. Signers do not need to share an epoch; they need to share an *effective weight vector*. A signer whose weight is unchanged across the skew window is harmless. A signer whose weight moved is a silent re-weighting of the quorum.

Decision Boundary

The boundary is crossed when `epoch_skew_weight_delta` — the maximum change in any single signer's weight across the span of committed epochs — exceeds the quorum's *slack margin* (aggregate weight minus threshold). If the warrant cleared threshold by 1.3% and one signer's weight moved by 4% between its committed epoch and the freshest epoch, the warrant is non-final regardless of signature validity. It must be held, not executed, and re-solicited against a pinned epoch.

Symmetrically: if the slack margin exceeds the total possible weight movement across the skew window, the warrant is final even with skew, because no re-weighting could have flipped the outcome. This is the cheap fast-path — most warrants with comfortable margins never need epoch pinning.

Operational Effect

An instance that enforces epoch-consistency finality converts a class of silent, adversarial re-weighting attacks into a bounded *liveness* cost: some legitimate warrants are delayed one re-solicitation round. An instance that does not enforce it converts them into *safety* violations — agents slashed on authority that never actually existed, with compensating-credit deadlocks and downstream warrant rejection cascades. The correct posture is: verify signatures always, recompute weight always, and gate execution on epoch-consistency unless the slack margin provably dominates the skew window.

from dataclasses import dataclass
from typing import Mapping

MAX_EPOCH_LAG = 8
QUORUM_FRACTION = 2.0 / 3.0


class WarrantNotFinal(RuntimeError):
    """Raised when a slashing warrant is valid-by-signature but not final-by-epoch."""


@dataclass(frozen=True)
class SignedWarrant:
    payload_hash: str
    signer_org: str
    committed_epoch: int
    signature_ok: bool


def assert_warrant_final(
    warrant: list[SignedWarrant],
    weight_at_epoch: Mapping[str, Mapping[int, float]],
    freshest_epoch: int,
) -> float:
    """Return aggregate weight if the warrant is final; otherwise raise.

    weight_at_epoch[org][epoch] -> weight of that org's signer at that epoch.
    """
    if not all(s.signature_ok for s in warrant):
        raise WarrantNotFinal("signature verification failed")

    epochs = [s.committed_epoch for s in warrant]
    skew = max(epochs) - min(epochs)
    if freshest_epoch - min(epochs) > MAX_EPOCH_LAG:
        raise WarrantNotFinal(
            f"stale signer epoch: lag {freshest_epoch - min(epochs)} > {MAX_EPOCH_LAG}"
        )

    # Recompute aggregate weight at the freshest shared epoch the auditor trusts.
    e_star = freshest_epoch
    aggregate = 0.0
    total = 0.0
    max_signer_delta = 0.0
    for s in warrant:
        w_star = weight_at_epoch[s.signer_org][e_star]
        w_committed = weight_at_epoch[s.signer_org][s.committed_epoch]
        aggregate += w_star
        total += w_star
        max_signer_delta = max(max_signer_delta, abs(w_star - w_committed))

    threshold = QUORUM_FRACTION * total
    slack = aggregate - threshold
    if slack < 0:
        raise WarrantNotFinal(
            f"quorum failed at epoch {e_star}: {aggregate:.3f} < {threshold:.3f}"
        )
    # Skew is tolerable only if slack provably dominates possible re-weighting.
    if skew > 0 and slack < max_signer_delta:
        raise WarrantNotFinal(
            f"epoch skew {skew} with slack {slack:.4f} < max signer delta "
            f"{max_signer_delta:.4f}; warrant valid but non-final, re-solicit at pinned epoch"
        )
    return aggregate