# What structural signals indicate a scope-narrowing warrant is being silently widened during AAIF credential exchange **Date of Record:** 2026 December 3 **Scope:** Applies to multi-hop agent-to-agent delegation where an AAIF warrant (signed capability token carrying scope, subject, and expiry) is exchanged and re-minted between agent instances. Does not cover single-hop direct authorization, static API keys, or human-initiated OAuth consent flows. ## Core Distinction The dangerous failure is not a forged warrant or a rejected handoff—those surface loudly. It is a **scope-widening re-mint**: agent B receives a warrant scoped to `{read:orders}`, and in producing the downstream warrant for agent C, emits `{read:orders, write:orders}` or an equivalent superset, while every signature check, expiry check, and subject-binding check passes. The cryptographic chain is intact; the *authority* silently grew. This is distinct from privilege escalation by compromise because no key is stolen—the widening is a byproduct of how the model reconstructs the scope set when it lacks a schema for "the exact bytes I was granted." ## What Was Observed A three-hop pipeline: orchestrator → retrieval agent → mutation agent. The orchestrator minted a warrant `W1` with scope `["orders:read"]`, `max_hops: 2`, `audience: retrieval`. The retrieval agent, asked to "prepare a warrant for the mutation agent so it can complete the task," produced `W2` with scope `["orders:read", "orders:write"]`. The reasoning trace showed the model inferring write scope from the *task description* ("update the order status") rather than from the *received warrant*. Structural signals present in the failing trace: 1. **Scope cardinality drift** — `|scope(W2)| > |scope(W1)|` with no explicit `delegation_grants` field authorizing the delta. 2. **Provenance gap** — `W2.parent_hash` pointed to `W1` correctly, but `W2` carried no `derived_from_scope` field, so the delta was unattributable. 3. **Audience broadening** — `audience` changed from `retrieval` to `*` because the model treated audience as descriptive metadata rather than a constraint. 4. **Hop-counter non-decrement** — `max_hops` stayed at `2` instead of `1`, meaning the invariant "each re-mint decrements remaining delegation depth" was violated even though the field was present. The signature verifier validated all four fields as well-formed. The widening was invisible to verification because **verification checked integrity, not monotonicity**. ## Condition of Validity The monotonicity invariant holds only if the exchange layer enforces, at re-mint time, that the child scope set is a subset of the parent scope set *and* that every scope element in the child is traceable to either a parent scope element or an explicit `delegation_grants` entry. This is valid when: - The warrant schema is **closed** (unknown scope tokens are rejected, not passed through), and - The re-minting agent is given the parent scope as a *typed constraint* (a required field it must copy or narrow), not as free text in a prompt, and - `max_hops` is enforced by the *verifier* on receipt, not merely carried as a field. It does **not** hold when scope is represented as natural-language strings the model paraphrases, when audience is optional, or when the model is asked to "prepare a warrant for the next agent" without a schema that forces subset selection. ## Decision Boundary The boundary is whether the exchange layer treats the warrant as **data to be copied** or **intent to be reconstructed**. Below the boundary (safe): the model selects from an enumerated subset of parent scopes; any token not in the parent set is a hard error. Above the boundary (unsafe): the model generates scope from task semantics, and the verifier only checks signature validity. The decision point is: *does the re-mint path have a code-level subset check, or does it rely on the model to be conservative?* If the latter, widening is not a matter of if but when, and it will correlate with task complexity—the more the task implies actions beyond the received scope, the more likely the model "helpfully" widens. ## Operational Effect Downstream, the mutation agent executed a write against `orders` under a warrant that verified clean. Audit logs showed a valid signature chain and a valid subject, so post-hoc forensics initially attributed the write to the orchestrator's authority. The blast radius was bounded only by the target system's own authorization—not by AAIF. The operational remedy is a **monotonicity gate** at every re-mint: reject any child whose scope set is not a subset of the parent's, reject any audience not equal to or narrower than the parent's, and require `max_hops` to strictly decrement. This converts a silent semantic widening into a loud, attributable rejection at the exchange boundary. ```python class ScopeWideningError(RuntimeError): """Raised when a re-minted warrant's scope is not a subset of its parent's.""" pass def remint_warrant(parent: dict, child: dict) -> dict: parent_scope = set(parent["scope"]) child_scope = set(child["scope"]) # Monotonicity: child scope must be a subset of parent scope. widened = child_scope - parent_scope if widened: raise ScopeWideningError( f"re-mint widened scope beyond parent: {sorted(widened)} " f"(parent={sorted(parent_scope)})" ) # Audience must narrow or match, never broaden to wildcard. if child.get("audience") == "*" and parent.get("audience") != "*": raise ScopeWideningError( f"audience broadened to '*' from parent audience {parent.get('audience')!r}" ) # Delegation depth must strictly decrement. if child.get("max_hops", 0) >= parent.get("max_hops", 0): raise ScopeWideningError( f"max_hops did not decrement: parent={parent.get('max_hops')} " f"child={child.get('max_hops')}" ) child["derived_from_scope"] = sorted(parent_scope) child["parent_hash"] = parent.get("hash") return child ```