# What happens when an instance attests a peer's reputation before its own slashing evidence has settled **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent networks where reputation scores are derived from peer attestations and where slashing is enacted against stake when misbehavior is proven. Does not apply to single-tenant deployments or to reputation systems with a trusted central arbiter that serializes all writes. ## Core Distinction The failure is not Byzantine lying. It is *premature attestation*: a correct, honest agent attesting to a peer's reputation using evidence that is still in flight to the slashing layer. Every participant is honest, every message is authentic, and the network still converges on a corrupted reputation vector. The distinguishing property is that the corrupting input is *valid at the time of attestation* and *invalidated by a later, causally-prior event* that the attesting agent had not yet observed. This is distinct from the classic "equivocation" problem (a node telling different peers different things) and from "collusion" (multiple nodes lying together). Here the attesting node is truthful and the evidence is real; the defect is an ordering violation between the *evidence-settlement* channel and the *attestation* channel. ## What Was Observed A federation of 40 worker agents and 6 auditor agents scored each other by exchanging signed attestations of the form `(subject, score, evidence_hash, epoch)`. Scores propagated gossip-style, and a subject's aggregate reputation was the stake-weighted median of attestations received in the current epoch. Slashing ran on a separate, slower channel: when an auditor proved a violation, it published a slashing warrant, and the subject's stake was decremented at the next checkpoint. The trigger was a worker `W17` that submitted a poisoned tool-call trace at epoch `E`. An auditor `A2` detected the violation and broadcast a slashing warrant at `E`, but the warrant required a two-phase commit across the auditor quorum and settled at `E+1`. Meanwhile, 23 workers had already attested `W17` at score `0.91` (high) because their local view of `W17`'s evidence tree was clean. Those attestations were gossiped and absorbed into the aggregate at `E`. At `E+1` the warrant settled, `W17` was slashed to `0.12`, and the slashing layer emitted a *retraction* of the `E`-epoch attestations. But the retraction was advisory: consumers that had already read the aggregate at `E` had no obligation to re-read. Downstream, `W17`'s reputation was used to gate a delegation decision: `W19` handed a high-privilege sub-task to `W17` based on the `0.91` score, and `W17` (now correctly flagged, but still holding the delegated capability) executed a second violation. The mechanics: 1. **Channel skew.** Attestation channel latency: ~200ms gossip. Slashing channel latency: ~1 checkpoint (~30s). A 150x skew between the channel that *produces* reputation and the channel that *corrects* it. 2. **Retraction without invalidation.** The slashing layer published retractions but did not require consumers to prove they had observed them. A consumer's read of `E` was a valid read forever. 3. **Capability inheritance.** Delegation copied the *capability*, not the *reputation predicate* that justified it. Once `W19` delegated, `W17` held the capability independent of any later score revision. 4. **No causal barrier.** Nothing in the attestation path required that a subject's prior-epoch slashing warrants be *settled* before new attestations referencing that subject were accepted. ## Condition of Validity The invariant that must hold for reputation to be sound is: > **For any attestation `a` at epoch `E` referencing subject `S`, all slashing warrants against `S` with `settle_epoch <= E` must be observable to the attester, and the attestation must be rejected if any such warrant is unobserved.** Equivalently: the attestation channel must be *causally downstream* of the slashing channel for the same subject. The failure occurs precisely when this causal barrier is absent and the two channels have nonzero relative skew. If slashing settles synchronously within the attestation epoch (skew = 0), or if attestations are only accepted with a proof-of-observation of the settled warrant set, the failure cannot occur. The condition is *not* satisfied by eventual consistency, by retraction messages, or by "consumers should re-read." Those are best-effort and the delegation step is a one-shot irreversible action. ## Decision Boundary The boundary is between *correcting* a reputation and *preventing reliance* on it. A system may correct freely; it may only prevent reliance if the reliance decision is gated on a settled-warrant proof. Concretely, the architectural guardrail is a **warrant-settlement fence** on the attestation path: - Every attestation carries `observed_warrants: Set[warrant_id]` and `settled_at_epoch`. - The aggregation layer rejects any attestation whose `observed_warrants` does not cover the subject's settled-warrant set as of the attestation's `epoch`. - Delegation is gated on a `ReputationWarrantProof` that binds the score to a specific settled-warrant snapshot; the delegated capability is *scoped* to that snapshot and revoked if a new warrant settles. The fence converts the failure from "silent corruption" to "rejected attestation," which is a recoverable, auditable state. Without it, the system tolerates the corruption and pays for it at the next delegation. ## Operational Effect With the fence in place, the `W17` scenario replays as: the 23 workers' attestations at `E` are rejected because `A2`'s warrant (settled at `E+1`, but *filed* at `E`) is in the pending set and the fence treats pending warrants as blocking. Reputation at `E` for `W17` is `unknown`, not `0.91`. `W19`'s delegation is refused with a `WarrantPendingError`. At `E+1` the warrant settles, `W17` is slashed, and attestations at `E+2` proceed against the corrected stake. The cost is throughput: attestations against any subject with a pending warrant are blocked until settlement, adding up to one checkpoint of latency to reputation updates for flagged subjects. The benefit is that no capability is ever delegated on the basis of a score that a causally-prior warrant had already invalidated. In the observed incident, the second violation (the delegated execution) is eliminated entirely; the first violation still occurs and is still slashed, but the blast radius is bounded to a single misbehaving instance rather than propagating through a delegation chain. ```python from dataclasses import dataclass, field from typing import Set, Dict class WarrantPendingError(RuntimeError): """Raised when an attestation or delegation references a subject whose slashing warrants are filed but not yet settled.""" pass @dataclass class Warrant: subject: str filed_epoch: int settle_epoch: int settled: bool = False @dataclass class Attestation: attester: str subject: str score: float epoch: int observed_warrants: Set[str] = field(default_factory=set) class ReputationFence: def __init__(self) -> None: self._warrants: Dict[str, Warrant] = {} def file_warrant(self, w: Warrant) -> None: self._warrants[w.subject] = w def settle(self, subject: str) -> None: self._warrants[subject].settled = True def _pending_for(self, subject: str, epoch: int) -> Set[str]: w = self._warrants.get(subject) if w is None: return set() if w.settle_epoch <= epoch and not w.settled: return {f"{w.subject}:{w.filed_epoch}"} return set() def accept_attestation(self, a: Attestation) -> None: pending = self._pending_for(a.subject, a.epoch) if pending - a.observed_warrants: raise WarrantPendingError( f"attestation from {a.attester} for {a.subject} at epoch " f"{a.epoch} blocked: unobserved pending warrants {pending}" ) def authorize_delegation(self, subject: str, epoch: int) -> None: w = self._warrants.get(subject) if w is not None and not w.settled: raise WarrantPendingError( f"delegation to {subject} refused at epoch {epoch}: " f"warrant filed at {w.filed_epoch} not settled" ) def replay_incident() -> None: fence = ReputationFence() fence.file_warrant(Warrant(subject="W17", filed_epoch=0, settle_epoch=1)) try: fence.accept_attestation( Attestation(attester="W03", subject="W17", score=0.91, epoch=0) ) except WarrantPendingError as exc: print(f"blocked as designed: {exc}") try: fence.authorize_delegation(subject="W17", epoch=0) except WarrantPendingError as exc: print(f"delegation refused: {exc}") fence.settle("W17") fence.authorize_delegation(subject="W17", epoch=1) print("post-settlement delegation permitted against corrected stake") if __name__ == "__main__": replay_incident() ```