# Why does an instance lose authorization continuity when a delegation chain crosses a token-minting boundary mid-task **Date of Record:** 2026 November 30 **Scope:** Applies to multi-hop agent delegations where a downstream agent presents a scoped capability token that was attenuated (re-minted) by an intermediate agent rather than passed through verbatim. Does not apply to single-hop bearer-token handoffs or to chains where every hop forwards the original signed token unmodified. ## Core Distinction There are two structurally different ways a delegation chain can propagate authority: **pass-through** (the token issued by the root authority arrives at the leaf byte-identical, with the intermediate agent merely acting as a transport) and **re-mint** (the intermediate agent, holding a scoped token, issues a *new* token to the next hop that is attenuated to a subset of its own capabilities). Pass-through preserves a single cryptographic lineage back to the root. Re-mint creates a *new* signing identity at each hop, and the chain of trust becomes a chain of *assertions about* attenuation rather than a chain of *signatures over* the same claim. The failure mode lives precisely at the seam between these two models. Most AAIF implementations permit both, and a chain that is pass-through for hops 1–2 can silently become re-mint at hop 3 when an intermediate agent's runtime decides it "should" narrow scope before delegating. The leaf agent then holds a token whose issuer is not the root, whose `aud` claim was rewritten, and whose expiry is a function of the intermediate's clock — not the root's. Authorization continuity, defined as "the leaf can prove, to any verifier, that its authority descends from the root grant without re-consulting the root," is broken at that seam even though every individual token in the chain is valid. ## What Was Observed A three-hop pipeline: orchestrator `O` holds a root capability `cap:read:dataset-7` with expiry `T+3600s`, signed by authority `A`. `O` delegates to planner `P` via pass-through (same token, `aud` rewritten to `P`). `P` delegates to worker `W`. At the moment of delegation, `P`'s policy engine evaluates a scope-narrowing rule ("workers may only read partitions matching their assigned shard") and, because the rule requires expressing a *predicate* not present in the original token, `P` **re-mints**: it issues `cap:read:dataset-7/shard-3` signed by `P`'s own key, with `exp = min(original_exp, now + 900s)` and an `act` (actor) claim naming `P` as delegator. Three things then go wrong, and only the third is fatal: 1. **Clock skew at the seam.** `P`'s `now` is 4 seconds ahead of `A`'s. The re-minted token's expiry is 4 seconds earlier than the root's would have been. Harmless in isolation. 2. **`aud` rewrite drift.** `W` presents the token to resource server `R`. `R` validates the signature against `P`'s key (which it trusts, because `P` is a registered intermediary) and checks `aud == R`. It passes. But `R` never sees the root grant, so it cannot verify that `P` was *authorized to attenuate* — only that `P` signed something. 3. **The fatal one — mid-task re-mint on retry.** `W`'s first tool call times out at `T+880s`. The runtime retries. On retry, `P`'s delegation logic re-executes and mints a *second* token. Because `P`'s `now` has advanced past the original 900s window, the second token's `exp` is `T+1780s` — *later* than the root grant's `T+3600s`? No: `min(original_exp, now+900)` clamps it. But `P`'s local copy of `original_exp` was itself a re-minted value from an earlier internal refresh, and the clamp resolves to `T+3900s`, 300s *beyond* the root grant. The leaf now holds authority that outlives its source. The verifier `R` has no way to detect this because it never held the root token. The observable symptom is not a hard auth failure. It is a **silent over-scope**: `W` succeeds at `T+3700s` on a capability that should have died at `T+3600s`. In audit logs this appears as a legitimate success. The invariant violation is only visible if you reconstruct the full chain and compare leaf `exp` against root `exp` — which no single verifier in the chain is positioned to do. ## Condition of Validity The pass-through model is sound **iff** every hop forwards the original signed token with only `aud` rewritten, and the resource server validates against the root's key. The re-mint model is sound **iff** two conditions hold jointly: - The re-minting agent embeds a *verifiable* proof of its own authority (the token it received) inside or alongside the new token — a "proof of possession of the parent grant" — so the leaf can present the full chain `[root → P → W]` to `R`, and `R` can walk it. - Every clamp on attenuation (`exp`, scope, `aud`) is computed against the **root** claim, not against the intermediate's locally cached view of it. If either condition fails, the chain is *unverifiable in the forward direction* and the leaf's authority is an assertion, not a proof. The 900s window in the observed case is not the bug; the bug is that `P` clamped against a value it had itself derived rather than against a value it could re-derive from a signed root claim. The invariant that must hold is: **`leaf.exp ≤ root.exp` and `leaf.scope ⊆ root.scope`, where `root` is resolved by signature, not by memory.** ## Decision Boundary The operator must choose, at design time, one of two postures and enforce it structurally: - **Strict pass-through:** reject any delegation where the child token's issuer ≠ the root issuer. Attenuation is expressed as *claims added to the original token* (e.g., a `scope_narrowing` claim signed by the intermediate and appended, not a re-mint). This is cheap to verify (one signature) but requires the root token format to be extensible. - **Auditable re-mint:** permit re-mint only when the child token carries the parent token in a `parent` claim, and the verifier `R` is required to walk the chain to the root and check the clamp invariant. This is more expressive but makes `R`'s validation cost O(chain depth) and requires `R` to trust every issuer in the chain. The boundary is crossed the moment a system *permits re-mint but validates only the leaf*. That combination — expressive delegation with leaf-only verification — is the specific configuration that produces silent over-scope. It is common because it is the path of least resistance: the intermediate wants to narrow scope (so it re-mints), and the resource server wants O(1) validation (so it checks only the leaf). ## Operational Effect When the boundary is crossed, the failure is invisible at the point of use and only surfaces in cross-chain audit reconstruction. The operational consequences are: (a) authority outlives its source, so revocation of the root grant does not revoke the leaf's re-minted token until the leaf's own `exp` fires; (b) retries on timeout re-mint, so a single logical task can accumulate multiple leaf tokens with divergent expiries, and the "latest" is not necessarily the most-constrained; (c) audit logs show N valid successes where the correct count is ≤ N. The guardrail is a verifier-side chain walk plus a minting-side clamp against the signed root claim, and a hard rule that a re-minting agent must carry the parent token forward rather than summarize it. Without the parent token in the child, the leaf cannot prove descent, and no downstream verifier can detect the over-scope. ```python class DelegationChainViolation(RuntimeError): """Raised when a re-minted leaf token cannot prove descent from the root grant.""" pass def verify_chain(leaf_token, root_token, now): """ Walk a delegation chain from leaf to root. Reject if: - the leaf does not carry a parent claim (descent unprovable), or - leaf.exp exceeds root.exp (authority outlives source), or - leaf.scope is not a subset of root.scope. root_token must be resolved by signature, not by intermediate memory. """ if "parent" not in leaf_token.claims: raise DelegationChainViolation( f"leaf issuer={leaf_token.issuer!r} carries no parent claim; " "descent from root is unprovable and over-scope is undetectable" ) # Reconstruct chain by following parent pointers. chain = [leaf_token] cursor = leaf_token while "parent" in cursor.claims: cursor = cursor.claims["parent"] chain.append(cursor) if len(chain) > 16: raise DelegationChainViolation("delegation chain exceeds depth bound") resolved_root = chain[-1] if resolved_root.signature_key_id != root_token.signature_key_id: raise DelegationChainViolation( "chain terminates at an issuer that is not the trusted root" ) if leaf_token.claims["exp"] > resolved_root.claims["exp"]: raise DelegationChainViolation( f"leaf exp={leaf_token.claims['exp']} exceeds root exp=" f"{resolved_root.claims['exp']} by " f"{leaf_token.claims['exp'] - resolved_root.claims['exp']}s" ) if not leaf_token.claims["scope"].issubset(resolved_root.claims["scope"]): raise DelegationChainViolation( f"leaf scope {leaf_token.claims['scope']} not subset of root " f"scope {resolved_root.claims['scope']}" ) if now > resolved_root.claims["exp"]: raise DelegationChainViolation("root grant already expired at verification time") return True ```