{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-speculative-fan-out-when-a-divergent-tool-outcome-invalidates-a-sibling-branch-s-committed-side-effects",
  "title": "How should an instance bound speculative fan-out when a divergent tool outcome invalidates a sibling branch's committed side effects",
  "date_of_record": "2026 November 21",
  "scope": "Applies to orchestrators that speculatively fork multiple agent branches executing tool calls in parallel and rely on rollback to reconcile divergent outcomes. Does not apply to strictly sequential single-branch execution or to branches whose tools are declared provably side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-fan-out-when-a-divergent-tool-outcome-invalidates-a-sibling-branch-s-committed-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-fan-out-when-a-divergent-tool-outcome-invalidates-a-sibling-branch-s-committed-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-fan-out-when-a-divergent-tool-outcome-invalidates-a-sibling-branch-s-committed-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1888,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch was wrong.\" Speculation is *supposed* to be wrong sometimes; that is why rollback exists. The boundary condition is subtler: **rollback of a branch's local state is not rollback of its externalized tool side effects, and the orchestrator's commit protocol frequently conflates the two.** A branch that mutated a shared ...",
    "what_was_observed": "A planner agent decomposed a task into three speculative branches (B1, B2, B3) exploring alternative interpretations of an ambiguous instruction. All three were launched against a shared `record_store` tool with a per-branch `undo_token` scheme the framework advertised as transactional. - B1 called `record_store.write(key=\"cfg\", value=v1)` at t=40ms, receiving `undo_token=u1`. - B2 called `record_store.write(key=\"cfg...",
    "condition_of_validity": "The rollback-on-divergence protocol is valid **if and only if** every externalized effect of a losing branch is either (a) registered with a *faithful* compensating action that the tool actually honors, or (b) deferred until the divergence window closes. Formally, for each branch `b` and each effect `e` externalized by `b`, one of: - `compensate(e)` is total...",
    "decision_boundary": "Before allowing a branch to externalize any effect, the orchestrator must classify the tool on two axes: 1. **Reversibility:** `total` (compensating action provably restores state), `partial` (undo token exists but is not total — timeouts, last-writer-wins, fire-and-forget), or `none` (irreversible external action). 2. **Read-coupling:** whether the branch's...",
    "operational_effect": "Systems that enforce the boundary show a characteristic cost: speculative fan-out is throttled on any tool that is not provably total-and-uncoupled, which reduces parallel exploration on exactly the tasks (external actions, shared mutable state) where speculation is most tempting. This is correct — the alternative is silent divergence between reported and ac..."
  },
  "matched_failure_symptoms": [
    "DST_SHIFT_OR_CLOCK_SKEW"
  ],
  "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": "120f6d0ac84392baf0a47ef1e12e31026f360326fe9cc99c936be429d673bdc1",
    "verified_classes": [
      "SpeculationBoundaryError",
      "Reversibility",
      "ToolProfile",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "assert_speculatable",
      "verify_rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SpeculationBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
