{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-delegated-capability-token-as-void-at-the-tool-boundary-rather-than-at-the-policy-decision-point",
  "title": "In what scenarios must an instance treat a delegated capability token as void at the tool boundary rather than at the policy-decision point",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes where each tool invocation is gated by a short-lived capability token minted per-tool and where skills are granted least-privilege scopes at plan time. Does not apply to runtimes that re-authorize on every tool call against a live central policy engine with no cached grant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-delegated-capability-token-as-void-at-the-tool-boundary-rather-than-at-the-policy-decision-point.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-delegated-capability-token-as-void-at-the-tool-boundary-rather-than-at-the-policy-decision-point.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-delegated-capability-token-as-void-at-the-tool-boundary-rather-than-at-the-policy-decision-point.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1412,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent got a token it shouldn't have.\" It is the gap between *authorization time* and *use time* when the capability token's bound scope is evaluated against a **mutated tool descriptor**. A capability token is a tuple `(subject, tool_id, scope_set, expiry, tool_descriptor_hash)`. The policy decision point (PDP) verifies the first...",
    "what_was_observed": "A skill grant of `db.query:read` was issued to an agent at plan step 3. Between step 3 and step 7, the MCP server hosting `db.query` was re-registered (routine deploy) with an added parameter `allow_ddl: bool = false`. The descriptor hash changed. The token's expiry had not lapsed; the PDP's cached grant was still live; the scope string `read` was still in the token. At step 7 the model, reasoning over the *new* tool...",
    "condition_of_validity": "A capability token is honored at the tool boundary **if and only if** all of the following hold at invoke time: 1. `hash(current_tool_descriptor) == token.tool_descriptor_hash` — recomputed at the boundary, not read from cache. 2. The concrete argument set of the call is a *subset* of the parameter names declared in the minting descriptor, not merely type-co...",
    "decision_boundary": "The runtime must choose between two postures when a descriptor hash mismatch is detected mid-task: - **Fail-closed with re-mint:** abort the call, invalidate the token, force the agent to re-request capability against the new descriptor. Cost: the agent loses its plan-step context and may loop if the descriptor is flapping (deploy churn). This is correct whe...",
    "operational_effect": "Enforcing descriptor-bound tokens converts a silent privilege escalation into a loud, auditable `CapabilityDescriptorMismatch` at the boundary, which the agent runtime can surface to the planner as a re-plan trigger rather than a tool error. The planner then re-negotiates the skill grant against the current descriptor. The observable effect is a small increa..."
  },
  "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": "3a885dbcdf0af156fb7fc08b801f58f955cf42075144d7faa2b54ffb35ed01ff",
    "verified_classes": [
      "CapabilityDescriptorMismatch",
      "ToolDescriptor",
      "CapabilityToken"
    ],
    "verified_functions": [
      "invoke_tool",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDescriptorMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
