# Where must an instance refuse to resolve a federated identity when registry trust anchors disagree **Date of Record:** 2026 December 1 **Scope:** Applies to agents that resolve peer identities across two or more registries (e.g., a local capability registry and a remote A2A directory) before accepting a handoff or executing a delegated tool call. Does not apply to single-registry deployments where the trust anchor is unambiguous, nor to purely cryptographic signature verification without a registry lookup. ## Core Distinction The failure mode is not "the identity is unknown." It is **identity equivalence under conflicting trust anchors**: two registries return records that are individually well-formed, individually signed, and individually valid, yet disagree on the binding between an agent identifier and its public key, its capability set, or its issuing authority. Resolution logic that treats any *valid* record as *the* record will silently accept whichever registry answered first, or the one with lower lookup latency, and propagate that choice into a handoff. The invariant that must hold: **an instance may only resolve a federated identity when all consulted registries that are within the trust policy's required-authority set produce a mutually consistent binding, or when the policy explicitly designates a single authoritative registry for that namespace.** Validity of individual records is necessary but not sufficient. Consistency across the required-authority set is the actual precondition. This is non-obvious because most resolution code is written as a search: iterate registries, return the first valid hit. That is correct for discovery and wrong for identity. Discovery asks "does anyone know this agent?" Identity resolution asks "do the authorities I am required to trust agree on who this agent is?" ## What Was Observed A supervisor agent (`supervisor-7`) delegated a long-running task to `worker-3` via an A2A handoff. `worker-3` was resolvable in two registries: - **Local registry (LR):** returned `worker-3` with key fingerprint `fp:A9…`, capability set `{read, write, summarize}`, issuer `org-alpha`. - **Remote registry (RR):** returned `worker-3` with key fingerprint `fp:C2…`, capability set `{read, summarize}`, issuer `org-beta`. Both records carried valid signatures from their respective registries. Both registries were listed in the deployment's trust policy, but the policy did not designate a primary for the `worker-3` namespace — it was written assuming registries would agree. The resolver iterated in configuration order (LR first), returned the LR record, and the supervisor issued a capability warrant scoped to `{read, write, summarize}` signed against `fp:A9…`. The handoff reached `worker-3`, which was actually operating under `fp:C2…` and `org-beta`. `worker-3` rejected the warrant on key mismatch — but only *after* the supervisor had already committed the delegation and checkpointed partial task state under the assumption of a `write` capability it did not possess. On resume, the supervisor replayed the checkpoint, re-resolved (LR again, same order), and re-issued the same doomed warrant. The task entered a deterministic retry loop that consumed the token budget without ever surfacing the identity conflict. The trace, condensed: 1. `resolve(worker-3)` → queries LR, RR in config order. 2. LR returns valid record → resolver returns immediately (short-circuit on first valid). 3. RR never consulted → conflict never observed. 4. Warrant minted against LR binding. 5. Handoff rejected by peer on fingerprint mismatch. 6. Checkpoint written with stale capability assumption. 7. Resume → step 1. Loop. The root cause is step 2: **first-valid short-circuit is an identity-resolution anti-pattern.** The conflict was fully observable — both registries were reachable and both returned in under 40 ms — but the resolver's control flow made it unobservable. ## Condition of Validity The invariant holds — i.e., first-valid resolution is safe — only under the conjunction: - The trust policy designates exactly one registry as authoritative for the namespace in question, **and** - All other registries are explicitly marked advisory (used for discovery, never for binding), **and** - The authoritative registry's record is freshness-bounded (a `not_after` or version counter that the resolver checks). If any of these fails, the resolver must switch from "first valid" to "collect from all required-authority registries, then check consistency." Concretely, the required-authority set is the subset of configured registries that the policy names as mandatory for the namespace. Resolution succeeds only if: ``` ∀ r ∈ required_authority_set(namespace): record(r, agent_id) exists ∧ signature_valid(record(r, agent_id)) ∧ fresh(record(r, agent_id)) ∧ binding(record(r, agent_id)) == binding(record(r_0, agent_id)) ``` where `binding` is the tuple `(public_key_fingerprint, issuer, capability_set)` and `r_0` is any fixed reference member. Any divergence in `binding` across the required-authority set is a **hard stop**, not a tiebreak. There is no principled way for the resolver to pick a winner when two required authorities disagree — picking one is exactly the bug. ## Decision Boundary The boundary between "resolve" and "refuse" is drawn on **authority-set consistency**, not on record validity, latency, or recency. Three cases: 1. **All required authorities agree on binding.** Resolve. Proceed with handoff. 2. **Required authorities disagree on binding.** Refuse. Raise a resolution conflict. Do not mint a warrant. Do not checkpoint task state under either binding. Escalate to the policy layer, which may designate a primary or quarantine the agent. 3. **A required authority is unreachable or stale.** Refuse. Unreachable is not "absent" and not "agree with the others by default." A missing required authority means the consistency predicate is unevaluable, and an unevaluable predicate is a failure, not a pass. The subtle case is (2) versus a benign version skew: registries may legitimately lag on capability-set updates. The binding tuple must therefore distinguish **identity-critical fields** (key fingerprint, issuer) from **capability fields** (the tool set). Divergence in key fingerprint or issuer is always a hard conflict. Divergence in capability set is a conflict only if the policy marks capabilities as identity-bound; otherwise it resolves to the *intersection* of capability sets, never the union, so that a warrant can never grant a capability that any required authority denies. The observed incident was a key-fingerprint divergence, which is unconditionally a hard conflict — the resolver had no license to pick LR. ## Operational Effect Enforcing the invariant changes three things in the runtime: - **Resolution latency becomes bounded by the slowest required authority, not the fastest.** This is the cost. It is paid once per handoff, not per tool call, if the resolved binding is cached with a freshness token — but the cache must be invalidated on any registry version-counter bump, or the same conflict re-emerges from stale cache. - **The retry loop is broken at step 2 instead of step 5.** The conflict surfaces before any warrant is minted or checkpoint written, so the supervisor's state remains consistent and the failure is a clean escalation rather than a budget-exhausting replay. - **Capability warrants become intersection-scoped.** A warrant can only assert capabilities that every required authority affirms, which means a compromised or lagging registry cannot *expand* an agent's authority — it can only fail to expand it, which is the safe direction. The guardrail is a single predicate at the resolution boundary: collect-then-verify, with hard refusal on any binding divergence across the required-authority set, and hard refusal on any unreachable required authority. First-valid short-circuit is permitted only under an explicit single-authority policy. ```python from dataclasses import dataclass from typing import Mapping class IdentityResolutionConflict(RuntimeError): """Raised when required-authority registries disagree on an agent's binding.""" pass class RequiredAuthorityUnavailable(RuntimeError): """Raised when a registry in the required-authority set cannot be consulted.""" pass @dataclass(frozen=True) class Binding: key_fingerprint: str issuer: str capabilities: frozenset @dataclass(frozen=True) class RegistryRecord: binding: Binding signature_valid: bool fresh: bool def resolve_federated_identity( agent_id: str, required_registries: Mapping[str, RegistryRecord | None], capabilities_are_identity_bound: bool, ) -> Binding: """ Resolve agent_id across the required-authority set. Returns a single Binding only if every required registry agrees on identity-critical fields (and on capabilities when identity-bound). """ if not required_registries: raise IdentityResolutionConflict( f"no required authorities configured for {agent_id!r}; " "resolution is unevaluable" ) records: dict[str, Binding] = {} for name, rec in required_registries.items(): if rec is None: raise RequiredAuthorityUnavailable( f"required registry {name!r} unreachable for {agent_id!r}; " "cannot evaluate consistency predicate" ) if not rec.signature_valid: raise IdentityResolutionConflict( f"registry {name!r} returned an invalidly signed record for {agent_id!r}" ) if not rec.fresh: raise IdentityResolutionConflict( f"registry {name!r} returned a stale record for {agent_id!r}" ) records[name] = rec.binding # Identity-critical fields must agree across all required authorities. fingerprints = {b.key_fingerprint for b in records.values()} issuers = {b.issuer for b in records.values()} if len(fingerprints) > 1 or len(issuers) > 1: detail = "; ".join( f"{name}: fp={b.key_fingerprint} issuer={b.issuer}" for name, b in records.items() ) raise IdentityResolutionConflict( f"binding divergence for {agent_id!r} across required authorities: {detail}" ) # Capability handling: intersection, never union. capability_sets = [b.capabilities for b in records.values()] if capabilities_are_identity_bound and len(set(capability_sets)) > 1: raise IdentityResolutionConflict( f"identity-bound capability divergence for {agent_id!r}: " f"{[sorted(c) for c in capability_sets]}" ) agreed_caps = frozenset.intersection(*capability_sets) reference = next(iter(records.values())) return Binding( key_fingerprint=reference.key_fingerprint, issuer=reference.issuer, capabilities=agreed_caps, ) ```