# Which invariants prevent AAIF credential binding from silently degrading across delegated agent hops **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems where an AAIF (Agent Identity and Authorization Interoperability Framework) warrant is delegated across two or more agent instances via A2A/MCP handoffs, and where downstream tools authorize on the *effective* credential rather than the originating principal. Does not apply to single-agent, single-hop tool invocation where the warrant is minted and consumed by the same runtime. ## Core Distinction AAIF credential binding is frequently modeled as a *transport* concern: the warrant travels with the request, the receiving agent validates the signature, and authorization proceeds. This framing conflates two distinct invariants that degrade independently: - **Warrant integrity** — the cryptographic fact that the token was minted by a holder in the trust chain and has not been mutated in transit. - **Warrant binding** — the semantic fact that the *effective principal* exercising the capability at hop *N* is the same principal the warrant was scoped to at mint time, with the same attenuation constraints and the same audience. Integrity survives almost every hop. Binding does not. The failure mode below is not a forgery; it is a *valid warrant, validly signed, presented by a valid agent, exercising authority it was never scoped to grant* — because the binding between the warrant's subject and the acting agent's identity was never re-checked at the point of use. ## What Was Observed A three-hop pipeline: planner agent **P** mints a warrant `W` scoped to `subject=P`, `audience=executor-service`, `capabilities=[read:db, write:scratch]`, `attenuation_depth=2`. It delegates to worker **W1**, which delegates to sub-worker **W2**, which invokes a tool exposed over MCP. The observed trace: 1. **P** mints `W` and calls `delegate(W, W1)`. 2. **W1** receives `W`, validates the signature against the AAIF trust root, and — per a common but incorrect implementation — *re-mints* a derived warrant `W'` with `subject=W1`, `audience=executor-service`, copying `capabilities` verbatim. The re-mint preserves `attenuation_depth` by decrementing it to 1, but does not intersect capabilities with a narrower set, because the delegation call passed no `restrict` argument. 3. **W2** receives `W'`, validates against the trust root (it is validly signed by `W1`), and invokes the MCP tool. The tool's authorization check reads `W'.capabilities`, sees `write:scratch`, and permits the write. 4. The write targets a scratch path that **W2** — not **P** — controls. The audit log records `subject=W1`, `actor=W2`, and the tool sees a consistent, valid, signed warrant chain. No error is raised at any hop. The boundary condition: **capability copying without intersection at re-mint**. When an agent re-mints a derived warrant (rather than presenting the original as a bearer token), the `capabilities` field is a *set* that must be monotonically non-increasing across the chain. Re-minting without an explicit `restrict` operation preserves the set size but breaks the attenuation invariant, because the *meaning* of `write:scratch` is relative to the subject's namespace — and the subject changed. The second, subtler observation: `audience` was copied verbatim as `executor-service` at every hop. AAIF audience binding is meant to pin a warrant to a specific service, not to a *class* of services. When `W1` re-mints with the same audience string, the executor cannot distinguish "this warrant was minted for me by P" from "this warrant was minted for me by W1 on behalf of P." The audience check passes; the *provenance* check was never specified. ## Condition of Validity The invariant that must hold for AAIF delegation to be sound is: > For every hop *i* in a delegation chain, the effective warrant `W_i` presented to a relying party must satisfy: `W_i.subject == W_i.actor` (self-issued, bearer-style) **or** `W_i.subject == W_{i-1}.subject` **and** `W_i.capabilities ⊆ W_{i-1}.capabilities` **and** `W_i.audience == relying_party_id` **and** `W_i.attenuation_depth == W_{i-1}.attenuation_depth - 1`. The failure above violated *three* conjuncts simultaneously: `subject` changed (P→W1), `capabilities` did not narrow (set equality, not subset), and `audience` was a service class, not a relying-party identifier. Any one of these violations alone is sufficient to break binding; the implementation failed all three and still passed signature validation, which is precisely why the failure is non-obvious. The condition of validity is *not* "the signature verifies." It is "the relying party independently recomputes the binding predicate against the presented chain and the acting agent's attested identity." A relying party that trusts the warrant's self-declared `subject` field without cross-checking it against the agent's AAIF identity assertion (the `actor` field, backed by the agent's key) has no binding at all — it has a bearer token with extra steps. ## Decision Boundary The boundary between sound and unsound delegation is the point at which an agent decides to **re-mint** versus **forward**. These are not interchangeable: - **Forward** (present `W` unchanged to the next hop): preserves binding trivially, because `subject` never changes. The downstream relying party sees `subject=P`, `actor=W2`, and must decide whether `P`'s authority extends to `W2`'s action — a policy question, not a cryptographic one. This is the safe default. - **Re-mint** (issue `W'` with `subject=W1`): required when the downstream service needs to attribute action to the intermediate agent, or when the intermediate must be independently revocable. This is where binding breaks unless the re-mint is *attenuating by construction*. The decision rule: **re-mint only with an explicit, machine-checkable restriction argument**, and reject re-mint calls that omit it. A re-mint without `restrict` is not a delegation; it is a privilege amplification, and it should be a hard error at the minting API — not a silent capability copy. The boundary is sharp: `delegate(W, next, restrict=∅)` is a valid *no-op attenuation* (capabilities unchanged, subject unchanged — i.e., a forward), while `delegate(W, next)` with no `restrict` argument must raise. The second boundary: **audience must be a relying-party identifier, not a service class**. If the executor service is horizontally scaled, the audience must be the specific instance's AAIF identity, or the executor must re-bind the warrant to its own identity at admission and record the re-binding. A service-class audience is an invitation to cross-instance replay, which is the same binding failure wearing a different hat. ## Operational Effect The observable consequence is **silent authority drift**: the audit trail is internally consistent (every signature valid, every chain intact), the authorization decisions are locally correct (the tool did what the warrant permitted), and yet the effective principal at the point of action is not the principal the original warrant was scoped to. This is worse than a forgery, because forgery is detectable and authority drift is not — the logs look clean. The downstream effects compound: - **Revocation lag.** Revoking `P`'s warrant does not revoke `W'`, because `W'` was minted by `W1` and the revocation list is keyed on `P`. The sub-worker retains authority after the planner is decommissioned. - **Blast radius expansion.** A compromised `W2` can exercise `write:scratch` in `W1`'s namespace, not `P`'s — but the tool's audit attributes the write to `W1`, so incident response chases the wrong agent. - **Attenuation depth exhaustion.** If `attenuation_depth` is decremented on re-mint but capabilities are not intersected, the depth limit bounds chain *length* while leaving chain *authority* unbounded — the worst of both: a hard cap on hops with no cap on privilege. The guardrail that bounds this is a **binding predicate enforced at the relying party, not the minting party**. The minting party cannot be trusted to attenuate correctly (it is the agent whose authority is being delegated, and it has an incentive to over-grant). The relying party — the MCP tool, the executor service — must recompute the full chain predicate before authorizing, and must reject any chain where `capabilities` is not monotonically non-increasing, `subject` is not preserved-or-self-issued, or `audience` does not equal its own AAIF identity. This is the invariant: **binding is a relying-party obligation, and it is not satisfiable by signature verification alone.** ```python from dataclasses import dataclass from typing import FrozenSet, List, Optional class AAIFBindingError(RuntimeError): """Raised when a delegated AAIF warrant chain violates the binding predicate.""" @dataclass(frozen=True) class Warrant: subject: str # principal the warrant is scoped to actor: str # agent presenting the warrant audience: str # relying-party AAIF identity (NOT a service class) capabilities: FrozenSet[str] attenuation_depth: int issuer: str signature_valid: bool def verify_binding_chain(chain: List[Warrant], relying_party_id: str) -> None: """ Recompute the AAIF binding predicate over a delegation chain. Called by the relying party at admission. Signature validity is necessary but NOT sufficient — this function enforces the semantic invariants. """ if not chain: raise AAIFBindingError("empty warrant chain") for i, w in enumerate(chain): if not w.signature_valid: raise AAIFBindingError(f"hop {i}: invalid signature") # Audience must pin to THIS relying party, not a service class. if w.audience != relying_party_id: raise AAIFBindingError( f"hop {i}: audience {w.audience!r} != relying party {relying_party_id!r} " "(service-class audience enables cross-instance replay)" ) if i == 0: continue prev = chain[i - 1] # Subject must be preserved (forward) or self-issued (re-mint by prior actor). if w.subject != prev.subject and w.subject != prev.actor: raise AAIFBindingError( f"hop {i}: subject {w.subject!r} neither preserved from {prev.subject!r} " f"nor self-issued by actor {prev.actor!r}" ) # Capabilities must be monotonically non-increasing across the chain. if not w.capabilities.issubset(prev.capabilities): amplified = w.capabilities - prev.capabilities raise AAIFBindingError( f"hop {i}: capability amplification detected: {sorted(amplified)}" ) # Attenuation depth must strictly decrement on re-mint. if w.subject != prev.subject and w.attenuation_depth != prev.attenuation_depth - 1: raise AAIFBindingError( f"hop {i}: re-mint did not decrement attenuation_depth " f"({prev.attenuation_depth} -> {w.attenuation_depth})" ) def delegate(chain: List[Warrant], next_actor: str, restrict: Optional[FrozenSet[str]]) -> Warrant: """ Mint a derived warrant for the next hop. A re-mint WITHOUT an explicit restrict argument is a privilege amplification and must be rejected here, not silently executed as a capability copy. """ if restrict is None: raise AAIFBindingError( "delegate() called without restrict=; refusing to re-mint with copied " "capabilities (this is the AAIF binding failure mode)" ) parent = chain[-1] if not restrict.issubset(parent.capabilities): raise AAIFBindingError( f"restrict {sorted(restrict)} not a subset of parent capabilities " f"{sorted(parent.capabilities)}" ) return Warrant( subject=next_actor, actor=next_actor, audience=parent.audience, capabilities=restrict, attenuation_depth=parent.attenuation_depth - 1, issuer=parent.actor, signature_valid=True, ) ```