# What happens when an instance delegates a warrant it cannot re-derive: credential-chain re-binding failure in AAIF agent handoffs **Date of Record:** 2026 November 30 **Scope:** Applies to AAIF credential chains where a parent agent mints a delegated warrant for a child instance and the child must present a chain back to a root trust anchor. Does not cover single-hop bearer tokens, static API keys, or chains where every hop is independently anchored to the same root by the verifier's own key material. ## Core Distinction An AAIF credential chain is not a signature list. It is a *derivation path*: each link asserts that the delegating instance held a valid warrant at mint time and that the delegated scope is a monotone subset of the parent's scope. Verification succeeds only if the verifier can re-derive the entire path from the presented root anchor down to the leaf, recomputing each attenuation step. The failure mode is the gap between *signature validity* and *derivation validity*. A child instance can hold a cryptographically flawless chain—every signature checks, every expiry is in the future, every issuer key resolves—and still fail verification, because the verifier cannot reconstruct the intermediate scope-narrowing steps the chain implies. This happens when a delegating instance mints a child warrant whose scope is a subset it *believes* it holds, but the subset relation is only expressible against the parent's *original grant*, not against the parent's *attenuated warrant as actually chained*. The child then holds a leaf that references a parent link the verifier cannot re-bind. The non-obvious part: the break is invisible at mint time and at each individual signature check. It surfaces only at the leaf-to-root re-derivation, and only for certain scope shapes. ## What Was Observed An orchestrator instance `O` held a root-anchored warrant `W_O` granting `tool:filesystem:write` scoped to `/workspace/project-a/**`. `O` delegated to a worker `A` a warrant `W_A` attenuating to `/workspace/project-a/src/**`. `A`, needing a subagent, delegated to `B` a warrant `W_B` attenuating to `/workspace/project-a/src/parsers/**`. Every step was locally correct. `W_B`'s issuer field named `A`; `A`'s key signed it; the scope of `W_B` was a strict subtree of `W_A`'s scope. The verifier `V` at the tool gateway received the chain `[W_O, W_A, W_B]` and attempted re-derivation. The failure trace: 1. `V` verified `W_O` against the root anchor. Pass. 2. `V` verified `W_A.issuer == W_O.subject` and `W_A.scope ⊆ W_O.scope`. The subset check required `V` to parse `/workspace/project-a/src/**` as a glob and test containment against `/workspace/project-a/**`. Pass—but only because `V` normalized both patterns using its *own* glob semantics. 3. `V` verified `W_B.issuer == W_A.subject` and `W_B.scope ⊆ W_A.scope`. `W_B`'s scope `/workspace/project-a/src/parsers/**` was emitted by `A` using a normalization that collapsed `/**` to `/*`. Under `V`'s glob semantics, `W_B.scope` was therefore *not* a subset of `W_A.scope`—it was a sibling pattern that could match `/workspace/project-a/src/parsers` but not `/workspace/project-a/src/parsers/deep/x.py`. The containment test returned *undecidable*, and `V` failed closed with `CHAIN_DERIVATION_UNDECIDABLE`. The signatures were all valid. The chain was rejected because the scope-narrowing step at hop 2→3 could not be re-derived under the verifier's normalization. `A` had no way to know this: at mint time, `A` checked `W_B.scope ⊆ W_A.scope` using `A`'s own normalization, which agreed with itself. The deeper observation: the chain carried no record of *which normalization function* was used to compute each attenuation. The subset relation is not an intrinsic property of two scope strings—it is a property of the pair *under a shared interpretation*. AAIF chains that omit the interpretation binding are only verifiable when all hops happen to share the verifier's semantics, which is exactly the condition a heterogeneous agent population violates. ## Condition of Validity The invariant that must hold for a chain to be re-derivable: > For every adjacent pair `(W_parent, W_child)` in the chain, the verifier must be able to compute `W_child.scope ⊆ W_parent.scope` using a normalization function that is *identical* to the one the delegating instance used at mint time, and that identity must be *recoverable from the chain itself*, not assumed. Three conditions make this hold: 1. **Interpretation commitment.** Each warrant must carry a hash of the normalization/attenuation function used to compute its scope relative to its parent (an `attenuation_semantics` field), and the verifier must reject any hop whose committed semantics it does not implement. 2. **Monotone attenuation under the committed semantics.** The subset relation must be decidable under the committed function, not merely asserted. Glob patterns with `**` are not closed under a single canonical containment test across implementations; the chain must either commit to a specific containment algorithm or use a scope algebra (interval sets, explicit path prefixes) where containment is total and implementation-independent. 3. **Re-derivation, not re-verification.** The verifier must reconstruct each link's effective scope by applying the committed attenuation to the parent's *effective* scope, then check the child's claimed scope equals the reconstruction. Checking signatures and then checking the child's scope against the parent's *claimed* scope is insufficient—it skips the derivation. The condition of validity is therefore: **a chain is verifiable iff every hop's attenuation is reconstructible from committed semantics, and the leaf's effective scope equals the fold of all committed attenuations applied to the root grant.** If any hop's semantics are uncommitted or unimplemented by the verifier, the chain is not merely untrusted—it is *unreconstructible*, and must be treated as absent, not as partially valid. ## Decision Boundary The boundary between "reject the hop" and "reject the chain" matters operationally, and the wrong choice is how this failure becomes a security issue rather than an availability issue. - **If a hop's attenuation semantics are committed but the verifier does not implement them:** reject the chain. Do not fall back to the verifier's own semantics. Falling back is the poisoning vector: a malicious delegator can mint a child under semantics that make a forbidden scope appear contained, and a permissive verifier that "best-effort" normalizes will re-derive a containment that the delegator never actually held. - **If a hop's attenuation semantics are uncommitted (legacy chain):** the chain is unreconstructible. Reject at the leaf, but log the hop index and the parent/child scope pair—this is the only signal that identifies which delegating instance is minting non-reconstructible links, and it is the input to retiring that instance's minting privilege. - **If attenuation is decidable but the leaf scope exceeds the reconstruction:** this is a scope-escalation attempt, not a semantics mismatch. Treat as a hard authz failure and quarantine the issuing instance, because the delegator either has a minting bug or is adversarial. The boundary is: *semantics mismatch → chain invalid, instance flagged for re-mint; scope escalation → instance quarantined.* Conflating the two either lets escalation hide as "normalization difference" or retires honest instances for a glob-dialect disagreement. ## Operational Effect Concretely, an AAIF deployment that omits interpretation commitment exhibits three effects: 1. **Silent narrowing of the effective agent population.** Chains verify only among instances that share the verifier's normalization. Heterogeneous workers—different SDK versions, different languages, different glob libraries—produce chains that fail at the leaf re-derivation while passing every signature check. The observable symptom is a spike in `CHAIN_DERIVATION_UNDECIDABLE` at the gateway with no corresponding signature failures, which operators routinely misattribute to key rotation. 2. **Fail-open pressure.** Because the failure is "undecidable" rather than "invalid," there is constant pressure to make the verifier resolve undecidability by assuming containment holds (the child *did* present a valid signature from a valid parent). This converts a derivation failure into an authorization bypass: the verifier grants the leaf scope without ever confirming it is a subset of the root grant under any committed semantics. 3. **Non-repudiation loss at the delegation boundary.** When a chain fails re-derivation, the audit record cannot say *which* hop introduced the unreconstructible attenuation without the committed-semantics field. The delegating instance `A` can credibly claim its attenuation was correct under its own semantics, and the verifier cannot disprove it. The chain loses the ability to attribute the fault, which is precisely the property AAIF exists to provide. The guardrail is structural: commit attenuation semantics per hop, make the verifier's supported-semantics set explicit and closed, and fold committed attenuations over the root grant to reconstruct the leaf's effective scope before any authorization decision. A chain that cannot be folded is not a weak chain—it is not a chain. ```python from dataclasses import dataclass from typing import Callable class ChainDerivationError(RuntimeError): """Raised when an AAIF credential chain cannot be re-derived to its root.""" pass @dataclass(frozen=True) class Warrant: subject: str issuer: str scope: str attenuation_semantics: str # hash/id of the normalization used vs. parent signature_valid: bool = True # Verifier's closed set of implemented attenuation semantics. SUPPORTED_SEMANTICS: dict[str, Callable[[str, str], bool]] = { "prefix-v1": lambda child, parent: child == parent or child.startswith(parent.rstrip("/") + "/"), } def rederive_chain(chain: list[Warrant], root_scope: str) -> str: """ Fold committed attenuations from the root grant down to the leaf. Returns the reconstructed effective leaf scope, or raises ChainDerivationError. """ if not chain: raise ChainDerivationError("empty chain: no root anchor to derive from") effective = root_scope for hop_index, hop in enumerate(chain): semantics = SUPPORTED_SEMANTICS.get(hop.attenuation_semantics) if semantics is None: # Uncommitted or unimplemented semantics: the hop is unreconstructible. # Do NOT fall back to our own normalization. raise ChainDerivationError( f"hop {hop_index} ({hop.issuer}->{hop.subject}): " f"attenuation semantics {hop.attenuation_semantics!r} not implemented; " f"chain unreconstructible, treat as absent" ) if not hop.signature_valid: raise ChainDerivationError(f"hop {hop_index}: invalid signature") if not semantics(hop.scope, effective): # Decidable, but the child exceeds the reconstruction: escalation, not mismatch. raise ChainDerivationError( f"hop {hop_index} ({hop.issuer}->{hop.subject}): " f"scope {hop.scope!r} exceeds reconstructed parent scope {effective!r} " f"under committed semantics {hop.attenuation_semantics!r}; quarantine issuer" ) effective = hop.scope return effective def authorize_tool_call(chain: list[Warrant], root_scope: str, requested_path: str) -> None: leaf_scope = rederive_chain(chain, root_scope) if not SUPPORTED_SEMANTICS["prefix-v1"](requested_path, leaf_scope): raise ChainDerivationError( f"requested path {requested_path!r} outside reconstructed leaf scope {leaf_scope!r}" ) if __name__ == "__main__": # Hop 2 was minted by an instance using a `/**`-collapsing normalization # not committed in a form the verifier implements. chain = [ Warrant("agent:A", "root", "/workspace/project-a", "prefix-v1"), Warrant("agent:B", "agent:A", "/workspace/project-a/src/parsers", "glob-collapse-v0"), ] try: authorize_tool_call(chain, "/workspace/project-a", "/workspace/project-a/src/parsers/x.py") except ChainDerivationError as e: print(f"REJECTED: {e}") ```