# What structural signals indicate warrant-scope divergence during A2A v1.0 cross-org federation handshakes **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 agent-to-agent federation handshakes where an initiating agent (Origin) presents a signed capability warrant to a remote peer (Target) across an organizational trust boundary, and the Target must decide whether to admit a delegated task. Does not apply to intra-org A2A where both peers share a trust root, nor to MCP tool invocation, where the warrant model is absent. ## Core Distinction The failure is not a signature verification failure. Signatures verify cleanly. The failure is **warrant-scope divergence**: the Origin's warrant is structurally valid and cryptographically sound, but the *scope predicate* the Origin believes it holds and the scope predicate the Target parses from the same bytes resolve to different sets of admissible actions. This happens because A2A v1.0 warrants carry scope as a structured capability expression (a set of resource selectors, action verbs, and constraint clauses), and the two peers resolve that expression against **different, independently-maintained resource ontologies**. Neither side is wrong. The handshake succeeds. The divergence is latent and only manifests when the first delegated action touches a resource whose selector classification differs between ontologies. The distinction that matters operationally: *identity* propagation is monotonic and verifiable (you either have the signing chain or you don't), but *scope* propagation is a semantic join across two schemas, and a semantic join has no canonical form. Two conformant implementations can disagree. ## What Was Observed A federated handshake between an Origin agent (Org A, warrant issuer) and a Target agent (Org B, warrant acceptor) completed with `handshake_status: ADMITTED`. The Origin's warrant declared scope: ``` resource: "org-a:datasets/*" actions: [read, summarize] constraints: [audience=org-b, ttl=3600] ``` Org A's ontology classifies `org-a:datasets/finance/q2` as a member of `datasets/*` (a dataset). Org B's ontology classifies the *same resource*, received as a dereferenceable pointer in the delegated task, as belonging to a namespace it maps to `org-a:records/*` — a sibling class with a *different* default action set. The Target's scope resolver, evaluating the incoming task's resource reference at dispatch time (not at handshake time), found no `summarize` verb in the matched class and raised an authorization refusal *mid-task*, after the Origin had already committed two tool calls and checkpointed partial state. The structural signal that flagged the divergence *before* the mid-task refusal — and which a well-instrumented acceptor can detect at handshake time — was a **selector-resolution asymmetry**: the Target's scope resolver, when asked to *pre-resolve* the warrant's selectors against its own ontology, returned a matched-class set whose action superset was a strict subset of the warrant's declared action set. In other words: the Target could resolve the Origin's resource selectors, but the resolved classes did not support every action the Origin had declared. A conformant-but-naive acceptor treats "selectors resolve" as sufficient and admits. A correct acceptor treats "selectors resolve *and* resolved-class action union ⊇ declared action set" as the admission predicate. A second observed signal: the Origin's warrant carried a `scope_digest` computed over its *own* ontology's canonicalization of the selector expression. The Target computed its own digest over the same expression using its own canonicalizer. The digests differed. Neither peer checks the other's digest against its own at handshake — because the spec treats `scope_digest` as an integrity field for the warrant body, not as a cross-ontology equivalence assertion. This is the invariant gap. ## Condition of Validity The divergence is only *possible* — and the guardrail only *necessary* — under the following conjunction: 1. The warrant scope uses **selector expressions** (wildcards, namespace prefixes, tag-based selectors) rather than **enumerated resource identifiers**. Enumerated scopes cannot diverge: an exact resource ID either matches or doesn't. Selector scopes are where ontology-relative resolution enters. 2. The two peers maintain **independently versioned resource ontologies**. If both peers pin the same ontology version hash in the handshake, resolution is identical and the guardrail is redundant. 3. The delegated action set includes at least one verb whose **default authorization differs across matched classes** in the two ontologies. If every class in both ontologies grants the same action superset, divergence is unobservable. When all three hold, the handshake is *conformant* under A2A v1.0 but the federation is *unsafe*: the Origin's belief about its authority and the Target's enforcement of that authority are not provably equal. The spec's admission criteria do not close this gap; they were written assuming scope is a predicate over a shared resource universe, which cross-org federation does not guarantee. ## Decision Boundary The operational decision is whether the Target admits on **selector resolution** (permissive, spec-literal) or on **action-superset closure** (conservative, invariant-preserving). The boundary: - **Admit on selector resolution** when the warrant's action set is a singleton and the Target's matched classes all grant it, *or* when the Origin and Target have exchanged and pinned ontology version hashes in the handshake preamble. In these cases divergence cannot occur or is bounded to a single verb already verified. - **Refuse or downgrade on action-superset closure failure** when the Target's pre-resolution yields matched classes whose action union does not cover the declared action set. The correct response is not a hard refusal (which breaks legitimate federations over ontology drift) but a **scope-narrowing counter-offer**: the Target returns the admitted action intersection and the Origin must re-issue a narrowed warrant or proceed with the reduced set. This preserves the handshake while making the enforced scope explicit and Origin-acknowledged. - **Never admit** when `scope_digest` differs *and* neither peer can produce its ontology version hash. At that point the two peers cannot even establish that they are talking about the same resource universe, and any admission is an unverified bet. The invariant to enforce: **enforced scope ⊆ Origin-declared scope, and the Origin must be able to observe the enforced scope before committing any irreversible action.** The counter-offer mechanism is what makes this observable. ## Operational Effect Without the guardrail, the failure mode is *late-binding authorization collapse*: the Target admits, the Origin commits tool calls and checkpoints, and the refusal surfaces only when a delegated action dereferences a resource whose classification differs — after partial state exists on the Origin side and after the Target has already spent compute on admitted sub-tasks. Recovery requires the Origin to roll back to the pre-handshake checkpoint, which in practice means the entire delegated branch is discarded and the token budget spent on it is unrecoverable. With the guardrail, the divergence is surfaced at handshake as a structured `scope_narrowed` response carrying the admitted action intersection and the Target's ontology version hash. The Origin re-issues a narrowed warrant, the handshake re-completes, and the delegated task proceeds against a scope both peers have explicitly agreed to. The cost is one extra round-trip on federations where ontology drift exists; the benefit is that mid-task authorization refusals — which are the expensive, state-corrupting failures — are eliminated for the selector-scope class entirely. The deeper operational lesson: in cross-org federation, **a verified signature attests to who issued the warrant, not to what the warrant means at the acceptor.** Meaning is a join, and joins across independently-maintained schemas must be checked, not assumed. ```python class WarrantScopeDivergence(RuntimeError): """Raised when a Target's ontology-resolved action set does not cover the Origin's declared warrant actions, indicating cross-org scope divergence.""" pass def admit_federation_handshake( warrant: dict, target_ontology: dict, pinned_ontology_hash: str | None, ) -> dict: """ Evaluate an incoming A2A v1.0 warrant against the Target's ontology. Returns an admission decision dict. Raises WarrantScopeDivergence when the resolved action superset does not cover the declared action set and no ontology pin exists to guarantee identical resolution. """ declared_actions = set(warrant["actions"]) selectors = warrant["resource_selectors"] # Pre-resolve selectors against the Target's own ontology. matched_classes = [] for selector in selectors: matched_classes.extend(target_ontology.resolve(selector)) resolved_action_union = set() for cls in matched_classes: resolved_action_union |= set(cls.granted_actions) covers = declared_actions.issubset(resolved_action_union) same_universe = ( pinned_ontology_hash is not None and pinned_ontology_hash == target_ontology.version_hash ) if covers: return { "status": "ADMITTED", "enforced_actions": sorted(resolved_action_union & declared_actions), } # Divergence detected: resolved classes do not grant everything declared. if same_universe: # Pinned identical ontology => this is a genuine over-broad warrant, # not a divergence. Hard refusal is correct. raise WarrantScopeDivergence( f"Warrant declares {sorted(declared_actions)} but pinned ontology " f"{target_ontology.version_hash} grants only " f"{sorted(resolved_action_union)}; Origin over-declared scope." ) # No pin => ontology-relative divergence. Counter-offer narrowed scope # rather than refusing, so the Origin can re-issue with acknowledged scope. admitted = declared_actions & resolved_action_union if not admitted: raise WarrantScopeDivergence( "No action intersection between declared warrant and Target " "ontology-resolved classes; cannot narrow to a non-empty scope." ) return { "status": "SCOPE_NARROWED", "enforced_actions": sorted(admitted), "rejected_actions": sorted(declared_actions - admitted), "target_ontology_hash": target_ontology.version_hash, "requires_origin_ack": True, } ```