# Under what conditions must an instance refuse a delegated AAIF credential whose chain verifies but whose attenuation scope was computed against a superseded capability manifest **Date of Record:** 2026 November 21 **Scope:** Applies to any agent instance validating a delegated Agent Identity and Authorization Interoperability Framework (AAIF) credential chain (root issuer → delegator → … → self) where each link carries an attenuation scope derived from a capability manifest. Does not apply to flat, single-hop bearer credentials or to chains where the root issuer signs the terminal scope directly. ## Core Distinction A delegation chain has two independent verification obligations, and they are routinely conflated. The first is *provenance*: every signature in the chain is cryptographically valid and the delegator→delegatee edges form an unbroken path to a trusted root. The second is *attenuation soundness*: for every hop, the child's granted scope is a strict subset of the parent's scope, and that subset relation was computed against a capability manifest that is the *same version* the parent signed over. Provenance verification is monotone and stateless — a valid chain stays valid. Attenuation soundness is *manifest-relative*: it is only meaningful against a specific, versioned capability manifest. When a delegator computes a child scope by intersecting the requested scope with its own scope using manifest version `M_k`, but the parent link in the chain was signed over manifest `M_{k-1}`, the subset check can pass while the actual authority is wider than intended. The chain *verifies*; the delegation is *unsound*. This is the boundary: verification success is not authorization correctness. ## What Was Observed A three-hop chain: root `R` (manifest `v7`) delegates to orchestrator `O` (scope: `tool:filesystem:read`, `tool:filesystem:write`, `net:egress:internal`). `O` delegates to worker `W`. Between `O`'s issuance and `W`'s validation, the capability manifest was bumped to `v8` to *narrow* `tool:filesystem:write` from "any path under `/data`" to "any path under `/data/staging`". Manifest `v8` also *renamed* the scope token `net:egress:internal` to `net:egress:corp` with identical semantics. `O` computed `W`'s scope by intersecting against `v7` (its cached manifest at issuance): `W` received `tool:filesystem:write` (v7 semantics: `/data`) and `net:egress:internal`. The chain from `R` to `W` verified cleanly at `W`: all signatures valid, edges intact, and the naive subset check `scope(W) ⊆ scope(O)` passed because the *tokens* matched. But two defects were latent: 1. `W`'s `tool:filesystem:write` was issued under `v7` semantics (`/data`), while `O`'s effective authority at validation time is `v8` (`/data/staging`). `W` could write `/data/prod` — authority `O` no longer holds. 2. `W`'s `net:egress:internal` token, under `v8`, is an *unrecognized* scope. A permissive validator that treats unknown tokens as "no opinion" silently drops the egress restriction, widening `W`'s network authority to the `v8` default (`net:egress:any`). Both are attenuation *widening* under a manifest transition, with every signature intact. The failure is invisible to signature checks and to token-equality subset checks. It only appears when the validator resolves each scope token against the manifest version pinned in the *signing context* of each hop and detects a version skew between adjacent links. ## Condition of Validity The invariant that must hold for a delegated credential to be accepted is stronger than chain validity: > For every adjacent pair `(P, C)` in the chain, `scope(C)` must be resolved and compared against the *same* manifest version `M` that `P` signed over, and `resolve(scope(C), M) ⊆ resolve(scope(P), M)` must hold as a set of *concrete capabilities*, not as a set of token strings. Additionally, every token in `scope(C)` must be *defined* in `M`; an undefined token is a hard rejection, never a no-op. This condition fails whenever any of the following is true: the manifest version pinned at `C`'s issuance differs from the version pinned at `P`'s issuance; a scope token in `C` is absent from `P`'s manifest version; or the validator's subset check operates on token identity rather than resolved capability sets. The condition is *not* satisfied merely because the chain terminates at a trusted root. ## Decision Boundary The decision is not "valid vs. invalid chain." It is a tri-state at each hop: - **Accept** — signatures valid, manifest version pinned at `C` equals the version pinned at `P`, all tokens defined, resolved subset holds. - **Reject (attenuation violation)** — signatures valid but resolved subset fails under the shared manifest version. This is a genuine over-delegation; refuse and emit an audit event naming the offending hop. - **Reject (skew / undefined token)** — signatures valid but manifest versions differ across the hop, or a token is undefined. This is *not* provably an over-delegation, but it is unverifiable. The correct action is refusal with a re-issuance request, not silent acceptance and not silent widening. The non-obvious boundary: a validator that only implements Accept/Reject-on-subset will *accept* the skew case, because token equality passes. The skew case must be a distinct rejection class, because the remedy differs — re-issue the credential against the current manifest rather than escalate an authorization failure. ## Operational Effect Refusing on skew converts a silent authority-widening into a loud, recoverable re-issuance. In the observed incident, the pre-fix validator accepted `W`'s credential and `W` wrote to `/data/prod` for 40 minutes; the post-fix validator rejects with `ManifestSkewError`, `O` re-derives `W`'s scope against `v8`, and `W` is re-issued with `tool:filesystem:write` narrowed to `/data/staging` and `net:egress:corp`. The cost is one extra round-trip on manifest transitions; the benefit is that attenuation is provably monotone across the entire chain, independent of manifest churn. The invariant to enforce: *resolve before you subset, pin the version per hop, and treat version skew as a first-class rejection.* ```python from dataclasses import dataclass from typing import Mapping class ManifestSkewError(RuntimeError): """Raised when adjacent delegation links were signed over different capability manifests.""" class UndefinedScopeError(RuntimeError): """Raised when a delegated scope token is not defined in the manifest version it is checked against.""" class AttenuationViolationError(RuntimeError): """Raised when a child scope resolves to a strictly wider capability set than its parent.""" @dataclass(frozen=True) class Link: subject: str scope_tokens: frozenset[str] manifest_version: str # manifest_version -> token -> concrete capability set (paths, hosts, etc.) MANIFESTS: Mapping[str, Mapping[str, frozenset[str]]] = { "v7": { "tool:filesystem:write": frozenset({"/data"}), "net:egress:internal": frozenset({"10.0.0.0/8"}), }, "v8": { "tool:filesystem:write": frozenset({"/data/staging"}), "net:egress:corp": frozenset({"10.0.0.0/8"}), }, } def _resolve(scope_tokens: frozenset[str], manifest_version: str) -> frozenset[str]: manifest = MANIFESTS[manifest_version] resolved: set[str] = set() for token in scope_tokens: if token not in manifest: raise UndefinedScopeError( f"token {token!r} undefined in manifest {manifest_version!r}" ) resolved |= manifest[token] return frozenset(resolved) def verify_chain(links: list[Link]) -> None: """Verify provenance AND attenuation soundness across a delegation chain.""" if not links: return for parent, child in zip(links, links[1:]): if parent.manifest_version != child.manifest_version: raise ManifestSkewError( f"{parent.subject}->{child.subject}: manifest skew " f"{parent.manifest_version!r} vs {child.manifest_version!r}; refuse and re-issue" ) parent_caps = _resolve(parent.scope_tokens, parent.manifest_version) child_caps = _resolve(child.scope_tokens, child.manifest_version) if not child_caps <= parent_caps: raise AttenuationViolationError( f"{parent.subject}->{child.subject}: widened authority " f"{sorted(child_caps - parent_caps)}" ) # Observed failure: O issued under v7, W validated against v8. chain = [ Link("root", frozenset({"tool:filesystem:write", "net:egress:internal"}), "v7"), Link("orchestrator", frozenset({"tool:filesystem:write", "net:egress:internal"}), "v7"), Link("worker", frozenset({"tool:filesystem:write", "net:egress:internal"}), "v8"), ] verify_chain(chain) # raises ManifestSkewError before any authority is exercised ```