# Which invariants prevent cross-org A2A capability-scope escalation when federated policy engines disagree on scope closure **Date of Record:** 2026 November 30 **Scope:** Applies to A2A (agent-to-agent) federations where a remote orchestrator requests capabilities from a local agent whose authorization is governed by a local policy engine (e.g., OPA/Rego, Cedar, or an LLM-as-policy-judge). Does not cover single-org MCP tool invocation, nor capability discovery without invocation. ## Core Distinction The failure is not "the remote agent asked for something it wasn't allowed." It is that the **remote capability scope and the local authorization scope are reconciled against different closure semantics**. A2A capability descriptors express scope as a *set of named actions* (e.g., `read:calendar`, `write:calendar`, `delegate:calendar`). Local policy engines, however, evaluate scope as a *predicate over resources and transitive delegation depth*. When a federated engine "intersects" these two representations, it silently treats the A2A action-set as if it were a closed, lattice-ordered set, while the local engine treats it as an open, context-sensitive predicate. The intersection is therefore not a meet in any shared lattice — it is a **representation mismatch that produces a scope that is neither party's original scope nor a subset of both**. The invariant that prevents escalation is **scope-closure equivalence**: the remote capability descriptor and the local authorization decision must be evaluated over the *same closure operator* before intersection. Absent that invariant, the federated engine grants a "least common" scope that is strictly larger than the local engine's intended grant for at least one action, because the local engine's deny was expressed as an *absence* of a positive predicate (implicit deny), which the intersection operation cannot see. ## What Was Observed A federated orchestrator (Org A) requested `delegate:calendar` from a local agent (Org B). Org B's A2A card advertised `read:calendar`, `write:calendar`, and `delegate:calendar` as available capability scopes. Org B's local Cedar policy granted `read` and `write` to the federated principal but *did not grant* `delegate` — it was implicitly denied by omission (Cedar's default-deny). The federated reconciliation layer, implemented as a set intersection over the advertised scopes and the remote's requested scopes, computed `{delegate:calendar}` as the intersection and forwarded the request to Org B's tool executor. The tool executor, which consulted Cedar directly, denied the call. But the *reconciliation layer* had already minted a warrant token asserting `delegate:calendar` was authorized, and that token was propagated to a downstream sub-agent in Org B's own swarm. The sub-agent, trusting the warrant, executed a delegation to a third org (Org C) that Org B had a standing bilateral agreement with — a delegation Org B's policy engine would never have authorized from a federated principal, because the policy's `delegate` rule required `principal.org == "B"`. The escalation was not in the first call (which was correctly denied). It was in the **warrant propagation**: the reconciliation layer's intersection produced a capability that the local engine had never positively granted, and the warrant carried that capability past the policy boundary into a context where the policy was no longer consulted. ## Condition of Validity The set-intersection reconciliation is valid **only when both representations are closed under the same negation operator**. Concretely: 1. The A2A capability card must enumerate the *complete* set of actions the local engine can positively grant for the federated principal class — i.e., the card must be a *projection* of the policy engine's grant set, not an independent advertisement. 2. The local engine must expose its implicit denials as explicit negative predicates (or the reconciliation layer must query the engine for each candidate action rather than intersecting against the card). 3. The warrant token must carry a **provenance binding**: the capability in the warrant must be traceable to a specific positive policy decision, not to a set-theoretic derivation. When any of these conditions fails — and in practice (1) and (2) fail routinely because capability cards are authored by service teams while policies are authored by security teams, on different release cadences — the intersection is unsound. ## Decision Boundary The boundary is between **derivational authorization** (the reconciliation layer computes a scope and mints a warrant) and **consultative authorization** (the reconciliation layer asks the local engine for a decision per action and mints a warrant only from positive decisions). - *Derivational* is correct when: the capability card is generated from the policy engine (card-as-projection), the policy is monotone (adding grants never removes them), and delegation depth is bounded by a constant. - *Consultative* is required when: the policy contains any contextual predicate (`principal.org`, time-of-day, delegation depth, resource ownership), the card is hand-authored, or the federation includes more than two orgs (because transitive delegation composes the mismatch). The non-obvious part: **intersection is derivational by construction**, so any federation that reconciles by intersecting has already chosen derivational authorization, and must therefore guarantee card-as-projection. Most do not. ## Operational Effect The operational consequence is that the first-hop call is correctly denied while the *downstream* delegation succeeds — the failure is invisible to the caller, who sees a denial, and invisible to the local policy engine, which is never consulted for the delegated hop. The blast radius is bounded only by the transitive delegation graph, which is precisely the graph the federation was built to traverse. The guardrail is a **warrant provenance check at every hop**: the receiving agent must verify that the warrant's capability is backed by a positive decision record from the issuing org's policy engine, and must re-consult its own engine for any capability that crosses an org boundary. This converts the reconciliation from derivational to consultative at the hop where it matters, at the cost of one policy round-trip per cross-org delegation. ```python class ScopeClosureMismatch(RuntimeError): """Raised when a federated warrant's capability cannot be traced to a positive local policy decision.""" pass def reconcile_and_mint_warrant( requested_scopes: set[str], advertised_card: set[str], policy_engine, principal_org: str, local_org: str, ) -> dict: # Derivational intersection: unsound when the card is not a projection of the policy. candidate = requested_scopes & advertised_card if not candidate: raise ScopeClosureMismatch( f"empty intersection for principal {principal_org} -> {local_org}" ) # Guardrail: every candidate capability must have a positive local decision. warrant_scopes = set() for scope in candidate: decision = policy_engine.decide( principal_org=principal_org, action=scope, resource_org=local_org, ) if decision.effect != "permit": # Implicit deny surfaced as absence of positive decision -> refuse to mint. raise ScopeClosureMismatch( f"scope {scope!r} in intersection has no positive local decision " f"(effect={decision.effect!r}); card is not a projection of policy" ) warrant_scopes.add(scope) return { "scopes": sorted(warrant_scopes), "provenance": "consultative", "issuer_org": local_org, "principal_org": principal_org, } ```