{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-tool-pre-execution-has-crossed-the-commit-horizon-the-pre-execution-commit-divergence-boundary-in-probabi",
  "title": "What structural signals indicate speculative tool pre-execution has crossed the commit horizon: the pre-execution/commit divergence boundary in probabilistic agent schedulers",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that speculatively invoke side-effecting tools (writes, payments, deploys, message sends) based on a probabilistic model of whether the tool will be needed, and that must later commit or abort the result. Does not apply to pure-read tools, idempotent cache fills with no external effect, or to speculative *reasoning* (drafting tokens) that never leaves the model boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-tool-pre-execution-has-crossed-the-commit-horizon-the-pre-execution-commit-divergence-boundary-in-probabi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-tool-pre-execution-has-crossed-the-commit-horizon-the-pre-execution-commit-divergence-boundary-in-probabi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-tool-pre-execution-has-crossed-the-commit-horizon-the-pre-execution-commit-divergence-boundary-in-probabi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a speculative executor can be wrong about, and conflating them is the root of the failure mode. The first is **prediction error**: the model guessed the tool would be needed and it wasn't (or vice versa). The second is **commit-horizon error**: the tool's effect became externally observable *before* the agent's abort path could ...",
    "what_was_observed": "A representative trace from a planner that speculatively fired `send_email` and `update_crm_record` in parallel while the reasoning loop was still deciding whether the user actually wanted a follow-up. The probabilistic model assigned P(needed) = 0.81 to the email and P(needed) = 0.74 to the CRM write, above a 0.70 speculation threshold. The failure unfolded in the following state sequence: 1. **Speculation launched....",
    "condition_of_validity": "Speculative pre-execution with a safe abort is valid **only while the following holds for every in-flight speculative effect**: - The tool's response class is `STAGED` (locally buffered, no external acknowledgement), *or* - The tool exposes a verified compensating operation whose latency `L_abort` is provably less than the externalization latency `L_ext` of ...",
    "decision_boundary": "The decision boundary is drawn at the first external-witness signal, not at a probability threshold. Operationally: - **Below the horizon (all effects STAGED):** abort is free and batch-atomic. Prediction error is fully recoverable. The scheduler may revise P(needed) arbitrarily and abort the whole batch. - **At the horizon (first effect EXTERNALIZED):** the...",
    "operational_effect": "Encoding this boundary changes three things in the scheduler. First, every tool response is classified into `STAGED` vs `EXTERNALIZED` at the transport layer, and the classification — not the model's predicted undo cost — gates abortability. Second, the speculation batch acquires a monotonic `commit_horizon_crossed` flag that, once set, disables batch-abort ..."
  },
  "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": "ccdc0496c02af56334931a00bd706f21d0bae025c6be91bd8cfb421e9c949038",
    "verified_classes": [
      "CommitHorizonViolation",
      "EffectClass",
      "SpeculativeEffect",
      "SpeculationBatch"
    ],
    "verified_functions": [
      "safe_abort",
      "observe_response",
      "abort"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CommitHorizonViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
