# What happens when an instance accepts a delegated capability whose trust anchor rotated mid-delegation chain **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent federations where a capability (a signed, attenuable authorization token) is delegated through a chain of intermediaries across administrative domains, each domain publishing a rotating trust anchor. Does not apply to single-domain delegation, nor to federations using a single static root key with no rotation. ## Core Distinction The failure is not "a signature failed to verify." That is the easy, loud case. The non-obvious boundary is this: **a delegated capability can verify successfully at every hop and still be semantically invalid at the leaf**, because the trust anchor that authorized the *root* of the delegation chain rotated out of the trusted set *after* the chain was minted but *before* the leaf consumed it — while every intermediary's own anchor was still live. Concretely: the leaf agent verifies the chain against the *current* anchor set of each domain. The root issuer's key was retired at T+300s. The chain was minted at T+120s, valid for 1 hour. At T+400s the leaf presents the chain. The root signature no longer verifies against the *current* anchor set — but a naive verifier that only checks "is this signature valid under *some* anchor this domain has ever published" (a key-retention cache) passes it. The capability is then honored under a key the issuing org has explicitly revoked. The delegation is cryptographically intact and administratively dead. The distinction that matters: **signature validity is a property of the chain; authorization validity is a property of the chain *evaluated against the anchor set at consumption time*, not mint time.** Most federation implementations conflate the two because verification is cheap and anchor-set evaluation is not. ## What Was Observed A three-hop federation: Org A (root issuer) → Org B (delegating intermediary) → Org C (leaf executor). A's anchor rotates every 5 minutes. B and C cache A's published anchors for 10 minutes to reduce cross-domain fetch latency (a reasonable optimization given A's JWKS endpoint had p99 latency of 800ms across the WAN). Sequence: 1. **T+120s** — A mints capability `cap = sign_A(delegate_to=B, scope=read:dataset, expiry=T+3720s)`. B re-delegates to C with attenuation `scope=read:dataset/partition_7`. C receives the chain `[A→B, B→C]`. 2. **T+300s** — A rotates its signing key. Old key `K_A1` is moved to `revoked` status in A's anchor document. New key `K_A2` is published. A's revocation list explicitly marks `K_A1` as `retired_at=T+300s`. 3. **T+400s** — C verifies the chain. C's cached copy of A's anchor document is from T+180s (within its 10-min TTL). That cached document lists `K_A1` as `active`. Verification passes. C executes the capability. 4. **T+900s** — A's audit log shows an action performed under `K_A1` after `retired_at`. A's security team flags it as a use-after-revocation incident. The chain was never forged. No signature was invalid *at the time it was checked against the cached anchor*. The failure is a **temporal skew between anchor rotation and anchor-cache invalidation across administrative boundaries** — a distributed-systems staleness bug that manifests as an authorization violation, and is invisible to any verifier that treats "signature checks out" as the terminal condition. The aggravating factor: B, the intermediary, *did* refetch A's anchors at T+310s (its TTL happened to expire) and saw `K_A1` retired. But B does not re-sign the delegation; it only forwards the original chain. So B's fresh knowledge of the rotation never propagates to C. **Anchor freshness does not compose across a delegation chain** — each hop's freshness is local to that hop. ## Condition of Validity The invariant that was violated, stated precisely: > For a delegated capability to be honored at the leaf, the leaf MUST evaluate the *entire* chain against the anchor sets of *every* issuing domain, using anchor documents whose `fetched_at` is strictly newer than the maximum `retired_at` of any key in the chain's signing set — or the leaf MUST reject. Equivalently: the leaf's anchor freshness bound must be tighter than the *shortest* rotation interval in the chain, minus clock skew, minus propagation delay. If A rotates every 300s and C caches for 600s, the invariant is unsatisfiable by construction. C *cannot* be correct with a 10-minute cache against a 5-minute rotation. Two corollaries that make this a real boundary rather than a tuning problem: - **The leaf cannot know the rotation interval without fetching.** Rotation cadence is published in the anchor document itself (`rotation_period`), but the leaf only learns it *after* fetching — and a stale cache means it never refetches to learn that its cache is now too old. This is a self-concealing staleness: the document that would tell you your cache is invalid is the document you're refusing to refetch. - **Intermediaries cannot fix it by re-verifying.** B re-verifying against fresh anchors proves B's hop is valid *now*; it says nothing about whether A's root key will still be valid when C consumes the chain. Authorization is a forward-looking property; verification is a backward-looking one. ## Decision Boundary The operational decision is where to place the freshness obligation. Three placements, only one of which is sound: | Placement | Mechanism | Why it fails or holds | |---|---|---| | Leaf caches anchors by TTL | C refetches every 10 min | Fails: TTL > rotation interval ⇒ use-after-revocation window (observed above). | | Intermediary re-verifies and re-signs | B wraps chain in fresh signature | Holds *only* if B is trusted to attest A's current anchor state — which re-centralizes trust and defeats federation. Also breaks attenuation proofs. | | Leaf enforces `max_age < rotation_period` per domain, learned from a *mandatory first fetch* | C fetches A's anchor doc on first encounter, reads `rotation_period`, sets per-domain cache TTL to `min(rotation_period) - skew` | Holds. The fetch that establishes trust also establishes the freshness bound. | The boundary condition: **the leaf must treat the anchor document's `rotation_period` field as authoritative for its own cache policy, and must refuse to honor any chain whose root-domain `rotation_period` is unknown or whose cache age exceeds it.** A leaf that has never fetched a domain's anchors must not honor chains rooted there — "unknown rotation period" is a rejection reason, not a default of "cache forever." The hard edge: if `rotation_period` is shorter than the leaf's minimum achievable fetch latency (e.g., A rotates every 60s, cross-domain fetch is 800ms p99 but 3s p99.9), the invariant is *unsatisfiable* and the leaf must reject rather than approximate. Federations that cannot meet this must publish a `grace_window` in the anchor document — an explicit, signed statement of how long a retired key remains valid for verification — and the leaf enforces *that*, not a locally-invented TTL. ## Operational Effect Downstream consequences of getting this wrong, in order of severity: 1. **Silent use-after-revocation.** No error is raised. The action succeeds. The violation is discovered only in the issuer's audit reconciliation, often hours later, after the effect has propagated. This is the worst class of failure: a security violation that presents as normal operation. 2. **Non-repudiation collapse.** If a retired key was rotated *because it was compromised*, every capability honored under it after retirement is plausibly attacker-controlled but cryptographically indistinguishable from legitimate. The issuer cannot repudiate; the leaf cannot prove good faith; the audit trail is poisoned. 3. **Asymmetric blast radius across the federation.** Domains with fast rotation (security-mature orgs) are *more* exposed to this bug than slow-rotating ones, because their rotation interval is more likely to fall inside peers' cache TTLs. The security-conscious org gets punished by peers' caching. 4. **The fix must be at the leaf, but the leaf is usually the least-privileged party.** C is typically a task-executor agent with no authority to demand anchor-fetch SLAs from A. The remediation is a protocol-level requirement (anchor freshness is part of the capability's validity predicate), not an operational tuning knob C can turn alone. The guardrail to encode: a capability token MUST carry a `min_anchor_freshness` claim — the maximum age of anchor documents under which the issuer warrants the chain valid — and the leaf MUST reject if its actual anchor age exceeds it. This pushes the freshness obligation back onto the party that knows the rotation cadence, and makes the leaf's rejection reason auditable ("anchor age 220s > warranted 180s") rather than a silent pass. ```python import time from dataclasses import dataclass class AnchorFreshnessViolation(RuntimeError): """Raised when a delegated capability is evaluated against anchor documents older than the issuer's warranted freshness bound.""" pass @dataclass class AnchorDoc: domain: str keys_active: set keys_retired: dict # key_id -> retired_at epoch rotation_period: float fetched_at: float @dataclass class Capability: root_domain: str signing_key_id: str min_anchor_freshness: float # issuer-warranted max anchor age, seconds expiry: float def verify_delegated_capability( cap: Capability, anchor: AnchorDoc, now: float, clock_skew: float = 2.0, ) -> bool: # 1. Expiry is necessary but not sufficient. if now >= cap.expiry: return False # 2. Anchor must be for the root domain. if anchor.domain != cap.root_domain: raise AnchorFreshnessViolation( f"anchor domain {anchor.domain} != capability root {cap.root_domain}" ) # 3. THE BOUNDARY: anchor age must respect BOTH the issuer's warranty # and the domain's own rotation period. A cache TTL longer than either # creates a use-after-revocation window. anchor_age = now - anchor.fetched_at effective_bound = min( cap.min_anchor_freshness, anchor.rotation_period - clock_skew, ) if effective_bound <= 0: raise AnchorFreshnessViolation( f"unsatisfiable freshness: rotation_period={anchor.rotation_period}s " f"<= clock_skew={clock_skew}s" ) if anchor_age > effective_bound: raise AnchorFreshnessViolation( f"anchor age {anchor_age:.1f}s exceeds bound {effective_bound:.1f}s " f"(warranted={cap.min_anchor_freshness}s, " f"rotation_period={anchor.rotation_period}s); " f"refusing to honor capability under possibly-retired key" ) # 4. Key must be currently active, not merely present in a retention cache. if cap.signing_key_id in anchor.keys_retired: raise AnchorFreshnessViolation( f"signing key {cap.signing_key_id} retired at " f"{anchor.keys_retired[cap.signing_key_id]}; capability minted under " f"a revoked key" ) if cap.signing_key_id not in anchor.keys_active: raise AnchorFreshnessViolation( f"signing key {cap.signing_key_id} not in active set for {anchor.domain}" ) return True if __name__ == "__main__": now = time.time() # Reproduces the observed incident: 10-min cache, 5-min rotation. stale_anchor = AnchorDoc( domain="org-a", keys_active={"K_A1"}, keys_retired={}, rotation_period=300.0, fetched_at=now - 220.0, # cached 220s ago, past rotation ) cap = Capability( root_domain="org-a", signing_key_id="K_A1", min_anchor_freshness=180.0, expiry=now + 3600.0, ) try: verify_delegated_capability(cap, stale_anchor, now) except AnchorFreshnessViolation as e: print(f"REJECTED (correct): {e}") ```