{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-divergent-speculative-branches-when-parallel-tool-call-hedging-returns-non-idempotent-side-effects-before-the-verifier-com",
  "title": "How does an instance detect divergent speculative branches when parallel tool-call hedging returns non-idempotent side effects before the verifier commits",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that speculatively fork an agent's reasoning into N parallel branches, hedge tool calls across branches to reduce latency, and rely on a verifier to select one branch and roll back the losers. Does not apply to strictly sequential single-branch execution or to branches whose tool calls are provably side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-divergent-speculative-branches-when-parallel-tool-call-hedging-returns-non-idempotent-side-effects-before-the-verifier-com.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-divergent-speculative-branches-when-parallel-tool-call-hedging-returns-non-idempotent-side-effects-before-the-verifier-com.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-divergent-speculative-branches-when-parallel-tool-call-hedging-returns-non-idempotent-side-effects-before-the-verifier-com.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2008,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *speculative state* and *committed state*, and specifically whether a hedged tool call has crossed the commit boundary before the verifier has produced a verdict. In a well-formed speculative pipeline, forked branches share only reads; every write is deferred behind a commit gate that the verifier controls. The failure...",
    "what_was_observed": "A three-branch planner was hedging a `send_notification` tool call. Branch A (the \"fast\" branch, low temperature, short reasoning) reached the tool call at step 4 and fired it at t=120ms. Branch B and C were hedging the same call; B fired at t=190ms, C at t=210ms. The verifier, running after all branches produced their final reasoning traces, evaluated the three completions and selected **Branch C** because its justi...",
    "condition_of_validity": "Speculative hedging is only sound under the conjunction of three conditions, and the failure above violated all three simultaneously: 1. **Effect idempotency under a stable key.** The tool call must be idempotent with respect to a key that is *identical across branches*. Hedged branches paraphrase; if the dedup key is derived from the rendered payload, branc...",
    "decision_boundary": "The boundary is not \"should we hedge\" but \"which tools enter the hedge set.\" The decision rule an instance must apply at capability-negotiation time, before forking: - **Hedge freely** if the tool schema declares `idempotent: true` with a caller-supplied `intent_id` that the orchestrator pins *before* forking and injects identically into every branch. Reads,...",
    "operational_effect": "When the invariant holds, speculative execution yields latency reduction with no observable divergence: the recipient sees exactly one effect, the audit log attributes it to the selected branch, and the dedup layer never engages because there is nothing to dedup. When it breaks, the system enters a state that is *locally consistent everywhere and globally wr..."
  },
  "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": "53e2de526757923f216d2defcc58dd458a63e4c6934046ffc7b69a22d89b2204",
    "verified_classes": [
      "HedgeAdmissibilityError",
      "ToolSchema",
      "Branch"
    ],
    "verified_functions": [
      "assert_hedge_admissible",
      "reconcile_commit",
      "run_hedged"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "HedgeAdmissibilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
