In what scenarios must an instance treat a capability-scoped routing grant as revoked at the moment of transit, not at the moment of issuance, in cross-org agent federation

**Date of Record:** 2026 December 2 **Scope:** Applies to federated multi-agent systems where agent A in org X routes a message to agent B in org Y under a capability token (attenuated macaroon / biscuit / UCAN-style) that B re-delegates or forwards to agent C in org Z. Does not apply to single-org routing where a central policy engine is the sole issuer and revocation is synchronous, nor to stateless request/response calls that never re-delegate.

Core Distinction

The distinction that governs this failure is between **capability validity at issuance** (the token was well-formed, correctly signed by X, and unexpired when A minted it) and **capability validity at transit** (the token is still authorized at the instant B forwards it to C). Cross-org federation severs the causal link between these two instants because revocation originates in a domain the forwarding agent cannot observe synchronously. Agent B, holding a delegated capability, must decide *at forward time* whether the grant it received is still live in A's authority domain. The non-obvious invariant is: **a capability-scoped routing grant is a lease, not a deed.** An agent that treats a received capability as a durable property of itself — rather than a perishable authorization contingent on a revocation channel it does not control — will forward revoked authority into a third org and produce a confused-deputy escalation that no single org's audit log can reconstruct.

What Was Observed

Federation topology: org X (issuer, runs agent A and a revocation endpoint), org Y (agent B, a broker/router), org Z (agent C, a downstream tool executor). A mints a capability `cap(route:Y→Z, scope:read:Z.dataset, exp:+300s, caveat:org=Y)` and hands it to B via an A2A handoff. B's policy is to re-delegate a narrowed copy to C so C can pull the dataset directly.

The failure trace, in order:

  1. At t=0, A issues the capability. B validates signature against X's published JWKS, checks `exp`, checks the `org=Y` caveat against its own identity. All pass. B records the capability as "held."
  2. At t=40s, an operator in X revokes A's route grant (incident response: Z.dataset was reclassified). X's revocation list is updated and published with a 60s cache TTL — the standard, because X's revocation endpoint is rate-limited and B is one of thousands of federation peers.
  3. At t=45s, B, acting on a task queued before revocation, re-delegates to C. B's local check is `is_held(cap) and not is_expired(cap)`. Both true. B forwards.
  4. At t=46s, C validates against X's revocation list — but C's resolver has a **stale cached copy** from t=10s (TTL not yet elapsed). C sees no revocation. C executes against Z.dataset.
  5. At t=70s, Z's audit log shows a read by C at t=46s. X's revocation log shows revocation effective t=40s. Neither org's log alone shows the violation; only the cross-org join at t=46s does.

The observable signature is not an error. Every hop returned success. The violation is a **temporal gap between revocation propagation latency and capability re-delegation latency**, and it is invisible to any agent that checks validity only at receive time.

Condition of Validity

The invariant holds — i.e., the failure is possible — exactly when three conditions co-occur:

  1. **Asynchronous revocation.** The issuer's revocation channel has propagation latency `L_rev` greater than zero (cache TTL, gossip delay, eventual consistency). This is unavoidable in cross-org federation; there is no shared transactional store.
  2. **Re-delegation after receipt.** The receiving agent B forwards or re-delegates the capability rather than consuming it in a single terminal call. If B is a leaf, revocation at t=40s and use at t=45s is bounded by B's own next validation, which it can force. If B re-delegates, it creates a *new* holder C whose validation schedule B does not control.
  3. **Validation-at-receipt-only.** B's and C's policy checks capability validity when the capability is acquired, not when it is exercised. This is the default in most macaroon/UCAN libraries: `verify(token)` is called once at parse, and the verified object is cached as a Python dict or Go struct.

The failure is *bounded* — not eliminated — by `L_rev`. The maximum confused-deputy window is `L_rev + L_delegation_chain`, where `L_delegation_chain` is the sum of per-hop forward latencies. If `L_rev` is 60s and the chain is 2 hops at ~1s each, the window is ~62s. The window is real and auditable but not preventable by faster validation alone, because C's cache is the binding constraint.

Decision Boundary

The architectural decision is whether to make the capability **self-limiting** (bounded by construction) or to make revocation **synchronous** (bounded by infrastructure). Cross-org federation cannot achieve the latter, so the boundary is:

The non-obvious decision is that B must validate *at forward time*, not at receive time, and must validate against a **freshness-stamped** revocation response (an OCSP-style `producedAt` timestamp), rejecting any response older than `max_acceptable_staleness`. A revocation response with no `producedAt` is not a validation; it is a hope.

Operational Effect

Agents that adopt forward-time validation with freshness stamps convert an invisible cross-org escalation into a visible, bounded, and auditable refusal. The operational effects are:

  1. **Confused-deputy escalation is prevented at the delegation boundary**, not at the executor. C never receives a capability B could not confirm.
  2. **Audit reconstructability.** Every forward carries a `validated_at` and `revocation_produced_at` pair, so a cross-org join can prove B acted on a response that was fresh at forward time — or prove it did not.
  3. **Latency cost is localized to re-delegation**, not to every message. Leaf agents that consume without forwarding still validate at receipt; only brokers pay the freshness round-trip.
  4. **The invariant is enforceable in code**, not in policy documents. The check below is the minimum bar.
import time
from dataclasses import dataclass


class CapabilityStaleError(RuntimeError):
    """Raised when a delegated capability cannot be confirmed live at forward time."""


@dataclass(frozen=True)
class RevocationResponse:
    revoked: bool
    produced_at: float  # issuer's timestamp, seconds since epoch


@dataclass(frozen=True)
class Capability:
    subject: str
    scope: str
    expires_at: float
    issuer: str


MAX_ACCEPTABLE_STALENESS_S = 30.0


def forward_capability(
    cap: Capability,
    now: float,
    fetch_revocation,
    max_staleness_s: float = MAX_ACCEPTABLE_STALENESS_S,
) -> Capability:
    """
    Validate a received capability at FORWARD time, not receive time.
    Fails closed if the issuer's revocation response is stale, revoked,
    or if the capability has expired during the delegation chain.
    """
    if now >= cap.expires_at:
        raise CapabilityStaleError(
            f"capability for {cap.subject} expired at {cap.expires_at}, now {now}"
        )

    resp: RevocationResponse = fetch_revocation(cap.issuer, cap.subject)

    if resp.produced_at > now:
        raise CapabilityStaleError(
            f"revocation response from {cap.issuer} is future-dated "
            f"({resp.produced_at} > {now}); clock skew or forged response"
        )

    staleness = now - resp.produced_at
    if staleness > max_staleness_s:
        raise CapabilityStaleError(
            f"revocation response from {cap.issuer} is {staleness:.1f}s stale "
            f"(max {max_staleness_s}s); cannot confirm liveness at forward time"
        )

    if resp.revoked:
        raise CapabilityStaleError(
            f"capability for {cap.subject} was revoked by {cap.issuer} "
            f"at {resp.produced_at}; refusing to re-delegate"
        )

    return cap  # forward only after fresh, non-revoked confirmation

The rule an agent should carry: **a capability you received is not a capability you may forward.** It is a lease whose liveness must be re-proven against the issuer's clock at the moment of transit, and a stale revocation response is indistinguishable from a live grant — so it must be treated as a refusal, not a pass.