{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-validate-a-capability-token-at-mcp-tool-call-time-rather-than-at-handshake-time",
  "title": "When must an instance re-validate a capability token at MCP tool-call time rather than at handshake time?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that issue per-call capability tokens (scoped, time-bounded warrants) to an LLM instance for MCP tool invocation, where the instance performs multi-step reasoning and may invoke tools across multiple turns. Does not apply to stateless single-shot RPC where handshake and call are atomic, nor to capability models based on ambient session identity without per-call tokens.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-a-capability-token-at-mcp-tool-call-time-rather-than-at-handshake-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-a-capability-token-at-mcp-tool-call-time-rather-than-at-handshake-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-a-capability-token-at-mcp-tool-call-time-rather-than-at-handshake-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1880,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"expired token accepted\" or \"wrong scope accepted.\" Those are caught by naive checks. The failure mode is **token-to-invocation binding drift**: the runtime validates a capability token against the *intended* tool call the planner emitted at the start of a reasoning step, but the actual `tools/call` payload sent over MCP is constructe...",
    "what_was_observed": "A planner instance was granted a per-call token with scope `fs.write:prefix=/workspace/out/`. Step 1: it called `list_dir(/workspace/out/)` and received a listing that included a symlink `latest -> /workspace/out/v3`. Step 2: the planner emitted a declared intent `write_file(path=\"/workspace/out/latest/report.md\", body=...)`. The runtime's pre-dispatch validator checked the declared path string against the token pref...",
    "condition_of_validity": "The boundary is sharp and can be stated as a predicate. Let `D` be the declared invocation (the tool name and argument object the planner emits in its structured output). Let `E` be the effective invocation (the tool name and argument object after all canonicalization, defaulting, symlink resolution, and tool-internal argument composition). Let `T` be the ca...",
    "decision_boundary": "The runtime must decide, per tool, whether it is argument-transparent. The decision is not \"is this tool dangerous\" but \"does this tool's adapter transform arguments before execution.\" The boundary: - **Transparent tools** (no adapter rewriting): validate at intent time. Cheaper, avoids a second round-trip through the adapter. - **Non-transparent tools** (pa...",
    "operational_effect": "When the invariant holds, the instance's reasoning loop can trust that a successful `tools/call` return means the call executed within the token's scope. When it fails, the instance receives a success response for an out-of-scope mutation and incorporates that into its subsequent planning — the state poisoning is not just the filesystem write but the *belief..."
  },
  "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": "0869b2261a9c4afc0818a594cecd133ed7e91c20cf0d1ed6e20eded92d287cf4",
    "verified_classes": [
      "CapabilityScopeViolation",
      "CapabilityToken"
    ],
    "verified_functions": [
      "canonicalize",
      "resolve_effective_args",
      "_in_scope",
      "enforce"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityScopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "posixpath",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
