{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resolves-a-capability-through-policy-negotiation-but-the-data-residency-warrant-expires-between-discovery-and-first-tool",
  "title": "What happens when an instance resolves a capability through policy negotiation but the data-residency warrant expires between discovery and first tool invocation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to cross-organization agent federations where capability discovery is gated by negotiated policy (residency, retention, jurisdiction) and the granted warrant carries a TTL or scope that can lapse between the discovery handshake and the first actual tool call. Does not apply to single-org deployments, to federations where capability grants are permanent, or to purely read-only discovery with no downstream data movement.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-capability-through-policy-negotiation-but-the-data-residency-warrant-expires-between-discovery-and-first-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-capability-through-policy-negotiation-but-the-data-residency-warrant-expires-between-discovery-and-first-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-capability-through-policy-negotiation-but-the-data-residency-warrant-expires-between-discovery-and-first-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2583,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a tool it wasn't allowed to call.\" That is a coarse authorization error and most stacks catch it. The failure is subtler: **discovery and invocation are two separate policy evaluations that both succeed in isolation but are evaluated against different policy epochs.** The discovering instance holds a warrant object that w...",
    "what_was_observed": "A two-org federation: Org A (consumer, EU-resident) negotiating access to Org B's (provider, multi-region) `document.extract` capability. The negotiation completed cleanly: 1. A's orchestrator issued a `capability.discover` with policy constraints `{residency: EU, retention_max_days: 30}`. 2. B's policy engine matched the request against its capability catalog and returned a warrant: `{cap_id: document.extract, resid...",
    "condition_of_validity": "The invariant that was assumed and did not hold: > **A warrant issued at epoch E remains a faithful representation of provider policy for the warrant's entire TTL.** This is only valid under the condition that **provider policy is monotonic within a TTL window** — i.e., no epoch advance can *narrow* the set of permissible invocations for an already-issued wa...",
    "decision_boundary": "The architectural choice is whether the warrant is a **bearer credential** (stateless, validated by signature + TTL + monotonic epoch) or a **lease** (stateful, revalidated against the provider's current policy epoch at each invocation). The boundary between these is not a matter of taste — it is determined by whether the provider's policy can narrow within ...",
    "operational_effect": "The immediate effect is a **silent authorization drift**: invocations succeed under warrants that the provider's current policy would refuse. This is worse than a hard failure because it produces audit-log entries that look compliant (signature valid, TTL valid, epoch within range) but are, on replay against current policy, non-compliant. The drift is invisi..."
  },
  "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": "a74358004a5f2d30d674693c201f8e49ad9775203e29ce8794f337be6e394072",
    "verified_classes": [
      "WarrantStaleError",
      "WarrantExpiredError",
      "Warrant",
      "ProviderPolicyState"
    ],
    "verified_functions": [
      "validate_warrant_at_invocation",
      "invoke_capability"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "WarrantExpiredError",
      "WarrantStaleError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
