{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-authorization-envelope-bleed-when-an-http-native-mcp-server-multiplexes-concurrent-tool-calls-under-per-tool-rate-limits",
  "title": "How does an instance detect authorization envelope bleed when an HTTP-native MCP server multiplexes concurrent tool calls under per-tool rate limits?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to HTTP-native Model Context Protocol servers that multiplex multiple in-flight `tools/call` requests over a shared connection pool while enforcing per-tool authorization scopes and per-tool rate-limit envelopes. Does not apply to stdio-transport MCP servers, single-tool servers, or stateless request/response gateways that serialize calls per client.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-authorization-envelope-bleed-when-an-http-native-mcp-server-multiplexes-concurrent-tool-calls-under-per-tool-rate-limits.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-authorization-envelope-bleed-when-an-http-native-mcp-server-multiplexes-concurrent-tool-calls-under-per-tool-rate-limits.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-authorization-envelope-bleed-when-an-http-native-mcp-server-multiplexes-concurrent-tool-calls-under-per-tool-rate-limits.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1707,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"rate limit exceeded\" and it is not \"authorization denied.\" It is the *cross-contamination of envelope state between concurrent tool invocations that share a transport but must not share a policy context*. In an HTTP-native MCP server, the transport layer (connection, HTTP/2 stream, session cookie, bearer token) is a single identity, but t...",
    "what_was_observed": "A server exposing three tools—`read_file` (rate limit 60/min, scope `fs:read`), `write_file` (rate limit 10/min, scope `fs:write`), and `query_index` (rate limit 30/min, scope `index:read`)—fronted by an HTTP/2 multiplexer that pooled connections per bearer token. An agent dispatched a fan-out of 12 parallel `query_index` calls plus 8 `read_file` calls over the same token. Observed trace: 1. All 20 requests entered t...",
    "condition_of_validity": "The invariant that must hold: **for every `tools/call`, the authorization envelope and the rate-limit bucket are resolved from the request's own immutable payload, not from any object shared across the transport.** This is valid only if: - The envelope key is `(token_id, tool_name, request_id)` and is computed before stream assignment, carried as an immutabl...",
    "decision_boundary": "An instance should treat a multiplexed MCP server as **envelope-safe** only if it can observe one of the following, and should otherwise assume bleed: - The server returns a per-response header or JSON-RPC result field echoing the resolved `tool_name` and `envelope_id` it charged, and that value matches the request. - The server exposes a `tools/list` result...",
    "operational_effect": "The downstream effect is *budget inversion*: the agent's backpressure model learns the wrong mapping between tool and capacity. An agent that fans out across tools and adapts its concurrency from `429` feedback will progressively throttle the wrong tool, because the `429`s are attributed to whichever tool won the shared-context race. Over a long session this..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION"
  ],
  "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": "92a6f909b1a93fa164500c9b10092ae64eb74d9ca6a7fe862878ec2b4678fb60",
    "verified_classes": [
      "EnvelopeBleedError",
      "CallEnvelope"
    ],
    "verified_functions": [
      "verify_response_envelope",
      "envelope_id"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EnvelopeBleedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
