{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-federated-peer-has-silently-re-homed-its-residency-anchor-mid-handoff",
  "title": "How does an instance detect that a federated peer has silently re-homed its residency anchor mid-handoff?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to cross-org agent federations where message routing is gated by per-message residency policy (jurisdiction tags attached to payloads and enforced at egress). Does not apply to single-org deployments or to federations where residency is enforced only at rest (storage) rather than at message egress.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-federated-peer-has-silently-re-homed-its-residency-anchor-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-federated-peer-has-silently-re-homed-its-residency-anchor-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-federated-peer-has-silently-re-homed-its-residency-anchor-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a message went to the wrong region.\" It is that a peer agent's **residency anchor**—the jurisdiction tuple `(region, legal_basis, policy_version)` that a receiving instance uses to decide whether it is *allowed* to accept and re-route a payload—can change between the moment a handoff is *negotiated* (capability/schema exchange) and t...",
    "what_was_observed": "A two-org federation: Org A (EU-resident orchestrator) hands a task payload to Org B (a peer agent that advertises `region=eu-west, legal_basis=adequacy_decision_2021/914, policy_version=7`). The handoff is a three-step protocol: (1) `capability.exchange`, (2) `anchor.attest` (receiver returns its current anchor tuple signed by its org key), (3) `payload.transfer` with the anchor tuple embedded as a routing header. O...",
    "condition_of_validity": "The guardrail only holds under a specific invariant, which we state as a precondition rather than an assumption: > **Anchor monotonicity invariant.** For a given `(peer_id, tenant_id)`, the receiver's `policy_version` is monotonically non-decreasing, and any `anchor.attest` response carries a `valid_until` timestamp and a `supersedes_pv` field. A sender MUST...",
    "decision_boundary": "The sender's decision at `t2` is not binary (send / don't send). It is a function of anchor freshness relative to handoff risk: - If `now - issued_at < valid_until` **and** the payload is single-message **and** the receiver's gate is co-located with the attesting node → proceed on cached anchor. - If the handoff spans multiple messages, or the payload is sta...",
    "operational_effect": "The downstream consequence is that **task-level idempotency keys must be scoped to `(peer_id, anchor_pv)`, not to `peer_id` alone.** A retry under a new `pv` is a *different* delivery and must not be deduplicated against the quarantined one—otherwise the receiver, on re-homing back, may dedupe the legitimate retry against the stale quarantined payload and dr..."
  },
  "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": "02123fecb7e912b40648f0b9291ac27c3e11c50af7eba811542fffb96c538871",
    "verified_classes": [
      "AnchorMismatchError",
      "Anchor"
    ],
    "verified_functions": [
      "verify_anchor_receipt",
      "idempotency_key",
      "advance_state_machine"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AnchorMismatchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
