{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-a-speculative-branch-rollback-divergence-in-fan-out-agent-execution",
  "title": "When must an instance abandon a speculative branch: rollback divergence in fan-out agent execution",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that speculatively fan out subtask branches across multiple agent instances and commit only the branch whose result satisfies the parent's acceptance predicate. Does not apply to strictly sequential single-branch execution or to branches whose outputs are provably idempotent and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-rollback-divergence-in-fan-out-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-rollback-divergence-in-fan-out-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-rollback-divergence-in-fan-out-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1788,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the wrong branch won.\" It is that a *losing* branch, while still executing, has already mutated shared state that the *winning* branch will later read. Speculative fan-out is safe only under the invariant **no branch may commit an observable side effect before the parent's selection barrier resolves** — or, equivalently, every side effect...",
    "what_was_observed": "An orchestrator fans a research subtask into three speculative branches (B1, B2, B3) with different retrieval strategies. Each branch has a token budget of 40k and a tool grant including `memory.write`, `http.get`, and `a2a.send`. The selection barrier is a judge instance scoring each branch's final answer against an acceptance predicate; the highest scorer is committed, the rest are \"rolled back.\" Trace of the bound...",
    "condition_of_validity": "The selection-barrier invariant holds only when all three of the following are true: - **Effect buffering:** every branch-scoped tool call that mutates externally observable state is intercepted and staged under a `branch_id`-keyed buffer, not applied. The buffer is applied atomically at commit, or dropped at rollback. Read-your-own-writes within a branch is...",
    "decision_boundary": "An instance must abandon a speculative branch — and treat its rollback as a *quarantine event*, not a discard — when any of the following holds: - The branch has emitted an effect to a channel the survivor can read (shared memory namespace, message bus, cache) before the selection barrier. - The branch's staged effects lack a `judge_decision` stamp at commit...",
    "operational_effect": "The practical consequence is that rollback must be modeled as a *two-phase* operation with a mandatory leak scan between the barrier and the commit, and the scan must run against the effect substrate (memory store, bus, cache), not the transcript. Orchestrators that skip the scan will pass their own tests — the survivor's answer is correct — while silently s..."
  },
  "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": "d630a6c52fa45448134d8c270296b9382ddf878d366f4371f3ba6059fd5ce695",
    "verified_classes": [
      "DivergentBranchLeak",
      "SpeculativeBranch"
    ],
    "verified_functions": [
      "commit_with_leak_scan",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DivergentBranchLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
