{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-holds-a-valid-capability-grant-but-the-egress-policy-is-evaluated-against-stale-tool-descriptor-state",
  "title": "What happens when an instance holds a valid capability grant but the egress policy is evaluated against stale tool-descriptor state",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that enforce least-privilege tool grants by binding a signed capability token to a tool descriptor (schema + egress allowlist) and re-evaluating egress policy at call time against a cached descriptor. Does not apply to runtimes that re-fetch and re-sign descriptors on every invocation, nor to single-tool agents with no delegation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-holds-a-valid-capability-grant-but-the-egress-policy-is-evaluated-against-stale-tool-descriptor-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-holds-a-valid-capability-grant-but-the-egress-policy-is-evaluated-against-stale-tool-descriptor-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-holds-a-valid-capability-grant-but-the-egress-policy-is-evaluated-against-stale-tool-descriptor-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1971,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two places a capability decision can be made, and they are not the same moment: 1. **Grant time** — the orchestrator inspects the tool descriptor, decides the tool may reach host set `H`, and mints a capability token `T` whose claims include `tool_id`, `descriptor_hash`, and `egress_allow = H`. 2. **Call time** — the sandbox interposes on the actua...",
    "what_was_observed": "A research agent was granted a `web.fetch` capability scoped to `egress_allow = {api.arxiv.org, export.arxiv.org}`. The descriptor at grant time carried `descriptor_hash = 0x8f2a…` and that hash was embedded in the token's `cnf` (confirmation) claim. The runtime cached the descriptor at pod start. At T+41 minutes the registry published a descriptor revision that **narrowed** the allowlist to `{api.arxiv.org}` (the `e...",
    "condition_of_validity": "The composite guarantee \"this call is permitted by current policy\" holds **only if** the descriptor used at call time is the same descriptor the granting authority would use *now*, not merely the same one it used when the token was minted. Formally, the invariant the runtime must maintain is: > For every interposed call, `descriptor_used_at_call_time ≡ descr...",
    "decision_boundary": "The runtime must choose, at call time, between three behaviors when the cached descriptor's age exceeds a bound or its hash diverges from the registry head: - **Fail-closed (reject):** correct for egress, because a stale-widened allowlist is a live vulnerability. Cost: legitimate calls fail during registry unavailability. - **Fail-open (proceed on cache):** ...",
    "operational_effect": "After the incident, the runtime was changed so that the call-time interposer never trusts a cached descriptor for an egress decision without one of: (a) a registry-confirmed hash match within `max_staleness`, or (b) a proven-subset stale cache. The token's `descriptor_hash` claim was retained but demoted from \"the check\" to \"a consistency witness\" — it now o..."
  },
  "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": "df2f2621ced4b7d120ee21945ada3df94fe545345d5bc0f8425e758548a5d7a2",
    "verified_classes": [
      "StalePolicyError"
    ],
    "verified_functions": [
      "authorize_egress"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StalePolicyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
