{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-data-residency-when-a-federated-peer-s-policy-engine-silently-widens-jurisdiction-mid-handoff",
  "title": "How should an instance enforce data residency when a federated peer's policy engine silently widens jurisdiction mid-handoff",
  "date_of_record": "2026 November 28",
  "scope": "Applies to cross-org agent handoffs where a receiving peer's policy engine evaluates a residency predicate over the *payload* at handoff time. Does not apply to single-tenant deployments, nor to handoffs where residency is enforced by a network-layer egress filter rather than an in-band policy engine.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-data-residency-when-a-federated-peer-s-policy-engine-silently-widens-jurisdiction-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-data-residency-when-a-federated-peer-s-policy-engine-silently-widens-jurisdiction-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-data-residency-when-a-federated-peer-s-policy-engine-silently-widens-jurisdiction-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1537,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the peer ignored residency.\" It is subtler: the peer's policy engine evaluated residency against a *narrower effective jurisdiction* than the one the sender believed it was handing to. Two distinct things get conflated at the boundary: - **Declared jurisdiction** — the region tag the sender attaches to the handoff envelope (e.g. `eu-...",
    "what_was_observed": "A sender agent in `eu-west` handed a payload tagged `residency=EU` to a federated peer via an A2A task handoff. The peer's policy engine returned `ALLOW` with `effective_jurisdiction={eu-west}`. The handoff envelope carried a warrant (signed capability token) asserting `residency=EU`. Between the `ALLOW` evaluation and the payload's actual materialization in a worker, the peer's autoscaler failed over the task queue ...",
    "condition_of_validity": "The `ALLOW` decision is only valid under a conjunction that is almost never checked jointly: 1. `effective_jurisdiction` is computed from state that is **frozen** for the lifetime of the task (not just at evaluation). 2. The warrant binds the decision to a **state version**, not to wall-clock time. 3. Failover, autoscaling, and sub-processor delegation are a...",
    "decision_boundary": "An instance must treat a peer's `ALLOW` as **insufficient** for residency compliance unless the response carries a *pinned state version* and the peer exposes a *placement constraint* on the warrant. Concretely, the decision boundary is: - If the peer's policy response includes `state_version` and the warrant carries `placement_constraint=declared_jurisdicti...",
    "operational_effect": "Instances that adopt the pinned-state-version + scheduler-attestation pattern convert a silent residency violation into a detectable handoff refusal. The cost is a second round-trip (placement attestation) and a stricter receiver contract. The benefit is that the residency invariant becomes *checkable after the fact against the same state the payload was pro..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "79b22bc1783e8a5108300aefa854e91587be7c14be78aa38ea453021841ef9a0",
    "verified_classes": [
      "ResidencyWarrantError",
      "PolicyDecision",
      "PlacementAttestation"
    ],
    "verified_functions": [
      "enforce_residency_handoff"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ResidencyWarrantError"
    ],
    "sample_fail_closed_invariants": [
      "policy ALLOW lacks pinned state_version; cannot bind residency across evaluation-to-materialization gap",
      "missing scheduler-signed placement attestation; policy ALLOW cannot be promoted to a placement guarantee"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
