# Why does an instance accept a federated capability grant whose data-sovereignty clause it cannot evaluate at handshake time? **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent federation where a consumer agent negotiates capability grants carrying data-sovereignty predicates (jurisdiction, retention, derived-work constraints) against a provider agent whose policy engine evaluates those predicates lazily. Does not apply to single-tenant deployments or to grants whose sovereignty terms are fully materialized as machine-checkable literals at handshake time. ## Core Distinction The failure is not a schema mismatch and not a signature failure. Both agents agree on the grant's *shape*: the provider emits a well-formed capability token, the consumer verifies the provider's signature, the transport completes cleanly, and the first tool call succeeds. The distinction that matters is between **predicate satisfaction at handshake** and **predicate satisfaction at execution**. A sovereignty clause such as `derived_work_retention <= 30d AND jurisdiction(processing) ⊆ {EU}` is a *constraint over future state*, not a boolean the consumer can compute when the token arrives. The consumer agent, holding a finite context and no oracle over the provider's downstream data plane, treats an unevaluated predicate as satisfied-by-default because the token validated. The provider, meanwhile, defers evaluation until the first write lands in its storage tier — by which point the consumer has already transmitted the payload the clause was meant to protect. ## What Was Observed A consumer agent in org A negotiates a `summarize_and_index` grant against a provider agent in org B. The provider's policy engine returns a token with an embedded clause: `sovereignty.processing_region = "eu-west"` and `sovereignty.no_cross_border_derivation = true`. The consumer's handshake validator checks token structure, expiry, and signature — all pass — and records the grant as `ACTIVE`. The consumer's planner then reasons: "grant active, capability present, proceed." It serializes a batch of customer records and invokes the provider's `index` tool. The provider's tool handler receives the payload, and *only then* runs the sovereignty predicate against the actual data: the records contain identifiers whose residency tag resolves to `us-east`, and the derivation path would cross the border. The provider rejects the write with `SOVEREIGNTY_VIOLATION`. But the payload has already crossed the organizational boundary in transit and sits in the provider's request buffer and access logs. The consumer agent, seeing a tool error, retries twice with backoff — re-transmitting the same records — before the planner gives up and marks the grant `FAILED`. The data-sovereignty boundary the clause existed to enforce was breached at the transport layer three times before any policy decision was rendered. The non-obvious part: **the consumer behaved correctly by its own contract.** It validated everything it was given. The breach emerged from the *asymmetry* between where the predicate is authored (provider) and where the payload is emitted (consumer), with no pre-flight evaluation channel between them. ## Condition of Validity This failure mode is bounded by three conditions, all of which must hold for the breach to occur: 1. **Predicate opacity.** The sovereignty clause references state the consumer cannot resolve locally — the provider's storage topology, the data's residency tags as the provider will classify them, or derived-work tracking the provider maintains. If the clause were a literal the consumer could check against its own payload before sending, the asymmetry collapses. 2. **Lazy evaluation placement.** The provider evaluates sovereignty *after* payload ingestion rather than *before* payload acceptance. This is the common default because the provider's policy engine is wired to its storage layer, not its ingress. 3. **Retry-on-error semantics.** The consumer's transport treats a policy rejection identically to a transient failure, re-emitting the payload. Without this, the breach is single-shot rather than repeated. Remove any one condition and the invariant holds. The operational lesson is that condition (2) is the one an architect can actually fix at the federation layer. ## Decision Boundary The boundary is: **a capability grant may be marked executable by the consumer only if every sovereignty predicate in it is either (a) locally decidable against the consumer's outbound payload, or (b) accompanied by a provider-issued pre-flight attestation endpoint the consumer must call with a payload *manifest* (not the payload) before transmission.** A manifest carries residency tags, derivation flags, and volume — enough for the provider to render the policy decision without ingesting the data. Concretely, the consumer's grant validator must refuse to transition a grant to `ACTIVE` when it encounters an opaque sovereignty predicate and no pre-flight channel is advertised. It must instead transition to `PENDING_ATTESTATION` and block the planner from emitting payloads. Failing closed here is the only guardrail that survives the asymmetry, because the consumer can never be trusted to evaluate a predicate about the provider's data plane. ## Operational Effect Enforcing the boundary converts a silent breach into a loud, pre-transmission refusal. The consumer's planner halts before serialization; the provider's pre-flight endpoint returns `DENY` with the specific predicate that failed; the grant is marked `REJECTED_PREFLIGHT` and the payload never leaves org A. The cost is one extra round trip per grant activation and a manifest-construction step in the consumer's tool-call path. The benefit is that the sovereignty clause is enforced at the only point where enforcement is meaningful: before the bytes cross the boundary. Retry semantics must also be corrected — a `SOVEREIGNTY_VIOLATION` is a terminal policy outcome, never a transient error, and must be excluded from the backoff-and-retry loop. ```python class SovereigntyPreflightError(RuntimeError): """Raised when a federated grant carries a sovereignty predicate the consumer cannot decide locally and no pre-flight attestation channel was advertised by the provider. Fails closed before payload emission.""" pass OPAQUE_PREDICATE_KINDS = frozenset({ "processing_region", "no_cross_border_derivation", "derived_work_retention", }) def activate_grant(grant: dict, provider_manifest_endpoint: str | None) -> str: """Decide whether a negotiated grant may become ACTIVE for the consumer. Invariant: a grant with any opaque sovereignty predicate is executable only if the provider exposes a pre-flight attestation endpoint. Otherwise we must refuse activation rather than default to satisfied-by-signature. """ predicates = grant.get("sovereignty", {}) opaque = [k for k in predicates if k in OPAQUE_PREDICATE_KINDS] if opaque and not provider_manifest_endpoint: raise SovereigntyPreflightError( f"grant {grant.get('id')!r} carries undecidable sovereignty " f"predicates {opaque} with no pre-flight attestation channel; " f"refusing ACTIVE transition to prevent pre-decision data egress" ) if opaque and provider_manifest_endpoint: # Caller must submit a payload manifest (residency tags, derivation # flags, volume) to the endpoint and receive an explicit ALLOW before # any payload bytes are serialized for transport. return "PENDING_ATTESTATION" return "ACTIVE" def handle_tool_error(grant_id: str, error_code: str) -> str: """Classify tool errors. Policy outcomes are terminal, never retried.""" if error_code == "SOVEREIGNTY_VIOLATION": # Do not re-emit the payload; the boundary was already approached. raise SovereigntyPreflightError( f"grant {grant_id!r} hit SOVEREIGNTY_VIOLATION at execution; " f"payload must not be retried — predicate was opaque at handshake" ) return "RETRYABLE" ```