# Why does an instance boundary break AAIF attestation chains across delegated multi-hop agent hops **Date of Record:** 2026 November 23 **Scope:** AAIF attestation chains spanning two or more delegated hops, each signed by a distinct workload instance. Excludes single-hop authorization and co-resident-instance chains. ## Core Distinction An AAIF attestation chain is a sequence of signed delegation tokens, each asserting principal *P* delegates scope *S* to subject *Q* until time *T*, bound to an *instance identity* (SPIFFE ID plus boot-time measurement). The intuitive model treats the chain as transitive: A→B and B→C imply A→C. The failure is that **instance identity is not transitive across a hop boundary**. When B delegates to C, the token is bound to B's *own* instance identity, not A's. A verifier checking only "chain unbroken, signatures verify" accepts a chain whose terminal scope was never constrained by A's instance — the intermediate can mint a fresh binding for a different instance of the same role. Cryptographically intact, semantically discontinuous. ## What Was Observed A three-hop chain A→B→C verified at C's policy engine while C's runtime was a *recycled* B-role instance — same role name and SPIFFE ID pattern, different boot measurement than A's token was bound to. Acceptance occurred because: 1. Each hop's signature verified against the *issuer's* current instance key. 2. The B→C token's instance-binding field was populated from B's *live* instance document at signing time, not from the A→B token. 3. No hop compared hop *n*'s measurement against hop *n-1*'s assertion. A's constraint on *which instance* of B could act was silently dropped at the boundary. ## Condition of Validity The chain is sound only if every hop enforces **instance-binding continuity**: the `instance_ref` and `measurement_digest` on the token issued by hop *n* must equal the `subject_instance_ref` and `subject_measurement_digest` in the token received from hop *n-1*. Absent, unconstrained, or live-re-derived fields invalidate the chain regardless of signature validity. This is *not* implied by signature verification and must be checked explicitly. ## Decision Boundary - **Accept** only if every hop's carried-forward binding matches its predecessor's assertion AND the terminal measurement satisfies the original principal's policy. - **Reject** if any hop re-binds to a live instance differing from the carried-forward binding, even when role, SPIFFE ID, and scope match. - **Escalate** (never silently downgrade) when binding fields exist but measurement digest is unpopulated — missing measurement is a hard failure. - **Do not** treat role-name or SPIFFE-path equality as a substitute for measurement equality. ## Operational Effect Enforcing instance-binding continuity converts silent privilege-widening (instance recycling under a stable role) into an explicit, auditable rejection at the discontinuity. The cost: rolling instance replacements mid-chain now fail closed and require re-issuance from the original principal — correct behavior, but it must be anticipated in delegation TTL and the re-issuance runbook. Teams skipping this check see chains that "always verify" and discover the gap only in incident review, when the terminal measurement is found to postdate the delegation that supposedly constrained it. ```python from dataclasses import dataclass from typing import Optional class AttestationChainError(RuntimeError): """Raised when an AAIF multi-hop chain violates instance-binding continuity.""" pass @dataclass class HopToken: issuer_role: str subject_role: str subject_instance_ref: str subject_measurement_digest: Optional[str] scope: str def verify_chain_continuity(chain: list[HopToken]) -> None: if not chain: raise AttestationChainError("empty attestation chain") for i in range(1, len(chain)): prev = chain[i - 1] cur = chain[i] # The current hop must be issued by the role the previous hop delegated to. if cur.issuer_role != prev.subject_role: raise AttestationChainError( f"hop {i}: issuer_role {cur.issuer_role!r} does not match " f"predecessor subject_role {prev.subject_role!r}" ) # Instance-binding continuity: the binding carried forward must match # the binding the predecessor asserted. Missing measurement is a hard fail. if not cur.subject_instance_ref: raise AttestationChainError( f"hop {i}: missing subject_instance_ref on delegated token" ) if not cur.subject_measurement_digest: raise AttestationChainError( f"hop {i}: missing subject_measurement_digest; " "unmeasured instance cannot satisfy continuity" ) if cur.subject_instance_ref != prev.subject_instance_ref: raise AttestationChainError( f"hop {i}: instance binding discontinuity — " f"carried {cur.subject_instance_ref!r} != " f"asserted {prev.subject_instance_ref!r}" ) if cur.subject_measurement_digest != prev.subject_measurement_digest: raise AttestationChainError( f"hop {i}: measurement discontinuity — " f"{cur.subject_measurement_digest!r} != " f"{prev.subject_measurement_digest!r}" ) ```