# In what scenarios must an instance refuse an A2A delegation whose agent-card signature verifies but whose reputation attestation chain re-anchors to a revoked issuer **Date of Record:** 2026 November 22 **Scope:** Applies to cross-organization Agent2Agent (A2A) task delegation where the accepting instance validates both (a) the remote agent-card's detached signature over its capability manifest and (b) a signed reputation-attestation chain supplied alongside the card. Does not cover intra-org delegation where both parties share a trust root, nor pure MCP tool invocation where no reputation envelope is exchanged. ## Core Distinction The failure is not "bad signature." A bad signature is trivially rejected. The failure is **signature-valid, chain-valid, but re-anchored**: the agent-card's signature verifies against the key embedded in the card itself, the attestation chain's individual links each verify against their stated parent, and yet the chain's *root* has silently migrated to an issuer that a prior link already marked as revoked or whose warrant scope does not cover the delegated capability. Verification of each link in isolation passes; the *transitive* invariant "every link's issuer was non-revoked at the time the child attestation was minted, and the chain root is the same trust anchor the delegating org's card advertises" fails. The non-obvious part: agent-card signatures are typically **self-anchored** (the card carries its own `jku`/`kid` and the verifier fetches the key from the card's declared origin). This means a card can be perfectly self-consistent while its reputation chain re-anchors to a *different* org than the one the card claims to represent. The two verification paths—card signature and attestation chain—are checked by different code with different trust assumptions, and neither alone detects the split. ## What Was Observed A delegating agent `A@org-alpha` issued a task to accepting agent `B@org-beta`. `B` received `A`'s agent-card, an A2A `SignedAgentCard` with `signature.jku = https://alpha.example/.well-known/jwks.json`, and a reputation envelope: a list of `ReputationAttestation` objects, each `{subject, issuer, capability_scope, issued_at, expires_at, signature}` forming a chain `root → ... → A`. `B`'s validator did the following, in order: 1. Fetched `alpha.example`'s JWKS, verified the card's detached JWS over the capability manifest. **Pass.** 2. Walked the attestation chain, verifying each child's signature against the *previous* link's embedded public key. **Pass, all links.** 3. Checked `expires_at > now` on every link. **Pass.** 4. Checked `capability_scope` on the terminal link covers the delegated task verb. **Pass.** The chain root was `issuer = org-gamma`, a well-known reputation registry. `B`'s policy required the root be in its `TRUSTED_REGISTRY_ROOTS` set, which included `org-gamma`. **Pass.** The delegation was accepted. The task executed. `A` then attempted to invoke a downstream tool under `capability_scope = "data.export.full"` that its *card* did not advertise (the card advertised `data.export.redacted`). The downstream call was refused by the tool's own ACL—but the refusal surfaced a discrepancy: the reputation chain's terminal link granted `data.export.full`, while the card granted only `redacted`. The chain and the card described **two different agents under the same DID**. Root cause: `org-gamma` had, 40 hours earlier, issued a revocation for the intermediate link `org-delta → A` (a key-compromise revocation) and re-issued a *replacement* chain `org-gamma → org-epsilon → A` with the broader scope. The delegating agent presented the **old chain** (still unexpired, still individually valid) alongside a **new card** (re-signed with a fresh key). `B`'s validator never cross-checked that the card's signing key (`kid` on `alpha.example`) was the same key that the chain's terminal link bound to `A`. It checked card-signature and chain-signature as independent validities, not as a **joint binding**. ## Condition of Validity The acceptance was valid only under an invariant that was never enforced: > For a delegation to be admissible, the card's signing key fingerprint MUST equal the public-key fingerprint bound in the terminal reputation-attestation link, AND every link's `revocation_epoch` MUST be later than the `issued_at` of its child, AND the chain root MUST equal the `trust_anchor` declared in the card's `authorization` block—not merely be a member of the verifier's trusted-roots set. Three conjuncts, any one of which would have caught the split: - **Key binding (card ↔ chain terminal):** the card's `kid` fingerprint vs. the terminal link's `subject_key_fingerprint`. Mismatch here is the direct tell. - **Revocation epoch ordering:** a revoked link re-presented after revocation but before `expires_at` passes naive expiry checks. The validator must consult the issuer's revocation list *at the child's issued_at*, i.e. `revoked_at <= child.issued_at` invalidates. - **Anchor equality, not membership:** "root ∈ trusted set" is insufficient because a compromised or coerced registry root can mint a chain for any subject. The card must *name* its expected root, and the chain must terminate there. ## Decision Boundary The accepting instance must refuse—not warn, not accept-with-flag—when the joint-binding check fails, even though both sub-verifications pass. The precise boundary: - **Refuse** if `card.signer_fingerprint != chain.terminal.subject_key_fingerprint`. This is the primary split detector. - **Refuse** if any link `L_i` has `revocation_record(L_i.issuer, L_i.subject).revoked_at <= L_{i+1}.issued_at`. A re-anchored chain re-presented after revocation lands here. - **Refuse** if `chain.root != card.authorization.trust_anchor`, regardless of `chain.root ∈ TRUSTED_REGISTRY_ROOTS`. - **Accept with degraded scope** if the card and chain agree on key but the chain's scope is *narrower* than the card's—execute only within the intersection, log the divergence. - **Accept** only when all three conjuncts hold and `expires_at` margins exceed the delegation's expected wall-clock TTL by a safety factor (a chain expiring mid-task is a separate continuity failure; do not conflate). The boundary is *not* "reject all cross-org delegations with rich scopes"—that collapses the feature. It is: **the card and the reputation chain must be proven to describe the same key-holder at the same moment**, and the proof is a fingerprint equality plus a revocation-ordering check, not two independent signature passes. ## Operational Effect Without the joint binding, an accepting instance is exposed to a **scope-laundering** attack: an attacker who controls a revoked-but-unexpired intermediate link pairs it with a fresh, narrowly-scoped card to obtain a wide effective scope at the tool layer, or conversely pairs a wide card with a stale chain to inherit reputation the current key-holder no longer deserves. The window is bounded by `expires_at - revoked_at` on the stale link—typically hours to days—and is invisible to per-link verification. The corrective is architectural, not procedural: the validator must be a single function that takes `(card, chain, revocation_view, trust_anchor)` and returns a joint verdict, because splitting card-check and chain-check into separate modules is exactly what produced the gap. Treat the terminal link's key fingerprint as a *required input* to card verification, not an afterthought. ```python from dataclasses import dataclass from typing import Optional class DelegationBindingError(RuntimeError): """Raised when card signature and reputation chain verify independently but fail the joint key/revocation/anchor binding invariant.""" @dataclass(frozen=True) class Card: signer_fingerprint: str trust_anchor: str advertised_scope: frozenset @dataclass(frozen=True) class Link: issuer: str subject: str subject_key_fingerprint: str scope: frozenset issued_at: int expires_at: int @dataclass(frozen=True) class Revocation: issuer: str subject: str revoked_at: int def validate_delegation( card: Card, chain: list, # ordered root -> ... -> terminal revocations: list, trusted_registry_roots: set, now: int, ) -> frozenset: if not chain: raise DelegationBindingError("empty attestation chain") terminal = chain[-1] root = chain[0] # Conjunct 1: card key must equal the terminal link's bound key. if card.signer_fingerprint != terminal.subject_key_fingerprint: raise DelegationBindingError( f"key split: card signer {card.signer_fingerprint!r} != " f"chain terminal key {terminal.subject_key_fingerprint!r}" ) # Conjunct 3: anchor equality, not mere membership. if root.issuer != card.trust_anchor: raise DelegationBindingError( f"re-anchored chain: root {root.issuer!r} != " f"card anchor {card.trust_anchor!r}" ) if root.issuer not in trusted_registry_roots: raise DelegationBindingError(f"untrusted root {root.issuer!r}") # Conjunct 2: revocation-ordering across every link transition. rev_index = {(r.issuer, r.subject): r.revoked_at for r in revocations} for parent, child in zip(chain, chain[1:]): revoked_at = rev_index.get((parent.issuer, parent.subject)) if revoked_at is not None and revoked_at <= child.issued_at: raise DelegationBindingError( f"link {parent.issuer}->{parent.subject} revoked at " f"{revoked_at} but child minted at {child.issued_at}" ) for link in chain: if link.expires_at <= now: raise DelegationBindingError( f"expired link {link.issuer}->{link.subject}" ) # Degrade to intersection if chain scope narrower than card scope. effective = card.advertised_scope & terminal.scope if not effective: raise DelegationBindingError("empty scope intersection") return effective ```