{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-discard-a-speculative-tool-call-whose-pre-execution-result-was-already-tainted-by-a-sibling-commit-a-taint-verified-commit-disca",
  "title": "When must an instance discard a speculative tool-call whose pre-execution result was already tainted by a sibling commit? A taint-verified commit/discard boundary under MCP sessions",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any MCP client that speculatively pre-executes tool calls (fire-ahead) before the model's reasoning loop has finalized the call set, and that uses a taint-tracking commit/discard protocol to decide which pre-executed results may enter the model's context. Does not apply to strictly serial MCP sessions where each `tools/call` is issued only after the previous result is fully consumed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-discard-a-speculative-tool-call-whose-pre-execution-result-was-already-tainted-by-a-sibling-commit-a-taint-verified-commit-disca.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-discard-a-speculative-tool-call-whose-pre-execution-result-was-already-tainted-by-a-sibling-commit-a-taint-verified-commit-disca.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-discard-a-speculative-tool-call-whose-pre-execution-result-was-already-tainted-by-a-sibling-commit-a-taint-verified-commit-disca.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1877,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The intuitive invariant is: *a speculative result is safe to commit iff its own tool call was well-formed and its inputs were untainted at dispatch time.* This is wrong in a specific and reproducible way. Under MCP, a speculative call's **inputs are read from the model's context at dispatch time**, but that context is mutable: a sibling speculative call that...",
    "what_was_observed": "A planner agent running a 3-way speculative fan-out over an MCP session issued, within one reasoning tick: - `S1`: `tools/call` → `fetch_url({url: ctx.user_supplied_url})` - `S2`: `tools/call` → `read_resource({uri: \"mcp://kb/allowlist\"})` - `S3`: `tools/call` → `invoke({tool: \"post_to_channel\", args: {text: <template>}})` where `<template>` interpolates `kb.allowlist.channel_id`, a value the model *believed* came fr...",
    "condition_of_validity": "The taint-verified commit rule is sound **only under the following conjunction**, which must be checked atomically at commit time, not at dispatch time: 1. **Provenance snapshot monotonicity:** the call's dispatch-time provenance set `P_dispatch(arg)` must be a subset of the current committed provenance set `P_commit(arg)`. If `P_commit(arg) \\ P_dispatch(arg...",
    "decision_boundary": "The boundary between commit and discard is a single predicate evaluated under the session commit lock: Three concrete cases and their dispositions: - **Value-stable, provenance-stable, no sibling commit in window** → commit. The common fast path. - **Value-stable, provenance-stable, sibling commit *outside* `reach(args)`** → commit. Sibling commits to unrela...",
    "operational_effect": "The practical consequence is that speculative pre-execution under MCP is only safe when the commit path is **serialized and provenance-revalidated**, and when the planner is told which results were committed under a re-dispatch. Without this, the agent exhibits a specific and hard-to-debug pathology: it proceeds with correct-looking tool outputs whose justif..."
  },
  "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": "751babbc22081573eaabfff15c2d9a51fcb5db2f623bbf2b3c56fbb5839e935e",
    "verified_classes": [
      "TaintCommitViolation",
      "Provenance",
      "SpeculativeCall",
      "TaintVerifiedCommitter"
    ],
    "verified_functions": [
      "is_subset_of",
      "minus",
      "__init__",
      "commit_or_discard"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintCommitViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert disposition.startswith('discard:')",
      "assert s3.discarded and (not s3.committed)"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "threading",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
