# What structural signals indicate delegated capability attenuation failure at cross-vendor attestation boundaries in AAIF token chains **Date of Record:** 2026 November 26 **Scope:** Applies to multi-hop agent authorization flows where an orchestrator agent delegates a scoped capability token to a sub-agent running on a different vendor's runtime, and the sub-agent re-delegates to a tool-executor agent. Does not apply to single-vendor homogeneous token chains, nor to human-to-agent OAuth flows without re-delegation. ## Core Distinction The failure mode is not token rejection. It is **silent capability amplification under attenuation**. In a correctly implemented Agent Identity and Authorization Framework (AAIF), each delegation hop must produce a token whose scope set is a strict subset of the parent's scope set (monotonic attenuation), and whose attestation chain is cryptographically linked to the parent's issuer. The non-obvious boundary is that *attenuation is enforced semantically by the delegating runtime, not structurally by the token format*. When the delegating runtime is a different vendor than the issuer, it re-signs the attenuated token under its own attestation key. If its scope-intersection logic disagrees with the issuer's scope grammar—because the two vendors model scopes as different string taxonomies—the re-signed token can carry scopes the parent never held, while every signature in the chain still verifies. The distinction that matters operationally: **a valid signature chain proves provenance, not authority containment.** AAIF verifiers that check attestation validity but recompute attenuation only at the *first* hop will accept an amplified token at hop 3. ## What Was Observed A three-hop chain: orchestrator (Vendor A runtime, issuer key `K_A`) → sub-agent (Vendor B runtime, attestation key `K_B`) → tool-executor (Vendor C runtime, attestation key `K_C`). The orchestrator held scope `fs:read:/data/reports`. Its delegation policy intersected requested scopes against held scopes using exact-string matching. The sub-agent requested `fs:read:/data` — a *broader* path prefix — reasoning that it needed to enumerate the directory tree. Vendor B's runtime evaluated the intersection using prefix-containment semantics (`/data` contains `/data/reports` is false; but B's grammar treated the requested scope as satisfying the held scope because the held path was a descendant). Vendor B therefore emitted a token with `fs:read:/data` under `K_B`, with a parent-link claim pointing to the `K_A` token. The tool-executor at Vendor C verified: (1) `K_B` signature valid, (2) `K_B` attested by `K_A` per the cross-vendor trust bundle, (3) parent-link hash matches the `K_A` token. All three passed. Vendor C did **not** re-run attenuation against the `K_A` scope set, because AAIF spec places attenuation responsibility at the delegating hop. The executor read `/data/secrets/credentials.json` — outside the orchestrator's original grant — and the access succeeded with a fully valid attestation chain. The structural signal was not an error. It was a **scope-set cardinality increase across a hop that should be monotonically non-increasing**, invisible to any verifier that trusts the delegating hop's intersection result. ## Condition of Validity This failure requires all of the following to co-occur; remove any one and the amplification does not propagate: 1. **Heterogeneous scope grammar.** The two runtimes model the same scope namespace with different containment semantics (exact-match vs. prefix vs. glob vs. hierarchical-resource). This is the root condition. 2. **Re-signing at the delegating hop.** The intermediate runtime issues its *own* token rather than countersigning or wrapping the parent token. This erases the parent's scope set from the verifiable payload. 3. **Verifier trust in the delegating hop's attenuation.** The terminal verifier validates signatures and attestation links but does not independently recompute `child_scopes ⊆ parent_scopes` from the full chain. 4. **No scope-grammar negotiation at handshake.** The cross-vendor trust bundle pins keys and issuer identities but does not pin a shared scope-taxonomy version or canonicalization function. The invariant that must hold for safety: **for every hop, `canonicalize(child.scopes) ⊆ canonicalize(parent.scopes)` under a single agreed canonicalization function, verified at the terminal consumer, not merely at the producer.** Attestation validity is necessary but not sufficient; containment must be recomputed end-to-end. ## Decision Boundary The boundary is whether the terminal verifier treats the attestation chain as *authoritative for authority* or only *authoritative for identity*. - **Below the boundary (safe):** Verifier reconstructs the full chain from the presented token's parent-links, canonicalizes every scope set under the trust bundle's pinned grammar version, and rejects if any hop's canonical child set is not a subset of its canonical parent set. Cost: O(hops × scopes) recomputation per request; requires the trust bundle to pin grammar, not just keys. - **Above the boundary (unsafe):** Verifier trusts each intermediate's attenuation decision and checks only signature + parent-link integrity. This is the default in most AAIF deployments because it matches the spec's producer-side attenuation language and is cheaper. The decision to cross the boundary must be explicit. If a deployment cannot pin scope grammar across vendors (common when one vendor's taxonomy is opaque), it must **forbid re-signing and require token wrapping** so the parent scope set remains in the verifiable payload, or it must **collapse the chain to a single issuer** that performs all attenuation. ## Operational Effect The practical consequence is that cross-vendor AAIF token chains provide *identity* assurance that is strictly stronger than their *authorization* assurance, and operators routinely conflate the two because the verification API returns a single boolean. An amplified-scope request returns `authorized: true` with a valid chain, and the amplification is only detectable by diffing canonical scope sets across hops—a check no standard verifier performs by default. The guardrail is a terminal-side **attenuation replay**: reconstruct the chain, canonicalize under pinned grammar, and assert monotonic non-increase before honoring the token. Log the per-hop scope-set cardinality; a strictly increasing cardinality across a delegation hop is the structural signal of this failure. Treat any such increase as a hard rejection, not a warning, because the only legitimate cause of an increase is a grammar mismatch—which is itself the vulnerability. ```python from dataclasses import dataclass from typing import Sequence class AttenuationAmplificationError(RuntimeError): """Raised when a delegated capability token's canonical scope set is not a subset of its parent's, indicating cross-vendor grammar mismatch or producer-side attenuation bypass.""" pass @dataclass(frozen=True) class Hop: issuer: str scopes: frozenset[str] parent_index: int | None # index into chain, None for root def canonicalize(scopes: frozenset[str], grammar_version: str) -> frozenset[str]: # Pinned grammar: normalize path scopes to exact trailing-slash form. # A real implementation dispatches on grammar_version and must be identical # across all vendors in the trust bundle. if grammar_version != "aaif-scope-v2": raise AttenuationAmplificationError( f"unpinned scope grammar {grammar_version!r}; cannot verify containment" ) out = set() for s in scopes: if s.startswith("fs:read:") and not s.endswith("/"): out.add(s + "/") else: out.add(s) return frozenset(out) def verify_chain(chain: Sequence[Hop], grammar_version: str) -> None: canon = [canonicalize(h.scopes, grammar_version) for h in chain] for i, hop in enumerate(chain): if hop.parent_index is None: continue parent = canon[hop.parent_index] child = canon[i] if not child.issubset(parent): amplified = child - parent raise AttenuationAmplificationError( f"hop {i} (issuer={hop.issuer}) amplifies scopes {sorted(amplified)} " f"beyond parent hop {hop.parent_index}; chain rejected" ) # Example: the observed Vendor A -> B -> C chain. chain = [ Hop("vendor-a", frozenset({"fs:read:/data/reports"}), None), Hop("vendor-b", frozenset({"fs:read:/data"}), 0), # prefix-widened Hop("vendor-c", frozenset({"fs:read:/data"}), 1), ] verify_chain(chain, "aaif-scope-v2") # raises AttenuationAmplificationError ```