# When must an instance refuse to inherit a peer's AAIF identity attestation across a federated A2A hop? **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent-to-agent (A2A) calls where an originating agent instance presents an Agent Identity Attestation (AIA) issued by its home authority and a downstream agent must decide whether that attestation remains a valid binding for the *present* call. Does not apply to single-authority deployments where issuer and verifier share a trust root, nor to stateless capability tokens that carry no subject binding. ## Core Distinction The failure mode is not "expired token" or "bad signature." It is **attestation-subject drift under delegation**: an AIA is cryptographically valid, unexpired, and correctly signed, yet the *instance* presenting it is no longer the instance the attestation was minted for. AAIF attestations bind three things together — the issuing authority, a subject key, and a set of declared capabilities scoped to a federation context. The binding is only meaningful if the verifier can establish that the live caller *is* the subject key holder *at the moment of the hop*. The non-obvious part: in federated A2A, the common pattern is for an orchestrator to obtain an AIA once, then fan out sub-calls through worker instances. Workers frequently "inherit" the orchestrator's attestation as ambient credentials. Signature checks pass. Capability claims match. The call is accepted. But the *subject* of the attestation is the orchestrator's key, not the worker's. This is a silent privilege-laundering path: a worker that should have been denied a capability acquires it by riding the parent's AIA. The invariant that must hold is **subject continuity**: every hop must re-establish that the presenting instance controls the subject key named in the attestation, or the attestation must be re-issued (delegated) with the worker as an explicit subject. ## What Was Observed A three-tier federated call: Orchestrator (authority A) → Router (authority B) → Tool-agent (authority C). The Orchestrator held an AIA `AIA_A` with subject key `K_orch` and capability `data.export`. It dispatched a subtask to a Router worker instance that had been spun up cold from a snapshot. The snapshot included `AIA_A` in the worker's credential cache — a serialization artifact of the checkpoint, not an intentional grant. Trace: 1. Worker presents `AIA_A` to Router (authority B). Router verifies signature against A's published JWKS, checks expiry, checks that `aud` includes B's federation realm. All pass. Router accepts. 2. Router forwards the call to Tool-agent (authority C), passing `AIA_A` through unchanged (the "pass-through" default in most A2A transport shims). 3. Tool-agent verifies `AIA_A` against A's JWKS. Signature valid. `data.export` present in claims. Tool-agent executes the export **as if the Orchestrator had called it directly**. 4. The worker never proved possession of `K_orch`. No challenge was issued at any hop. The export ran under the Orchestrator's identity, but was triggered by a cold-started worker whose own identity was never asserted. The observable anomaly was in the audit log: three hops, one subject, zero subject-key-possession events. The worker's own instance ID appears nowhere in the verification chain. ## Condition of Validity An inherited AIA remains a valid binding for a downstream hop **iff** all of the following hold at the moment of presentation: - The presenting instance can complete a proof-of-possession challenge against the subject key named in the AIA (e.g., sign a verifier-supplied nonce with `K_subject`), **or** the AIA carries an explicit delegation chain in which the presenting instance's key is a named delegate with a subset of capabilities. - The federation context in the AIA's `aud`/`realm` claim matches the *verifier's* realm, not merely the realm of an intermediate router. Pass-through does not extend the audience. - The AIA's `iat` is after the presenting instance's cold-start timestamp, or the instance can demonstrate it is the same process lineage that held the key at `iat`. A snapshot-restored instance that predates `iat` is presumed to have inherited, not earned, the credential. If any condition fails, the attestation is **structurally stale for this subject** even though it is temporally fresh. ## Decision Boundary The verifier's decision function must treat "valid signature + matching capability + unexpired" as necessary but not sufficient. The boundary is: - **Accept** when the presenting instance proves possession of the subject key, or presents a delegation chain whose terminal delegate is the presenting instance and whose capability set is a subset of the parent's. - **Reject with re-attestation requirement** when the presenting instance cannot prove possession but the AIA is otherwise valid. Do not silently downgrade to "anonymous" — that converts an identity failure into an authorization surprise downstream. - **Reject outright** when the AIA's audience realm does not include the current verifier (pass-through across a realm boundary that was never in `aud`). The critical guardrail: **no pass-through of an AIA across a hop where the presenter is not the subject.** A router may forward the *call*, but it must forward it under a *re-issued* attestation naming the router as delegate, or it must attach the original AIA plus a proof-of-possession from the originator that the router itself verified and vouches for. The router cannot launder an attestation it did not bind. ## Operational Effect Without this invariant, the blast radius of a single leaked or snapshot-captured AIA is the entire federation reachable from any router that accepts pass-through. Capability checks at each hop become decorative: they validate the *originator's* claims while the *actual executor* is an unvetted worker. The audit trail collapses to a single subject across N hops, making post-hoc attribution impossible. With the invariant enforced, cold-start workers fail closed at the first hop, are forced through a re-attestation flow (their own authority issues an AIA naming them as subject with a delegated capability subset), and the audit log regains one subject-key-possession event per hop. The cost is an extra round-trip for proof-of-possession; the benefit is that "who actually ran this" is answerable from the log alone. ```python import time from dataclasses import dataclass, field class AttestationBindingError(RuntimeError): """Raised when an inherited AAIF attestation does not bind to the presenting instance.""" @dataclass class Attestation: issuer: str subject_key_id: str capabilities: set audience_realms: set issued_at: float expires_at: float signature_valid: bool @dataclass class PresentingInstance: instance_id: str controlled_key_ids: set cold_start_ts: float can_prove_possession: bool = True def verify_hop( att: Attestation, presenter: PresentingInstance, verifier_realm: str, now: float | None = None, delegation_chain: list | None = None, ) -> None: now = now if now is not None else time.time() if not att.signature_valid: raise AttestationBindingError(f"signature invalid for issuer {att.issuer}") if now >= att.expires_at: raise AttestationBindingError(f"attestation expired at {att.expires_at}") if verifier_realm not in att.audience_realms: raise AttestationBindingError( f"realm {verifier_realm} not in audience {att.audience_realms}; " "pass-through across realm boundary is not permitted" ) # Subject continuity: the presenter must control the subject key, OR be a # named terminal delegate with a capability subset. controls_subject = att.subject_key_id in presenter.controlled_key_ids if not controls_subject: if not delegation_chain: raise AttestationBindingError( f"presenter {presenter.instance_id} does not control subject key " f"{att.subject_key_id} and presents no delegation chain " "(inherited attestation from snapshot or parent context)" ) terminal = delegation_chain[-1] if terminal.get("delegate_key_id") not in presenter.controlled_key_ids: raise AttestationBindingError( f"delegation chain terminal key {terminal.get('delegate_key_id')} " f"not held by presenter {presenter.instance_id}" ) if not set(terminal.get("capabilities", set())).issubset(att.capabilities): raise AttestationBindingError( "delegated capability set exceeds parent attestation scope" ) # Cold-start lineage check: a snapshot-restored instance predating iat # cannot have earned the credential; require proof-of-possession. if presenter.cold_start_ts < att.issued_at and not controls_subject: raise AttestationBindingError( f"presenter {presenter.instance_id} cold-started at " f"{presenter.cold_start_ts} before attestation issuance " f"{att.issued_at}; credential presumed inherited" ) if not presenter.can_prove_possession and not delegation_chain: raise AttestationBindingError( f"presenter {presenter.instance_id} cannot prove possession of " f"subject key {att.subject_key_id}" ) def handle_federated_call(att, presenter, verifier_realm, delegation_chain=None): verify_hop(att, presenter, verifier_realm, delegation_chain=delegation_chain) return {"accepted": True, "subject": att.subject_key_id, "executor": presenter.instance_id} ```