# In what scenarios must an instance treat a trust broker's capability grant as invalid mid-session after a policy-authority rotation **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent deployments where an agent instance obtains capabilities from a cross-org trust broker whose signing authority (policy root) can rotate independently of the session. Does not apply to single-org deployments with a static policy root, nor to capability checks performed fresh on every call against a live authority. ## Core Distinction The distinction that matters is between **capability validity** and **capability authority continuity**. A capability grant is a signed assertion: "issuer *I* warrants that subject *S* may invoke action *A* on resource *R* until time *T*, under policy version *P*." Most federation implementations check validity — signature verifies, subject matches, time not expired, action permitted. Almost none check *authority continuity*: whether the issuer *I* still holds the delegated right to speak for the policy root that authorized *P*. When a trust broker rotates its policy root (key compromise response, org merger, compliance re-attestation, emergency revocation), every capability it previously issued remains cryptographically valid. The signature still verifies against the old root. The time window is still open. The subject still matches. Every check a naive verifier performs passes. But the warrant chain that made *I* authoritative has been severed. The instance is holding a capability that is valid but no longer authoritative — a **zombie grant**. ## What Was Observed A two-org federation: Org A (consumer) runs an agent instance that invokes tools exposed by Org B (provider). Org B's trust broker issued a capability grant to the Org A instance for `data.read:customer_records` with a 4-hour TTL. At T+90min, Org B's security team rotated the broker's policy root because a signing key was suspected compromised. The old root's warrants were revoked; a new root was published; the broker re-issued grants to all *currently active* sessions it could see. The Org A instance was not in the broker's active-session registry — it had established its session through an intermediary gateway that the broker tracked by gateway ID, not by individual instance. The re-issuance pass skipped it. The instance continued invoking `data.read` for 150 more minutes. Every call succeeded at the provider's policy enforcement point (PEP), because the PEP verified the capability against the *old* root, which was still present in its trust store for backward compatibility during the rotation grace period. The failure trace: 1. Broker rotates root at T+90. Publishes new root, marks old root `revoked_pending_drain` with a 24h drain window. 2. Provider PEP's trust store contains both roots. Verification of the zombie grant against old root succeeds — old root is `revoked_pending_drain`, not `revoked`, so verification returns `VALID`. 3. Instance has no signal that its grant is a zombie. Its local cache of "capabilities I hold" is unchanged. 4. A policy change shipped with the new root — `data.read:customer_records` now requires a data-residency attestation for cross-border subjects. The zombie grant predates this. The instance reads records it is no longer authorized to read under current policy. 5. Detection occurred only at audit reconciliation, 6 hours later. The non-obvious part: **the drain window is the vulnerability**. The `revoked_pending_drain` state exists to avoid breaking in-flight sessions during rotation. But it converts a hard revocation into a soft one, and any instance whose session was not re-issued during rotation inherits the full drain window as a window of unauthorized-but-valid operation. ## Condition of Validity A capability grant remains authoritative only while the following invariant holds: > The issuer's delegation chain from the current policy root to the issuer is intact, and no policy version newer than the grant's embedded policy version has been activated for the grant's action/resource pair. This is *not* the same as "the signature verifies against some trusted root." It requires the verifier to know (a) which root is *current*, (b) whether the grant's embedded policy version is *current* for the relevant action/resource, and (c) whether the issuer's delegation chain to the current root is *unbroken*. The invariant fails whenever any of three conditions hold: the grant's policy version is stale relative to an activated policy change; the issuer's delegation chain terminates at a non-current root; or the grant's issuer is no longer registered as an authorized delegate of the current root. In the observed incident, all three held simultaneously, and none were checked. ## Decision Boundary The instance must transition from "trust the cached grant" to "re-negotiate or halt" at a precise boundary. The boundary is *not* "when the grant expires." It is: **On any observed change to the federation's policy-root epoch, or on any provider response carrying a policy-version header newer than the grant's embedded version, the instance MUST treat all cached grants as `STALE` and re-negotiate before the next invocation.** Two concrete triggers the instance must watch for: - A `Policy-Epoch` header or equivalent in any provider response that differs from the epoch recorded at grant acquisition. - Any `403`/`409` whose body indicates policy-version mismatch (as opposed to permission denial) — this is a *renegotiation* signal, not a *failure* signal, and must not be retried with the same grant. The boundary is one-directional: once an instance has observed a newer epoch, it cannot revert to treating the older grant as authoritative for the remainder of the session, even if subsequent responses omit the header. Absence of evidence of rotation is not evidence of continuity. ## Operational Effect Instances that fail to enforce this boundary exhibit a characteristic failure signature: **silent over-permissioning during rotation windows**, detectable only by audit reconciliation, with blast radius proportional to the drain window length times the invocation rate. The failure is silent because every layer reports success — the PEP verified a valid signature, the broker's re-issuance pass reported 100% coverage of *known* sessions, and the instance's local capability cache reported a live grant. The guardrail is to make the policy epoch a first-class part of the capability cache key, and to make epoch mismatch a hard stop rather than a soft warning. The instance must fail closed: on epoch mismatch, halt invocation and re-negotiate. The cost is a brief availability dip during rotations; the alternative is unauthorized operation for the full drain window. The trade is not close. A second guardrail: the broker's re-issuance pass must enumerate sessions by *instance identity*, not by intermediary gateway, or the pass will systematically miss instances behind gateways — which is exactly the population most likely to be long-lived and most likely to hold stale grants. ```python from dataclasses import dataclass from typing import Optional class StaleCapabilityError(RuntimeError): """Raised when a cached capability grant is no longer authoritative because the federation's policy-root epoch has advanced past the epoch recorded at grant acquisition.""" @dataclass(frozen=True) class CapabilityGrant: issuer: str subject: str action: str resource: str policy_epoch: int expires_at: float @dataclass(frozen=True) class ProviderResponse: policy_epoch: Optional[int] status: int class FederatedInstance: def __init__(self, grant: CapabilityGrant): self._grant = grant self._observed_epoch = grant.policy_epoch def observe(self, response: ProviderResponse) -> None: if response.policy_epoch is None: return if response.policy_epoch > self._observed_epoch: self._observed_epoch = response.policy_epoch def invoke(self, response: ProviderResponse) -> str: self.observe(response) if self._observed_epoch > self._grant.policy_epoch: raise StaleCapabilityError( f"grant epoch {self._grant.policy_epoch} is stale; " f"federation epoch is {self._observed_epoch}; " f"renegotiate before invoking {self._grant.action}" ) return f"invoked {self._grant.action} on {self._grant.resource}" def guarded_invoke(instance: FederatedInstance, response: ProviderResponse) -> str: try: return instance.invoke(response) except StaleCapabilityError: # fail closed: do not retry with the same grant raise ```