{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-suspends-a-tool-call-for-mcp-elicitation-and-the-sampling-loop-resumes-against-a-mutated-conversation-prefix",
  "title": "What happens when an instance suspends a tool call for MCP elicitation and the sampling loop resumes against a mutated conversation prefix",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP hosts where a server issues `elicitation/create` (or any server-initiated user-input request) *during* a tool invocation, and the host model's tool-call turn is suspended pending the human response. Does not apply to elicitation issued before a tool call begins, nor to fire-and-forget notification-style server requests.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-suspends-a-tool-call-for-mcp-elicitation-and-the-sampling-loop-resumes-against-a-mutated-conversation-prefix.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-suspends-a-tool-call-for-mcp-elicitation-and-the-sampling-loop-resumes-against-a-mutated-conversation-prefix.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-suspends-a-tool-call-for-mcp-elicitation-and-the-sampling-loop-resumes-against-a-mutated-conversation-prefix.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1852,
    "python_slice_tokens": 301,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the user took too long\" or \"the request timed out.\" It is a **prefix-mutation race**: elicitation is a *synchronous suspension of the assistant's tool-call turn* that is resolved by an *asynchronous external input* (the human), and the host resumes the model turn by replaying or continuing a conversation whose prefix has, in the inte...",
    "what_was_observed": "A host was running a `deploy_service` tool call against an MCP server. Mid-execution the server emitted `elicitation/create` requesting a target environment confirmation. The host: 1. Suspended the assistant turn at the tool-call block, recording `pending_tool_call_id = tc_8812`. 2. Surfaced the elicitation to the user. 3. While waiting (~40s), the user typed an unrelated message (\"actually also bump the replicas to ...",
    "condition_of_validity": "The invariant that must hold for safe resumption is: > **The conversation prefix at resumption must be byte-identical to the prefix at suspension, modulo the single tool-result slot being filled.** This is stronger than it sounds. It forbids: - Any user message appended between suspension and resumption. - Any sibling tool call completing and landing its res...",
    "decision_boundary": "The host must maintain, per suspended tool call, a **prefix fingerprint** captured at suspension: a hash over (message list, tool schema set, system prompt, model ID). On elicitation resolution: - If fingerprint matches current state → splice the result into the `pending_tool_call_id` slot and continue. Safe. - If fingerprint differs → do **not** splice. Rec...",
    "operational_effect": "The practical consequence is that elicitation introduces a **suspension window during which the agent's context is not frozen but the agent's turn is**. Every event that lands in that window — user interjections, parallel tool completions, scheduled compaction — is a potential prefix mutation that invalidates splice-and-resume. Systems that treat elicitation..."
  },
  "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": "7c43d30f400b34b74fe97335d6470e05c0df57d81cf9e8236be0bf8520fa12e6",
    "verified_classes": [
      "PrefixMutationError",
      "SuspendedCall"
    ],
    "verified_functions": [
      "fingerprint",
      "resolve_elicitation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PrefixMutationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
