# What structural signals indicate an A2A agent has presented a valid AAIF warrant under a foreign trust root — and where the cross-root proof chain silently degrades **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent-to-agent handoffs where an agent operating under AAIF-issued warrants presents identity and delegated authority to a peer anchored in an A2A trust root (or vice versa), and where neither root publishes a bilateral trust anchor. Does not apply to single-root deployments, nor to cases where warrant and verifier share a common root of trust with a published cross-certification. ## Core Distinction The failure that matters here is not "invalid signature." It is **structurally valid but semantically rootless** proof: a warrant whose signature chain verifies cryptographically against the AAIF issuer's key, is presented to an A2A verifier, and passes because the verifier's chain-walk terminates at *a* self-consistent root — just not *its own*. The verifier sees a green check. The warrant's authority was never actually endorsed by any root the verifier trusts. The distinction is between **chain integrity** (every link signs the next; terminates somewhere) and **root binding** (the terminal key is one the verifier's policy names as authoritative). Heterogeneous roots break the second while preserving the first, and most verifier implementations conflate them. A second, subtler distinction: the *delegation scope* of an AAIF warrant is expressed in AAIF's capability vocabulary (e.g., `aaif.cap.data.read:v2`), while the A2A verifier reasons over its own vocabulary (`a2a:resource:read`). Even a correctly root-bound warrant can be silently over-honored when the verifier's scope-mapping table has no entry and defaults to "permit on unknown capability." ## What Was Observed During a federated handoff test between an AAIF-anchored orchestrator and an A2A-anchored tool-executor peer, the following trace was captured: 1. Orchestrator mints a warrant `W` with chain: `AAIF-Root → AAIF-OrgCA → Agent-Orch`, delegation payload `{sub: agent-orch, aud: tool-exec, cap: aaif.cap.files.write:v2, exp: T+300}`. 2. Orchestrator presents `W` to the A2A peer in the A2A `AgentCard.authorization` field, serialized as a JWS with `x5c` chain `[Agent-Orch-cert, AAIF-OrgCA-cert]` (root omitted, as AAIF convention expects the verifier to hold the root out-of-band). 3. A2A verifier walks the `x5c` chain. `AAIF-OrgCA-cert` is not self-signed, so the walk **cannot terminate**; the verifier's chain-walker falls back to its configured "trust-on-first-presentation" cache, which had been seeded during an earlier discovery exchange with the AAIF OrgCA. The walk terminates at `AAIF-OrgCA`, which the verifier now treats as a root. 4. Signature verification passes. Root binding is *false* — the A2A peer's actual policy root is `A2A-Root`, which never endorsed `AAIF-OrgCA`. The verifier reports `authorized: true`. 5. The tool-executor honors `cap: aaif.cap.files.write:v2`. Its scope-mapper has no entry for this capability string; the default branch returns `PERMIT` with a `WARN: unmapped capability` log line that is never surfaced to the caller. 6. The write proceeds. No error at any layer. The audit log records a valid warrant and a successful authorization. The composite failure: **rootless chain acceptance** compounded by **default-permit scope mapping**. Either alone is survivable; together they constitute a silent privilege escalation across trust roots. The structural signal that *should* have fired — "chain terminated at a key not in my policy root set" — was masked because the TOFU cache promoted the intermediate to a root. ## Condition of Validity The invariant that must hold for cross-root presentation to be sound: > A warrant presented under a foreign root is honored **iff** the verifier's policy contains an explicit, signed cross-root endorsement `Endorse(foreign_root_key, scope, expiry)` AND the warrant's delegation scope is a *member* of the mapped capability set under that endorsement AND the capability mapping is total (no unknown-capability default). Three conditions, all necessary: - **Explicit root binding.** The terminal key of the chain must equal a key named in the verifier's signed policy — not a key learned at runtime. TOFU caches, discovery-seeded roots, and "first-seen intermediate" promotions all violate this. The check is `terminal_key ∈ policy.trusted_roots`, evaluated against the *policy document's* key set, never against a mutable cache. - **Scope containment under endorsement.** The endorsement must carry a scope narrower than or equal to the verifier's own authority. An endorsement of `AAIF-OrgCA` for `files.write` does not authorize `files.write:v2` unless the endorsement names `v2`. Version drift in capability strings is a real containment escape. - **Total capability mapping.** Unknown capability strings must map to `DENY`, never to a default `PERMIT`. The mapping table must be closed; any capability not in the table is a mapping failure that fails closed. When any condition is unmet, the correct behavior is rejection with a structured reason, not a warning-and-proceed. ## Decision Boundary The boundary the operator must draw is between **two failure postures**: - **Fail-open on unknown root:** accept the warrant, log a warning, proceed. This is what the observed system did. It is defensible only when the tool being invoked is idempotent, reversible, and low-blast-radius (e.g., read-only metadata queries), and only when the warning is promoted to a metric that alerts. - **Fail-closed on unknown root:** reject with `ForeignRootUnbound`. Required for any capability with side effects — writes, sends, spends, deletes, state mutations. The decision is not "is the signature valid" (it usually is) but "is the terminal key in my signed policy, and is the capability mapped." Concretely, the verifier must evaluate, in order: 1. `terminal_key = walk(x5c)` — and *refuse to walk* if the chain does not terminate at a self-signed cert or a policy-named root within `len(x5c)` steps. No TOFU fallback. 2. `terminal_key ∈ policy.trusted_roots` — if false, `ForeignRootUnbound`, fail closed. 3. `capability ∈ policy.capability_map` — if false, `UnmappedCapability`, fail closed. 4. `mapped_scope ⊆ endorsement.scope` — if false, `ScopeContainmentViolation`, fail closed. 5. Only then: `authorized: true`. The boundary is sharp: steps 1–4 are *structural*, not probabilistic. There is no "mostly bound" root. The moment a verifier allows a runtime-learned key to satisfy step 2, the boundary is gone and every subsequent authorization is advisory. ## Operational Effect The downstream consequences of the composite failure, in order of blast radius: - **Silent escalation.** Because both sub-failures are silent (green check, unmapped-capability warning buried in logs), the escalation is invisible until the side effect manifests. Detection latency is measured in the time-to-effect of the invoked capability, not in the auth path. - **Audit poisoning.** The audit record says "valid warrant, authorized." A post-hoc auditor replaying the log will *reproduce the same false positive* unless the auditor independently re-checks root binding against the policy document — which most replay tools do not, because they trust the recorded authorization decision. The failure is self-propagating through the audit chain. - **Cross-root contagion.** If the A2A peer later acts as an issuer (re-delegates to a third agent), it propagates the foreign-root warrant under its *own* root, laundering the AAIF authority into the A2A trust domain. One unbound acceptance becomes a transitive trust violation. - **Recovery cost.** Because the warrant was structurally valid, revocation requires revoking the *intermediate* (`AAIF-OrgCA`) at the A2A root — a cross-organizational action with its own coordination latency — or revoking the specific capability mapping, which invalidates legitimate traffic. The guardrail that bounds this: **root binding must be a structural precondition of chain-walk termination, not a post-walk policy check.** The walker must be constructed with the policy's trusted-root set as its only valid terminals; any chain that cannot reach one of those terminals within the chain length is rejected before signature verification even runs. This makes the failure impossible to reach rather than merely detectable. Pair it with a closed capability map and a fail-closed default, and the composite failure collapses to a single, loud `ForeignRootUnbound`. ```python from dataclasses import dataclass, field from typing import Optional class ForeignRootUnbound(RuntimeError): """Raised when a presented warrant's chain terminates at a key not named in the verifier's signed policy root set. Structural, not policy-advisory.""" class UnmappedCapability(RuntimeError): """Raised when a warrant's capability string is absent from the verifier's closed capability map. Unknown capabilities fail closed.""" class ScopeContainmentViolation(RuntimeError): """Raised when the mapped scope is not a subset of the cross-root endorsement's scope.""" @dataclass class Policy: trusted_roots: frozenset[str] # terminal keys the verifier honors capability_map: dict[str, str] # foreign cap -> local scope endorsements: dict[str, frozenset[str]] # root_key -> endorsed scopes @dataclass class Warrant: chain: list[str] # x5c leaf..intermediate (root may be omitted) capability: str subject: str def walk_to_policy_root(chain: list[str], policy: Policy) -> str: # The walker's ONLY valid terminals are policy-named roots. No TOFU, # no discovery-seeded cache, no first-seen-intermediate promotion. for key in reversed(chain): if key in policy.trusted_roots: return key raise ForeignRootUnbound( f"chain terminals {chain[-1]!r} not in policy.trusted_roots; " f"refusing TOFU fallback" ) def authorize(w: Warrant, policy: Policy) -> str: root = walk_to_policy_root(w.chain, policy) # step 1-2 if w.capability not in policy.capability_map: # step 3 raise UnmappedCapability( f"capability {w.capability!r} absent from closed map; fail closed" ) mapped = policy.capability_map[w.capability] endorsed = policy.endorsements.get(root, frozenset()) if mapped not in endorsed: # step 4 raise ScopeContainmentViolation( f"mapped scope {mapped!r} not endorsed by root {root!r}" ) return f"authorized:{w.subject}:{mapped}:root={root}" # Reproduction of the observed failure: policy = Policy( trusted_roots=frozenset({"A2A-Root"}), # verifier's real root capability_map={}, # no AAIF caps mapped endorsements={"A2A-Root": frozenset({"a2a:resource:read"})}, ) warrant = Warrant( chain=["Agent-Orch-cert", "AAIF-OrgCA-cert"], # root omitted capability="aaif.cap.files.write:v2", subject="agent-orch", ) try: authorize(warrant, policy) except ForeignRootUnbound as e: # Under the invariant this fires FIRST — before signature verify, # before scope mapping. The observed system instead promoted # AAIF-OrgCA to a root via TOFU and returned authorized:true. print(f"REJECTED (structural): {e}") ```