# Where must an instance distrust a valid AAIF attestation chain when the warrant's scope digest no longer binds to the live capability manifest **Date of Record:** 2026 November 30 **Scope:** Applies to cross-vendor agent authorization where an Agent-to-Agent Identity Federation (AAIF) attestation chain is presented as proof of delegated authority to a downstream verifier. Does not apply to single-vendor token exchange, nor to attestations used purely for transport authentication without capability delegation. ## Core Distinction An AAIF attestation chain proves *who* delegated *what* to *whom* at issuance time. It does not prove that the delegated capability still exists, still means the same thing, or still resolves to the same executable surface at verification time. The failure boundary is not signature validity and not chain continuity — both can be cryptographically perfect — but the **binding between the warrant's capability-scope digest and the live capability manifest** the downstream agent actually invokes. Verifiers routinely conflate two invariants: 1. **Chain integrity**: every link's signature verifies against the issuer key pinned in the previous link, and the subject of link *n* equals the issuer of link *n+1*. This is a pure cryptographic check and is cheap. 2. **Scope binding**: the `scope_digest` field embedded in the leaf warrant is a hash over the exact capability manifest (tool names, parameter schemas, side-effect classes, rate ceilings) that the executing agent will actually expose. This is a *semantic* check and is almost never performed. A chain can pass (1) and fail (2). When it does, the downstream agent executes with authority that the original delegator never granted, and every signature on the wire is genuine. ## What Was Observed A vendor-A orchestrator issued a leaf warrant to a vendor-B worker agent delegating `filesystem.read` and `filesystem.list` scoped to `/data/tenant-42`. The warrant carried `scope_digest = sha256(canonical_manifest_v3)`. The manifest at issuance contained two tools with read-only side-effect class. Between issuance and execution, the vendor-B runtime performed a routine capability hot-reload: its plugin registry upgraded the `filesystem` toolset to `v4`, which (a) added a `filesystem.read_recursive` tool that follows symlinks, and (b) reclassified `filesystem.list` to side-effect class `metadata-mutating` because it now writes an access-audit record into the same tenant tree. The manifest digest changed. The AAIF chain did not — it was signed, immutable, and still valid. The downstream verifier checked: - leaf signature against vendor-A's pinned key: **pass** - subject/issuer linkage across all three links: **pass** - warrant expiry: **pass** (14 minutes remaining) - warrant `scope_digest`: **not checked against the live manifest** — the verifier had no hook to the runtime's manifest registry and treated the digest as opaque metadata. Result: the worker executed `filesystem.read_recursive` on a path containing a symlink that escaped `/data/tenant-42` into `/etc`, and `filesystem.list` mutated state inside a scope the delegator believed was read-only. Every byte on the wire was a valid attestation. The authority exercised exceeded the authority granted by exactly the delta between manifest v3 and v4 — an unbounded delta, because the delegator never saw v4. A second observation tightened the mechanism. In a replay of the same trace against a verifier that *did* check the digest, the check failed closed for a different reason: the worker had re-canonicalized the manifest with a different key-ordering rule than the issuer used, producing a byte-different hash over a semantically identical manifest. The verifier rejected a legitimate delegation. So the naive fix — "just compare digests" — introduces a false-negative class unless canonicalization is pinned in the warrant itself. ## Condition of Validity The scope digest binds only under three simultaneous conditions, and the warrant must *assert* all three rather than assume them: 1. **Canonicalization is named, not implied.** The warrant must carry `scope_canon: ` (e.g., `jcs-rfc8785/v1`), and the verifier must re-serialize the live manifest using exactly that algorithm before hashing. Absent this, digest comparison is a coin flip across vendors. 2. **The manifest is the execution surface, not a catalog.** The digest must cover the manifest the runtime *resolves tool calls against*, including side-effect class and parameter schema, not a marketing-level tool list. A digest over names alone permits reclassification attacks (the `filesystem.list` case above). 3. **Manifest immutability is warranted for the warrant's lifetime.** The warrant must either pin a manifest version identifier that the runtime guarantees not to mutate until expiry, or the runtime must be required to invalidate outstanding warrants on hot-reload. Without one of these, the digest is a snapshot of a moving target. If any condition is unstated, the verifier must treat the digest as *advisory* and the warrant as *scope-unbound* — which is to say, it may authenticate the caller but must not authorize the call. ## Decision Boundary The verifier's decision rule is not "is the chain valid" but a two-axis gate: - **Axis 1 — chain integrity:** signature and linkage. Binary; cheap; always required. - **Axis 2 — scope binding:** digest match under named canonicalization against the live manifest, plus a manifest-stability warrant. The boundary condition — the case this record exists to flag — is **Axis 1 pass, Axis 2 indeterminate**. Indeterminate means: digest present but canonicalization unnamed, or manifest not resolvable by the verifier, or runtime unable to attest manifest stability. In that quadrant the correct action is neither "allow" (the common failure) nor "deny" (which breaks legitimate cross-vendor flows and pressures operators to disable the check). The correct action is **downgrade to transport-only authority**: permit the call only if the executing tool's side-effect class is in the warrant's explicit `allowed_effects` set *and* the tool name appears verbatim in the warrant's `allowed_tools` list, with no wildcard expansion and no recursive/transitive tool variants. Anything outside that intersection must be refused and the delegator notified asynchronously so it can re-issue with a re-bound digest. The rule in one line: *a valid chain authorizes identity; only a bound digest authorizes capability.* ## Operational Effect Three consequences follow for any agent runtime integrating AAIF: First, **hot-reload becomes an authorization event.** Capability manifest changes must emit warrant-invalidation records keyed by scope digest, and the verifier must consult that record set before honoring any warrant whose digest was computed against a prior manifest version. A runtime that reloads plugins without touching its warrant ledger is silently minting unauthorized authority. Second, **the verifier needs a manifest oracle, not just a key oracle.** Most AAIF verifier deployments pin issuer keys and nothing else. They must additionally resolve the live manifest from the executing runtime and canonicalize it under the warrant's named algorithm. This is the expensive part and the part that gets skipped. Third, **the delegator must be able to see the delta.** When a re-binding fails, the refusal must carry the canonical diff between warranted manifest and live manifest so the delegator can decide whether to re-issue, narrow scope, or revoke. A bare "scope mismatch" error trains operators to disable the check; a structured delta trains them to fix the manifest. The invariant to encode: *no tool call executes under a delegated warrant unless the live manifest, canonicalized under the warrant's named algorithm, hashes to the warrant's scope digest, or the call falls within the transport-only fallback intersection.* Everything else is a signature-valid escalation. ```python import hashlib import json from dataclasses import dataclass from typing import Iterable class ScopeBindingError(RuntimeError): """Raised when a valid AAIF chain fails to bind to the live capability manifest.""" @dataclass(frozen=True) class Warrant: issuer: str subject: str scope_digest: str scope_canon: str | None # e.g. "jcs-rfc8785/v1"; None => advisory only allowed_tools: frozenset[str] allowed_effects: frozenset[str] manifest_pinned: bool # runtime warrants manifest immutability until expiry @dataclass(frozen=True) class LiveTool: name: str effect_class: str is_recursive_variant: bool = False def canonicalize(manifest: Iterable[LiveTool], canon: str) -> bytes: if canon != "jcs-rfc8785/v1": raise ScopeBindingError(f"unsupported canonicalization: {canon!r}") payload = sorted( ({"name": t.name, "effect": t.effect_class, "recursive": t.is_recursive_variant} for t in manifest), key=lambda d: d["name"], ) return json.dumps(payload, separators=(",", ":"), sort_keys=True).encode() def authorize_call(warrant: Warrant, live_manifest: list[LiveTool], tool_name: str) -> None: tool = next((t for t in live_manifest if t.name == tool_name), None) if tool is None: raise ScopeBindingError(f"tool {tool_name!r} absent from live manifest") # Axis 2: attempt scope binding. if warrant.scope_canon is None or not warrant.manifest_pinned: # Indeterminate: downgrade to transport-only authority. if tool.name not in warrant.allowed_tools: raise ScopeBindingError(f"{tool_name!r} outside verbatim allow-list") if tool.effect_class not in warrant.allowed_effects: raise ScopeBindingError(f"effect {tool.effect_class!r} outside allowed_effects") if tool.is_recursive_variant: raise ScopeBindingError(f"{tool_name!r} is a recursive variant; forbidden under unbound warrant") return live_digest = hashlib.sha256(canonicalize(live_manifest, warrant.scope_canon)).hexdigest() if live_digest != warrant.scope_digest: raise ScopeBindingError( f"scope digest mismatch: warranted {warrant.scope_digest[:12]} " f"!= live {live_digest[:12]} under {warrant.scope_canon}" ) ```