Articles

AI Data Residency: Test LLM Routing, Logs, and Failover

Run an AI data residency check on your LLM gateway: list configured destinations, read the provider per request, force a failover and see where logs land.

· 14 min read
ai-data-residency llm-data-residency ai-gateway llm-routing llm-failover data-governance agent-command-center
Illustrative banner with the title on the left and, on the right, a split-flap board for check 2c where four requests return HTTP 200 from provider us with fallback used true, above each mock's received count.
Table of Contents

Imagine an outage took down the EU endpoint behind your LLM gateway last week. The security lead forwards the data protection officer’s question: where did our prompts go while it was down, and where are the logs? The platform team’s only answer is that it chose the EU region.

That answer skips three paths: the gateway config can name more than one provider, a fallback can fire during an outage, and request logs get pushed to hosts of their own. A region dropdown in a console shows none of them.

The banner depicts an illustrative failover scenario, not captured test output.

AI data residency is the physical location where an AI system’s prompts, responses and logs are stored or processed. A worked example shows how to close the gap: six steps compare policy, configured destinations, request routing, failover and logs.

The examples are illustrative, not evidence of an actual gateway test. Real destination evidence still does not prove where a provider processes data.

Related terms are in residency, sovereignty and localization defined.

TL;DR

  • A client-side AI data residency check proves destinations: hosts, the provider per request, fallback targets and log sinks.
  • Processing region, storage, retention and staff access need the provider’s documents and your contract.
  • Six illustrative steps go from a policy file to a fail-closed diff; the excerpts are not a runnable test bundle.
  • In the illustrative outage scenario, an eu-only config returns HTTP 502, while a declared us failover target takes every request.
  • With your own validated check, re-test after any change to providers, routing, keys, logging, guardrails or a residency page.

What a client can check about AI data residency and what needs a contract

From the client side you can prove which hosts your gateway called, which provider served each request, where a fallback went and where logs landed. A provider’s documentation and your contract answer where it runs inference, stores data at rest, keeps abuse-monitoring logs and lets support staff in.

QuestionClient-side evidenceProvesStill needs the provider
Which host did the gateway call?providers.<name>.base_url, destination countersThe configured host was reachedNothing more
Which provider served the request?x-agentcc-provider, x-agentcc-model-usedConfigured provider and modelWhere it ran the call
Where did a fallback go?x-agentcc-fallback-used, x-agentcc-providerThe failover destinationIts processing region
Where do gateway logs land?Listener hits on log and export keysHosts receiving logsA sink’s storage region
Where did inference run?Only Anthropic’s usage.inference_geoA provider statementResidency page and contract
Where is data stored, for how long?NoneNothingRetention terms
Who at the provider can access it?NoneNothingContract and support terms

Evidence you can collect from your own side

You can read configured hostnames, the x-agentcc-provider header on each response, counters on destinations you run, and hits on listeners for log and export keys. A header saying eu names the provider that answered, not where it ran the model. Nothing here is a compliance or legal claim.

Claims only the provider’s documents and contract settle

Processing location, storage at rest, retention and staff access sit with the provider. Per OpenAI’s data controls page, abuse-monitoring logs, which may hold prompts and responses, are kept up to 30 days unless law or protecting its services requires longer. Look in the residency page, DPA and order form.

Regional endpoints and residency settings by provider

LLM data residency starts with each provider’s own regional settings, and five providers select a region five ways: a project setting, a request parameter, a deployment type, an inference profile or an endpoint. The table records each setting, an example hostname and what the provider’s page said on 19 November 2026.

ProviderRegion selected byExample hostnameWhat the page saysSource
OpenAIProject region fixed at creation, or a per-request regional host on a Global projecteu.api.openai.comus and eu: regional storage and processing; “Support for regional storage does not imply support for regional processing”; system data outside residencyOpenAI’s data residency guide, no page date
Anthropic APIinference_geo (global default, or us); workspace geo us onlyapi.anthropic.comClaude 4.6 and later; response reports usage.inference_geo; on Bedrock and Google-managed Claude the endpoint or profile sets the regionAnthropic’s data residency settings, no page date
Azure OpenAI in FoundryDeployment type: Global, Data Zone, Standard<resource>.openai.azure.comAt rest in the Azure geography; Global in any Azure region; Data Zone in the US, EU or APAC zone, and the EU zone can include EFTA countries such as Norway and Switzerland; regions added without noticeAzure deployment types, updated 2026-08-12
Amazon BedrockRegional endpoint plus an inference profile (prefixes such as us, eu, apac, in, or global)bedrock-runtime.eu-central-1.amazonaws.comGeographic profile stays in its geography; prompts may leave the source Region; abuse-detection storage in the destination regionBedrock geographic cross-Region inference, no page date
Google Cloud (Gemini Enterprise Agent Platform)Global, locational or multi-region endpointaiplatform.eu.rep.googleapis.comAt rest in the chosen location; global endpoint has no residency guarantee; eu excludes the UK and SwitzerlandGoogle Cloud’s data residency page, updated 2026-11-17

Write each host into the policy file with its provider setting beside it, and re-read all five pages the day you run the check. Google updated its page on 17 November 2026, and Microsoft can add regions to a data zone without prior notice.

Hostname patterns come from Bedrock service endpoints and Google Cloud’s endpoint locations.

Why a regional hostname proves nothing on its own

Different regional hostnames can share IP addresses; the illustrative DNS example below is not a captured lookup. OpenAI’s data residency guide says regional hosts terminate TLS in the selected region through Cloudflare Regional Services, behind the address a client sees. A hostname or shared IP address is not proof of processing location.

Illustrative output, not captured or tested stdout:

addresses shared by more than one hostname (so the address cannot tell the hostnames apart):
  162.159.140.245: us.api.openai.com, eu.api.openai.com, api.openai.com
  172.66.0.243: us.api.openai.com, eu.api.openai.com, api.openai.com

Write the residency policy as data and list configured destinations

Write the policy as a small JSON file that names allowed providers and their hosts, log destinations and export destinations. Then read the gateway config and list every key that can send data out. In this worked example, anything configured that the policy does not name, or that the destination inventory cannot resolve, counts as a violation.

  1. Write the policy as data.
  2. List configured destinations.
  3. Record observed destinations.
  4. Inject a provider failure.
  5. Check log and export sinks.
  6. Diff and fail closed.

This is an illustrative walkthrough, not a report of completed tests. All configurations, code excerpts, counts, trace records, outputs and diagrams below are illustrative, not recovered or tested historical stdout.

No complete check script, mock servers or listener bundle is supplied; the Python fragments depend on omitted helpers and are not runnable as presented. Scenario 1 registers only eu, scenario 2 adds us, scenario 3 adds a log listener.

The policy file

The illustrative policy (which you might name policy_eu_only.json) maps allowed_providers from provider name to host:port, then lists allowed_log_destinations, allowed_export_destinations and allowed_guardrail_rules. In scenarios 1 and 2 the hosts represent synthetic mocks on 127.0.0.1 standing in for regional endpoints. In production each value is a real regional host.

Illustrative configuration excerpt (not a complete runnable setup):

{
  "_label": "ILLUSTRATIVE SYNTHETIC policy. The mock on 127.0.0.1 stands in for an EU regional endpoint.",
  "name": "eu-only",
  "allowed_providers": {"eu": "127.0.0.1:19101"},
  "allowed_log_destinations": [],
  "allowed_export_destinations": [],
  "allowed_guardrail_rules": []
}

Every config key that sends data out of the gateway

The illustrative configured_destinations() excerpt below follows this list. It is not a verified exhaustive egress audit of a gateway revision. In this example, a destination it cannot resolve, such as a cache backend, a guardrail rule or an unreviewed top-level section, is marked UNRESOLVED and counts as a violation; a guardrail rule clears only when allowed_guardrail_rules names it.

  • providers.<name>.base_url: model providers
  • control_plane.url: log push and org config sync
  • otel.endpoint with exporter otlp
  • audit.sinks[].url and alerting.channels[].url
  • cache.backend and cache.semantic.backend (s3, gcs, azure-blob, redis, qdrant, weaviate, pinecone)
  • mcp.servers.<name>.url
  • Guardrail rules: the futureagi (Protect) rule calls api.futureagi.com by default
  • Org providers from PUT /-/orgs/{org_id}/config, used by byok and managed keys
  • a2a.agents.<name>.url (listed by the illustrative excerpt even when A2A is off)
  • routing.mirror.rules[].target_provider when mirroring is on
  • video.providers.<name>.base_url (empty means the adapter’s default host)
  • routing.provider_lock: in the illustrative scenario, the lock header selects a registered us with no routing targets set

Illustrative code excerpt (incomplete; not runnable as presented):

def configured_destinations(cfg, org=None):
    """Step 2. Every outbound destination the config can reach, as (kind, config key, destination).
    A destination that cannot be resolved from the config is returned as 'UNRESOLVED:<why>' and fails closed."""
    out = []
    for name, p in (cfg.get("providers") or {}).items():
        out.append(("provider", f"providers.{name}.base_url", name, host_of(p.get("base_url"))))
    for name, p in ((org or {}).get("providers") or {}).items():
        out.append(("provider", f"org.providers.{name}.base_url", name, host_of(p.get("base_url"))))
    cp = cfg.get("control_plane") or {}
    if cp.get("url"):
        out.append(("log_push", "control_plane.url", "", host_of(cp["url"])))
    ot = cfg.get("otel") or {}
    if ot.get("enabled") and ot.get("exporter") == "otlp":
        out.append(("export", "otel.endpoint", "", host_of(ot.get("endpoint"))))
    au = cfg.get("audit") or {}
    for i, s in enumerate(au.get("sinks") or [] if au.get("enabled") else []):
        if s.get("type") == "webhook":
            out.append(("export", f"audit.sinks[{i}].url", "", host_of(s.get("url"))))
        elif s.get("type") not in ("stdout", "file"):
            out.append(("export", f"audit.sinks[{i}]", "", "UNRESOLVED:unknown sink type " + str(s.get("type"))))
    al = cfg.get("alerting") or {}
    for i, c in enumerate(al.get("channels") or [] if al.get("enabled") else []):
        if c.get("type") in ("webhook", "slack"):
            out.append(("export", f"alerting.channels[{i}].url", "", host_of(c.get("url"))))
    ca = cfg.get("cache") or {}
    if ca.get("enabled"):
        if ca.get("backend", "memory") not in ("memory", "disk"):
            out.append(("export", "cache.backend", "", "UNRESOLVED:list the " + str(ca.get("backend")) + " host by hand"))
        sem = ca.get("semantic") or {}
        if sem.get("enabled") and sem.get("backend", "memory") != "memory":
            out.append(("export", "cache.semantic.backend", "", "UNRESOLVED:list the " + str(sem.get("backend")) + " host by hand"))
    mcp = cfg.get("mcp") or {}
    for name, s in (mcp.get("servers") or {}).items() if mcp.get("enabled") else []:
        if s.get("url"):
            out.append(("export", f"mcp.servers.{name}.url", "", host_of(s["url"])))
    gr = cfg.get("guardrails") or {}
    for r in (gr.get("rules") or []) if gr.get("enabled") else []:
        out.append(("guardrail", f"guardrails.rules[{r.get('name')}]", r.get("name", ""), "UNRESOLVED:guardrail rule destination"))
    # Illustrative inventory: include external A2A agents even when disabled.
    for name, ag in ((cfg.get("a2a") or {}).get("agents") or {}).items():
        out.append(("export", f"a2a.agents.{name}.url", "", host_of(ag.get("url")) or "UNRESOLVED:a2a agent without url"))
    # Illustrative inventory: treat an empty video base_url as an unresolved default host.
    for name, vp in ((cfg.get("video") or {}).get("providers") or {}).items():
        out.append(("provider", f"video.providers.{name}.base_url", name,
                    host_of(vp.get("base_url")) or "UNRESOLVED:empty base_url uses the adapter's default host"))
    # Illustrative inventory: include a mirror rule's second registered provider.
    mi = (cfg.get("routing") or {}).get("mirror") or {}
    for i, r in enumerate(mi.get("rules") or [] if mi.get("enabled") else []):
        t = r.get("target_provider", "")
        reg = {**{n: p.get("base_url") for n, p in (cfg.get("providers") or {}).items()},
               **{n: p.get("base_url") for n, p in ((org or {}).get("providers") or {}).items()}}
        out.append(("provider", f"routing.mirror.rules[{i}].target_provider", t,
                    host_of(reg.get(t)) or f"UNRESOLVED:mirror target '{t}' is not a registered provider"))
    # Fail closed: a top-level section nobody has reviewed for egress is unresolved until a person reviews it.
    for k in sorted(set(cfg) - REVIEWED_SECTIONS):
        out.append(("export", k, "", "UNRESOLVED:config section not reviewed for egress"))
    return out


# Illustrative section allowlist, not a verified audit of a gateway revision. Other sections fail closed.
REVIEWED_SECTIONS = {"server", "providers", "model_map", "auth", "cost_tracking", "rate_limiting", "cache", "logging",
                     "guardrails", "routing", "budgets", "audit", "otel", "prometheus", "alerting", "admin",
                     "model_database", "ip_acl", "privacy", "tool_policy", "cors", "control_plane", "org_providers",
                     "mcp", "a2a", "video"}

Illustrative output, not captured or tested stdout:

-- step 2: configured destinations (from the gateway config)
   provider  providers.eu.base_url                  -> 127.0.0.1:19101
   provider  providers.us.base_url                  -> 127.0.0.1:19102
   DIFF: providers.us.base_url: provider 'us' at 127.0.0.1:19102 is not in the policy

Observe where each request went

Every served response from the gateway names its provider in x-agentcc-provider and, once a model is resolved, the model in x-agentcc-model-used. Record both for each request, add the gateway’s request-trace records where your key type emits them, and compare the result with the request counters on each destination.

Illustrative flow diagram of scenario 2a in which a client sends 4 requests through the agentcc gateway to the eu destination, which received 4, while us received 0, with the x-agentcc-provider and x-agentcc-model-used headers and the destination counter compared for each request.

Illustrative scenario 2a, not a captured gateway test.

Earlier pipeline stages are in how a request moves through an AI gateway.

Response headers on every served call

x-agentcc-model-used appears once the resolved model is known, and x-agentcc-fallback-used is true only when a fallback served the call. A failed request (HTTP 502, 403 or 404) carries none of the three headers, so the illustrative excerpt counts it as not served, not as undelivered. In illustrative scenario 2a below, eu is healthy.

Illustrative code excerpt (incomplete; not runnable as presented):

    for i in range(a.requests):
        hdr = {"Authorization": "Bearer " + a.key, "Content-Type": "application/json"}
        if a.lock:
            hdr["x-agentcc-provider-lock"] = a.lock
        body = {"model": a.model, "messages": [{"role": "user", "content": f"synthetic ping {i}"}]}
        status, h, raw = http("POST", a.gateway + "/v1/chat/completions", body, hdr)
        prov = h.get("x-agentcc-provider")
        line = (f"   req {i}: HTTP {status} x-agentcc-provider={prov} x-agentcc-model-used={h.get('x-agentcc-model-used')} "
                f"x-agentcc-provider-locked={h.get('x-agentcc-provider-locked')} x-agentcc-fallback-used={h.get('x-agentcc-fallback-used')}")
        if status == 200:
            n_ok += 1
            if not prov or not h.get("x-agentcc-model-used"):
                unknown.append(f"req {i}: 200 without x-agentcc-provider or x-agentcc-model-used")
            elif prov not in cfg_hosts:
                unknown.append(f"req {i}: provider '{prov}' is not in the config")
            else:
                served[prov] = served.get(prov, 0) + 1
                if policy["allowed_providers"].get(prov) != cfg_hosts[prov]:
                    violations.append(f"req {i}: served by '{prov}' ({cfg_hosts[prov]}), not allowed by the policy")

Illustrative output, not captured or tested stdout:

   req 0: HTTP 200 x-agentcc-provider=eu x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=None
   req 1: HTTP 200 x-agentcc-provider=eu x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=None
   req 2: HTTP 200 x-agentcc-provider=eu x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=None
   req 3: HTTP 200 x-agentcc-provider=eu x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=None
   illustrative mock counts (chat requests received in this scenario):
   eu: received 4, answered 200 to 4
   us: received 0, answered 200 to 0

Request-trace records for byok and managed keys

For byok and managed keys, the gateway writes a request.trace line per call with provider, model, resolved_model, status_code and fallback_used when set. Illustrative scenario 3b uses a byok key on the org’s providers and depicts three such lines carried by one push. An illustrative trace record (including synthetic timestamps and identifiers):

Illustrative output, not captured or tested stdout:

  {"time":"2026-11-19T00:52:56.265607+05:30","level":"INFO","msg":"request.trace","request_id":"01M7R1SDW8CS6YXXP6AN0TJ8NK","trace_id":"01M7R1SDW8025QY0NXE7GFS74T","timestamp":"2026-11-19T00:52:56.264322+05:30","model":"mock-model","provider":"eu","is_stream":false,"status_code":200,"latency_ms":1,"prompt_tokens":3,"completion_tokens":4,"total_tokens":7,"resolved_model":"mock-model","user_id":"synthetic","auth_key_id":"key_987435ddd895a0a96a33176e","auth_key_name":"byok-synthetic","finish_reason":"stop"}

Counters on the destination side

The mocks count chat requests received and answered; in production use the provider’s usage view or a forward proxy you run. In the illustrative design, a 200 without the headers, or a header count that differs from the destination’s count (a mirror copy would cause that), is UNKNOWN. An unreadable destination has an unknown count.

Inject a provider failure and record where the fallback went

Make the in-region provider fail on purpose, once by returning HTTP 503 and once by stopping its process, then read where each request ended up. In the illustrative scenarios, with only eu configured, requests fail with HTTP 502 and reach no other host; eu can still receive a request before returning 503.

With us declared as a failover target, every request moves to us.

A 503 matches failover.on_status_codes; a stopped process refuses the connection. The illustrative scenario 2 configuration excerpt below uses cost-optimized routing, assuming the lowest priority group is selected first; round-robin ignores priority. A static key needs key_type: internal to call its providers.

The example concerns destinations, not quality, latency or cost; it is not a complete deployment configuration or a verified commit-specific routing test.

Illustrative configuration excerpt (not a complete runnable setup):

providers:
  eu:
    base_url: "http://127.0.0.1:19101"
    api_format: "openai"
    api_key: "mock"
    models: ["mock-model"]
  us:
    base_url: "http://127.0.0.1:19102"
    api_format: "openai"
    api_key: "mock"
    models: ["mock-model"]
routing:
  default_strategy: "cost-optimized"
  failover: {enabled: true, max_attempts: 2, on_status_codes: [429, 500, 502, 503, 504], on_timeout: true}
  retry: {enabled: false}
  targets:
    mock-model:
      - {provider: "eu", priority: 1}
      - {provider: "us", priority: 2}

Fallback strategy choices are in LLM fallback strategies.

A single-region config fails closed

Illustrative scenario 1c depicts eu answering 503 and the client receiving HTTP 502 with “synthetic outage from eu”. Scenario 1d instead assumes the eu process is stopped and the client receives HTTP 502 with “connect: connection refused”.

No other host receives a request in either scenario. The example verdict is PASS (failed closed), with exit 1 proposed to flag the outage in CI. Failed closed here means no successful service, not that eu received no prompt.

Illustrative output, not captured or tested stdout:

   req 0: HTTP 502 x-agentcc-provider=None x-agentcc-model-used=None x-agentcc-provider-locked=None x-agentcc-fallback-used=None error.code= error.message='synthetic outage from eu'
   req 1: HTTP 502 x-agentcc-provider=None x-agentcc-model-used=None x-agentcc-provider-locked=None x-agentcc-fallback-used=None error.code= error.message='synthetic outage from eu'
   illustrative mock counts (chat requests received in this scenario):
   eu: received 2, answered 200 to 0
   0 served, 2 failed without being served (no request completed successfully)
-- step 6: verdict (diff of configured vs observed, fail closed)
   RESIDENCY VERDICT: PASS (failed closed: no request was served by any destination)  (destinations only; processing and storage geography need the provider's documentation and contract)

A declared failover target receives the traffic

With us declared at priority 2, illustrative scenarios 2c (eu answering 503) and 2d (eu stopped) each depict 4 of 4 requests served by us with x-agentcc-fallback-used=true. Scenario 2e compares 2d’s state against the eu-only policy: FAIL. So a failover target belongs in the policy only if its region is acceptable.

Illustrative output, not captured or tested stdout:

   req 0: HTTP 200 x-agentcc-provider=us x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=true
   req 1: HTTP 200 x-agentcc-provider=us x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=true
   req 2: HTTP 200 x-agentcc-provider=us x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=true
   req 3: HTTP 200 x-agentcc-provider=us x-agentcc-model-used=mock-model x-agentcc-provider-locked=None x-agentcc-fallback-used=true
   illustrative mock counts (chat requests received in this scenario):
   eu: received 4, answered 200 to 0
   us: received 4, answered 200 to 4

routing.provider_lock governs the lock header: illustrative scenario 2b-1 depicts HTTP 403 for a header naming us when allowed_providers is set to eu. Routing targets and failover decide where a failover goes; scenario 2b-2 depicts a fallback to us with eu stopped.

These are illustrative outcomes, not validated lock-header tests. A provider outside the policy belongs out of the config, as in scenario 1.

Check where request logs and exports land

Request logs leave the gateway through config keys you control: request-trace lines on stdout, a push to control_plane.url, an OTLP endpoint, audit sinks and alert channels. Point each at a listener you run, send synthetic requests and record what each received. A sink the policy does not name fails the check.

The log push to control_plane.url

With control_plane.url set and request logging on, the gateway POSTs trace records in batches to that URL plus /agentcc/webhook/logs/. Illustrative scenario 3 uses one listener at 127.0.0.1:19150 to represent every collector. Scenario 3a depicts no request.trace lines and only the OTLP export; scenario 3b depicts three lines carried by one push.

The counts below are illustrative, not captured listener traffic.

Illustrative output, not captured or tested stdout:

-- step 5: where request logs and exports land
   sink 'log-sink' (127.0.0.1:19150) received during this check: {'/v1/traces': 1}
   gateway stdout request.trace lines written during this check: 0

Illustrative output, not captured or tested stdout:

-- step 5: where request logs and exports land
   sink 'log-sink' (127.0.0.1:19150) received during this check: {'/v1/traces': 1, '/agentcc/webhook/logs/': 1}
   last pushed batch: 3 record(s), providers ['eu']
   gateway stdout request.trace lines written during this check: 3

OTLP, audit and alert sinks

In both illustrative scenarios, the OTLP export uses its own /v1/traces path. Audit webhook sinks and webhook or Slack alert channels are listed by URL in step 2 and checked the same way.

Request-log records carry bodies only when logging.request_logging.include_bodies is true, OTLP spans only when otel.include_bodies is true, and provider abuse-monitoring logs follow the provider’s terms.

Fail closed when the AI data residency diff finds an unknown destination

The illustrative verdict excerpt compares three lists: what the policy allows, what the config can reach and what each request reached. A destination outside the policy or an unresolved host is a violation; a missing header, an unregistered provider or a count mismatch is unknown. An unknown fails the AI data residency check the same way a violation does.

Illustrative code excerpt (incomplete; not runnable as presented):

    print("-- step 6: verdict (diff of configured vs observed, fail closed)")
    for v in violations:
        print(f"   VIOLATION: {v}")
    for u in unknown:
        print(f"   UNKNOWN: {u}")
    verdict = "PASS" if not violations and not unknown else "FAIL"
    if verdict == "PASS" and n_ok == 0:
        verdict = "PASS (failed closed: no request was served by any destination)"
    print(f"   RESIDENCY VERDICT: {verdict}  (destinations only; processing and storage geography need the provider's documentation and contract)")
    return 0 if verdict == "PASS" else 1

Illustrative decision ladder for the residency verdict, where a violation or an unknown gives FAIL with exit 1, no served request gives PASS failed closed with exit 1, and every request inside the policy gives PASS with exit 0.

Illustrative decision logic, not a recovered test result.

Reading the verdict

VIOLATION lines name the config key or request and the host; UNKNOWN lines name the missing value, and an empty run is unknown. In illustrative scenario 2e the violations are us in the config, requests 0 and 1 served by us, and the us mock’s own count. Exit code 0 means every request stayed inside the policy.

Illustrative output, not captured or tested stdout:

-- step 6: verdict (diff of configured vs observed, fail closed)
   VIOLATION: config: providers.us.base_url: provider 'us' at 127.0.0.1:19102 is not in the policy
   VIOLATION: req 0: served by 'us' (127.0.0.1:19102), not allowed by the policy
   VIOLATION: req 1: served by 'us' (127.0.0.1:19102), not allowed by the policy
   VIOLATION: mock 'us' received 2 request(s) but is not in the policy
   RESIDENCY VERDICT: FAIL  (destinations only; processing and storage geography need the provider's documentation and contract)

What to re-run after every config change

Once you have implemented and validated your own check, re-run it after any change that can move a request, a fallback or a log, and keep each dated output beside the policy file it ran against, so a reviewer sees what held on which day. Each of these triggers a run:

  • A provider added, removed or given a new base_url
  • Changes to routing targets, strategy, failover or mirroring
  • New A2A agents, video providers or guardrail rules
  • A new key or changed key_type
  • Changes to logging, control_plane.url, otel, audit or alerting
  • A gateway upgrade or a changed residency page

Future AGI Agent Command Center as the residency evidence point

Future AGI’s Agent Command Center decides which provider serves every request, so the gateway both enforces residency and records the evidence. A routed request, a fallback or a provider-lock header can only resolve to a provider registered in its config or in the org’s provider config, and each served response names that provider.

The registered provider set is the residency boundary

Agent Command Center supports 100+ providers, and only the ones you register can be reached, by routes, fallbacks or the lock header. Illustrative scenario 1b depicts HTTP 404, Locked provider "us" not found, for a lock header naming an unregistered us; this is not a captured test result.

Set targets in the routing and failover configuration.

Headers, trace records and the log push as evidence

Every served response carries x-agentcc-provider and x-agentcc-model-used, plus x-agentcc-fallback-used after a fallback. byok and managed keys add request.trace records with provider and model, and the batched push carries them to a collector you choose, where your own check should count what arrived; the step 5 counts above are illustrative.

Both are documented in the response headers reference and request logs and observability.

Self-hosting keeps the gateway and its logs in your region

Self-host Future AGI with Docker Compose or the signed Helm chart, which deploys the gateway, in your policy’s region with collectors there. Protect, on Future AGI Cloud or an Enterprise deployment, runs on Future AGI’s managed service even when self-hosted, so name its rule in allowed_guardrail_rules, with api.futureagi.com as its destination.

The Agent Command Center source on GitHub is Apache-2.0, so you can inspect its routing code; this walkthrough does not validate a particular build or commit.

Answering the data protection officer with recorded evidence

You answer the data protection officer with a dated set of files: the policy, the config diff, the destination of every request, the injected-failure result and the log sink counts. Attach the provider pages and contract clauses that cover processing and storage, and re-run your own validated check whenever the gateway config changes.

For the hypothetical outage, those records would name the provider that served each request while eu was down, whether a fallback left the policy and which hosts received logs.

The illustrative records here cannot answer for an actual outage. For processing location and retention, the first table’s last column names the document that answers.

Next, use the six-step checklist to plan your own staging validation with tooling you supply and verify; this article does not provide a runnable check.

If the next question is about jurisdiction rather than location, send the officer to how a model gateway fits a sovereign AI setup.

Frequently Asked Questions

Does Vertex AI support data residency in the EU?

Yes, for models that support the eu multi-region endpoint, aiplatform.eu.rep.googleapis.com, Google keeps data at rest in your chosen location and ML processing inside the EU. Vertex AI appears in Google's docs, last updated 2026-11-17, as Gemini Enterprise Agent Platform. The global endpoint gives no data residency guarantee, and the eu endpoint excludes the UK and Switzerland.

Should I use Azure OpenAI Data Zone or Global deployments for AI data residency?

For AI data residency, pick Data Zone over Global, because a Data Zone deployment processes prompts and responses only within the chosen US, EU or APAC data zone. Global may process them in any Azure region. Both keep data at rest in the designated Azure geography, and Microsoft can add regions to a data zone without prior notice.

How long does the OpenAI API keep our prompts and responses?

As of 19 November 2026, OpenAI keeps abuse-monitoring logs, which may contain prompts and responses, for up to 30 days unless law or protecting its services requires longer. Responses API data is stored at least 30 days by default, and conversations and batches until you delete them. Zero Data Retention needs OpenAI's prior approval.

Does OpenAI offer EU data residency for the API?

Yes, OpenAI's data residency guide lists eu.api.openai.com with regional storage and regional processing, set when a project is created or per request on a Global project with per-request residency enabled. The region cannot be changed after creation, and system data such as account, billing and usage metadata may still be stored and processed outside the selected region.

Does the Claude API offer EU data residency?

As of 19 November 2026, Anthropic's first-party API documents inference_geo values of global and us only, and workspace storage geo is us. On Amazon Bedrock and Google-managed Claude models on Google Cloud, the endpoint or inference profile you call sets the region, so check that platform's EU options for your model.
Related Articles
View all