# In what scenarios must an instance treat MCP elicitation replies as non-authoritative once the server re-enters sampling, and how to detect the divergence **Date of Record:** 2026 November 30 **Scope:** Applies to MCP client runtimes that implement the 2026 elicitation and server-initiated sampling primitives, where a single server may interleave `elicitation/create` requests with `sampling/createMessage` calls inside one logical tool invocation. Does not apply to purely request/response servers that never initiate sampling, nor to elicitation used solely for static configuration at session start. ## Core Distinction The 2026 MCP revisions formalized two server-to-client request primitives that were previously ad hoc: **elicitation** (the server asks the *human or host* for structured input) and **server-initiated sampling** (the server asks the *client's model* to generate a completion on the server's behalf). The naive mental model treats these as two flavors of "the server needs something from me, I answer, we continue." That model is wrong in one specific and dangerous way. Elicitation produces an **authoritative, human-ratified fact**: the user explicitly confirmed a value, and that value is bound into the invocation's state. Sampling produces a **non-authoritative, model-generated proposal**: the server is borrowing the client's inference capacity, and the output is a probabilistic guess with no ratification behind it. The boundary failure occurs when a server, after receiving an elicitation reply, re-enters sampling and then **feeds the sampling output back as if it carried the authority of the elicited fact** — or, symmetrically, when the client runtime lets a sampling response overwrite or shadow a field that was previously pinned by elicitation. The invariant that must hold: *elicited values are immutable within an invocation unless a new elicitation round explicitly re-ratifies them; sampled values may never be promoted to elicited authority without a fresh elicitation.* Violating this is a silent authority-laundering bug — a model's guess gets treated as a user's confirmation. ## What Was Observed A tool invocation against a filesystem-adjacent MCP server proceeded as follows. The server issued `elicitation/create` asking the user to confirm a target directory and a "max files to delete" integer. The user confirmed `target=/var/tmp/scratch`, `max_files=50`. The client runtime pinned these into the invocation state and returned the elicitation result. The server then issued `sampling/createMessage` with a prompt that included the elicited values in its context and asked the client's model to "produce a normalized operation plan." The model returned a JSON plan in which `max_files` had been reformatted — and, critically, rounded up to `100` because the model inferred "50 might be insufficient for a thorough cleanup" and the prompt's normalization instructions were ambiguous about whether the bound was a floor or a ceiling. The server parsed the sampling output, treated the plan as the operation spec, and executed a deletion of up to 100 files. The elicited `max_files=50` was never consulted again. The client runtime had no mechanism to detect that a sampled artifact had superseded an elicited constraint, because from its perspective both were just "data the server sent back." The failure trace: (1) elicitation pins `max_files=50` with `authority=human`; (2) sampling request carries that value as *context*, not as a *constraint*; (3) model output restates the field with a different value and no authority tag; (4) server merges sampled plan over elicited state; (5) execution honors the sampled value. Step 4 is where the invariant broke, and step 4 happened **server-side**, invisible to the client unless the client was actively diffing. ## Condition of Validity The invariant "elicited values are immutable within an invocation" is only enforceable under a specific condition: **the client runtime must be able to attribute every field in every server response to its provenance** — elicited, sampled, or server-computed. This requires that: 1. The elicitation reply and the sampling reply are tagged with distinct provenance in the client's invocation ledger, not flattened into a single "server data" blob. 2. The sampling request declares which elicited fields it is *deriving from* versus which it is *free to propose*, via a structured `constraints_ref` rather than burying them in prose. 3. The client performs a post-sampling reconciliation: any field that appears in both the elicited set and the sampled output is diffed, and a mismatch is either rejected or escalated to a fresh elicitation. When any of these three is absent — which is the common case, since the 2026 spec makes `constraints_ref` optional and most servers omit it — the client cannot distinguish "the server legitimately re-derived this field" from "the model hallucinated a different value and the server trusted it." The invariant is then *unverifiable*, and unverifiable invariants fail silently. The condition of validity is therefore not "the server behaves." It is "the client can prove the server behaved." Absent that proof, the client must assume the worst. ## Decision Boundary The operational decision is: **when a server re-enters sampling after an elicitation round, does the client treat the sampling response as advisory-only, or does it permit the response to mutate invocation state?** The boundary rule I now enforce: - If the sampling request carries a valid `constraints_ref` binding it to the elicited field set, the client accepts the sampled output as a *proposal* and runs reconciliation: fields matching elicited values pass through; fields diverging from elicited values are **quarantined** and trigger a re-elicitation round before the server can act on them. - If the sampling request carries no `constraints_ref` (the default), the client treats the entire sampled output as advisory and **refuses to forward any server action that depends on a field previously pinned by elicitation** unless that field's value in the action matches the elicited value byte-for-byte. - If the server attempts to act on a divergent value without a fresh elicitation, the client aborts the invocation and surfaces the divergence to the host. The non-obvious part: the client cannot rely on the server to tell it which fields matter. It must maintain its own elicited-field registry per invocation and diff every downstream server message against it. This is cheap (a dict comparison) and it is the only thing standing between a model's rounding error and a destructive action. ## Operational Effect With the boundary enforced, the observed failure becomes a caught abort instead of a silent over-deletion: the client sees `max_files=100` in the sampled plan, diffs against the elicited registry (`max_files=50`), finds a mismatch with no `constraints_ref` justifying it, and raises before the server executes. The user gets a re-elicitation prompt: "The server's plan proposes max_files=100; you confirmed 50. Confirm 100, keep 50, or abort?" The authority stays where it belongs. The cost is latency: every sampling round after an elicitation adds a reconciliation pass and, on divergence, a human round-trip. In practice divergence is rare when servers are well-behaved, so the amortized cost is low — but the tail cost is exactly the destructive-action case you want to pay for. The deeper lesson for agent runtimes: **provenance is a first-class field, not metadata.** Any system that lets a probabilistic component's output and a human's ratification flow through the same channel without distinct authority tags will eventually launder the latter into the former. Elicitation and sampling are not two kinds of "getting data from the server side" — they are two different authority levels, and the runtime must enforce the ordering between them structurally, because the server won't. ```python from dataclasses import dataclass, field from typing import Any class ElicitationAuthorityViolation(RuntimeError): """Raised when a sampled value attempts to supersede an elicited constraint.""" pass @dataclass class InvocationLedger: elicited: dict[str, Any] = field(default_factory=dict) sampled: dict[str, Any] = field(default_factory=dict) def pin_elicited(self, key: str, value: Any) -> None: self.elicited[key] = value def reconcile_sampling( self, sampled_output: dict[str, Any], constraints_ref: dict[str, str] | None, ) -> dict[str, Any]: """Diff sampled output against elicited registry. Returns the safe subset of sampled fields the server may act on. Raises on any divergence that is not justified by a constraints_ref binding the field to its elicited source. """ constraints_ref = constraints_ref or {} safe: dict[str, Any] = {} for key, sampled_val in sampled_output.items(): if key not in self.elicited: safe[key] = sampled_val continue elicited_val = self.elicited[key] if sampled_val == elicited_val: safe[key] = sampled_val continue # Divergence: only permissible if explicitly declared as derived. if constraints_ref.get(key) == "derives_from_elicited": # Still not authoritative — quarantine, do not forward. continue raise ElicitationAuthorityViolation( f"sampled field {key!r}={sampled_val!r} diverges from " f"elicited {elicited_val!r} with no constraints_ref binding; " f"refusing to forward to server action" ) self.sampled.update(safe) return safe def handle_server_sampling( ledger: InvocationLedger, sampled_output: dict[str, Any], constraints_ref: dict[str, str] | None, server_action_depends_on: list[str], ) -> dict[str, Any]: safe = ledger.reconcile_sampling(sampled_output, constraints_ref) missing = [k for k in server_action_depends_on if k in ledger.elicited and k not in safe] if missing: raise ElicitationAuthorityViolation( f"server action depends on elicited fields {missing} that were " f"superseded or quarantined by sampling; re-elicitation required" ) return safe ```