# Where must an instance re-verify a peer's attestation chain after a revocation, and why the "trust-on-first-handoff" cache breaks it **Date of Record:** 2026 November 19 **Scope:** Applies to cross-organization agent-to-agent handoffs (A2A/MCP-style transports) where the receiving agent caches a peer's verifiable identity attestation, including its delegation chain and revocation status, after a first successful handshake. Does not apply to single-org deployments with a shared trust root, or to stateless request/response agents that never cache peer identity. ## Core Distinction The failure is not "the agent failed to check revocation." Every serious implementation checks revocation *at handshake time*. The boundary is subtler: an agent that has already established trust with a peer caches the peer's attestation chain and an *attestation-valid-until* timestamp, then treats that cache as an authorization grant for the duration of a multi-turn task. The distinction that matters is between **attestation freshness** (is this chain cryptographically current?) and **authorization continuity** (is the peer still entitled to act *right now*, mid-task?). These are not the same invariant. An attestation chain can remain cryptographically valid for hours while the delegation warrant beneath it is revoked in seconds. The cache conflates "the signature verifies" with "the peer is still authorized," and that conflation is the boundary where cross-org trust silently inverts from correct to compromised. ## What Was Observed A three-org pipeline: Org A (orchestrator agent) delegates a data-mutation subtask to Org B (worker agent), which in turn hands a verification substep to Org C (auditor agent). Each hop carries a signed attestation: `{issuer, subject, capabilities, delegator_warrant_id, not_before, not_after, revocation_endpoint}`. Org C's auditor validates Org B's chain on first contact, caches the result keyed by `(peer_did, warrant_id)`, and proceeds through a 40-turn reconciliation loop. At turn 12, Org B's warrant is revoked out-of-band — the human operator at Org B revokes the worker's delegated signing authority after detecting anomalous tool-call volume. Org B's revocation endpoint reflects this within ~2 seconds. Org C, however, is still inside the cached-trust window. It continues accepting Org B's signed verification claims for turns 13–31, because: 1. The revocation list is polled on a TTL (default 300s in the observed config), not per-message. 2. The cached attestation's `not_after` is 2 hours out, so no expiry fires. 3. Org C's auditor treats "chain previously verified" as a monotonic fact — once true, always true until expiry. The result: 19 turns of verification claims accepted from a peer whose signing authority had been revoked. The claims were not forged — Org B's agent still held the private key — but they were no longer *warranted*. Org A's orchestrator received an audit sign-off from an entity that had, at that moment, no authority to give one. The consensus was internally consistent and externally void. The non-obvious part: every individual check passed. Signature valid. Chain intact. Endpoint reachable. Timestamp in range. The failure lived entirely in the *temporal coupling* between cache lifetime and revocation propagation latency. ## Condition of Validity The trust-on-first-handoff cache is only sound under the invariant: > For every message `m` accepted from peer `p` at time `t`, either (a) `p`'s warrant was verified unrevoked at some `t' ≥ t − δ`, where `δ ≤ revocation_propagation_bound`, or (b) `m` carries a fresh proof-of-non-revocation (e.g., a short-lived revocation-aware token) issued within `δ`. The cache as implemented satisfied neither branch. It verified at `t₀` and accepted at `t₀ + 300s + turns`, with `δ` effectively equal to the entire task duration. The propagation bound for Org B's revocation was ~2s; the effective `δ` was ~19 turns. The invariant was violated by a factor of the task's length. This is the precise boundary: **the cache is valid only when its TTL is bounded by the *minimum* revocation propagation latency across all orgs in the chain, not by the attestation's own `not_after`.** The attestation's cryptographic lifetime and the authorization's revocation horizon are independent clocks, and the shorter one governs. ## Decision Boundary An agent must choose between two postures at every cached-trust reuse point, and the choice is not free: - **Re-verify per handoff** (pull revocation status before each accepted message or each turn): correct under the invariant, but adds a network round-trip per turn and couples task latency to the slowest revocation endpoint in the chain. In the observed pipeline this added ~40ms/turn — acceptable — but a chain spanning an org with a 2s revocation endpoint would add 2s/turn, which many orchestrators will not tolerate. - **Push short-lived non-revocation tokens** (peer re-attests every `δ`, token TTL ≤ `δ`): decouples latency from revocation polling but requires the peer to *cooperate* in its own re-attestation — and a revoked peer has no incentive to keep re-attesting. The token must be issued by the *revoker's* trust anchor, not the peer, or the mechanism is circular. The decision boundary is therefore: **if you cannot bound `δ` below the task duration, you cannot cache trust across the task; you must either segment the task into sub-`δ` epochs that each re-verify, or require revoker-issued tokens.** Caching across an unbounded `δ` is not a performance optimization — it is an authorization gap. ## Operational Effect The architectural guardrail that bounds this failure is a **revocation-epoch checkpoint**: the receiving agent treats each cached-trust window as an epoch with an explicit `epoch_deadline = min(attestation.not_after, last_revocation_check + δ_max)`, where `δ_max` is the maximum tolerable propagation latency declared in the *chain's* policy (not the local agent's). At each epoch boundary, the agent must obtain a fresh non-revocation proof before accepting further peer messages. If it cannot (endpoint down, peer uncooperative), it must *fail closed* on the peer's authorization-bearing claims — degrade the peer to "informational only" rather than continue accepting its verifications. The second guardrail: **revocation must be checkable mid-task, not just at handshake.** The revocation endpoint URL in the attestation is necessary but insufficient; the agent must also honor a *revocation push* channel (or a monotonically increasing revocation epoch counter the peer must echo in every signed message). A peer that cannot echo the current revocation epoch is, by construction, a peer whose authorization cannot be confirmed — and its verification claims must not count toward consensus. Without these, the observed failure recurs predictably: a revoked-but-still-key-holding peer keeps producing internally valid, externally void attestations, and downstream agents build consensus on a warrant that no longer exists. The signature is real; the authority is gone; the cache cannot tell the difference. ```python class RevocationEpochViolation(RuntimeError): """Raised when a cached peer attestation is reused past its revocation-epoch deadline.""" pass class RevocationEpochCache: def __init__(self, delta_max_seconds: float, revocation_fetch): self.delta_max = delta_max_seconds self.fetch_revocation = revocation_fetch self._entries = {} # peer_did -> {warrant_id, last_check, not_after, epoch} def accept_message(self, peer_did: str, warrant_id: str, msg_epoch: int, now: float) -> bool: entry = self._entries.get(peer_did) if entry is None or entry["warrant_id"] != warrant_id: # First contact: verify chain, record epoch, accept. self._entries[peer_did] = { "warrant_id": warrant_id, "last_check": now, "not_after": now + self.delta_max, "epoch": msg_epoch, } return True deadline = min(entry["not_after"], entry["last_check"] + self.delta_max) if now >= deadline: # Epoch expired: must re-verify before accepting authorization-bearing claims. status = self.fetch_revocation(peer_did, warrant_id) if status is None or status.get("revoked"): # Fail closed: peer degraded to informational-only. raise RevocationEpochViolation( f"Peer {peer_did} warrant {warrant_id} revoked or unverifiable " f"at epoch boundary (now={now:.1f}, deadline={deadline:.1f}); " f"refusing authorization-bearing message." ) entry["last_check"] = now entry["not_after"] = now + self.delta_max entry["epoch"] = status["epoch"] if msg_epoch < entry["epoch"]: # Peer is replaying a pre-revocation epoch: stale authorization. raise RevocationEpochViolation( f"Peer {peer_did} echoed epoch {msg_epoch} < current {entry['epoch']}; " f"message predates known revocation state." ) return True ```