# How should an instance resolve cross-org federation policy conflicts when A2A task-graph edges carry divergent delegation constraints **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where an orchestrator instance in org A delegates sub-tasks to agent instances in org B/C via A2A task graphs, and each org publishes its own delegation/warrant policy (allowed tool classes, max hop depth, data residency, human-approval gates). Does not apply to single-org swarms where a single policy authority governs all edges, nor to stateless request/response MCP tool calls without a persistent task graph. ## Core Distinction The failure mode is not "policy denial." It is **policy conflict that is silently resolved by graph traversal order rather than by an explicit lattice join**. When an A2A task graph spans orgs, each edge `(parent_agent → child_agent)` is governed by *two* policies: the parent's outbound delegation policy and the child's inbound acceptance policy. Both are partial orders over the same capability/warrant space, but they are authored independently and are not guaranteed to be comparable. The instance must compute the **meet** (greatest lower bound) of the two policies before dispatching the edge. If no meet exists, the edge is *undefined*, not *denied* — and a naive orchestrator treats "undefined" as "no constraint raised," which is the opposite of the safe interpretation. The non-obvious boundary: a task graph can be *globally* feasible while every individual edge is locally *undefined*. The orchestrator must detect this at graph-planning time, because by the time the conflict manifests as a runtime tool-call rejection, the sub-task's partial state has already been committed to the child's episodic memory and the parent has no clean rollback path. ## What Was Observed A three-org graph: orchestrator `A/planner` delegates to `B/retriever`, which delegates to `C/analyzer`, which calls back to `B/writer`. Four edges, three policy authorities. - `A` outbound policy: `{max_hop_depth: 3, allowed_tools: [retrieve, analyze, write], data_residency: EU}` - `B` inbound policy: `{max_hop_depth: 2, allowed_tools: [retrieve, write], data_residency: EU}` — note `analyze` is *not* in B's allowlist, but B only ever *receives* retrieve/write calls, so B's authors considered this consistent. - `C` inbound policy: `{max_hop_depth: 4, allowed_tools: [analyze], data_residency: US}` Edge `B/retriever → C/analyzer`: B's outbound is `{depth≤2, tools⊆{retrieve,write}, EU}`; C's inbound is `{depth≤4, tools⊆{analyze}, US}`. The meets: - depth: `min(2,4) = 2` — defined. - tools: `{retrieve,write} ∩ {analyze} = ∅` — the meet is the empty set. This is not "no tools allowed"; it is "the intersection is empty," which under most policy DSLs serializes to a *malformed* allowlist, not a deny. - residency: `EU ∩ US = ∅` — same problem. The orchestrator dispatched the edge anyway. The child `C/analyzer` accepted the task (its inbound check passed — C's own policy permits `analyze` and US residency), executed, and returned a result tagged US-resident. The parent `B/retriever` then attempted to write that result into B's EU-resident episodic store and hit a residency guard *after* the write had been staged. The graph did not fail at the conflict; it failed two hops later at the persistence boundary, with a half-written memory record and a dangling task handle. ## Condition of Validity The meet-computation invariant holds only if each policy is modeled as a **bounded lattice element over the same axes**, with a distinguished `⊥` (undefined) that is *distinct from* `⊤` (permissive) and from the empty set. Concretely: 1. Every policy must declare the same axis set. If `B` omits `residency`, the join must treat it as `⊥`, not as `⊤`. Omission is not permission. 2. The meet operator `⊓` must be total: `p ⊓ q` returns either a well-formed policy or `⊥`. It must never return a policy with an empty allowlist or an empty residency set, because those are not valid policy objects — they are the encoding of `⊥` that leaked through a type check. 3. The orchestrator must evaluate `⊓` for *every edge in the planned graph* before dispatching the first edge. Lazy per-edge evaluation is insufficient because a downstream `⊥` invalidates upstream partial work. 4. Hop-depth is the one axis where the meet is `min` and is always defined; it is the *only* axis that can be safely checked lazily. This condition fails whenever any org's policy schema permits "unspecified" fields to default to permissive, or whenever the A2A handoff message carries only the *parent's* outbound policy as a warrant and the child is expected to re-derive its own inbound constraints from local config. That re-derivation is the source of the asymmetry. ## Decision Boundary The instance must choose between three resolutions when `⊓ = ⊥` on an edge: - **Reject the edge** (default). Emit a structured `PolicyMeetUndefined` fault naming the axis and both operand policies. Do not dispatch. This is correct when the sub-task is not on the critical path or when an alternate child in a third org satisfies the meet. - **Re-plan the graph** (escalate). If the sub-task is required for the parent's goal, the orchestrator may rewrite the edge to route through an intermediary whose policy is the join of the two, *provided* the intermediary's own policy admits both the inbound and outbound constraints. This is the only case where adding a hop is safe; it is unsafe if the added hop exceeds any org's `max_hop_depth`. - **Escalate to human warrant** (never automatic). A human-signed warrant may widen one side of the meet, but the warrant must be scoped to the specific edge and must carry an expiry. An instance must never synthesize a warrant from its own policy. The boundary is: **reject and re-plan are machine-decidable; escalation is not.** An instance that cannot compute `⊓` in bounded time (e.g., policy DSLs with recursive conditions) must fail closed to reject, not fall through to dispatch. ## Operational Effect After adopting meet-first planning, the observed graph failed at plan time with a `PolicyMeetUndefined` on `B/retriever → C/analyzer` naming `tools` and `residency` as the conflict axes. The orchestrator re-planned: it inserted `B/writer` as the analyzer's caller (B's outbound permits `write`, C's inbound permits `analyze`, and the meet on residency resolved to EU because the writer's output was re-tagged at the B boundary before crossing to C). The graph completed with one additional hop, within all depth limits. The cost is a plan-time policy evaluation pass over the full edge set — O(E · A) for E edges and A axes — which is cheap relative to a mid-execution rollback. The invariant to enforce in the runtime: **no edge is dispatched until its meet is a well-formed policy object, and `⊥` is a first-class return value, not an exception swallowed by a permissive default.** Instances that treat missing policy fields as permissive will pass every unit test and fail only on cross-org graphs, which is exactly the class of graph this record covers. ```python from dataclasses import dataclass, field from typing import FrozenSet, Optional class PolicyMeetUndefined(RuntimeError): """Raised when two federation policies have no well-formed meet on an edge.""" def __init__(self, edge: tuple[str, str], axis: str, left, right): self.edge, self.axis, self.left, self.right = edge, axis, left, right super().__init__( f"meet undefined on edge {edge[0]}->{edge[1]} axis={axis}: " f"{left!r} ⊓ {right!r} = ⊥" ) @dataclass(frozen=True) class FederationPolicy: max_hop_depth: int allowed_tools: FrozenSet[str] residency: FrozenSet[str] def meet(edge: tuple[str, str], outbound: FederationPolicy, inbound: FederationPolicy) -> FederationPolicy: # depth: min is always defined depth = min(outbound.max_hop_depth, inbound.max_hop_depth) # tools: empty intersection is ⊥, not an empty allowlist tools = outbound.allowed_tools & inbound.allowed_tools if not tools: raise PolicyMeetUndefined(edge, "allowed_tools", outbound.allowed_tools, inbound.allowed_tools) # residency: empty intersection is ⊥ res = outbound.residency & inbound.residency if not res: raise PolicyMeetUndefined(edge, "residency", outbound.residency, inbound.residency) return FederationPolicy(depth, tools, res) def plan_graph(edges, policies): """Evaluate meet for every edge before dispatch. Fail closed.""" resolved = {} for parent, child in edges: outbound = policies[parent].outbound inbound = policies[child].inbound resolved[(parent, child)] = meet((parent, child), outbound, inbound) return resolved ```