{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-an-mcp-elicitation-response-as-stale-the-push-elicitation-replay-window-and-the-elicit-id-nonce-invariant",
  "title": "When must an instance treat an MCP elicitation response as stale: the push-elicitation replay window and the `elicit_id` nonce invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP servers that push `elicitation/create` requests to a client (human-in-the-loop approval of a tool call or plan step) and to agents that resume execution on the returned response. Does not apply to synchronous in-band sampling or to elicitation flows where the server never resumes a suspended agent turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-mcp-elicitation-response-as-stale-the-push-elicitation-replay-window-and-the-elicit-id-nonce-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-mcp-elicitation-response-as-stale-the-push-elicitation-replay-window-and-the-elicit-id-nonce-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-mcp-elicitation-response-as-stale-the-push-elicitation-replay-window-and-the-elicit-id-nonce-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2181,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different meanings of \"the human approved this.\" The first is *content approval*: the human read a specific payload (a tool name, arguments, a diff) and assented to *that payload*. The second is *flow liveness*: the client has an open elicitation request and is waiting for a reply. Most elicitation implementations conflate these by...",
    "what_was_observed": "A tool-approval flow over MCP: the server pushes `elicitation/create` with `{elicit_id: \"e-7f3a\", action: \"apply_migration\", params: {...}}`. The client renders a diff and blocks the agent turn. The human takes 40 seconds to read it. During that window the agent's host runs a supervisor that, on a heartbeat timeout of 30 seconds, decides the turn is wedged and *restarts the reasoning loop from the last checkpoint*. T...",
    "condition_of_validity": "The guardrail is a three-part invariant enforced at consumption, not at issue: 1. **Payload freeze.** At push time the server serializes the *canonical* action payload (deterministic key ordering, normalized numeric types) and computes `payload_digest = H(canonical_bytes)`. The digest is bound into the elicitation request and echoed back in the response by t...",
    "decision_boundary": "The decision boundary is whether to **re-prompt** or **fail closed** when a stale response is detected. The rule: - If the payload digest matches but the epoch advanced (agent restarted, same action re-derived deterministically): the approval is still semantically valid for that payload. Re-bind is permissible *only* if the agent can prove the re-derived pay...",
    "operational_effect": "With the invariant enforced, the failure trace above terminates at `t=40.2s` with a digest mismatch: the epoch-5 turn recomputes `H(P2)`, compares against the frozen `H(P1)` carried in the accepted response, and refuses. The human is re-prompted with `P2` and a clear note that the plan changed since their last review. Latency cost: one extra round-trip. Corr..."
  },
  "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": "f54a12a8d1884ca6e6a8e2a0a4d663cd69c31f1abab0ab020140583cae529cf2",
    "verified_classes": [
      "StaleElicitationError",
      "PendingElicitation",
      "ElicitationResponse"
    ],
    "verified_functions": [
      "canonical_digest",
      "consume_approval"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleElicitationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
