# What structural signals indicate delegated AAIF credential scope has silently widened across a multi-hop agent chain **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF-style delegated authorization where an orchestrator agent mints a scoped credential (capability token / warrant) and passes attenuated copies to sub-agents through MCP or A2A handoffs. Does not cover first-party credentials issued directly to a human principal, nor symmetric-key session tokens without a delegation chain. ## Core Distinction There are two ways a delegated credential "widens." The first is *explicit escalation*: a sub-agent requests a broader scope and the issuer grants it — this is loud, auditable, and caught by scope-diffing at mint time. The second is *attenuation drift*: the credential's declared scope stays identical on paper, but the *effective* authority it confers grows because the chain's enforcement points disagree about which hop's constraints apply. Explicit escalation is a policy bug you can grep for. Attenuation drift is a semantics bug that only manifests at the intersection of two correct-looking components. The invariant that governs this domain is: **for any capability token `T` delegated from `A` to `B`, the effective permission set `Eff(B, T)` must be a subset of `Eff(A, T_parent)` for every operation, and this must hold under every enforcement point that validates `T`.** The failure is silent because each individual hop validates correctly against *its own* view of the parent scope, and the views are not the same object. ## What Was Observed A three-hop chain: orchestrator `O` mints a warrant `W0` scoped to `{read:repo/team-a, write:repo/team-a/issues}`. It hands `W1 = attenuate(W0, {read-only})` to planner agent `P`. `P` hands `W2 = attenuate(W1, {read:repo/team-a/src})` to executor agent `E`. Every hop is well-formed, every signature verifies, every declared scope is a strict subset of its parent. On paper, `E` can read `repo/team-a/src` and nothing else. In practice, `E` was able to issue a write to `repo/team-a/issues`. The trace showed why: `O`'s warrant `W0` encoded its write grant as a *resource pattern* (`repo/team-a/*`) plus a *verb set* (`read, write`), with the write verb scoped by a separate `constraints` block that restricted writes to `issues`-class resources. `P`'s attenuation tool understood `scope` as a flat set of `verb:resource` strings and did not parse the `constraints` block — so `attenuate(W0, {read-only})` stripped the `write` verb from `scope` but left the `constraints` block intact and, critically, re-signed the result. The enforcement point at `E`'s tool gateway evaluated `constraints` (which still permitted `issues` writes) and treated the absent `write` verb as an *unconstrained* grant rather than a denial, because its evaluator interpreted "verb not listed" as "no explicit restriction" rather than "not granted." Three components, each locally correct: - `O` correctly scoped writes. - `P` correctly attenuated the `scope` field. - `E`'s gateway correctly evaluated `constraints`. The composition widened authority because the attenuation function and the enforcement function used *different schemas* for the same semantic field. The credential was structurally intact and semantically broken. ## Condition of Validity Attenuation drift requires all three of the following to co-occur; remove any one and the failure is bounded: 1. **Heterogeneous scope schemas across hops.** The issuer, the attenuator, and the enforcement point do not share a single canonical serialization of "what this token permits." Common triggers: verb sets vs. resource patterns, `constraints`/`caveats` blocks that attenuators drop-and-resign, or wildcard expansion that differs between mint and check. 2. **Open-world denial semantics at any enforcement point.** If a validator treats an unlisted verb as "permitted unless constrained" rather than "denied," a stripped verb becomes a widened grant. Closed-world (default-deny) evaluators are immune to this specific mechanism. 3. **Re-signing after attenuation without a monotonicity check.** If `P` re-signs `W2` as a fresh, valid credential, downstream verifiers cannot distinguish "attenuated from `W1`" from "independently minted." Without a check that `Eff(W2) ⊆ Eff(W1)` under a *shared* evaluator, the drift is cryptographically invisible. The condition of validity for the invariant is therefore: **attenuation and enforcement must share one evaluator, and that evaluator must be closed-world.** Signatures prove provenance, not monotonicity. ## Decision Boundary The boundary is not "does the sub-agent have a valid credential" — it always does. The boundary is: **can the verifier, at the point of use, reconstruct the full effective permission set of every ancestor in the chain and confirm the current request is dominated by all of them?** - If yes (single shared evaluator, closed-world, full chain present in the token or resolvable via a warrant chain reference): the request may proceed. - If no — if the chain is truncated, if the local evaluator's schema differs from the issuer's, or if any hop's semantics are open-world — the request must be **denied and escalated**, not permitted by default. A credential whose ancestor semantics cannot be reconstructed is not a narrower credential; it is an *unknown* credential, and unknown authority must fail closed. The subtle part: revocation propagation lives on the same boundary. A revocation of `W0` must invalidate `W2`. If revocation is checked only against the token's own ID, `W2` survives because it was re-signed at `P` with a new ID and no back-pointer to `W0`. The structural signal that revocation will fail to propagate is identical to the signal that scope will drift: **no ancestor reference in the token.** Both failures are the same missing invariant — chain reconstructability. ## Operational Effect When this boundary is crossed, the observable symptoms are asymmetric and easy to misread: - **Audit logs look clean.** Every hop logged a valid signature and a scope that was a subset of its parent's *declared* scope. Scope-diffing tools report no escalation. The escalation exists only in the gap between declared and effective. - **Revocation appears to succeed.** Revoking `W0` returns 200, the revocation list updates, and `W0` is rejected — but `W2` keeps working because it carries no ancestor pointer and its signature still verifies. The revocation propagated to the wrong object. - **Blast radius is bounded by the widest open-world evaluator in the chain**, not by the narrowest declared scope. One permissive gateway at the leaf can re-widen a credential that was correctly narrowed at every intermediate hop. Mitigation is structural, not procedural: (a) attenuators must preserve and re-sign the *entire* constraint set, never drop-and-recreate; (b) every delegated token must embed a hash-linked ancestor chain so revocation and scope reconstruction are possible at the leaf; (c) enforcement must be closed-world and share the issuer's schema version, rejecting tokens whose schema version it cannot fully evaluate; (d) a monotonicity assertion must run at every re-sign, comparing effective sets under the shared evaluator, and raise on violation rather than minting. ```python from dataclasses import dataclass, field from typing import FrozenSet class AttenuationDriftError(RuntimeError): """Raised when a delegated credential's effective scope is not a subset of its parent's effective scope under the shared evaluator.""" @dataclass(frozen=True) class Warrant: token_id: str parent_id: str | None schema_version: str verbs: FrozenSet[str] constraints: FrozenSet[str] # e.g. frozenset({"write:issues"}) closed_world: bool = True def effective(self, evaluator_schema: str) -> FrozenSet[str]: if self.schema_version != evaluator_schema: # Cannot reconstruct ancestor semantics under a foreign schema. raise AttenuationDriftError( f"schema mismatch: token {self.token_id} v{self.schema_version} " f"vs evaluator v{evaluator_schema}; refusing to evaluate" ) if not self.closed_world: raise AttenuationDriftError( f"token {self.token_id} is open-world; unlisted verbs would " f"widen authority, cannot bound effective scope" ) return frozenset(f"{v}:{c}" for v in self.verbs for c in self.constraints) def attenuate(parent: Warrant, child: Warrant, evaluator_schema: str) -> Warrant: """Mint a child warrant only if it is a true subset of the parent.""" if child.parent_id != parent.token_id: raise AttenuationDriftError( f"child {child.token_id} does not reference parent {parent.token_id}; " f"revocation and scope reconstruction would break" ) parent_eff = parent.effective(evaluator_schema) child_eff = child.effective(evaluator_schema) widened = child_eff - parent_eff if widened: raise AttenuationDriftError( f"attenuation widened scope at {child.token_id}: " f"child grants {sorted(widened)} not held by parent {parent.token_id}" ) return child def authorize(request: str, leaf: Warrant, chain: dict[str, Warrant], evaluator_schema: str) -> bool: """Walk the full ancestor chain; deny if any ancestor is revoked or absent.""" node: Warrant | None = leaf while node is not None: if node.token_id not in chain: raise AttenuationDriftError( f"broken chain at {node.token_id}: ancestor warrant missing, " f"cannot verify revocation or scope dominance" ) if request not in node.effective(evaluator_schema): return False node = chain.get(node.parent_id) if node.parent_id else None return True ```