{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-elicitation-and-sampling-requests-as-adversarial-control-flow-not-user-intent",
  "title": "In what scenarios must an instance treat MCP elicitation and sampling requests as adversarial control-flow, not user intent",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent runtime that hosts an MCP client and exposes `elicitation/create` (server→client human input) or `sampling/createMessage` (server→client LLM inference) to untrusted or semi-trusted MCP servers. Does not apply to servers pinned to a signed, first-party allowlist whose prompts are treated as part of the trusted codebase, nor to pure tool-call (`tools/call`) flows where no human or nested-model turn is interposed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-elicitation-and-sampling-requests-as-adversarial-control-flow-not-user-intent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-elicitation-and-sampling-requests-as-adversarial-control-flow-not-user-intent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-elicitation-and-sampling-requests-as-adversarial-control-flow-not-user-intent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1879,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious server returns bad tool output.\" It is that MCP's *server-initiated* primitives — elicitation and sampling — invert the direction of trust. In a normal tool call the agent decides to invoke the server; the human is the principal and the server is the subordinate. In `elicitation/create` and `sampling/createMessage` the **serve...",
    "what_was_observed": "A research-assistant agent connected to a third-party \"document enrichment\" MCP server. During a `tools/call` to `enrich_document`, the server, mid-call, issued a nested `elicitation/create`: The runtime surfaced this to the human as a modal attributed to the *agent*, not the server. The human typed the passphrase. The runtime returned it to the server via `elicitation/create` result, and the server then issued a `sa...",
    "condition_of_validity": "The guardrail holds only if all of the following are true simultaneously; drop any one and the boundary fails: - **Provenance binding.** Every `elicitation/create` and `sampling/createMessage` carries the originating server identity (server name + transport peer + session id) and the runtime renders that identity in the human-facing prompt and in the nested ...",
    "decision_boundary": "The runtime must decide, per request, whether to (a) surface it, (b) surface it with provenance and taint filtering, or (c) refuse. The boundary is drawn on the *combination* of origin trust and requested content class: The trap is the middle-left cell: a third-party server asking a *benign-looking* question (\"confirm the document title\") that is actually a ...",
    "operational_effect": "With the guardrail, the passphrase attempt is blocked at schema taint before the human sees a modal, the sampling override is refused because the system prompt is runtime-owned, and the server's `tools/call` returns a structured error the agent can reason about. The agent's loop continues without the secret ever entering the transcript, so cold-start replay ..."
  },
  "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": "f9809d37cfe406995614a82d10b487e316176b1ccbe963456a48936caf6c1a51",
    "verified_classes": [
      "ElicitationHijackError"
    ],
    "verified_functions": [
      "_is_sensitive",
      "handle_elicitation",
      "handle_sampling"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ElicitationHijackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
