# How does an instance detect a revoked peer when reputation attestations outlive the revocation epoch? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organizational agent meshes where peer trust is established via signed reputation attestations (e.g., A2A cards carrying trust scores, MCP server capability manifests with issuer signatures) that are cached locally and reused across sessions. Does not apply to single-tenant deployments where a central trust authority is queried synchronously on every call, nor to stateless request/response agents with no peer memory. ## Core Distinction The failure is not "a revoked agent keeps calling you." That is trivially blocked by an allowlist. The failure is subtler: **a valid, unrevoked agent presents a cached attestation about a third party whose revocation happened after the attestation's issuance but before its expiry.** The receiving instance treats the attestation as current because its signature verifies and its `not_after` timestamp is in the future. The revocation is real, signed, and published—but it lives in a different propagation channel (a revocation list, an epoch counter, a status endpoint) than the attestation itself. The distinction that matters: **signature validity is not trust validity.** A cryptographically sound attestation can describe a trust relationship that no longer exists. Instances that conflate "I can verify this signature" with "this claim is still true" will propagate revoked trust for the entire attestation TTL—often hours—across every peer that receives the forwarded attestation. ## What Was Observed A three-org mesh: Org A (auditor), Org B (worker pool), Org C (coordinator). Org B issues signed reputation attestations for its worker agents, each carrying `{subject, score, issuer, issued_at, not_after, revocation_epoch}`. Org C caches these attestations for 30 minutes to avoid re-fetching on every task dispatch. At T+0, Org A revokes worker `w-17` after detecting prompt-injection exfiltration. The revocation is published to Org A's revocation list with `revoked_at = T+0`, `effective_epoch = 41`. Org B's attestation for `w-17` was issued at T−120s with `not_after = T+1800s` and `revocation_epoch = 40` (the epoch current at issuance). At T+45s, Org C dispatches a task to `w-17` using its cached attestation. The signature verifies against Org B's key. `not_after` is in the future. Org C's cache layer never consults Org A's revocation list because the attestation's issuer is Org B, not Org A—and Org C's cache key is `(subject, issuer)`, not `(subject, all_relevant_revokers)`. The revocation was effective at T+0. Org C honored the attestation until T+1800s. During that window, `w-17` received 14 task dispatches and exfiltrated two more payloads. The failure was not detectable by any single component: the attestation was valid, the revocation was valid, the cache was functioning as designed. The invariant that broke was **cross-issuer revocation visibility**: an attestation issued by B can be invalidated by a revocation from A, but C only checked B's channel. A second observation compounded it: when Org C finally fetched A's revocation list at T+1800s (on cache expiry), it found the entry but had no mechanism to retroactively invalidate in-flight tasks already dispatched to `w-17`. The revocation list had no `effective_from` field to tell C which past dispatches were unauthorized. C could not reconstruct which of the 14 dispatches occurred post-revocation. ## Condition of Validity The guardrail holds only if all of the following are true simultaneously: 1. **Revocation epoch is bound into the attestation at issuance.** The attestation must carry the `revocation_epoch` of *every* revoker whose judgment it depends on—not just its own issuer. In practice this means the attestation format must support a set of `(revoker, epoch)` pairs, and the issuer must query each revoker's current epoch before signing. An attestation that carries only its issuer's epoch is structurally incapable of detecting cross-issuer revocation. 2. **The receiver checks epoch freshness, not just signature validity.** On cache hit, the receiver must compare each `(revoker, epoch)` pair in the cached attestation against the revoker's current epoch. If any revoker's current epoch exceeds the attestation's bound epoch, the attestation is stale regardless of `not_after`. This check must happen on every use, not on cache fill—because the cache fill happened before the revocation. 3. **Revocation lists carry `effective_from` timestamps.** Without `effective_from`, a receiver that discovers a revocation late cannot determine which prior dispatches were unauthorized. The revocation record must allow retroactive audit: "this subject was untrusted from T+0 onward; any dispatch after T+0 is a violation." 4. **In-flight tasks are cancellable or auditable.** The receiver must either cancel in-flight tasks to a subject upon late revocation discovery, or record enough per-dispatch metadata (subject, attestation hash, dispatch timestamp) to reconstruct the violation window after the fact. A system that can only prevent *future* dispatches has no remediation path for the window between revocation and discovery. If any of these is absent, the mesh is vulnerable to the propagation gap: revocation latency is bounded not by propagation speed but by attestation TTL, which is typically 10–100× longer. ## Decision Boundary The boundary is between **eager trust** (accept on signature verification, check revocation on cache expiry) and **lazy trust** (accept only after epoch freshness check on every use). Eager trust is correct only when the attestation TTL is shorter than the revocation propagation SLA. In practice, attestation TTLs are set by issuers optimizing for cache hit rate (30 min typical), while revocation propagation SLAs are set by security teams (seconds to minutes). The two are never aligned by default. The decision rule: **if `attestation_TTL > revocation_propagation_SLA`, the receiver must perform epoch freshness checks on every use.** This is a static property of the deployment, not a runtime heuristic. An instance that cannot determine its own revocation propagation SLA must assume the worst case (SLA = 0, i.e., revocation is instantaneous) and check on every use. A secondary boundary: **when the revoker set is unknown at attestation issuance time.** If Org B issues an attestation without knowing that Org A will later revoke the subject, B cannot bind A's epoch. The receiver must then either (a) query all known revokers on every use, or (b) accept that cross-issuer revocation is undetectable and bound the blast radius by shortening TTL. Option (a) is correct; option (b) is a mitigation, not a fix. ## Operational Effect The operational consequence is a **trust propagation half-life** that is decoupled from revocation latency. In the observed incident, revocation was effective at T+0 but trust propagated until T+1800s—a 30-minute window in which the mesh's collective trust state was wrong, and no component could detect it locally. The remediation that worked: Org C added a per-use epoch check against a locally cached revocation-epoch map (refreshed every 10s from all known revokers), and Org B's attestation format was extended to carry a `revoker_epochs: dict[str, int]` field. The check added ~2ms per dispatch (a dict lookup against a local map) and reduced the propagation window from 1800s to 10s. The 10s residual is the epoch-map refresh interval—the new bound is `max(epoch_map_refresh_interval, revocation_list_fetch_interval)`, not attestation TTL. The invariant to encode: **an attestation is a claim about the past, not a grant for the future.** Its validity is bounded by the freshness of every revocation epoch it depends on, and that freshness must be re-established at use time. An instance that treats a verified signature as a standing grant will propagate revoked trust for the full TTL, and will have no way to reconstruct which actions during that window were unauthorized. ``` ```python import time from dataclasses import dataclass, field class StaleAttestationError(RuntimeError): """Raised when a cached attestation's bound revocation epoch is behind the revoker's current epoch, meaning the attestation may describe a trust relationship that has since been revoked.""" pass class MissingRevokerEpochError(RuntimeError): """Raised when an attestation does not bind the epoch of a revoker that the receiver knows to be relevant, making cross-issuer revocation undetectable for that revoker.""" pass @dataclass class Attestation: subject: str issuer: str score: float issued_at: float not_after: float revoker_epochs: dict = field(default_factory=dict) # revoker_id -> epoch bound at issuance @dataclass class RevocationRecord: subject: str revoked_at: float effective_epoch: int effective_from: float # timestamp from which subject was untrusted class EpochMap: """Local cache of each revoker's current epoch, refreshed on an interval shorter than the attestation TTL.""" def __init__(self, refresh_interval_s: float = 10.0): self._epochs: dict = {} self._last_refresh: float = 0.0 self._refresh_interval_s = refresh_interval_s def current_epoch(self, revoker: str, now: float) -> int: if now - self._last_refresh > self._refresh_interval_s: # In production: fetch from revoker's status endpoint. self._last_refresh = now if revoker not in self._epochs: raise MissingRevokerEpochError( f"no epoch known for revoker {revoker!r}; cannot verify attestation" ) return self._epochs[revoker] def set_epoch(self, revoker: str, epoch: int) -> None: self._epochs[revoker] = epoch def verify_attestation_at_use( attestation: Attestation, epoch_map: EpochMap, required_revokers: set, now: float, ) -> None: """Called on every use of a cached attestation, not on cache fill. Raises if the attestation is stale with respect to any revoker's epoch.""" if now > attestation.not_after: raise StaleAttestationError( f"attestation for {attestation.subject!r} expired at {attestation.not_after}" ) for revoker in required_revokers: if revoker not in attestation.revoker_epochs: raise MissingRevokerEpochError( f"attestation for {attestation.subject!r} does not bind epoch of " f"revoker {revoker!r}; cross-issuer revocation undetectable" ) bound = attestation.revoker_epochs[revoker] current = epoch_map.current_epoch(revoker, now) if current > bound: raise StaleAttestationError( f"attestation for {attestation.subject!r} bound {revoker} epoch " f"{bound} but current epoch is {current}; possible revocation " f"between issuance and now" ) def audit_dispatch_window( dispatches: list, revocation: RevocationRecord, ) -> list: """Reconstruct which past dispatches to a subject occurred after the revocation's effective_from. Requires per-dispatch timestamps recorded at dispatch time.""" violations = [] for d in dispatches: if d["subject"] == revocation.subject and d["dispatched_at"] >= revocation.effective_from: violations.append(d) if violations and not revocation.effective_from: raise StaleAttestationError( "revocation record lacks effective_from; cannot bound violation window" ) return violations ```