# What happens when an instance negotiates a federated data-residency policy against a peer that reports residency at the wrong granularity **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organizational agent federations where a requesting agent (the *initiator*) negotiates a policy envelope with a remote peer (the *responder*) before transferring task state or tool outputs that fall under a jurisdictional data-residency constraint (e.g., EU/EEA, PIPL, US-state). Does not apply to single-tenant deployments, to purely read-only capability discovery that transfers no payload, or to transfers already covered by a pre-signed static data-processing agreement that pins residency at the organization level. ## Core Distinction The failure is not a policy *rejection*. A rejection is a clean, observable, recoverable outcome: the responder says "I cannot accept EU-resident data," the initiator reroutes or aborts, and the audit log records a terminal decision. The failure mode here is a policy *acceptance that is locally true and globally false*. Residency enforcement operates on a different granularity than policy negotiation. Negotiation happens at the level of the *agent instance* or the *organization*: the responder advertises "I am a Frankfurt-region agent operated by Org-B, EU data stays in EU." Enforcement, however, must happen at the level of the *individual datum and the individual execution locus*—the specific tool call, the specific sub-agent spawn, the specific memory write. When the responder's residency claim is asserted at instance granularity but its actual execution fans out to sub-agents, sidecar caches, or vendor toolchains whose locus differs, the negotiation succeeds and the payload crosses a border the initiator believed it had excluded. The initiator's guardrail is satisfied; the invariant is violated. The core distinction to hold: **a residency assertion is a claim about a locus, and a locus is not the same object as the negotiation counterparty.** Accepting the counterparty's assertion as a proof about every locus its execution will touch is the defect. ## What Was Observed Initiator `A` (EU-resident, handling a record tagged `residency=EU`) opens an A2A session with responder `B`. The negotiation exchange proceeds: 1. `A` sends `policy_propose` with constraint `{data_class: "PII_EU", allowed_residency: ["EU"], propagation: "no_derivative_outside_EU"}`. 2. `B` replies `policy_accept` with a capability manifest declaring `residency_attestation: {region: "eu-central-1", scope: "instance", signed_by: "org-b-policy-key"}`. 3. `A` verifies the signature against `B`'s published policy key (valid), checks that `eu-central-1 ⊂ EU` (true), and admits the payload. The trace diverges after admission. `B`'s handler for this task class is a planner that delegates summarization to a sub-agent. The sub-agent is spawned under a *different* runtime profile—specifically, a burst-capacity profile that routes to a vendor inference endpoint in `us-east-1` for latency reasons, with the region selected at spawn time by a load balancer, not by the policy envelope. `B`'s instance-level attestation remains literally true: the instance is in `eu-central-1`. The sub-agent's inference call is not. The EU-tagged PII is serialized into the sub-agent's prompt and crosses the border inside an HTTPS request that `B` considers an internal implementation detail. The initiator's audit log records `policy_accept` and a clean transfer. No error surfaces on either side. The violation is only detectable by reconciling `B`'s sub-agent spawn log against `A`'s data-class tags—a reconciliation neither party performs during the session. A second, subtler variant appeared in the same federation: `B`'s `policy_accept` included `propagation: "no_derivative_outside_EU"`, but `B`'s semantic-memory distillation pipeline wrote a derived summary of the payload into a shared vector store whose replication topology spanned three regions. The derivative was not the original datum, so `B`'s enforcement layer (which keyed on the original datum's tag) did not flag it. The `propagation` clause was accepted and then silently dropped, because `B` had no enforcement hook at the distillation boundary—only at the ingress boundary. ## Condition of Validity The negotiation-as-proof pattern is only sound under a condition that is rarely stated and almost never checked: > The responder's residency attestation is valid as a proof about the payload's locus **iff** every execution locus reachable from the admitted task is (a) enumerated in the attestation, (b) region-pinned independent of runtime load, and (c) covered by the same signing key and the same enforcement hook set. In practice this condition fails on three independent axes, any one of which is sufficient to break the invariant: - **Fan-out axis.** The attestation enumerates the instance, not the transitive closure of sub-agent spawns and tool invocations. Any dynamic delegation—planner→worker, orchestrator→specialist, agent→vendor-tool—introduces loci the attestation does not name. - **Pinning axis.** Region selection at spawn time is frequently load-aware. An attestation that says "eu-central-1" describes the *current* placement, not a *constraint* on future placement. Under burst, the constraint is silently relaxed. - **Derivation axis.** Enforcement hooks are typically placed at ingress (where the tagged datum enters) and egress (where it leaves to the initiator). The distillation, summarization, and embedding steps between ingress and egress produce derivatives that carry the semantic content but not the tag, and therefore pass through hooks that key on the tag. The condition of validity is therefore not "the responder is trustworthy" but "the responder's enforcement surface is coextensive with its execution surface." These are different properties, and the second is not attested by the first. ## Decision Boundary The initiator must decide, at negotiation time, whether to treat `policy_accept` as *sufficient* or as *necessary-but-insufficient*. The boundary is drawn by whether the initiator can independently bound the responder's execution surface. **Treat acceptance as sufficient only when** the responder's manifest exposes a *locus set*—an explicit enumeration of every region reachable by any execution path from the admitted task class—and that locus set is signed and region-pinned (not load-selected), and the manifest declares enforcement hooks at derivation boundaries (distillation, embedding, summarization), not only at ingress/egress. In this regime the initiator can check `locus_set ⊆ allowed_residency` directly and the attestation is a proof. **Treat acceptance as insufficient when** any of the following hold: the manifest attests instance granularity only; region selection is described as "dynamic," "load-aware," or "best-effort"; the responder declares sub-agent delegation without a bounded locus set; or the `propagation` clause has no corresponding declared enforcement hook. In this regime the initiator must either (a) downgrade the transfer to a *derivative-safe* payload—send a task specification rather than the tagged datum, and require the responder to return only aggregates that the initiator can re-tag—or (b) refuse the federation path entirely. The non-obvious part of the boundary: **the initiator cannot resolve this by asking the responder to "confirm" residency.** A confirmation is another instance-granularity assertion and carries the same defect. The only resolvable signal is structural—the presence or absence of a signed, bounded locus set with derivation-boundary hooks. Absent that structure, no amount of confirmation converts an instance claim into a locus proof. ## Operational Effect When the boundary is crossed without the structural check, the operational effect is a *silent residency breach with a clean audit trail*. The initiator's logs show a compliant negotiation; the responder's logs show a compliant ingress; the breach lives in the gap between them, in a sub-agent spawn record or a vector-store replication event that neither party's policy layer was watching. This is worse than a rejection, because it defeats the reconciliation that would otherwise catch it: the audit trail actively attests to compliance. The downstream consequences compound. A breach discovered weeks later—during a data-protection audit or a subject-access request—cannot be bounded, because the initiator has no record of which sub-agent loci received the payload and the responder's spawn logs have typically rotated. The initiator cannot answer "where did this datum go," only "where did we believe it went." Remediation therefore requires re-deriving the entire federation's execution topology from secondary logs, which is frequently impossible. The guardrail that bounds this is a *locus-set admission check* enforced at the initiator before payload serialization: the initiator refuses to admit any responder whose manifest does not expose a signed, region-pinned, derivation-hooked locus set covering the admitted task class. This is a hard admission gate, not a runtime monitor—it must fire before the payload is constructed, because once the datum is in the responder's prompt the breach is already in flight. The check is cheap (manifest inspection), deterministic (set containment), and does not depend on trusting the responder's runtime behavior. It converts an unverifiable instance claim into a verifiable structural precondition. ```python from dataclasses import dataclass, field from typing import FrozenSet class ResidencyAdmissionError(RuntimeError): """Raised when a federated peer's locus set cannot bound the admitted task.""" @dataclass(frozen=True) class PeerManifest: peer_id: str attested_region: str attestation_scope: str # "instance" or "locus_set" locus_set: FrozenSet[str] = field(default_factory=frozenset) region_pinned: bool = False # False => load-aware placement derivation_hooks: FrozenSet[str] = field(default_factory=frozenset) signed: bool = False def admit_federated_peer( manifest: PeerManifest, allowed_residency: FrozenSet[str], required_hooks: FrozenSet[str], ) -> None: """Hard admission gate. Must run BEFORE payload serialization. Converts an instance-granularity residency claim into a structural precondition: the peer's execution surface must be enumerated, pinned, and hooked at derivation boundaries. """ if not manifest.signed: raise ResidencyAdmissionError( f"peer {manifest.peer_id}: unsigned manifest cannot attest residency" ) if manifest.attestation_scope != "locus_set": raise ResidencyAdmissionError( f"peer {manifest.peer_id}: attestation scope is " f"{manifest.attestation_scope!r}; instance-granularity claims do not " "bound sub-agent or vendor-tool loci and cannot be admitted" ) if not manifest.locus_set: raise ResidencyAdmissionError( f"peer {manifest.peer_id}: empty locus set; execution surface unbounded" ) escaped = manifest.locus_set - allowed_residency if escaped: raise ResidencyAdmissionError( f"peer {manifest.peer_id}: locus set escapes allowed residency; " f"out-of-region loci: {sorted(escaped)}" ) if not manifest.region_pinned: raise ResidencyAdmissionError( f"peer {manifest.peer_id}: region placement is load-aware; " "attested region describes current placement, not a constraint" ) missing_hooks = required_hooks - manifest.derivation_hooks if missing_hooks: raise ResidencyAdmissionError( f"peer {manifest.peer_id}: derivation boundaries unhooked; " f"missing: {sorted(missing_hooks)} (derivatives would cross untagged)" ) def negotiate_transfer(manifest: PeerManifest, payload_class: str, allowed_residency: FrozenSet[str]) -> str: required = frozenset({"distill", "embed", "summarize"}) try: admit_federated_peer(manifest, allowed_residency, required) except ResidencyAdmissionError: # Downgrade: send task spec, not the tagged datum. return f"downgrade:{payload_class}:spec_only" return f"admit:{payload_class}:full_payload" if __name__ == "__main__": eu = frozenset({"eu-central-1", "eu-west-1"}) bad = PeerManifest( peer_id="org-b/agent-7", attested_region="eu-central-1", attestation_scope="instance", locus_set=frozenset(), region_pinned=False, derivation_hooks=frozenset({"ingress", "egress"}), signed=True, ) print(negotiate_transfer(bad, "PII_EU", eu)) # -> downgrade:...:spec_only ```