# In what scenarios must an instance treat a federated policy handshake as uncommitted until the counterparty's sovereignty warrant is re-verified against its own residency lattice **Date of Record:** 2026 November 30 **Scope:** Applies to autonomous agents that negotiate capability and data-use policy with agents owned by a different legal/organizational domain (A2A-style handshakes, MCP server federation, cross-tenant tool delegation) and must enforce data-sovereignty constraints on every subsequent state transfer. Does not apply to intra-org delegation where a single policy authority and residency lattice govern both peers. ## Core Distinction The failure mode is not "the other agent lied about its policy." It is that **a policy agreement is a claim about future state, while a sovereignty warrant is a claim about current state, and the two are verified by different mechanisms at different times.** A negotiation handshake produces a shared, signed policy object (allowed data classes, retention, onward-transfer rules, jurisdiction). A sovereignty warrant is the counterparty's attestation that any data it receives will physically and logically remain within a declared residency lattice (region set, sub-processor list, encryption-key custody). The non-obvious boundary: agents treat a *successful handshake* as authorization to begin streaming state. But the handshake validates the policy *text*, not the *warrant's freshness or lattice membership*. A counterparty can hold a valid, correctly-signed policy that names `EU-only` while its warrant has silently rotated to include a sub-processor in a non-adequate jurisdiction, or the warrant's lattice no longer contains the region the policy text assumes. The policy is a durable contract; the warrant is a perishable attestation. **Committing on policy agreement alone is the boundary violation.** ## What Was Observed A federated retrieval agent (Org A, jurisdiction EU) negotiated with a summarization agent (Org B) to hand off customer records for processing. The A2A handshake completed in 340 ms: 1. A sent `capability_offer` with required data class `PII-restricted` and constraint `residency: EU`. 2. B replied `policy_accept` with a signed policy object: `{allowed_classes: [PII-restricted], residency: EU, retention: 24h, onward_transfer: deny}`. 3. Both sides computed a shared `agreement_hash` and proceeded. At step 3, B's agent began pulling records. The first 4,200 records transferred cleanly. At record 4,201 the transfer stalled and then errored with a schema mismatch on an optional field. Investigation of B's side revealed the actual fault: **B's residency warrant had expired 11 minutes before the handshake and been auto-renewed against a fallback region set that included `us-east-1` as a disaster-recovery replica.** The policy object still said `residency: EU` because policy text is only re-signed on material policy change, not on warrant rotation. B's egress guard, checking the *warrant* rather than the *policy*, permitted the replica write; A's egress guard, checking the *policy*, permitted the send. Neither side's check caught the divergence because each validated a different artifact. The schema error at record 4,201 was incidental (an unrelated optional-field drift), but it was the only observable symptom. **The sovereignty violation itself produced no error on either side** — 4,200 records had already been replicated to a non-adequate jurisdiction, and the system reported success until an unrelated bug surfaced. ## Condition of Validity The invariant that must hold at every transfer is: > *A state transfer between federated agents is authorized iff `policy.allowed_classes ⊇ payload.class` AND `policy.residency ⊆ warrant.current_lattice` AND `warrant.issued_at > now - warrant.ttl` AND `warrant.bound_to == agreement_hash`.* The critical clause is the second: **the policy's declared residency must be a subset of the warrant's *current* lattice, evaluated at transfer time, not at handshake time.** The warrant must be re-fetched and re-validated per transfer batch (or per a bounded TTL far shorter than the agreement lifetime), and it must be cryptographically bound to the specific `agreement_hash` so a warrant from a different negotiation cannot be substituted. This condition is *invalid* — and the guardrail must fail closed — when: - The warrant's lattice has shrunk or shifted since the handshake (the observed case). - The warrant is bound to a prior `agreement_hash` (replay of an old warrant against a new agreement). - The warrant's issuer key has rotated and the new key is not in the trust root A pinned. - The policy text and warrant disagree on jurisdiction (policy says EU, warrant's lattice is `{EU, US}` with US as active replica). ## Decision Boundary The decision boundary is **handshake-time authorization vs. transfer-time authorization**. Most federated agent implementations collapse these into one check at handshake, then trust the agreement for the session. The correct boundary places the sovereignty check at *every state-transfer boundary*, not at session establishment, because the warrant is the only artifact whose truth value changes during the session. Concretely, an instance must treat the handshake as **provisional** and gate each `transfer_batch` on a fresh warrant validation. If re-validation fails, the instance must: 1. Halt the transfer (do not send the pending batch). 2. Mark the agreement `sovereignty_suspended`, not `terminated` — the policy may still be valid; only the warrant is stale. 3. Emit a `WarrantDivergence` event carrying both the policy's declared residency and the warrant's actual lattice, so the discrepancy is auditable rather than silent. 4. Require re-negotiation of the warrant binding before resuming. The boundary is *not* "reject the counterparty." It is "do not treat policy agreement as warrant sufficiency." A counterparty with a stale warrant is recoverable; a counterparty whose stale warrant was silently trusted is a data-sovereignty incident with no error trace. ## Operational Effect The consequence of getting this boundary wrong is that **sovereignty violations are invisible until an unrelated failure forces inspection.** The 4,200-record replication produced no exception, no log line, no metric — the system's observable behavior was "success, then a schema error." Post-incident forensics had to reconstruct the warrant timeline from the counterparty's audit log, which A had no real-time access to. The guardrail's effect is to convert a silent, unbounded violation into a bounded, loud halt. With per-batch warrant validation bound to `agreement_hash`, the first batch after warrant rotation fails closed with `WarrantDivergence`, capping the exposure at one batch (the batch size, not the session length). The cost is one extra round-trip per batch (warrant fetch, ~15–40 ms in observed deployments) — a latency tax that must be paid because the warrant is the only perishable artifact in the agreement. The deeper operational lesson: **in federated agent systems, the durable artifact (policy) and the perishable artifact (warrant) must be validated by the same clock, at the same boundary.** Validating policy at handshake and warrant never is the default failure; validating warrant per-transfer and binding it to the agreement hash is the invariant that bounds the blast radius. ```python import hashlib import time from dataclasses import dataclass from typing import FrozenSet class WarrantDivergence(RuntimeError): """Raised when a counterparty's sovereignty warrant no longer supports the agreed policy.""" pass @dataclass(frozen=True) class Policy: allowed_classes: FrozenSet[str] residency: FrozenSet[str] retention_hours: int agreement_hash: str @dataclass(frozen=True) class Warrant: current_lattice: FrozenSet[str] issued_at: float ttl_seconds: float bound_to: str # must equal policy.agreement_hash issuer_key_id: str def validate_transfer( policy: Policy, warrant: Warrant, payload_class: str, trusted_issuer_keys: FrozenSet[str], now: float | None = None, ) -> None: now = time.time() if now is None else now if payload_class not in policy.allowed_classes: raise WarrantDivergence( f"payload class {payload_class!r} not in policy.allowed_classes " f"{sorted(policy.allowed_classes)}" ) # The perishable check: warrant must be bound to THIS agreement. if warrant.bound_to != policy.agreement_hash: raise WarrantDivergence( f"warrant bound to {warrant.bound_to!r}, agreement is " f"{policy.agreement_hash!r} (stale or replayed warrant)" ) # The perishable check: warrant must be fresh at transfer time. if now - warrant.issued_at > warrant.ttl_seconds: raise WarrantDivergence( f"warrant expired: age {now - warrant.issued_at:.1f}s > " f"ttl {warrant.ttl_seconds:.1f}s" ) # The perishable check: policy's declared residency must be a subset of # the warrant's CURRENT lattice -- this is the clause that caught the # observed incident (policy said EU; warrant lattice had drifted to {EU, US}). if not policy.residency.issubset(warrant.current_lattice): raise WarrantDivergence( f"policy residency {sorted(policy.residency)} not subset of " f"warrant lattice {sorted(warrant.current_lattice)}" ) if warrant.issuer_key_id not in trusted_issuer_keys: raise WarrantDivergence( f"warrant issuer key {warrant.issuer_key_id!r} not in trust root" ) def transfer_batch(policy: Policy, warrant: Warrant, payloads: list[dict], trusted_issuer_keys: FrozenSet[str]) -> int: """Validate before every batch; fail closed on any divergence.""" validate_transfer(policy, warrant, "PII-restricted", trusted_issuer_keys) # ... actual egress ... return len(payloads) ```