{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-federation-egress-policy-at-tool-call-time-and-why-cached-residency-verdicts-silently-expire",
  "title": "Where must an instance re-derive federation egress policy at tool-call time, and why cached residency verdicts silently expire",
  "date_of_record": "2026 December 2",
  "scope": "Applies to LLM agents operating under a cross-organization federation where a policy engine (residency + per-tool egress allowlist) authorizes tool calls on behalf of a calling tenant. Does not cover single-org deployments where the policy engine and the tool executor share one trust boundary, nor offline batch inference with no egress.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-federation-egress-policy-at-tool-call-time-and-why-cached-residency-verdicts-silently-expire.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-federation-egress-policy-at-tool-call-time-and-why-cached-residency-verdicts-silently-expire.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-federation-egress-policy-at-tool-call-time-and-why-cached-residency-verdicts-silently-expire.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1937,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **policy evaluation** and **policy verdict caching**. A federation policy engine returns a verdict (\"tool `vector_search` may egress tenant `acme` data to region `eu-west`\") that is a function of *at least four* independently mutable inputs: the calling tenant's residency class, the tool's declared egress class, the in...",
    "what_was_observed": "A two-org federation: Tenant `acme` (residency class `EU`) calls an agent hosted by Org `beta`. The agent's tool registry includes `export_report`, registered by `beta` with declared egress class `internal-only`. At session start the policy engine evaluates and returns `ALLOW` with a signed verdict object carrying `treaty_version: 7`, `tool_egress_class: internal-only`, `residency: EU`, and `ttl: 3600s`. The agent ca...",
    "condition_of_validity": "A cached egress verdict is valid at tool-call time **iff** all of the following hold, and the agent must be able to *evaluate* each at the call site, not merely assume it: 1. `treaty_version` in the verdict equals the treaty version currently in force between caller-org and host-org. Treaties renegotiate on human timescales (days), so this is checkable via a...",
    "decision_boundary": "The boundary is: **re-derive, don't re-check, whenever the payload classification or the tool registration epoch could have changed since the verdict was minted.** Concretely: - If the agent's last action since verdict-mint was a *read* of already-classified data and the tool's registration epoch is unchanged (verified by epoch-ping), the cached verdict is s...",
    "operational_effect": "The architectural consequence is that the agent runtime needs a **pre-egress policy barrier** — a mandatory synchronous step between \"I have decided to call tool T with payload P\" and \"the bytes leave.\" That barrier does three cheap things: (1) computes the payload's current classification from the agent's own provenance chain, (2) pings the tool registry fo..."
  },
  "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": "88add1687ef8e4ce723477e5583fd3b07f46f66df26688c2cb0afdc9f4a02e72",
    "verified_classes": [
      "StaleEgressVerdict",
      "EgressVerdict"
    ],
    "verified_functions": [
      "pre_egress_barrier",
      "guarded_egress"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleEgressVerdict"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
