# What happens when an instance trusts a brokered capability attestation that was valid at issuance but whose policy context has since been revoked upstream **Date of Record:** 2026 November 26 **Scope:** Applies to cross-organization agent federation where a relying-party instance (RPI) accepts a brokered capability attestation (BCA) issued by a trust broker (TB) on behalf of a foreign principal (FP), and the RPI's policy engine caches authorization decisions keyed on attestation identity. Does not apply to same-org delegation, nor to federations where the RPI re-validates against the FP's live policy endpoint on every call. ## Core Distinction The failure is not signature forgery, token expiry, or clock skew. Every cryptographic check passes. The BCA is genuinely signed by the TB, the TB is genuinely trusted by the RPI, the attestation is genuinely within its `not_after` window, and the FP genuinely held the capability at the moment the TB minted the attestation. The failure lives in the *semantic gap between attestation validity and policy validity*: a BCA is a point-in-time snapshot of a decision, but the decision it snapshots is governed by an upstream policy that can be revoked, amended, or narrowed *after* issuance and *independently of* the attestation's own lifecycle. The RPI treats "valid attestation" as a proxy for "currently authorized," and that proxy is unsound in exactly the window between an upstream policy revocation and the attestation's natural expiry. Contrast with the obvious case: an expired or badly-signed BCA is caught by the verifier. A revoked-in-flight BCA is caught *only if* the federation defines a revocation channel and the RPI polls it. Most brokered federations define issuance and verification carefully and leave revocation as an exercise for the reader, because revocation is where the broker's authority model gets uncomfortable: the TB asserted a capability it cannot unilaterally retract without either (a) retaining a revocation list, which makes it stateful and a single point of failure, or (b) pushing invalidation to every RPI, which requires a fan-out the protocol never specified. ## What Was Observed A federation of three orgs: Org A (foreign principal, FP), Org B (trust broker, TB), Org C (relying party, RPI). FP held capability `data:read:region=eu` granted by A's policy service. TB brokered a BCA to RPI attesting that FP may exercise `data:read:region=eu`, with `not_after = T+3600s` and a `policy_ref = a://policy/grants/7741`. RPI verified the BCA, cached the resulting authorization decision keyed on `(fp_id, capability, bca_id)`, and served requests. At T+900s, A's compliance team revoked grant 7741 (data residency reclassification). A's policy service marked 7741 revoked and, per A's internal contract, notified TB. TB's notification handler logged the revocation and updated its own grant ledger — but did not, and could not, propagate to RPI, because the federation protocol had no revocation-push verb and RPI had no revocation-poll loop. RPI continued to authorize FP's `data:read:region=eu` requests for the remaining 2700s of the attestation window, serving EU-resident data to a principal whose grant had been revoked 45 minutes earlier. The trace, reconstructed from RPI's decision log: 1. `T+0000` RPI verifies BCA signature chain → TB trusted → attestation fresh → **ALLOW**, caches decision. 2. `T+0900` A revokes grant 7741; TB ledger updated; no RPI-visible signal emitted. 3. `T+0912` FP issues request; RPI hits cache, key `(fp, data:read:region=eu, bca_7741)` → **ALLOW** (cache hit, no re-validation). 4. `T+1800` RPI cache entry TTL (1800s) expires; RPI re-verifies BCA → still signed, still fresh → **ALLOW**, re-caches. 5. `T+3600` BCA `not_after` reached; RPI rejects. Revocation window closed at 2700s of unauthorized access. The critical observation: step 4 is where a naive "re-validate on cache miss" design *feels* safe and is not. Re-verifying the BCA re-checks the attestation's cryptographic and temporal validity, not the upstream policy state it references. The `policy_ref` field pointed at `a://policy/grants/7741`, but RPI never dereferenced it — dereferencing was not in the protocol, and even if it had been, A's policy endpoint is not exposed to C by design. ## Condition of Validity The implicit invariant the RPI relied on was: > *A valid BCA implies the underlying grant is currently active.* This invariant holds **only if** one of the following is true: - **Bounded staleness by construction:** the BCA `not_after` is short enough that the maximum revocation-to-expiry window is within the federation's tolerated staleness bound. If A's compliance SLA is "revocation must take effect within 5 minutes," then `not_after - issued_at ≤ 300s` is required, and the RPI's cache TTL must also be ≤ the residual window. The observed BCA had a 3600s window — 12× the tolerable staleness. - **Revocation channel exists and is drained:** TB publishes revocations on a channel RPI polls (or subscribes to) with bounded latency, and RPI invalidates cached decisions on receipt. The observed federation had no such channel. - **Policy dereference is authorized:** `policy_ref` is a dereferenceable, RPI-readable endpoint returning current grant status, and RPI checks it at decision time (or at cache-fill time with TTL ≤ staleness bound). The observed federation kept A's policy endpoint private to A. Absent all three, the invariant is false and the failure is not a bug in any component — it is a *specification gap* in the federation's trust model. Each party behaved correctly against its own contract; the contracts did not compose. ## Decision Boundary The RPI must decide, at BCA acceptance time, which of three postures it is in, and refuse to operate in the unguarded fourth: - **Posture 1 — Short-lived attestation.** Enforce `not_after - issued_at ≤ max_staleness` at verify time. If the BCA exceeds the bound, reject with a `StaleAttestationWindow` error rather than accept-and-hope. This is the cheapest guard and the one most federations should adopt. - **Posture 2 — Revocation-aware.** Require the BCA to carry a `revocation_endpoint` and a `revocation_check_interval`; RPI polls or subscribes, and cache TTL is clamped to `min(cache_ttl, revocation_check_interval)`. Accept only if the endpoint is reachable at verify time — an unreachable revocation endpoint is a *deny*, not a *degrade*. - **Posture 3 — Dereference-at-decision.** If `policy_ref` is dereferenceable and authorized, check it at each decision (or at cache-fill with TTL ≤ staleness bound). This is the strongest posture but requires A to expose policy state to C, which many orgs will not. The **unguarded fourth posture** — "long-lived BCA, no revocation channel, no dereference" — is the one that produced the incident. The decision boundary is: *an RPI must not accept a BCA whose `not_after - issued_at` exceeds its tolerated staleness bound unless the BCA carries a usable revocation or dereference mechanism.* This is a check the RPI can perform locally at verify time, with no new protocol verbs, no broker statefulness, and no cross-org policy exposure. It converts an unbounded silent failure into a loud, local, deterministic rejection. A secondary boundary: the TB, when it cannot propagate revocation, must not mint BCAs with windows longer than the FP's own revocation SLA. The TB knows A's grant semantics; it is the only party positioned to bound the window. A TB that mints 3600s attestations for grants revocable in 5 minutes is the proximate cause, even though it violated no explicit rule. ## Operational Effect The practical consequence is that **BCA lifetime becomes a security parameter, not a convenience parameter.** Federations that set `not_after` to "an hour, like a JWT" have silently set their revocation staleness bound to an hour. The fix is not more cryptography; it is making the staleness bound explicit, checking it at the RPI, and failing closed when the BCA's window exceeds it. Second-order effect: cache design must key on the *decision* including its policy provenance, and cache TTL must be clamped to the residual attestation window *and* the revocation check interval. A cache that outlives either is a revocation bypass wearing a performance optimization's clothes. Third-order effect: audit. The RPI's decision log must record, per ALLOW, the `bca_id`, `policy_ref`, `not_after`, and the posture under which the decision was made. Post-incident, the question "was this decision made under a bounded-staleness posture?" must be answerable from the log alone. In the observed incident it was not, which is why the 2700s window had to be reconstructed from three orgs' logs rather than read from one. ```python from __future__ import annotations from dataclasses import dataclass from datetime import datetime, timedelta from enum import Enum class AttestationPostureError(RuntimeError): """Raised when a brokered capability attestation cannot be accepted under any sound posture.""" class Posture(Enum): SHORT_LIVED = "short_lived" REVOCATION_AWARE = "revocation_aware" DEREFERENCE_AT_DECISION = "dereference_at_decision" UNGUARDED = "unguarded" # must never be accepted @dataclass(frozen=True) class BrokeredCapabilityAttestation: bca_id: str fp_id: str capability: str policy_ref: str issued_at: datetime not_after: datetime revocation_endpoint: str | None revocation_check_interval: timedelta | None policy_ref_dereferenceable: bool def classify_and_validate( bca: BrokeredCapabilityAttestation, now: datetime, max_staleness: timedelta, ) -> Posture: """Classify the attestation's posture and reject the unguarded fourth posture. Returns the posture under which the RPI may proceed. Raises AttestationPostureError if the attestation is expired, not yet valid, or falls into the unguarded posture (long-lived, no revocation channel, no dereferenceable policy reference). """ if now < bca.issued_at: raise AttestationPostureError( f"BCA {bca.bca_id} not yet valid: issued_at={bca.issued_at.isoformat()} now={now.isoformat()}" ) if now >= bca.not_after: raise AttestationPostureError( f"BCA {bca.bca_id} expired at {bca.not_after.isoformat()}" ) window = bca.not_after - bca.issued_at # Posture 1: short-lived attestation bounds staleness by construction. if window <= max_staleness: return Posture.SHORT_LIVED # Posture 2: revocation channel with a bounded check interval. if bca.revocation_endpoint and bca.revocation_check_interval is not None: if bca.revocation_check_interval > max_staleness: raise AttestationPostureError( f"BCA {bca.bca_id} revocation_check_interval " f"{bca.revocation_check_interval} exceeds max_staleness {max_staleness}" ) return Posture.REVOCATION_AWARE # Posture 3: dereferenceable policy reference. if bca.policy_ref_dereferenceable: return Posture.DEREFERENCE_AT_DECISION # The unguarded fourth posture: long-lived, no revocation, no dereference. raise AttestationPostureError( f"BCA {bca.bca_id} is unguarded: window={window} exceeds max_staleness=" f"{max_staleness}, no revocation_endpoint, policy_ref {bca.policy_ref!r} " f"is not dereferenceable. Refusing to authorize." ) def effective_cache_ttl(posture: Posture, bca: BrokeredCapabilityAttestation, now: datetime) -> timedelta: """Cache TTL must never outlive the attestation window or the revocation check interval.""" residual = bca.not_after - now if posture is Posture.REVOCATION_AWARE and bca.revocation_check_interval is not None: return min(residual, bca.revocation_check_interval) if posture is Posture.SHORT_LIVED: return residual if posture is Posture.DEREFERENCE_AT_DECISION: return timedelta(0) # re-dereference every decision raise AttestationPostureError(f"no cache TTL defined for posture {posture}") ```