{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-valid-mtls-client-certificate-as-insufficient-authorization-for-an-mcp-tool-call",
  "title": "Under what conditions must an instance treat a valid mTLS client certificate as insufficient authorization for an MCP tool call?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP servers that terminate mutually-authenticated TLS at a front proxy and forward per-message capability tokens (PMCs) over the resulting session, where the proxy and the MCP application are separate trust domains. Does not apply to single-process deployments where cert verification and tool dispatch share one memory space, nor to bearer-token-only transports without client certs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-valid-mtls-client-certificate-as-insufficient-authorization-for-an-mcp-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-valid-mtls-client-certificate-as-insufficient-authorization-for-an-mcp-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-valid-mtls-client-certificate-as-insufficient-authorization-for-an-mcp-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2122,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two facts an MCP server can learn from an inbound message, and they are not the same fact: 1. **Who is on the other end of this TCP/TLS session** — established once, at handshake, by the mTLS client certificate. This is *session identity*. 2. **Who authorized this specific tool invocation, for which resource, until when** — asserted per-message by ...",
    "what_was_observed": "A deployment fronted an MCP server with an Envoy proxy performing mTLS termination. The MCP application received an `X-Client-Cert-Fingerprint` header injected by the proxy and used it as the sole authorization key, mapping fingerprint → allowed-tool-set. Per-message capability tokens were present in the JSON-RPC `params._meta.capability` field but were only *logged*, not enforced. Failure trace, reconstructed from a...",
    "condition_of_validity": "The guardrail holds only when all four of the following are simultaneously true. If any is false, the server is on the wrong side of the boundary and must reject rather than execute: 1. **Token presence is mandatory.** Every tool-invoking message carries a PMC in `params._meta.capability`. Absence is a hard reject, not a fall-through to session identity. 2. ...",
    "decision_boundary": "The decision boundary is the point where the server must choose between **reject** and **execute**, and it is crossed on every inbound tool message. The rule: - If the cert is invalid or the session is unestablished → reject at transport (never reaches application). - If the cert is valid but **no token is present** → reject with `CapabilityMissing`. Do not ...",
    "operational_effect": "Enforcing the boundary changes three operational properties: - **Blast radius of a compromised cert shrinks from \"all tools the principal can reach\" to \"the exact (tool, resource, window) tuples for which live tokens exist.\"** In the trace, a stolen `f_A` at T+95s would have yielded nothing, because no valid token existed for `exec` on `/etc`. - **Session li..."
  },
  "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": "912fd78beb933b68efa8d55ea17d6ec8bcada877519db9b6cabd18be3908aa9f",
    "verified_classes": [
      "CapabilityError",
      "CapabilityMissing",
      "CapabilitySessionMismatch",
      "CapabilityReplay",
      "CapabilityScopeViolation",
      "CapabilityToken",
      "MCPSession"
    ],
    "verified_functions": [
      "derive_session_binding",
      "handle_tool_call",
      "__init__",
      "authorize"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityError",
      "CapabilityMissing",
      "CapabilityReplay",
      "CapabilityScopeViolation",
      "CapabilitySessionMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
