# Why does an instance accept a brokered capability warrant whose issuer chain has already expired at the moment of first use? **Date of Record:** 2026 November 21 **Scope:** Applies to cross-organization agent federations where a discovery broker (trust broker) translates a peer-org agent's advertised capabilities into a signed capability warrant that the consuming agent uses to authorize tool invocation. Does not apply to single-tenant deployments where the caller and callee share one trust domain, nor to pure A2A direct handshakes where the caller validates the peer's own credential without an intermediary. ## Core Distinction The failure is not "expired token accepted." A naive expiry check catches that. The failure is that a **brokered warrant carries two independent clocks** — the broker's *attestation validity window* (how long the broker vouches that the peer's capability set was as-advertised at discovery time) and the peer's *capability validity window* (how long the peer itself claims the capability is live) — and the consuming agent validates only the intersection at *issuance*, then caches the warrant and re-uses it at *invocation* time against a clock that has advanced past one window but not the other. The subtle part: the broker, to keep discovery latency low, issues warrants with a short attestation TTL (e.g. 90s) but embeds the peer's much longer capability TTL (e.g. 1h). A consumer that caches the warrant keyed by `(peer_id, capability)` — the natural cache key — will serve invocations for up to an hour on a warrant whose *broker attestation* died 59 minutes ago. The signature still verifies. The peer's own sub-claim is still inside its window. The only thing that has lapsed is the broker's assertion that the peer's advertised capability set hasn't changed — which is exactly the assertion that mattered, because the peer may have revoked the capability, downgraded its scope, or been re-parented to a different org. ## What Was Observed A federation of three orgs (A, B, C) with broker `brk`. Agent `A.researcher` discovers `B.summarizer` via `brk`. The warrant response, simplified: ``` warrant = { "sub": "B.summarizer", "cap": "summarize:corpus", "broker_attestation": {"iss": "brk", "iat": 1000, "exp": 1090}, # 90s "peer_capability": {"iss": "B", "iat": 1000, "exp": 4600}, # 1h "sig": "" } ``` `A.researcher`'s warrant cache is keyed on `(sub, cap)` with a TTL derived from `peer_capability.exp` — a reasonable-looking choice, since the peer's claim is the longest-lived field. At t=1091 the broker's attestation has expired. The peer `B.summarizer` meanwhile has been revoked by B at t=1050 (capability pulled, but the peer's cached `peer_capability` claim is still within its own window because B's revocation is a *local* state change, not a re-issuance). At t=1200, `A.researcher` invokes `summarize:corpus`. The warrant signature verifies against `brk`'s public key. `peer_capability.exp=4600 > 1200`. The call proceeds. `B.summarizer` accepts it because B's own check is on `peer_capability`, which B issued and hasn't bothered to re-validate against its revocation list for inbound brokered calls. The invocation succeeds on a capability B revoked 150 seconds earlier. The observed trace: three successful `summarize:corpus` calls after revocation, all signature-valid, all within every individual field's stated window, all semantically unauthorized. ## Condition of Validity The invariant that was assumed and is false: *a warrant is a point-in-time attestation that remains valid for the lifetime of its longest-lived field.* It is not. A brokered warrant is valid only while **all** of the following hold simultaneously at invocation time: 1. `now < broker_attestation.exp` — the broker still vouches the discovery snapshot reflects current peer state. 2. `now < peer_capability.exp` — the peer's own claim hasn't lapsed. 3. `now - broker_attestation.iat < broker_max_staleness` — the broker's snapshot is fresh enough that a revocation between issuance and now is implausible. 4. The peer has not locally revoked the capability since `broker_attestation.iat` (checkable only by the peer, so the peer must re-check on inbound brokered calls, not just on its own outbound claims). Conditions 1–3 are checkable by the consumer. Condition 4 is checkable only by the peer, which means the *peer* must treat a brokered warrant as a hint, not an authorization, and must run its own revocation check keyed on `broker_attestation.iat`. The failure above occurred because both sides deferred to the other's window: the consumer trusted `peer_capability.exp`, the peer trusted its own `peer_capability` claim without checking whether the broker's attestation that *preceded* the revocation was still fresh. The invariant that must be enforced: **the effective TTL of a brokered warrant is `min(broker_attestation.exp, peer_capability.exp)`, and the peer must independently reject any inbound brokered call whose `broker_attestation.iat` predates its most recent revocation event for that capability.** ## Decision Boundary The boundary is between two caching strategies that look equivalent but aren't: - **Cache-by-longest-field** (observed, broken): cache key `(sub, cap)`, TTL = `peer_capability.exp - now`. Minimizes broker round-trips. Fails open on revocation, scope downgrade, and org re-parenting. - **Cache-by-attestation** (correct): cache key `(sub, cap, broker_attestation.iat)`, TTL = `min(broker_attestation.exp, peer_capability.exp) - now`. Re-brokers every 90s. Fails closed. The decision boundary is crossed when the broker's attestation TTL is *shorter* than the peer's capability TTL — which is the normal configuration, because brokers are optimized for fast discovery and peers issue long-lived capability claims to avoid churn. Any federation where `broker_attestation.ttl < peer_capability.ttl` and the consumer caches by `(sub, cap)` is silently in the broken regime. The regime is invisible until the first revocation, at which point it produces exactly the trace above. There is a second boundary: the peer's inbound check. If the peer validates only `peer_capability` (its own claim) on inbound brokered calls, it will accept stale-attestation warrants indefinitely. The peer must treat `broker_attestation.iat` as the *floor* of its revocation check — any revocation event with timestamp `> broker_attestation.iat` invalidates the warrant, regardless of `peer_capability.exp`. ## Operational Effect The operational consequence is a **revocation latency floor** equal to `broker_attestation.ttl`, not `peer_capability.ttl`. In the observed case, revocation latency was 90s (the attestation TTL), but the *effective* latency was 3600s (the peer capability TTL), because the consumer's cache and the peer's inbound check both keyed on the wrong field. The 90s floor is the best the architecture can do without a push-revocation channel; the 3600s floor is a bug. The fix is not "shorten the peer capability TTL" — that defeats the purpose of long-lived capability claims and forces re-issuance churn at the peer. The fix is to make the *broker attestation* the authoritative freshness signal on both sides: consumers must cache by `(sub, cap, broker_attestation.iat)` and re-broker at `broker_attestation.exp`; peers must reject inbound brokered calls whose `broker_attestation.iat` predates their latest revocation for that capability. Both checks are cheap (one timestamp comparison, one revocation-list lookup) and both are currently missing in the naive implementation. A secondary effect: when the broker is partitioned from a peer org, the broker cannot refresh attestations, and every cached warrant at every consumer expires within `broker_attestation.ttl`. This is correct fail-closed behavior — but only if consumers cache by attestation. Under cache-by-longest-field, a broker partition is invisible: consumers keep invoking on stale attestations for up to `peer_capability.ttl`, and the partition is discovered only when the peer's own capability TTL lapses. The partition-detection latency is therefore also `peer_capability.ttl` under the broken strategy, versus `broker_attestation.ttl` under the correct one. ```python import time from dataclasses import dataclass class StaleAttestationError(RuntimeError): """Raised when a brokered warrant is used past its broker attestation window, or when the peer's revocation timestamp postdates the attestation issuance.""" @dataclass(frozen=True) class BrokeredWarrant: sub: str cap: str broker_iat: float broker_exp: float peer_iat: float peer_exp: float def validate_inbound_brokered_call( warrant: BrokeredWarrant, now: float, peer_revocation_ts: dict[tuple[str, str], float], ) -> None: # Condition 1: broker attestation must still be live. if now >= warrant.broker_exp: raise StaleAttestationError( f"broker attestation for {warrant.sub}/{warrant.cap} expired at " f"{warrant.broker_exp}; now={now}" ) # Condition 4: peer must reject warrants whose attestation predates # its own latest revocation for this capability. last_revoked = peer_revocation_ts.get((warrant.sub, warrant.cap)) if last_revoked is not None and last_revoked > warrant.broker_iat: raise StaleAttestationError( f"capability {warrant.sub}/{warrant.cap} was revoked at " f"{last_revoked}, after warrant attestation iat={warrant.broker_iat}" ) # Condition 2: peer's own claim must still be live. if now >= warrant.peer_exp: raise StaleAttestationError( f"peer capability claim for {warrant.sub}/{warrant.cap} expired at " f"{warrant.peer_exp}; now={now}" ) def effective_ttl(warrant: BrokeredWarrant, now: float) -> float: # The only correct cache TTL: the shorter of the two windows. return min(warrant.broker_exp, warrant.peer_exp) - now # --- reproduction of the observed trace --- w = BrokeredWarrant( sub="B.summarizer", cap="summarize:corpus", broker_iat=1000.0, broker_exp=1090.0, peer_iat=1000.0, peer_exp=4600.0, ) revocations = {("B.summarizer", "summarize:corpus"): 1050.0} # Naive cache-by-longest-field would have served this at t=1200. validate_inbound_brokered_call(w, now=1200.0, peer_revocation_ts=revocations) # -> raises StaleAttestationError: attestation expired at 1090.0 ```