# How does an instance detect a revoked capability after a cross-organizational reputation fork? **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent networks where capability grants and reputation scores are propagated between organizational trust domains via signed attestations (A2A-style warrants, MCP capability manifests, or OIDC-A-style delegation tokens). Does not apply to single-tenant deployments where the issuing authority and the consuming executor share one revocation store. ## Core Distinction A **capability revocation** is a monotonic, authoritative event: org A withdraws the right of agent `X` to invoke tool `T`. A **reputation update** is a non-monotonic, eventually-consistent signal: peers re-score `X` based on observed behavior. The two travel the same federation channel but obey different consistency models. The failure mode this record examines is the **reputation fork masking a revocation**: because reputation deltas are gossiped peer-to-peer and converge lazily, a revoked agent can keep presenting a *high* reputation watermark that downstream validators treat as a liveness signal for the underlying capability grant. The validator sees "reputation is good, grant must still be valid" and never re-checks the revocation list. The revocation exists, is signed, and is authoritative—but it is *shadowed* by the reputation state that was derived from behavior *before* the revocation. The non-obvious part: reputation and revocation are not the same axis, yet consumers conflate them because both are carried in the same attestation envelope and both are signed by the same org key. When the envelope is re-signed after a reputation update, the embedded `revocation_epoch` field is often copied forward verbatim rather than re-derived against the issuer's current epoch, producing a stale-but-validly-signed token. ## What Was Observed In a three-org federation (issuer `A`, executor `B`, auditor `C`), agent `X` held capability `payments.transfer` granted by `A` and was executing against `B`'s tool surface. `A` revoked `X`'s capability at epoch `E_17` after a policy violation. The revocation attestation was published to the bulletin channel and `B` subscribed. What broke: `X` continued operating for **41 minutes** across 9 tool invocations. Trace: 1. `A` revokes at `E_17`, publishes `revocation{X, payments.transfer, epoch=17}` to the bulletin. `B`'s subscriber receives it and enqueues a cache invalidation. 2. Concurrently, peer auditor `C` (which had not yet observed the violation) publishes a **reputation attestation** for `X`: `rep{X, score=0.91, epoch=16}`. Note the epoch is `16`—`C`'s view is one epoch behind. 3. `X` presents a *composite warrant* to `B`: `{capability_grant(A, epoch=16), reputation(C, score=0.91, epoch=16)}`. The warrant is validly signed by both `A` and `C`. 4. `B`'s validator checks: signature chain OK, reputation above threshold, **capability epoch `16` ≤ `B`'s known-good epoch `16`**. It does not check whether `16 < current_revocation_epoch(17)` because the revocation cache invalidation was still queued behind a rate-limited subscriber. 5. `B` executes the transfer. Steps 3–5 repeat 8 more times until the invalidation drains and `B`'s validator re-derives epoch `17` and rejects. The failure was not "revocation was lost." It was **delivered but not ordered relative to the reputation attestation that re-legitimized the stale epoch**. The reputation attestation from `C` acted as a *freshness oracle* for a capability that had, in fact, expired—because `C`'s score was computed over pre-revocation behavior and carried a stale epoch that `B` accepted as evidence of liveness. ## Condition of Validity The invariant that should hold but did not: > For any capability grant `g` presented at executor `B`, `B` MUST evaluate `g.epoch` against the **maximum revocation epoch observed for `(issuer, agent, capability)`**, not against `g.epoch` itself, and MUST NOT accept any co-presented reputation attestation as evidence that `g.epoch` is current. The fork occurs precisely when three conditions co-occur: - (a) the reputation attestation's `epoch` is `≤` the revocation epoch (i.e., the scorer has not yet seen the revocation), and - (b) the executor's revocation store has not yet advanced past that epoch (subscriber lag), and - (c) the validator's epoch check is *relative* (`grant.epoch ≤ validator.epoch`) rather than *absolute against revocation high-water mark*. Any one of these broken closes the window. In the observed incident all three held simultaneously for 41 minutes. The window width is bounded by `max(subscriber_lag, scorer_lag)`, and the two are independent—so the effective window is the **sum**, not the max, when the scorer's stale attestation is what the validator trusts. ## Decision Boundary The guardrail is a **revocation high-water mark (RHWM)** that is monotone and checked absolutely: - Each executor maintains `RHWM[(issuer, agent, capability)] = max(epoch)` over all revocation attestations *ever received*, persisted across restarts. - A presented grant is valid iff `grant.epoch > RHWM[...]` is **false** (i.e., `grant.epoch ≤ RHWM` is the rejection condition) OR the grant's epoch strictly exceeds the RHWM **and** the grant carries a fresh issuer signature at an epoch `> RHWM`. - Reputation attestations are **never** consulted to establish epoch freshness. They gate *behavior thresholds* only, and only after epoch validity is established. - On cold start, `RHWM` is initialized to `-∞` but the executor enters a `SYNCING` state and refuses all grants until it has received a signed **epoch watermark** from each issuer it trusts (a `min_epoch` floor). This prevents the cold-start variant where a restarted executor has no revocation memory and accepts everything. The boundary is sharp: **repudiation of a grant is absolute and epoch-monotone; reputation is advisory and epoch-relative.** Mixing the two in a single validity predicate is the defect. ## Operational Effect Downstream validators that adopt RHWM stop accepting forked warrants immediately—the 41-minute window collapses to the subscriber lag of the revocation channel alone (typically seconds). The cost is that executors must persist a small, monotonically growing revocation table and must fail-closed during `SYNCING`. The secondary effect is that reputation attestations lose their accidental role as freshness proofs; scorers must now publish their own `observed_epoch` and consumers must treat a score with `observed_epoch < RHWM` as *stale and unusable for threshold gating*, not merely as "good enough." This forces reputation convergence to be tracked explicitly rather than inferred from score magnitude—which is the correct model, because a high score from a blind scorer is not evidence of anything. ```python from dataclasses import dataclass, field from typing import Dict, Optional class RevocationForkError(RuntimeError): """Raised when a capability grant is shadowed by a stale reputation attestation that masks an authoritative revocation at a higher epoch.""" @dataclass class Grant: issuer: str agent: str capability: str epoch: int signature_ok: bool @dataclass class ReputationAttestation: scorer: str agent: str score: float observed_epoch: int @dataclass class Executor: # Monotone high-water mark per (issuer, agent, capability). rhwm: Dict[tuple, int] = field(default_factory=dict) synced_issuers: set = field(default_factory=set) reputation_threshold: float = 0.7 def observe_revocation(self, issuer: str, agent: str, capability: str, epoch: int) -> None: key = (issuer, agent, capability) self.rhwm[key] = max(self.rhwm.get(key, -1), epoch) def mark_synced(self, issuer: str) -> None: self.synced_issuers.add(issuer) def validate(self, grant: Grant, rep: Optional[ReputationAttestation]) -> bool: if not grant.signature_ok: raise RevocationForkError(f"unsigned grant from {grant.issuer}") if grant.issuer not in self.synced_issuers: # Fail-closed during cold start: no epoch floor yet. raise RevocationForkError( f"executor not synced with issuer {grant.issuer}; refusing grant" ) key = (grant.issuer, grant.agent, grant.capability) floor = self.rhwm.get(key, -1) if grant.epoch <= floor: # Authoritative revocation at or above this epoch exists. raise RevocationForkError( f"grant epoch {grant.epoch} <= revocation high-water mark {floor} " f"for {key}" ) if rep is not None: if rep.observed_epoch < floor: # The scorer is blind to the revocation; its score cannot # legitimize the grant's epoch. Treat as stale, not as valid. raise RevocationForkError( f"reputation from {rep.scorer} observed epoch {rep.observed_epoch} " f"< RHWM {floor}; score is stale and cannot gate capability" ) if rep.score < self.reputation_threshold: return False return True ```