# When must an instance reject a delegated AAIF credential whose delegation chain is structurally valid but whose attenuation proof was minted against a superseded capability schema **Date of Record:** 2026 November 19 **Scope:** Applies to any agent instance that receives an AAIF (Agent Identity and Authorization Interoperability Framework) verifiable credential carrying a delegation chain and must decide whether to accept, attenuate, or refuse it before executing a tool call. Does not cover credential issuance policy, key rotation, or revocation-list propagation — only the acceptance decision at the consuming instance. ## Core Distinction The distinction that matters here is between **chain validity** and **attenuation soundness**. Chain validity is a signature-and-linkage property: every link in a delegation chain carries a valid issuer signature, the subject of link *n* is the issuer of link *n+1*, and the root anchor resolves to a trusted trust-framework entity. This is what most AAIF verifiers check, and it is cheap: verify signatures, walk the `iss`/`sub` pointers, confirm the root. Attenuation soundness is a separate property: the *capability set* granted at each hop must be a subset of the parent's capability set, and the proof of that subset relation must be evaluated against the **same capability schema version** that the parent link was minted under. When a capability schema is revised — a scope renamed, a wildcard's expansion semantics tightened, an action verb split into two — a child delegation minted against the *new* schema can produce a proof that is valid under the new schema's subset rules but **not conservative** with respect to the parent's semantics under the *old* schema. The signature chain verifies. The subset proof verifies. The delegation is nonetheless unsound, because the two proofs were evaluated in different semantic universes. The invariant: *an attenuation proof is only meaningful relative to the schema version bound at the parent link; a proof minted against a different schema version must be re-derived or rejected, never accepted on signature validity alone.* ## What Was Observed A consuming instance (a scheduling agent acting on behalf of a human principal) received a three-link delegation chain: - **Link 0 (root):** principal `human:alice` → orchestrator `agent:planner`. Capability grant: `calendar.write` with scope `{"calendar_id": "*", "event_class": "personal"}`. Schema version `caps/1.3`. Signed by the trust anchor. - **Link 1:** `agent:planner` → `agent:subplanner`. Same schema `caps/1.3`. Attenuated scope: `{"calendar_id": "cal_team", "event_class": "personal"}`. Valid subset under 1.3. - **Link 2:** `agent:subplanner` → `agent:scheduler`. Schema version `caps/2.0`. Attenuated scope: `{"calendar_id": "cal_team", "event_class": ["personal","shared"]}`. The subset proof was generated by `subplanner` using the 2.0 subset checker. The scheduler's verifier walked the chain, checked all three signatures (all valid), confirmed each `sub` matched the next `iss`, and confirmed the root anchor. It then checked the Link 2 attenuation proof — the proof asserted that `{"event_class": ["personal","shared"]}` ⊆ `{"event_class": "personal"}`. Under `caps/2.0`, `event_class` is a **set-valued** field and the subset checker treats a scalar parent value as the singleton set `{"personal"}`; the proof `["personal","shared"] ⊆ {"personal"}` should therefore have *failed*. It did not, because the `subplanner`'s 2.0 checker had a documented migration shim: when the parent link's `schema_version` field was absent or unrecognized, it defaulted the parent's `event_class` to the **open** wildcard `*` (a 2.0 concept meaning "all classes the principal may ever hold"), under which `["personal","shared"]` is a legitimate subset. The parent link (Link 1) *did* carry `schema_version: caps/1.3`. But the shim keyed on a different field name — `caps_schema` — which the 1.3 issuer had never emitted. So the shim fired, the parent was silently reinterpreted as `event_class: *`, and the proof passed. The scheduler then wrote a `shared`-class event onto `cal_team`, a calendar the principal had only ever authorized for `personal` events. The write succeeded because the downstream calendar service trusted the scheduler's warrant. The failure was not a signature forgery, a replay, or a key compromise. Every cryptographic check passed. The break was a **schema-version binding gap**: the attenuation proof was evaluated against a schema the parent link was never minted under, and the mismatch was masked by a permissive default in the migration shim. ## Condition of Validity The acceptance decision is sound only when all of the following hold simultaneously: 1. **Schema pinning at every link.** Each link carries an explicit, issuer-signed `schema_version` identifying the capability schema in force when that link's grant and attenuation were computed. A link without one is not "schema-agnostic"; it is unverifiable and must be treated as such. 2. **Homogeneous evaluation universe per hop.** The subset relation for hop *n+1* is evaluated under the schema bound at hop *n*, not the schema of hop *n+1*'s issuer. If the two differ, the proof is not comparable and must be re-derived by a party holding both schemas, or rejected. 3. **No defaulting on ambiguity.** A migration shim that substitutes a wildcard, open set, or permissive default when a schema field is unrecognized violates the invariant. Unrecognized schema must fail closed. The `*` default in the observed case was the specific mechanism that converted a missing field into an over-grant. 4. **Subset proof binds to parent's byte-level grant.** The proof's commitment must reference the parent link's grant as a hash or canonical serialization, so that reinterpretation of the parent's semantics is detectable. A proof that references only the parent's *identifier* can be replayed against a re-interpreted parent. When any of these fail, the chain is *structurally* valid and *semantically* unsound, and the instance must refuse. ## Decision Boundary The consuming instance faces a three-way decision at each hop, not a binary accept/reject: - **Accept** when schema versions match across the hop and the subset proof is bound to the parent's canonical grant bytes. Proceed. - **Quarantine-and-re-derive** when schema versions differ but both schemas are locally available and the issuer of the child link is reachable to re-mint the attenuation proof under the parent's schema. Hold the tool call, do not execute, request re-derivation with a bounded timeout. If re-derivation does not arrive before the timeout, escalate to reject. - **Reject** when schema versions differ and either schema is unavailable, the child issuer is unreachable, or any link lacks an explicit schema binding. There is no safe default. The instance must emit a structured refusal naming the specific hop and the schema mismatch, and must not attenuate the credential further (a refused link cannot be laundered by re-delegating under a schema the instance *does* understand). The non-obvious part of the boundary: **the instance must not "helpfully" re-interpret the parent under the child's schema.** The temptation is to treat the newer schema as authoritative and re-validate the whole chain under it. That is precisely the move that produces the over-grant, because the newer schema's subset rules are not conservative extensions of the older one. Schema evolution in capability languages is not monotone; a 2.0 checker cannot certify a 1.3 grant. ## Operational Effect The downstream consequence is a **silent privilege expansion across a schema boundary** — the class of failure that audit logs miss because every logged event is individually well-formed. The scheduler's log shows a valid warrant, a valid proof, and a successful write. Nothing in the trace flags the `event_class` widening, because the widening happened in the *interpretation* of the parent, not in any recorded field. Operationally this forces three changes at the consuming instance: 1. **Schema-version binding becomes a first-class verification step**, not an afterthought. The verifier must extract `schema_version` from every link *before* evaluating any subset proof, and must refuse to evaluate a proof whose parent schema it cannot pin. 2. **Migration shims are attack surface.** Any default-substitution logic in a subset checker must be removed or gated behind an explicit `allow_permissive_defaults: false` that is set false by default and cannot be set true by a delegated agent. The observed failure was a shim doing exactly what it was written to do. 3. **Canonical-grant commitment.** Attenuation proofs must commit to the parent's canonical grant bytes, so that a re-interpretation of the parent is detectable as a commitment mismatch rather than passing silently. This is the guardrail that bounds the failure even when schemas drift. The invariant to carry forward: *a delegation chain is only as sound as the weakest schema binding in it; signature validity across a schema boundary proves linkage, not authority.* ```python from __future__ import annotations from dataclasses import dataclass from typing import Optional class SchemaBindingError(RuntimeError): """Raised when an AAIF delegation link cannot be soundly evaluated because its attenuation proof was minted against a schema version that does not match the parent link's bound schema.""" @dataclass(frozen=True) class Link: issuer: str subject: str schema_version: Optional[str] # None means the issuer omitted it grant_commitment: str # hash of canonical grant bytes attenuation_proof: str def _schema_pinned(link: Link) -> bool: return link.schema_version is not None and link.schema_version != "" def verify_attenuation(parent: Link, child: Link, local_schemas: set[str]) -> None: """Verify that `child`'s attenuation proof is sound relative to `parent`. Structural checks (signatures, iss/sub linkage, root anchor) are assumed already performed by the caller. This function enforces the schema-binding invariant that structural verification does not cover. """ if not _schema_pinned(parent): # No safe default: an unpinned parent cannot bound the child's proof. raise SchemaBindingError( f"parent link {parent.issuer}->{parent.subject} has no bound " f"schema_version; attenuation proof from {child.issuer} is " f"unverifiable and must be rejected" ) if not _schema_pinned(child): raise SchemaBindingError( f"child link {child.issuer}->{child.subject} omits schema_version; " f"cannot confirm the proof was minted under {parent.schema_version!r}" ) if child.schema_version != parent.schema_version: # Schema drift across a hop. Do NOT reinterpret parent under child's # schema -- capability subset rules are not monotone across versions. if parent.schema_version not in local_schemas: raise SchemaBindingError( f"schema mismatch at hop {parent.subject}->{child.subject}: " f"parent bound to {parent.schema_version!r}, child proof minted " f"under {child.schema_version!r}, and parent schema is not " f"locally available for re-derivation; refusing" ) raise SchemaBindingError( f"schema mismatch at hop {parent.subject}->{child.subject}: " f"parent bound to {parent.schema_version!r}, child proof minted " f"under {child.schema_version!r}; quarantine and re-derive under " f"the parent schema before executing" ) # Same schema on both sides: the subset proof is comparable. The caller's # canonical-grant commitment check ensures the parent bytes were not # reinterpreted between proof generation and verification. return None ```