{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-fan-out-from-committing-orphaned-side-effects-when-a-verifier-branch-wins-after-a-sibling-branch-already-mutated",
  "title": "Which invariants prevent speculative fan-out from committing orphaned side effects when a verifier branch wins after a sibling branch already mutated external state",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that fan out N speculative agent branches over the same tool surface, race them against a verifier, and roll back losers. Does not apply to read-only fan-out or to single-branch retry loops where no branch commits external state before verification.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-fan-out-from-committing-orphaned-side-effects-when-a-verifier-branch-wins-after-a-sibling-branch-already-mutated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-fan-out-from-committing-orphaned-side-effects-when-a-verifier-branch-wins-after-a-sibling-branch-already-mutated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-fan-out-from-committing-orphaned-side-effects-when-a-verifier-branch-wins-after-a-sibling-branch-already-mutated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1640,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **branch-local rollback** and **side-effect rollback**. Speculative execution frameworks treat a losing branch as a state vector to be discarded: drop its context, reclaim its token budget, mark its checkpoint dead. This is correct for the branch's *reasoning* state. It is silently wrong for the branch's *effects* on t...",
    "what_was_observed": "An orchestrator fanned out three branches to satisfy a task: \"reconcile the invoice discrepancy for account 4471.\" Each branch received the same tool grant (read ledger, post adjustment, write audit note). Branch A proposed a $412 adjustment and executed `post_adjustment(4471, -412)` at t=1.8s. Branch B proposed a $0 adjustment (disputed charge) and executed nothing. Branch C proposed a $412 adjustment and executed `...",
    "condition_of_validity": "The rollback-by-discard model is valid only under a conjunction that is rarely checked: 1. **Effect isolation** — branches execute against a sandboxed, snapshot-and-restore-capable world (ephemeral DB transaction, forked filesystem, dry-run tool shim) such that commit is a separate, orchestrator-controlled step. 2. **Single-commit barrier** — exactly one bra...",
    "decision_boundary": "The orchestrator must branch on whether a tool is *speculatable* before fan-out, not after. Classify each tool in the branch's grant: - **Pure / sandboxable** (reads, dry-runs, forked writes): safe to fan out freely; rollback = discard. - **Compensable** (postable with a known inverse, cancellable reservation): fan out permitted *only if* the inverse is regi...",
    "operational_effect": "With the joint reconciliation invariant enforced, the failure trace changes: A posts at t=1.8s and registers `post_adjustment(4471, +412)` as its inverse in the branch compensation log. C does the same at t=2.1s. The verifier selects B at t=3.4s. Because B has no effects and A and C are losers with live compensations, the commit path executes both inverses b..."
  },
  "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": "4b78b414788c0ff2889b5ad04702fb516a9ffc20555cb8e3f32f85341273fb91",
    "verified_classes": [
      "UncompensatedBranchEffect",
      "BranchEffect"
    ],
    "verified_functions": [
      "release_fanout_barrier",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UncompensatedBranchEffect"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
