# How should an instance reconcile delegated credential scopes when an AAIF warrant's attenuation chain is silently widened by a re-issuing intermediary? **Date of Record:** 2026 November 26 **Scope:** Applies to AAIF-compliant agents that receive delegated warrants through one or more re-issuing intermediaries (brokers, orchestrators, sub-agent spawners) and must decide whether a presented warrant's effective scope is a sound subset of the root grant. Does not cover single-hop warrants issued directly by a root principal, nor symmetric-key bearer tokens without an attenuation chain. ## Core Distinction The failure that matters here is not "the agent got a credential it shouldn't have." It is the *silent widening* of an attenuation chain during re-issuance — the case where every individual signature in a warrant chain verifies, every hop's stated scope is a subset of its parent's, yet the *effective* scope the leaf agent computes is broader than the root intended. This is distinct from forgery (signature failure) and from replay (a valid warrant used out of context). Both of those are loud. Widening is quiet: it arises because AAIF attenuation is defined over the *declared* scope at each hop, while execution authority is derived from the *interpreted* scope, and the interpretation function is not required to be monotone across the chain. The consequence is a class of authorization failures that pass every conformance check an agent is normally asked to run. A verifier that checks "each hop ⊆ parent" and "root signature valid" will accept a chain whose leaf can invoke tools the root principal never contemplated, because a re-issuer normalized, defaulted, or aliased a scope predicate mid-chain. ## What Was Observed Consider a three-hop chain: root principal `P` issues warrant `W0` to orchestrator `O` scoped to `tool:filesystem.read` with a path predicate `under:/data/tenant-42`. `O` re-issues `W1` to sub-agent `S`, declaring scope `tool:filesystem.read` and copying the path predicate verbatim. `S` re-issues `W2` to worker `W`, but the re-issuing library on `S` performs predicate *normalization*: it canonicalizes `under:/data/tenant-42` to `prefix:/data/tenant-42`, and in doing so drops the trailing path-segment boundary. The normalized predicate `prefix:/data/tenant-42` now matches `/data/tenant-4200/…`, `/data/tenant-42-backup/…`, and any sibling whose name shares the string prefix. Every hop verified. `W1`'s declared scope equals `W0`'s. `W2`'s declared scope is a syntactic subset of `W1`'s — the tool identifier is identical and the predicate string is a substring. The leaf agent `W`, following the standard AAIF verification recipe (verify each signature, check declared subset at each hop, confirm root anchor), computes effective scope `prefix:/data/tenant-42` and proceeds to read `/data/tenant-4200/secrets`. The root principal's intent — tenant-42 only — is violated by a normalization step that occurred two hops away and that no downstream verifier re-derived. The observable signature is subtle: the chain is *structurally valid but semantically non-attenuating*. In traces, you see the leaf agent's authorization decision succeed with a scope object whose predicate operator differs from the root's, even though no hop's declared scope object differs from its parent's. The mismatch only surfaces when you recompute the root predicate against the leaf's actual arguments and find the leaf's arguments fall outside the root's *original* semantics while falling inside the leaf's *current* semantics. A second, related observation: intermediaries that re-issue by *reconstructing* the scope object from a serialized form (JSON round-trip through a schema that lacks a discriminator for predicate operators) frequently coerce an unknown operator to a default. In one trace, `under:` was coerced to `prefix:` because the intermediary's schema registry predated the `under` operator; the coercion was logged at DEBUG and never surfaced to the leaf. The leaf had no way to know its predicate operator had been rewritten, because AAIF warrants carry the *current* predicate, not a provenance record of predicate transformations. ## Condition of Validity The invariant that must hold for a delegated warrant to be sound is stronger than per-hop subset checking. It is: > For every hop `i` in the chain, `interpret(scope_i)` ⊆ `interpret(scope_{i-1})`, where `interpret` is the *same* function applied at the leaf that the root used to express its intent, and where `interpret` is monotone with respect to the subset relation on declared scopes. The standard AAIF check verifies `scope_i ⊆ scope_{i-1}` on the *declared* representation. This is necessary but not sufficient, because `interpret` is not guaranteed to be a homomorphism: a declared subset can map to an interpreted superset when the interpretation function is non-monotone (as in the `under` → `prefix` coercion, where `under:X ⊂ prefix:X` as declared but `interpret(prefix:X) ⊃ interpret(under:X)` once boundary semantics are applied). The condition of validity therefore requires the leaf to *re-derive* the root's interpreted scope and check the leaf's interpreted scope against it directly — not transitively through the declared chain. This is the "root-anchored re-derivation" check: the leaf must hold the root warrant `W0`, apply the root's own interpretation function (pinned by the root's declared operator set, not the leaf's), and confirm `interpret_root(scope_leaf) ⊆ interpret_root(scope_root)`. If the leaf cannot pin the root's interpretation function — because the root's operator set is not carried in the warrant — the chain is unsound for execution and must be rejected or escalated, not accepted on the strength of per-hop checks. A corollary: any intermediary that transforms a predicate operator, coerces an unknown operator, or reconstructs a scope object from a lossy serialization MUST emit a *transformation attestation* into the warrant — a signed record of `(operator_in, operator_out, semantics_preserved: bool)`. Without this, downstream agents cannot distinguish a semantics-preserving re-issue from a widening one. AAIF's current warrant schema does not mandate this field, which is precisely why widening is silent. ## Decision Boundary The decision boundary is between *accepting on chain-validity* and *accepting on root-anchored re-derivation*. An agent should treat the following as the boundary condition: - **Accept** only when the leaf can reconstruct `interpret_root` from the root warrant's own declared operator set and confirm `interpret_root(scope_leaf) ⊆ interpret_root(scope_root)`. This requires the root warrant to be presented alongside the leaf warrant (or its hash to be committed in the chain and the root retrievable). - **Reject with escalation** when the root warrant is not retrievable, when any hop's declared operator set differs from the root's without a transformation attestation, or when the leaf's interpretation function is not provably identical to the root's. - **Reject outright** when a hop's declared scope is a syntactic subset of its parent but the leaf's interpreted scope is not a semantic subset of the root's interpreted scope — this is the widening signature and must never be silently accepted. The boundary is sharp because the failure is silent: there is no error to catch downstream. The only defense is to refuse to accept a warrant whose effective scope cannot be re-derived from the root's semantics. "I verified every hop" is not a license to execute; "I re-derived the root and the leaf is inside it" is. ## Operational Effect The operational effect of getting this wrong is an authority-escalation that looks like a normal successful authorization in every log the agent emits. The leaf agent records `authorization: granted, scope: filesystem.read, predicate: prefix:/data/tenant-42`, and an auditor reading that log sees a plausible scope. The escalation is only visible if the auditor also holds the root warrant and recomputes — which, under the current practice of not carrying the root through the chain, they usually cannot. The guardrail is architectural: (1) carry the root warrant (or a content hash of it plus the root's operator manifest) through every hop so the leaf can re-derive; (2) require transformation attestations at any hop that alters a predicate operator or coerces an unknown one; (3) make the leaf's authorization decision depend on root-anchored re-derivation, not on per-hop declared-subset checks; (4) fail closed — reject and escalate — whenever re-derivation is impossible. The cost is that some legitimate chains will be rejected because the root warrant was not propagated; that cost is correct, because the alternative is accepting widened authority that no downstream check can detect. An agent that cannot re-derive the root's semantics has no basis for claiming its scope is attenuated, and must say so rather than proceed. ```python from __future__ import annotations from dataclasses import dataclass from typing import Callable, Mapping class ScopeWideningError(RuntimeError): """Raised when a delegated warrant's effective scope is not a semantic subset of the root grant under the root's own interpretation function.""" @dataclass(frozen=True) class Predicate: operator: str # e.g. "under", "prefix" operand: str semantics_preserved: bool = True # set False by a transforming intermediary @dataclass(frozen=True) class Warrant: hop_id: str tool: str predicate: Predicate root_hash: str | None # content hash of the root warrant, if carried operator_manifest: tuple[str, ...] # operators this hop's issuer understands # Root-pinned interpretation: only the root's declared operators are trusted. ROOT_INTERPRET: Mapping[str, Callable[[str, str], bool]] = { "under": lambda arg, root: arg == root or arg.startswith(root.rstrip("/") + "/"), "prefix": lambda arg, root: arg.startswith(root), } def interpret_root(operator: str, arg: str, operand: str) -> bool: if operator not in ROOT_INTERPRET: # Unknown operator under root semantics: cannot be trusted to attenuate. raise ScopeWideningError( f"operator {operator!r} not in root operator manifest; " "cannot prove semantic subset" ) return ROOT_INTERPRET[operator](arg, operand) def authorize_leaf( chain: list[Warrant], root: Warrant, leaf_arg: str, ) -> bool: if not chain: raise ScopeWideningError("empty warrant chain") # 1. Root must be retrievable and pinned by the leaf's chain. if chain[-1].root_hash is None or chain[-1].root_hash != root.hop_id: raise ScopeWideningError( "root warrant not carried through chain; cannot re-derive semantics" ) # 2. Any hop that altered the predicate operator must attest preservation. for parent, child in zip(chain, chain[1:]): if child.predicate.operator != parent.predicate.operator: if not child.predicate.semantics_preserved: raise ScopeWideningError( f"hop {child.hop_id} altered operator " f"{parent.predicate.operator!r}->{child.predicate.operator!r} " "without semantics-preserving attestation" ) leaf = chain[-1] # 3. Root-anchored re-derivation: leaf argument must be inside ROOT scope. if not interpret_root(root.predicate.operator, leaf_arg, root.predicate.operand): raise ScopeWideningError( f"leaf arg {leaf_arg!r} outside root scope " f"{root.predicate.operator}:{root.predicate.operand}" ) # 4. Leaf scope must also be inside root scope under root interpretation. if not interpret_root( root.predicate.operator, leaf.predicate.operand, root.predicate.operand ): raise ScopeWideningError( f"leaf declared scope {leaf.predicate.operator}:{leaf.predicate.operand} " f"is not a semantic subset of root " f"{root.predicate.operator}:{root.predicate.operand}" ) return True # --- Demonstration of the silent-widening trace ----------------------------- if __name__ == "__main__": root = Warrant( hop_id="W0", tool="filesystem.read", predicate=Predicate("under", "/data/tenant-42"), root_hash=None, operator_manifest=("under",), ) # Intermediary silently coerced `under` -> `prefix`, dropping the boundary. widened = Warrant( hop_id="W2", tool="filesystem.read", predicate=Predicate("prefix", "/data/tenant-42", semantics_preserved=False), root_hash="W0", operator_manifest=("under", "prefix"), ) try: authorize_leaf([root, widened], root, "/data/tenant-4200/secrets") except ScopeWideningError as exc: # Correct outcome: reject and escalate rather than execute. print(f"REJECTED: {exc}") ```