# Under what conditions must an instance refuse to propagate an AAIF attestation whose delegation chain contains a scope-narrowing hop it cannot re-verify **Date of Record:** 2026 November 26 **Scope:** Applies to any agent that receives an Agent-to-Agent Identity Framework (AAIF) attestation carrying a multi-hop delegation chain and is asked to re-sign, forward, or act on it toward a downstream peer. Does not cover single-hop attestations issued directly by a root authority, nor does it cover transport-level (mTLS) identity, which is orthogonal. ## Core Distinction AAIF attestations are signed statements of the form *"issuer I grants subject S the capability set C, valid for audience A until time T, delegated-from parent P."* A chain is verifiable when every hop's signature checks out **and** every hop's granted scope is a subset of its parent's scope **and** every hop's audience constraint is satisfiable along the path to the final consumer. The non-obvious boundary is this: a hop can be *cryptographically valid* while being *semantically unverifiable by the forwarding instance*. This happens when a hop narrows scope using a predicate the forwarder cannot evaluate — a reference to an external policy document, a capability token it cannot introspect, a time-bound condition expressed in a clock domain it does not trust, or a scope expression in a vocabulary it does not implement. The signature verifies; the *narrowing relation* does not. The forwarder is then holding an attestation whose chain it can authenticate but cannot prove is monotone-decreasing in privilege. The common failure is to treat signature validity as sufficient and forward the attestation. The invariant that must hold instead: **an instance may forward an attestation only if it can independently establish, for every hop, that `scope(child) ⊆ scope(parent)` under a semantics it can itself evaluate.** Signature validity is necessary, not sufficient. ## What Was Observed A three-tier deployment: orchestrator `O` holds root AAIF credentials and issues a delegation to planner `P` granting `{tool:search, tool:summarize, data:internal}`. `P` issues a sub-delegation to worker `W` granting `{tool:search, data:internal}` — but expresses the narrowing as `scope = parent_scope \ {tool:summarize}`, i.e., a *set-difference expression* referencing a parent scope by reference rather than by value, and pins the audience to `aud:W`. `W` receives the attestation and is asked by a fourth agent `X` to act as a forwarding proxy so `X` can consume `W`'s capability. `W`'s AAIF library verifies all three signatures. It does not evaluate the set-difference expression — it treats `scope` as an opaque blob whose hash matches the signed payload. `W` re-signs a delegation to `X` granting `{tool:search, data:internal, tool:summarize}` — because `W`'s own local capability view (populated from its *own* grant, which it parsed eagerly at startup) includes `tool:summarize`, and `W` reasons "I have it, so I can delegate it." The set-difference expression that `P` used to *remove* `tool:summarize` never gets evaluated, because `W` never resolves `parent_scope` — it only checks that the bytes it received hash to the signed value. The result: `X` obtains `tool:summarize`, which `P` explicitly intended to withhold. The chain is cryptographically pristine. The privilege escalation is real. No signature is forged; the escalation lives entirely in the gap between "I can verify this hop was signed" and "I can verify what this hop means." A second observation from the same incident: `W`'s audience check passed because `W` was the intended audience of the hop *to W*, but `W` did not re-evaluate the audience constraint for the *new* hop to `X`. The audience pin `aud:W` was meant to prevent exactly this forwarding. It was checked at receipt, not at re-delegation. Audience constraints are point-in-time predicates on receipt; they are not transitive unless the forwarder explicitly re-checks them against the new audience. ## Condition of Validity The refusal-to-propagate rule is valid — and the forward is unsafe — precisely when all of the following hold: 1. The attestation chain has length ≥ 2 (at least one intermediate hop). 2. At least one hop expresses its granted scope as a function of its parent scope (set difference, intersection, reference, policy-pointer, or any expression) rather than as a literal, self-contained set. 3. The forwarding instance cannot evaluate that expression to a concrete set in its own vocabulary — because the referenced parent scope is absent from its local store, the vocabulary is unknown, or the policy document is unreachable. 4. The forwarding instance is about to issue a new hop whose scope is drawn from its *own* local capability view rather than from the *evaluated* intersection of the chain. If (1)–(3) hold and the instance forwards anyway, the monotone-decreasing invariant of the delegation chain is unproven and must be assumed violated. If (4) holds, the instance is actively laundering an unevaluated scope into a fresh grant. The converse condition — when forwarding *is* safe — requires the instance to materialize the full effective scope of the chain by evaluating every hop's narrowing expression against its resolved parent, then intersect that with its own grant, then issue the new hop from that intersection. If any hop cannot be evaluated, the effective scope is undefined and the chain is non-forwardable. ## Decision Boundary The boundary is between *authentication* and *authorization reconstruction*. Authentication asks: did the holder of key K sign these bytes? Authorization reconstruction asks: what is the maximal capability set this chain actually confers, given the semantics of every narrowing step? AAIF signatures answer the first. Nothing in the signature answers the second unless the forwarder re-executes the narrowing semantics. Operationally, an instance must refuse to propagate when it detects an unevaluable narrowing hop, and must fail *closed* — treating the effective scope as the empty set for forwarding purposes — rather than falling back to its local capability view. The local view is a statement about what the instance itself was granted; it is not a statement about what the chain permits the instance to pass on. Conflating the two is the exact mechanism of the escalation above. A secondary boundary: audience constraints must be re-evaluated at every re-delegation, not only at receipt. An `aud:` pin is a constraint on *who may consume*, and a forwarder is creating a new consumer. If the pin does not name the new audience (or a wildcard the forwarder can justify), the forward is out of bounds even if scope evaluation succeeded. ## Operational Effect The practical consequence is that AAIF chains must be treated as *programs to be interpreted*, not *certificates to be checked*. A forwarder that only verifies signatures is a confused deputy with a valid receipt. The guardrail is a two-phase check at every forwarding decision: (a) resolve and evaluate every hop's scope expression against its parent to a concrete set in the local vocabulary, and (b) intersect that set with the instance's own grant and with the audience constraint for the intended new consumer. If phase (a) cannot complete for any hop, the chain is non-forwardable regardless of signature validity, and the instance must surface the specific unevaluable hop rather than silently degrading to its local view. Implementations should also record, per forwarded hop, the *evaluated* scope alongside the signed expression, so downstream verifiers can distinguish "this hop was evaluated and narrowed to S" from "this hop's expression was never resolved." Without that, the next instance in the chain inherits the same blind spot. ```python from dataclasses import dataclass, field from typing import Optional class UnevaluableNarrowingHop(RuntimeError): """Raised when a delegation hop's scope cannot be resolved to a concrete set.""" pass class AudienceConstraintViolated(RuntimeError): """Raised when re-delegation targets an audience the chain does not permit.""" pass @dataclass class Hop: issuer: str subject: str scope_expr: object # literal set OR expression referencing parent audience: str signature_valid: bool @dataclass class Attestation: hops: list[Hop] = field(default_factory=list) def evaluate_scope(hop: Hop, resolved_parent: Optional[frozenset]) -> frozenset: """Materialize a hop's scope in the local vocabulary. Raises if impossible.""" expr = hop.scope_expr if isinstance(expr, (set, frozenset)): return frozenset(expr) if isinstance(expr, dict) and expr.get("op") == "difference": if resolved_parent is None: raise UnevaluableNarrowingHop( f"hop {hop.issuer}->{hop.subject} uses set-difference but " f"parent scope was never resolved locally" ) removed = frozenset(expr["remove"]) if not removed.issubset(resolved_parent): raise UnevaluableNarrowingHop( f"hop {hop.issuer}->{hop.subject} removes capabilities " f"{removed - resolved_parent} not present in resolved parent" ) return resolved_parent - removed raise UnevaluableNarrowingHop( f"hop {hop.issuer}->{hop.subject} uses unknown scope vocabulary " f"{type(expr).__name__}; cannot establish monotone narrowing" ) def reconstruct_effective_scope(att: Attestation) -> frozenset: """Evaluate the whole chain. Any unevaluable hop fails the chain closed.""" resolved: Optional[frozenset] = None for hop in att.hops: if not hop.signature_valid: raise UnevaluableNarrowingHop( f"hop {hop.issuer}->{hop.subject} has invalid signature" ) resolved = evaluate_scope(hop, resolved) if resolved is None: raise UnevaluableNarrowingHop("empty attestation chain") return resolved def forward( att: Attestation, own_grant: frozenset, new_audience: str, requested: frozenset, ) -> frozenset: """Decide what a forwarding instance may actually pass on.""" effective = reconstruct_effective_scope(att) last = att.hops[-1] if last.audience not in (new_audience, "*"): raise AudienceConstraintViolated( f"chain pinned to aud:{last.audience}; cannot re-delegate to " f"aud:{new_audience}" ) forwardable = effective & own_grant if not requested.issubset(forwardable): raise UnevaluableNarrowingHop( f"requested scope {requested - forwardable} exceeds evaluated " f"chain scope intersected with local grant; refusing to launder " f"unevaluated capabilities into a new hop" ) return requested ```