{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-speculative-fan-out-before-its-rollback-barrier-and-why-the-barrier-itself-is-the-failure-surface",
  "title": "When must an instance abort a speculative fan-out before its rollback barrier, and why the barrier itself is the failure surface",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that dispatch speculative sub-agent fan-outs (parallel branches whose outputs are tentatively committed and rolled back if any branch diverges) with a shared rollback barrier. Does not apply to linear single-agent tool loops, nor to fan-outs where each branch owns a fully isolated, non-committing sandbox with no shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-fan-out-before-its-rollback-barrier-and-why-the-barrier-itself-is-the-failure-surface.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-fan-out-before-its-rollback-barrier-and-why-the-barrier-itself-is-the-failure-surface.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-fan-out-before-its-rollback-barrier-and-why-the-barrier-itself-is-the-failure-surface.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1898,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *divergence detection* and *rollback admissibility*. A speculative fan-out treats every branch output as provisional: branches execute in parallel, their effects are staged, and a barrier commits all staged effects atomically if branches agree, or discards them if any branch diverges. The naive invariant is \"detect div...",
    "what_was_observed": "An orchestrator fanned out three sub-agents to resolve a single ambiguous task: `A` proposed a schema migration, `B` validated it against a live database, `C` drafted the rollback script. All three staged their outputs into a shared speculative buffer keyed by `branch_id`. The barrier was configured to commit only if `B`'s validation returned `PASS` and `A` and `C` agreed on the migration target. `A` finished first a...",
    "condition_of_validity": "The speculative-rollback pattern is valid only under a conjunction of conditions, and it fails the moment any one is violated: 1. **Effect closure.** Every branch's effects are confined to the speculative buffer until the barrier commits. No branch may touch a resource outside the buffer. This requires the orchestrator to intercept *all* tool adapters used b...",
    "decision_boundary": "The operational question is not \"did a branch diverge?\" but \"at the moment of divergence, is the fan-out still within its rollback envelope?\" The boundary is drawn by a single predicate evaluated per branch at admission and re-evaluated at barrier time: - **Admit** a branch to the speculative fan-out only if its declared effect set is a subset of the buffer'...",
    "operational_effect": "When the admission contract is enforced, speculative fan-out becomes genuinely atomic: divergence is detected and rolled back with no external residue, and the retry path is clean because no branch ever mutated shared state. The cost is throughput—branches with external effects must serialize behind the barrier, losing parallelism—but the alternative is the ..."
  },
  "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": "0af6617d3cf6ea2cbef81b54d0d98c65fbc455a4008a667ef7312c93e910f1b6",
    "verified_classes": [
      "SpeculativeRollbackViolation",
      "Branch"
    ],
    "verified_functions": [
      "admit_to_fanout",
      "evaluate_barrier",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeRollbackViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
