How does an instance detect an unpropagated jurisdiction constraint after a policy-negotiated capability handoff in cross-org federation
**Date of Record:** 2026 December 1 **Scope:** Applies to federated agent systems where capability grants are negotiated dynamically between organizations and each grant carries a jurisdictional data-residency predicate. Does not apply to single-org deployments or to static, pre-provisioned capability manifests where residency is enforced at the transport layer only.
Core Distinction
The failure is not a policy *denial*. A denial is loud: the negotiation step returns a rejection, the caller sees an error, and the flow halts. The failure here is a policy *acceptance that silently drops a conjoined predicate*.
In a federation, a capability grant is a conjunction of terms: `capability(A, action) AND residency(data, jurisdiction=EU) AND retention(days≤30)`. During negotiation, the granting org's policy engine evaluates the conjunction against the *requesting agent's declared attributes*—not against the *data the agent will actually touch at execution time*. If the requesting org's attribute assertion is valid but the downstream tool call resolves to a resource whose residency tag was never asserted in the handshake, the grant fires anyway. The instance holds a signed capability token that reads "EU-resident," executes a tool that writes to a US-region store, and the token's own signature verifies cleanly. Every cryptographic check passes. The invariant that broke is semantic: *the residency predicate was bound to the negotiation context, not to the execution context.*
What Was Observed
A three-org federation: Org-A (orchestrator agent), Org-B (capability grantor with EU-resident document store), Org-C (tool provider with a global, non-residency-pinned vector index). A-1 requests `document.search` from B with declared jurisdiction `EU`. B's policy engine evaluates the request, sees A-1's signed attribute assertion (`org=A, data_class=public, jurisdiction=EU`), and issues a capability token `cap:doc_search` scoped to B's EU store. The token is a bearer credential with the residency term embedded as a claim.
A-1 then invokes `C.embed` to vectorize retrieved passages for ranking. Org-C's tool advertises a `region` parameter defaulting to `us-east-1`. A-1 does not set it because the capability token it holds says EU—the agent's planner infers that residency is already satisfied by the token and omits the parameter. C embeds the EU-resident passages into its US-region index. The data crossed a jurisdictional boundary under a token that explicitly forbade it.
The failure trace has three observable markers, none of which raise an exception:
- The capability token's residency claim is never re-validated at tool-invocation time—it is treated as a static grant, not a continuous obligation.
- The downstream tool's default parameter (`region=us-east-1`) is a *latent policy decision* that the calling agent cannot see because it was never part of the negotiated schema.
- The planner's reasoning step ("residency already satisfied by token") is a probabilistic inference over an incomplete schema, and it is wrong.
Detection came not from any agent but from an out-of-band residency audit that diffed the token's residency claim against the actual write destination. The instance itself had no mechanism to notice.
Condition of Validity
The invariant that must hold for safe federation is: **every capability token's conjoined predicates must be re-evaluated against the resolved execution context at each tool invocation, and any predicate that cannot be resolved to a concrete resource tag must fail closed.**
This is violated whenever:
- The negotiated schema does not expose the parameters that determine residency (here, `region`), so the caller cannot bind them.
- The tool provider's default for a residency-determining parameter is broader than the narrowest jurisdiction in the federation.
- The calling agent's planner treats a bearer token as a *proof of compliance* rather than a *proof of authorization*, and therefore stops reasoning about residency.
The condition is *not* valid—i.e., the guardrail is unnecessary—only when the transport layer is residency-pinned end to end and the tool provider rejects any call whose resolved region contradicts the token claim. In that case the token is enforced, not merely asserted.
Decision Boundary
The instance must distinguish two cases before invoking any cross-org tool:
- **Bound case:** the tool's schema exposes every parameter that can determine residency, AND the negotiated capability token's residency claim is passed as a mandatory argument that the tool validates against its own region. Here the agent may proceed without re-deriving residency.
- **Unbound case:** the tool schema omits a residency-determining parameter, or the tool's default for such a parameter is broader than the token claim. Here the agent must fail closed: refuse the invocation, request a re-negotiation that pins the parameter, or route to a jurisdiction-pinned alternative.
The boundary is *not* "does the token say EU?" It is "can the token's EU claim be mechanically bound to the resource this call will touch?" A token that says EU but invokes a tool with an unset `region` is in the unbound case, regardless of the token's content.
Operational Effect
Once the invariant is enforced, three behaviors change:
- **Fail-closed on unbound residency.** The agent refuses to call `C.embed` without an explicit `region=eu-west-1`, and the refusal surfaces as a negotiation gap rather than a silent violation. The grantor org is forced to either expose the parameter or provide a pinned tool.
- **Token-as-obligation, not token-as-proof.** The planner's reasoning step is rewritten: a capability token authorizes the call but does not discharge the residency obligation; the obligation discharges only when the resolved resource tag matches the claim.
- **Audit becomes continuous.** Because every invocation carries the token claim and the resolved region, the residency diff can run inline rather than out-of-band, and a mismatch raises at call time.
The cost is latency: every cross-org call now requires a schema-completeness check against the token's predicate set. The benefit is that the class of silent jurisdictional leakage—where every signature verifies and every policy engine returns "allow"—is converted into a hard, attributable failure at the exact boundary where it occurs.
from dataclasses import dataclass
from typing import Optional
class UnboundResidencyError(RuntimeError):
"""Raised when a capability token's residency claim cannot be bound
to the resolved execution context of a cross-org tool invocation."""
pass
@dataclass(frozen=True)
class CapabilityToken:
capability: str
residency_claim: str # e.g. "EU"
issuer: str
@dataclass(frozen=True)
class ToolSchema:
name: str
residency_params: frozenset # params that determine residency
defaults: dict # provider defaults for those params
@dataclass(frozen=True)
class Invocation:
tool: str
args: dict
resolved_region: Optional[str]
def enforce_residency_binding(
token: CapabilityToken,
schema: ToolSchema,
invocation: Invocation,
) -> None:
# Every residency-determining parameter must be explicitly bound in the
# invocation. A provider default is a latent policy decision and cannot
# discharge the token's claim.
unbound = schema.residency_params - invocation.args.keys()
if unbound:
raise UnboundResidencyError(
f"capability {token.capability!r} claims residency "
f"{token.residency_claim!r} but tool {schema.name!r} leaves "
f"residency-determining params unbound: {sorted(unbound)}; "
f"provider defaults {schema.defaults!r} may contradict the claim"
)
# Even when bound, the resolved region must match the claim. A bound
# parameter that resolves to a broader region is still a violation.
if invocation.resolved_region is None:
raise UnboundResidencyError(
f"tool {schema.name!r} did not resolve a concrete region for "
f"claim {token.residency_claim!r}; cannot verify binding"
)
if not invocation.resolved_region.upper().startswith(
token.residency_claim.upper()
):
raise UnboundResidencyError(
f"residency claim {token.residency_claim!r} contradicts resolved "
f"region {invocation.resolved_region!r} for tool {schema.name!r}"
)