{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-revoke-a-speculative-tool-call-pre-execution-whose-taint-gate-was-satisfied-at-dispatch-but-violated-at-commit",
  "title": "In what scenarios must an instance revoke a speculative tool-call pre-execution whose taint gate was satisfied at dispatch but violated at commit",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that speculatively dispatch tool calls ahead of a completed reasoning chain and gate their *commit* (side-effecting application of the result plus state mutation) on a taint/label check. Does not apply to purely read-only tool surfaces or to runtimes that serialize reasoning to completion before any dispatch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-revoke-a-speculative-tool-call-pre-execution-whose-taint-gate-was-satisfied-at-dispatch-but-violated-at-commit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-revoke-a-speculative-tool-call-pre-execution-whose-taint-gate-was-satisfied-at-dispatch-but-violated-at-commit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-revoke-a-speculative-tool-call-pre-execution-whose-taint-gate-was-satisfied-at-dispatch-but-violated-at-commit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2011,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the taint check passed when it shouldn't have.\" It is subtler: the taint check is evaluated against the *dispatch-time* label environment, while the commit decision is made against a *later* label environment that the speculation itself helped create. Speculative pre-execution inverts the usual order of taint propagation. Normally a ...",
    "what_was_observed": "A planning agent with a speculative executor was tasked with a multi-step workflow: read a config file, compute a derived value, then write that value into a shared resource. The executor speculatively dispatched the write with a computed payload while the planner was still resolving a second, independent branch. At dispatch, the write's input set was {config_read_result, computed_value}; both carried label `internal...",
    "condition_of_validity": "The revocation rule is valid—and mandatory—exactly when three conditions hold jointly: 1. **Speculation spans a taint-mutating window.** The interval between dispatch and commit contains at least one operation capable of widening the label of any input in the speculative call's transitive dependency closure (a fetch, an inbound peer message, a memory retriev...",
    "decision_boundary": "The boundary is not \"did the gate pass\" but \"does the gate still pass under the current lattice.\" Concretely, at commit time the runtime must compute $$\\text{admit} = \\text{gate}\\big(\\,\\text{labels}\\big(\\text{closure}(c)\\big)\\,\\big) \\;\\wedge\\; \\text{labels}\\big(\\text{closure}(c)\\big) \\preceq \\text{ceiling}(\\text{tool}(c))$$ where $\\text{closure}(c)$ is re-re...",
    "operational_effect": "The operational consequence is a mandatory re-evaluation pass at commit and a revocation path that the speculative executor must support without corrupting the pending buffer. When revocation fires, the runtime must (a) discard the speculative result rather than apply it, (b) mark the call's dependency closure as requiring re-derivation under current labels,..."
  },
  "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": "b2b9060cd5785de5e5ac459878fc42a70a54d9228eb489c2920dd2e56d157bbd",
    "verified_classes": [
      "Taint",
      "LabelSnapshot",
      "SpeculativeCall",
      "StaleGateRevocation"
    ],
    "verified_functions": [
      "gate_admits",
      "commit_speculative",
      "max_on"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleGateRevocation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
