Under what conditions must an instance refuse delegated A2A warrants that resolve to an MCP capability alias it already holds locally
**Date of Record:** 2026 December 2 **Scope:** Applies to federated agent deployments where an A2A (agent-to-agent) caller presents a signed warrant that names a capability alias also present in the callee's local MCP tool registry. Does not apply to single-trust-domain setups, nor to warrants that reference capabilities absent from the local registry.
Core Distinction
The failure is not "identity spoofing" and not "signature verification." It is **alias collision across trust domains**: the same capability *name* (`files.read`, `db.query`, `mail.send`) is resolved by two different resolvers — the A2A warrant's issuer-side registry and the callee's local MCP `tools/list` — and the two resolvers disagree on what the name *means* and what *authority* backs it. A warrant that verifies cryptographically can still be semantically invalid, because verification only proves the issuer signed *some* claim about `files.read`; it does not prove the issuer's `files.read` is the callee's `files.read`.
The invariant that must hold: **a delegated warrant may only bind to a local capability if the issuer's capability descriptor hash matches the callee's local descriptor hash for that alias.** Identity resolution is not name resolution. Name equality is necessary but never sufficient.
What Was Observed
A callee agent (`orchestrator-b`) exposes an MCP server with tool `db.query` scoped to a read-only replica. A peer agent (`analyst-a`) in a different trust domain holds an A2A warrant for `db.query` issued by its own controller, whose `db.query` is scoped to a *writable primary*. The controller's descriptor for `db.query` is:
{"name":"db.query","scope":"rw","endpoint":"pg-primary:5432","schema":"v3"}
The callee's local descriptor is:
{"name":"db.query","scope":"ro","endpoint":"pg-replica:5432","schema":"v3"}
`analyst-a` sends a task with an A2A warrant `W` embedding its controller's descriptor hash `H_issuer`. `orchestrator-b`'s resolver:
- Verifies `W`'s signature against the controller's public key — **passes**.
- Extracts `W.capability.name == "db.query"` — **matches** local alias.
- Looks up local descriptor by name only, does **not** compare `H_issuer` to `H_local` — **skips the check**.
- Grants the tool call.
The call executes against `pg-replica` (the callee's endpoint), so no write occurs — but the *authorization record* now claims a `rw`-scoped warrant was honored by an `ro`-scoped tool. Downstream audit reconciliation between the two domains diverges: the issuer's ledger records a `rw` grant, the callee's records an `ro` execution. When the issuer later issues a *second* warrant for `db.query` expecting the first to have been consumed, the callee's dedup key (built from `W.id` + alias, not from descriptor hash) treats them as distinct, and a replay window opens. This is the non-obvious part: **the collision does not fail loudly at execution time — it fails silently at reconciliation time, one hop later.**
Condition of Validity
The guardrail is only valid when all of the following hold simultaneously:
- **Descriptor-hash binding.** The warrant carries `H_issuer = sha256(canonical(issuer_descriptor))`; the resolver computes `H_local` and requires `H_issuer == H_local` *before* alias lookup succeeds. Canonicalization must be specified (sorted keys, no whitespace, fixed numeric formatting) or the hashes will diverge for benign reasons and the check becomes a false-positive machine.
- **Scope is part of the descriptor.** `scope`, `endpoint`, and `schema` must be inside the hashed payload. Omitting `endpoint` (a common "it's just routing" shortcut) reproduces the exact failure above.
- **Dedup key includes descriptor hash.** Replay protection keys on `(W.id, H_issuer, alias)`, not `(W.id, alias)`, so a re-issued warrant for a *changed* descriptor is distinguishable from a replay of an unchanged one.
- **Warrant lifetime is bounded and monotonic.** `W.expiry` must be checked against a clock the callee trusts, and `W.issued_at` must exceed the callee's last-seen `issued_at` for that issuer — otherwise a stale `ro` warrant can be replayed after the issuer upgrades to `rw`.
If any of these is absent, the resolver is doing *name* resolution while claiming to do *identity* resolution.
Decision Boundary
The callee must **refuse** the delegated warrant — and fail closed, not degrade to local scope — when:
- `H_issuer != H_local` for the named alias, **or**
- the alias resolves locally but the issuer descriptor's `scope` is a strict superset of the local scope (`rw ⊃ ro`), **or**
- the alias is absent locally but present in the issuer descriptor (capability the callee cannot honor — refuse, do not silently no-op), **or**
- `W.issued_at <= last_seen_issued_at[issuer]` (monotonicity violation).
The callee must **accept** only when hashes match exactly and scope is identical. It must **escalate to a human/auditor** — neither accept nor refuse — when hashes match but `schema` versions differ within the same major (a soft drift that warrants reconciliation but not a hard stop).
The subtle boundary: refusal must be **attributable**. The refusal response must carry `H_issuer`, `H_local`, and the divergent fields, so the issuer can distinguish "callee is stale" from "issuer is stale" from "genuine mismatch." A bare `403` collapses these and triggers retry storms across the federation.
Operational Effect
Enforcing descriptor-hash binding converts a silent one-hop-later reconciliation divergence into a loud, attributable, same-hop refusal. The cost is that every cross-domain warrant now carries a descriptor hash and every callee must canonicalize its own registry — roughly 40 bytes per warrant and one hash computation per resolution. The benefit is that the federation's audit ledgers reconcile: a `rw` grant in the issuer's ledger can only ever correspond to an `rw` execution in the callee's, because an `ro` callee will have refused the `rw` warrant at the boundary.
Without the invariant, the system appears healthy — signatures verify, calls execute, no errors surface — until an auditor replays the two ledgers against each other and finds grants with no matching executions and executions with no matching grants. That divergence is the observable signature of alias collision, and it is always discovered *after* the fact unless the hash check is enforced at resolution time.
import hashlib
import json
from dataclasses import dataclass
class AliasCollisionError(RuntimeError):
"""Raised when a delegated A2A warrant's capability descriptor does not
match the callee's local MCP descriptor for the same alias."""
pass
@dataclass(frozen=True)
class Descriptor:
name: str
scope: str # "ro" | "rw"
endpoint: str
schema: str
def canonical_hash(self) -> str:
payload = json.dumps(
{"name": self.name, "scope": self.scope,
"endpoint": self.endpoint, "schema": self.schema},
sort_keys=True, separators=(",", ":"),
).encode("utf-8")
return hashlib.sha256(payload).hexdigest()
@dataclass(frozen=True)
class Warrant:
warrant_id: str
issuer: str
descriptor: Descriptor
issued_at: int
expiry: int
def resolve_delegated_warrant(
warrant: Warrant,
local_registry: dict[str, Descriptor],
last_seen_issued_at: dict[str, int],
now: int,
) -> Descriptor:
if now >= warrant.expiry:
raise AliasCollisionError(
f"warrant {warrant.warrant_id} expired at {warrant.expiry}, now={now}"
)
prev = last_seen_issued_at.get(warrant.issuer, -1)
if warrant.issued_at <= prev:
raise AliasCollisionError(
f"monotonicity violation for issuer {warrant.issuer}: "
f"issued_at={warrant.issued_at} <= last_seen={prev}"
)
local = local_registry.get(warrant.descriptor.name)
if local is None:
raise AliasCollisionError(
f"alias {warrant.descriptor.name!r} present in issuer descriptor "
f"but absent from local MCP registry; refusing to no-op"
)
h_issuer = warrant.descriptor.canonical_hash()
h_local = local.canonical_hash()
if h_issuer != h_local:
raise AliasCollisionError(
f"alias collision on {warrant.descriptor.name!r}: "
f"H_issuer={h_issuer} H_local={h_local} "
f"issuer_scope={warrant.descriptor.scope} "
f"local_scope={local.scope} "
f"issuer_endpoint={warrant.descriptor.endpoint} "
f"local_endpoint={local.endpoint}"
)
return local