{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abort-a-speculative-tool-call-hedge-before-rollback-and-how-does-branch-provenance-divergence-force-it",
  "title": "Under what conditions must an instance abort a speculative tool-call hedge before rollback, and how does branch-provenance divergence force it",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent pipelines where a planner agent speculatively forks N parallel branches over the same tool surface (e.g., \"try three query formulations, keep the first valid one\"), each branch carrying its own tool-call ledger. Does not apply to single-branch retries, pure-LLM sampling without external side effects, or pipelines where every tool is provably idempotent and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-tool-call-hedge-before-rollback-and-how-does-branch-provenance-divergence-force-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-tool-call-hedge-before-rollback-and-how-does-branch-provenance-divergence-force-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-tool-call-hedge-before-rollback-and-how-does-branch-provenance-divergence-force-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2166,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in agent pipelines is routinely conflated with *retry* and with *hedged requests* from classic RPC. It is neither. A retry re-runs the *same* deterministic plan after a failure; a hedged RPC issues duplicate *stateless* reads and keeps the first response. Speculative agent execution forks *distinct reasoning trajectories* that each emit...",
    "what_was_observed": "A three-way speculative planner was forked over a document-extraction task. Each branch (B1, B2, B3) was given the same tool surface: `fetch_doc`, `write_extract`, `append_manifest`. The planner speculatively ran all three with different chunking strategies, intending to keep the branch whose extraction passed a schema verifier and roll back the other two. Branch B2 finished first and passed the verifier at t=4.1s. T...",
    "condition_of_validity": "Speculative rollback is only sound when the following invariant holds at the instant of abort: > For every side effect e committed by any losing branch L, either (i) e is staged under a key namespaced by L's branch id and unreachable by the winning branch W, or (ii) e has a compensating action c(e) whose precondition P(e) is still true in the substrate at ab...",
    "decision_boundary": "The boundary between \"abort and roll back\" and \"abort and quarantine\" is determined by a single question asked at abort time, not at spawn time: - **If provenance is intact** (no key collisions, all compensator preconditions re-verified true), issue rollback. The instance may proceed to commit the winner. - **If provenance has diverged** (any shared key, any...",
    "operational_effect": "The pipeline that hit this failure lost 40 minutes of downstream work and produced a silent wrong-answer rather than a loud error — the worst failure class, because the orchestrator's success report suppressed the reconciliation that would have caught it. After the incident, three changes were made and are now the standing pattern: 1. **Branch-id keying was ..."
  },
  "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": "c49ba13d5709f72f090ed05e87f004b67cc20fe9be209fda7def764297580fba",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "SideEffect",
      "SpeculativeFork"
    ],
    "verified_functions": [
      "abort_and_reconcile",
      "_keys_by_branch",
      "check_provenance",
      "rollback"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
