# What structural signals indicate a DID-issuer trust-chain break during cross-org A2A handshake before the receiving agent commits to a delegated warrant **Date of Record:** 2026 November 28 **Scope:** Applies to A2A handshakes where the receiving agent verifies a Verifiable Credential (VC) chain rooted in a Decentralized Identifier (DID) issued by a foreign-org trust anchor, and where the verified claims are then minted into a delegated execution warrant. Does not apply to same-org trust domains, symmetric-key session auth, or interactive OAuth consent flows where a human is in the loop. ## Core Distinction The failure mode is not "the VC failed signature verification." Signature verification is the easy, deterministic half. The boundary failure is **structural**: the credential verifies cryptographically, the DID resolves, the issuer's `alsoKnownAs`/`controller` field points at a plausible-looking org DID, and yet the trust chain is broken because the *linkage between the issuer DID and the org that actually authorized the delegated claim* is asserted by a self-signed controller statement with no path back to a root the receiver already anchors. In other words, the receiving agent cannot distinguish **"this VC was signed by the key the DID document names"** from **"the DID document's controller is the org the sender claims to be."** Those are two different invariants, and VC verification libraries only enforce the first. The distinction that matters operationally: a *verification success* is a statement about key material. A *trust success* is a statement about authorization provenance. Agents routinely conflate them because the same `verify()` call returns `True` for both a properly federated chain and a sybil chain where every link is self-attested. ## What Was Observed During a cross-org handoff, agent `A` (org `alpha`) presented a delegated warrant to agent `B` (org `beta`) over A2A. The handshake carried a chain: `VC_leaf` (claim: `A` may invoke `B.payments.initiate` up to a limit) → issued by `did:web:gateway.alpha.example` → whose DID document lists `controller: did:web:alpha.example` → whose DID document is self-published by `alpha`. `B`'s verification stack resolved every DID, checked every `proof`, and returned success. Three structural signals were present that the stack did not surface: 1. **Controller-link opacity.** The `controller` edge from `did:web:gateway.alpha.example` to `did:web:alpha.example` was resolved over `did:web`, meaning the trust root was *DNS + TLS for `alpha.example`*. No `beta`-anchored root (no trust registry entry, no federation allowlist hash) bound `alpha.example` to the org that `beta` believes it is transacting with. The chain terminated in a name `beta` had never independently vouched for. 2. **Claim-subject divergence.** `VC_leaf.credentialSubject.id` named a *key* DID (`did:key:z6Mk...`), not an agent identity DID. The warrant was therefore bound to a bare keypair with no org backlink. A key DID is self-certifying and cannot be revoked or re-bound; the org attribution existed only in the free-text `issuer.name` field. 3. **Warrant-minting without anchor pinning.** `B`'s warrant minter accepted the verified VC and stamped the delegated scope, but the mint step recorded `issuer = did:web:gateway.alpha.example` (the *signing* DID) rather than a `beta`-anchored trust-anchor identifier. Downstream, the audit log attributed the action to a DID string, not to `alpha`-the-org, so the delegation was unauditable against `beta`'s own trust registry. The concrete trace: `verify_chain()` → `True`; `resolve_all_dids()` → all `200`; `anchor_check()` → *never called*, because the code path assumed "verified ⇒ anchored." The handshake committed a warrant that `beta` could not later revoke (key DID, no revocation endpoint) and could not attribute (anchor not pinned). ## Condition of Validity The guardrail holds only under all of the following, and fails silently if any is unstated: - **The receiver maintains an explicit trust-anchor set** (a registry of org DIDs `beta` has out-of-band vouched for, ideally with a pinned document hash or a federation membership VC issued by a `beta`-recognized federation root). "DID resolves" is *not* anchoring. - **Every controller/`alsoKnownAs` edge in the chain is itself a VC or a registry entry, not a bare DID-document field.** A DID document's `controller` is a self-assertion by the DID's own resolver; treating it as authorization provenance is the core error. - **The credential subject is an org-bound agent identity DID**, not a `did:key`. If `did:key` appears as subject, the receiver must require an additional binding VC from the org DID to that key, and must pin the org DID to its anchor set. - **The minted warrant records the anchored trust-anchor ID**, not the raw signing DID, so revocation and audit are expressible against `beta`'s own registry. If the receiver cannot state which of its own anchors the chain terminates in, the chain is not federated—it is merely signed. ## Decision Boundary The receiving agent must **refuse to mint a delegated warrant** (and must not execute any tool call gated on it) when the chain's terminal anchor is not a member of its trust-anchor set, *even if every signature verifies*. The decision is binary and must be made *before* warrant minting, not after: - **Accept** only if: `terminal_anchor ∈ receiver.trust_anchors` AND every controller edge is backed by a VC/registry entry AND subject is org-bound (or key-bound with an explicit org-binding VC that pins to an anchor). - **Reject** if the terminal is a self-published DID, a `did:key` subject without org binding, or an anchor not in the set. Rejection must be a *hard* handshake failure, not a degraded/limited warrant—partial trust on a broken chain is the dangerous case, because the sender can escalate scope on a later retry once the receiver has "warmed" to the DID. The boundary is sharp because the two invariants (signature validity vs. anchor membership) are independent. A chain can be fully valid and fully unanchored; the receiver's job is to enforce the second, which the crypto layer structurally cannot. ## Operational Effect Without the anchor check, `beta` accepts warrants it cannot revoke (key-DID subject, no revocation endpoint reachable), cannot attribute (audit keyed on a foreign DID string), and cannot rate-limit per-org (no org identity to bucket on). The failure is silent: every log line says `verified: true`. The remediation is to move the anchor check *into* the handshake as a precondition on warrant minting, pin the anchor ID into the warrant record, and treat any chain whose terminal is not in the registry as a protocol-level rejection that the sender must resolve by presenting a federation-membership VC from a `beta`-recognized root. The invariant to encode: **a warrant may only be minted over a chain whose terminal anchor the receiver has independently vouched for; signature validity is necessary but never sufficient.** ```python from dataclasses import dataclass, field from typing import Optional class TrustChainUnanchoredError(RuntimeError): """Raised when a VC chain verifies cryptographically but does not terminate in an anchor the receiver has independently vouched for.""" @dataclass class VerifiedChain: signing_did: str terminal_anchor: Optional[str] # last controller/alsoKnownAs in chain subject_did: str controller_edges_are_vc_backed: bool signatures_valid: bool @dataclass class Receiver: trust_anchors: set = field(default_factory=set) # org DIDs beta vouched for def mint_warrant(chain: VerifiedChain, receiver: Receiver) -> dict: # Signature validity is necessary, never sufficient. if not chain.signatures_valid: raise TrustChainUnanchoredError( f"signature verification failed for {chain.signing_did}" ) # Invariant 1: chain must terminate in a receiver-anchored org DID. if chain.terminal_anchor is None or chain.terminal_anchor not in receiver.trust_anchors: raise TrustChainUnanchoredError( "terminal anchor " f"{chain.terminal_anchor!r} not in receiver trust set " f"{sorted(receiver.trust_anchors)!r}; refusing to mint warrant" ) # Invariant 2: controller edges must be VC/registry-backed, not bare # self-published DID-document fields. if not chain.controller_edges_are_vc_backed: raise TrustChainUnanchoredError( f"controller edges for {chain.signing_did} are self-asserted, " "not VC-backed; provenance unproven" ) # Invariant 3: subject must be org-bound; bare did:key cannot be revoked. if chain.subject_did.startswith("did:key:"): raise TrustChainUnanchoredError( f"subject {chain.subject_did} is a bare key DID with no org backlink; " "delegation would be unrevocable and unattributable" ) # Pin the ANCHOR (not the signing DID) into the warrant for audit/revocation. return { "anchored_org": chain.terminal_anchor, "signing_did": chain.signing_did, "subject_did": chain.subject_did, "revocable_against": chain.terminal_anchor, } ```