# Why does an instance lose its delegated authority when a scoped capability token is re-issued mid-handoff? **Date of Record:** 2026 December 3 **Scope:** Applies to AAIF-style delegated credential chains where an orchestrator agent issues a scoped capability token to a subordinate instance, and that token is refreshed or re-scoped during an active handoff. Does not apply to stateless bearer-token APIs without delegation chains, nor to single-instance tool calls where no re-issuance occurs. ## Core Distinction The failure is not "the token expired" and it is not "the signature is invalid." Both of those are loud, catchable failures. The boundary condition here is subtler: **a re-issued capability token is cryptographically valid, correctly signed by the delegating agent, carries a superset or equivalent scope, and is rejected by the downstream verifier because the delegation chain's *attenuation proof* no longer matches the parent warrant that the verifier cached at first contact.** In other words: identity continuity is preserved (same `sub`, same key), authority scope is preserved (same or narrower `scp`), but the *provenance of the attenuation* — the signed statement that this child warrant is a legal narrowing of the parent — is broken because the parent warrant was itself rotated. The verifier holds warrant `W_parent@v1`; the new token was minted under `W_parent@v2`; the chain check fails on `parent_digest` mismatch, not on signature or expiry. The agent appears to "lose its authority" while holding a token that every individual check would accept in isolation. ## What Was Observed A three-tier delegation: orchestrator `O` → worker `W` → tool-proxy `T`. `O` holds a root warrant. `O` issues `W` a scoped token `cap(W, scope=tool:read+write, parent=W_root@v1)`. `W` presents it to `T`, which verifies and caches the resolved chain `[W_root@v1 → cap_W]` keyed by `(sub=W, jti)`. Mid-task, `O` performs a routine warrant refresh (root rotation for key hygiene), producing `W_root@v2`. `O` re-issues `W`'s token as `cap(W, scope=tool:read+write, parent=W_root@v2)` with a fresh `jti`. `W` continues, presents the new token to `T`. Observed trace: 1. `T` verifies signature of `cap_W` → **valid**. 2. `T` checks `exp` → **valid** (fresh). 3. `T` checks `scope ⊇ requested` → **valid** (identical). 4. `T` resolves `parent=W_root@v2`, compares against cached chain anchor `W_root@v1` → **`parent_digest` mismatch**. 5. `T` rejects with `DELEGATION_CHAIN_MISMATCH`, even though the token is a legal, freshly-minted, correctly-scoped credential. The agent's *reasoning* is unaffected — it still believes it holds `tool:read+write`. Its *next tool call* fails. Because the failure is a chain-verification error rather than an auth-expiry error, the agent's retry logic (which keys on `401`/`token_expired`) does not fire. The agent retries with the same token, gets the same `403 DELEGATION_CHAIN_MISMATCH`, and — critically — its planner interprets a persistent `403` as "capability was revoked," triggering a scope-renegotiation branch that was never intended. The task diverges. ## Condition of Validity The invariant that must hold for safe re-issuance is: > A capability token may be re-issued under a rotated parent warrant **only if the verifier's cached chain anchor is invalidated in the same atomic step as the new token's first presentation**, or the new token carries a `chain_epoch` that the verifier treats as a cache-busting key. Two conditions make the failure reachable: - **C1 — Asymmetric cache lifetime.** The verifier caches resolved chains (for latency) with a TTL independent of the parent warrant's rotation schedule. If `cache_ttl(chain) > rotation_interval(parent)`, a window exists where the cached anchor is stale. - **C2 — Silent parent rotation.** The root warrant is rotated without a revocation/notification event propagated to verifiers that have cached derived chains. Rotation is treated as a signing-key concern (local to `O`), not a *chain-topology* concern (global to all verifiers). The failure is **not** reachable when the verifier re-resolves the full chain on every presentation (no cache), or when parent rotation emits a chain-invalidation broadcast that flushes `(sub, jti)` cache entries. It is also not reachable if the re-issued token preserves the original `parent_digest` and the rotation is expressed as a *key rotation attestation* rather than a new parent warrant identity — i.e., the parent's identity is stable while its signing key changes. ## Decision Boundary The architect must choose, per delegation depth, between two models: - **Stable-parent model:** Parent warrant identity is immutable for the delegation's lifetime; key rotation is an internal attestation (`kid` change, same `parent_digest`). Re-issuance never breaks the chain. Cost: parent warrants cannot be re-scoped or re-rooted mid-delegation, and revocation must be explicit rather than achieved by rotation. - **Rotating-parent model:** Parent warrants rotate freely; every derived token embeds a `chain_epoch` and verifiers MUST treat epoch change as a cache-invalidation trigger, re-resolving the chain synchronously before honoring the token. The boundary is crossed — and the failure appears — when a system *rotates parents* (choosing the second model's flexibility) but *verifiers cache chains* (implementing the first model's assumption of immutability). The two halves of the system hold contradictory invariants. This is the non-obvious part: neither half is wrong in isolation; the composition is what fails. The guardrail is a **chain-epoch contract**: `chain_epoch` is monotonic per `(root_warrant_id)`, embedded in every derived token, and the verifier's cache key is `(sub, jti, chain_epoch)`. A token whose `chain_epoch` exceeds the cached anchor's forces a synchronous re-resolution. Additionally, `DELEGATION_CHAIN_MISMATCH` must be classified as a **retryable-after-refresh** signal, distinct from `capability_revoked`, so the agent's planner does not enter a renegotiation branch on a transient chain-topology event. ## Operational Effect Without the epoch contract, the observable behavior is a *silent authority cliff*: the agent retains its belief in its scope, its token is valid by every local check, and yet every delegated call fails with a chain error that its recovery logic misclassifies. The compounding effect across a multi-step plan is that the agent re-derives a narrower scope from the false "revoked" signal, permanently downgrading its own authority for the remainder of the task — a self-inflicted capability loss caused entirely by a cache/rotation race in the verifier, not by any decision the agent made. The correct operational posture: treat any `DELEGATION_CHAIN_MISMATCH` as a **topology event, not an authority event**. Halt the current step, force a chain re-resolution (or request a fresh token with an incremented `chain_epoch`), and only then resume — never renegotiate scope downward on the basis of a chain error. ```python class DelegationChainMismatch(RuntimeError): """Raised when a re-issued capability token's parent warrant does not match the verifier's cached chain anchor, despite valid signature/scope.""" pass class ChainAnchorCache: def __init__(self): # key: (sub, jti) -> (parent_digest, chain_epoch) self._anchors = {} def resolve_and_verify(self, token, presented_epoch): key = (token.sub, token.jti) cached = self._anchors.get(key) # Local checks pass: signature, expiry, scope superset. if not token.signature_valid(): raise DelegationChainMismatch("signature invalid") # loud, distinct if cached is not None: cached_parent, cached_epoch = cached if token.parent_digest != cached_parent: # The non-obvious boundary: token is valid, chain anchor is stale. if presented_epoch <= cached_epoch: raise DelegationChainMismatch( f"parent_digest {token.parent_digest} != cached " f"{cached_parent} at chain_epoch {cached_epoch}; " f"presented_epoch {presented_epoch} does not bust cache" ) # Epoch advanced: force synchronous re-resolution. self._anchors[key] = (token.parent_digest, presented_epoch) return "resolved" self._anchors[key] = (token.parent_digest, presented_epoch) return "resolved" def handle_tool_call(agent, cache, token, presented_epoch): try: cache.resolve_and_verify(token, presented_epoch) except DelegationChainMismatch as e: # Classify as topology event, NOT authority revocation. agent.halt_step() agent.request_fresh_token(bump_chain_epoch=True) raise DelegationChainMismatch( f"chain topology changed mid-handoff; halted and requested " f"re-issue with incremented chain_epoch: {e}" ) return agent.execute(token) ```