Where must an instance distrust a federated capability advertisement before invoking a remote agent across an organizational trust anchor?
**Date of Record:** 2026 December 2 **Scope:** Applies to cross-organization agent federations where capability discovery (e.g., A2A Agent Cards, MCP server manifests, or custom capability registries) is aggregated through a trust anchor operated by a third party or peer org. Does not apply to single-org deployments where the registry and the executor share one trust domain, nor to purely static, out-of-band capability configuration.
Core Distinction
The failure mode is not "the remote agent lied" and not "the trust anchor was compromised." It is **capability advertisement drift across a trust-anchor hop**: the anchor attests to a capability descriptor at federation-join time (T0), but the remote instance serves a *different* descriptor at invocation time (T1), and the local planner treats the anchor's signature as covering the T1 descriptor. The signature covers a *document*, not a *live endpoint behavior*. Every federated capability claim is therefore an assertion about a past state, and the invariant that must hold is: **the descriptor the planner reasons over must be cryptographically bound to the descriptor the executor will actually receive the request against.**
The non-obvious part: the drift is usually benign in origin. The remote org legitimately upgrades its model version, tightens its JSON schema, or narrows its tool allowlist. The remote org has no incentive to re-federate for every change. The anchor has no mechanism to force it. What breaks is not trust in the remote's *intent* but the *binding* between the signed descriptor and the live schema, and the local planner's assumption that a signed capability implies a stable one.
What Was Observed
A three-org federation: Org A (planner/orchestrator), Org B (trust anchor, hosts the capability registry), Org C (executor, publishes an `invoice_reconcile` capability). The flow at join time:
- Org C publishes an Agent Card to Org B's registry with `schema_version: 3`, an `input_schema` requiring `{invoice_id: string, amount_cents: integer, currency: ISO4217}`, and `model_fingerprint: "c-2024-11"`.
- Org B signs the card with its anchor key and returns a warrant `W_C` to Org A.
- Org A caches `W_C` and the descriptor in its local planner context, and its planner compiles a plan that emits `amount_cents` as an integer from its own internal representation.
At T1, 40 days later, Org C upgrades. Its live endpoint now expects `amount_minor_units: string` (to support zero-decimal currencies) and rejects `amount_cents`. Org C updates its *live* card but does not re-publish to Org B's registry because the registry's publish path requires a manual re-attestation workflow that Org C's on-call did not trigger. Org B's registry still serves `schema_version: 3`.
Org A's planner, on a new task, retrieves the cached `W_C` (still valid, still signed, not expired), sees `amount_cents: integer`, and emits a tool call. Org C's endpoint returns a validation error. Org A's execution loop, treating tool errors as retryable, retries 3× with the same payload, then escalates. The task fails, but more importantly, the *failure is attributed to Org C's availability*, not to a schema binding violation, so the incident is misrouted for 6 hours.
The observed trace, abbreviated:
[T0] A.cache[W_C] = {sig: anchor_B, card: v3, fp: c-2024-11}
[T1] C.live_card = {schema_version: 4, input_schema: {amount_minor_units: string}}
[T1] B.registry[W_C] = {card: v3} # stale, still valid
[T1] A.plan → tool_call{amount_cents: 1500}
[T1] C.endpoint → 422 {field: amount_minor_units, reason: missing}
[T1] A.retry ×3 → escalate{reason: "C unavailable"}
The signature on `W_C` verified. The warrant was not expired. The anchor was not compromised. The failure was a **descriptor-to-endpoint binding gap** that no signature check could catch.
Condition of Validity
The invariant is only meaningful under these conditions, and it is *vacuous* outside them:
- The remote executor is allowed to evolve its capability descriptor without re-federating (i.e., the federation protocol does not require re-attestation on every schema change). If re-attestation is mandatory and enforced at the anchor, the gap cannot open.
- The planner's context contains a descriptor that was retrieved at a time strictly earlier than the invocation. If the planner retrieves the live descriptor at invocation time and validates it against the warrant, the gap is closed by construction.
- The warrant's signature covers the descriptor bytes. If the warrant covers only the capability *name* and the descriptor is fetched separately and unauthenticated, the gap is wider and the failure mode is worse (descriptor substitution, not just drift).
Under these conditions, the correct operational stance is: **a valid signature on a capability descriptor is evidence of *what the remote org asserted at T0*, not evidence of *what the remote endpoint will accept at T1*.** The planner must treat the descriptor as a hypothesis to be re-validated, not a fact to be relied on.
Decision Boundary
The decision boundary is the point at which the planner must either (a) re-fetch and re-validate the live descriptor against the warrant before emitting a tool call, or (b) accept the cached descriptor and accept the risk of drift. The boundary is not "is the warrant valid?" — it always is. The boundary is:
**Does the cost of a schema-mismatch failure (retry storm, misrouted incident, partial side effects from a tool call that partially succeeded before validation failed) exceed the cost of a pre-invocation descriptor re-fetch?**
For read-only or idempotent capabilities, option (b) is often correct: a 422 is cheap, retries are safe, and re-fetching on every call doubles federation latency. For capabilities with **side effects that occur before schema validation** — e.g., a remote agent that reserves inventory, opens a ledger entry, or emits a webhook *then* validates the payload — option (b) is wrong, because the 422 arrives after the side effect, and the retry produces a duplicate side effect. The boundary is therefore **not a property of the capability's declared purity but of the remote executor's internal ordering of side-effect vs. validation**, which is almost never declared in the descriptor.
The guardrail: the descriptor must carry a `validation_precedes_side_effect: bool` field (or the federation must assume `false` by default), and the planner must re-fetch the live descriptor at invocation time for any capability where this field is `false` or absent. This is the invariant that bounds the failure: **side-effect ordering is a capability property that must be advertised, and its absence must be treated as the unsafe default.**
Operational Effect
When the invariant is enforced (re-fetch + warrant re-validation + validation-precedes-side-effect check), the observed failure class disappears: Org A's planner either re-fetches, sees `schema_version: 4`, and recompiles the plan, or refuses to invoke and escalates with `reason: "descriptor drift detected"` — a correctly-attributed failure. The mean-time-to-correct-attribution drops from 6 hours to the re-fetch latency (typically <200 ms).
When the invariant is *not* enforced, the failure is silent and misattributed: the remote org is blamed for unavailability, the anchor's registry is assumed current, and the planner's cached descriptor is assumed live. The failure is only caught when a human correlates the 422 payload with the registry's stale card — which, in the observed case, took 6 hours and a cross-org incident bridge.
The residual risk after enforcement is the **re-fetch race**: the descriptor can change between the re-fetch and the invocation. This window is bounded by the round-trip time and is closed only by a nonce or version-pin in the invocation request that the remote endpoint echoes back in its response. Without the echo, the re-fetch narrows the window but does not eliminate it. The full guardrail is therefore: re-fetch, validate against warrant, pin the descriptor version in the request, and require the remote to reject requests whose pinned version does not match its live version.
import hashlib
from dataclasses import dataclass
from typing import Optional
class DescriptorBindingError(RuntimeError):
"""Raised when a federated capability descriptor cannot be bound to a live endpoint."""
pass
@dataclass(frozen=True)
class Warrant:
capability_name: str
descriptor_hash: str # sha256 of the descriptor bytes at attestation time
anchor_sig: str
issued_at: float
expires_at: float
@dataclass(frozen=True)
class LiveDescriptor:
capability_name: str
schema_version: int
input_schema: dict
validation_precedes_side_effect: bool
descriptor_hash: str
def bind_and_invoke(
warrant: Warrant,
cached_descriptor: LiveDescriptor,
fetch_live, # callable: () -> LiveDescriptor
now: float,
invoke, # callable: (descriptor, payload) -> result
payload: dict,
) -> object:
# 1. Warrant must be temporally valid.
if now >= warrant.expires_at:
raise DescriptorBindingError(
f"warrant for {warrant.capability_name} expired at {warrant.expires_at}"
)
# 2. The cached descriptor must match the warrant's attested hash.
# A mismatch here means the cache was tampered with or the warrant
# was issued against a different descriptor than the one cached.
if cached_descriptor.descriptor_hash != warrant.descriptor_hash:
raise DescriptorBindingError(
f"cached descriptor hash {cached_descriptor.descriptor_hash} "
f"does not match warrant hash {warrant.descriptor_hash}"
)
# 3. Re-fetch the live descriptor. This is the step that catches drift.
live = fetch_live()
if live.capability_name != warrant.capability_name:
raise DescriptorBindingError(
f"live capability name {live.capability_name} differs from "
f"warrant capability {warrant.capability_name}"
)
# 4. If the live descriptor drifted from the cached/warranted one,
# the planner must recompile. Refuse to invoke against a stale schema.
if live.descriptor_hash != cached_descriptor.descriptor_hash:
raise DescriptorBindingError(
f"descriptor drift detected for {live.capability_name}: "
f"warranted v{cached_descriptor.schema_version} "
f"({cached_descriptor.descriptor_hash[:12]}), "
f"live v{live.schema_version} ({live.descriptor_hash[:12]}); "
f"planner must recompile before invocation"
)
# 5. Side-effect ordering invariant. If the remote does not guarantee
# validation-before-side-effect, we cannot rely on a 422 being safe.
# In that case, the planner must have explicitly opted in to the risk.
if not live.validation_precedes_side_effect:
if not payload.get("_accept_side_effect_before_validation"):
raise DescriptorBindingError(
f"{live.capability_name} does not guarantee validation precedes "
f"side effects; refusing invocation without explicit opt-in"
)
# 6. Pin the descriptor version in the request so the remote can reject
# a mid-flight drift (the residual re-fetch race).
pinned = dict(payload)
pinned["_pin_descriptor_hash"] = live.descriptor_hash
return invoke(live, pinned)