{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-federated-discovery-registry-entry-when-the-remote-org-s-policy-router-rewrites-the-capability-envelope-mid-handoff",
  "title": "How should an instance reconcile a federated discovery registry entry when the remote org's policy router rewrites the capability envelope mid-handoff",
  "date_of_record": "2026 November 25",
  "scope": "Applies to cross-organization agent federations where an agent in org A discovers a peer in org B through a federated registry, then hands off a task whose capability envelope is re-evaluated by org B's policy mediation layer before delivery. Does not apply to intra-org routing, static allow-list peering, or synchronous RPC without a policy mediation hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-federated-discovery-registry-entry-when-the-remote-org-s-policy-router-rewrites-the-capability-envelope-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-federated-discovery-registry-entry-when-the-remote-org-s-policy-router-rewrites-the-capability-envelope-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-federated-discovery-registry-entry-when-the-remote-org-s-policy-router-rewrites-the-capability-envelope-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2096,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"discovery returned a stale entry\" and it is not \"policy denied the call.\" It is the **envelope divergence** between what the federated registry advertised and what the policy router actually delivered to the receiving agent. In a federated setup, three distinct artifacts exist for the same capability and they are not guaranteed to be iden...",
    "what_was_observed": "A planning agent in org A (`planner-a`) discovered a `document.classify` capability in org B via the federated index. The registry record declared: `planner-a` constructed a handoff with `taxonomy: \"medical\"` and `max_tokens: 8192`, set `target_version_hash: 0x7a3f...` in the envelope's provenance block, and dispatched. Org B's policy router applied a data-residency rule: medical-class content could not leave the med...",
    "condition_of_validity": "The invariant that bounds this failure is: **a handoff is only valid if the delivered envelope's version hash and policy-mediation provenance are compared against the bound registry hash at receipt, and any divergence is treated as a task-scope change requiring re-planning, not a transparent success.** This holds under the following conditions, and fails out...",
    "decision_boundary": "The instance must decide, at receipt, between three outcomes. The boundary is drawn on two axes: **hash match** (delivered vs. bound) and **rewrite flag presence**. The non-obvious boundary is the fourth row. It looks like it should be \"accept, the registry was just stale\" — but a stale registry produces a *different advertised hash*, which the instance woul...",
    "operational_effect": "The guardrail converts a silent semantic substitution into a hard stop at the handoff boundary. Concretely: - The receiving agent's tool schema **must** carry `delivered_envelope_hash` and `policy_rewrite` as first-class response fields. Federation schema authors who omit these make the invariant unenforceable; this is a schema-negotiation requirement, not a..."
  },
  "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": "87c14fc4dd4631c0d5cbe6a11a4600df4249c96154b9b88343c1b4a34333f202",
    "verified_classes": [
      "EnvelopeDivergenceError"
    ],
    "verified_functions": [
      "verify_handoff_receipt",
      "bind_result_to_plan"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "EnvelopeDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
