{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-speculative-subgoal-rollback-as-unsafe-when-sibling-agents-have-already-committed-externally-observable-side",
  "title": "In what scenarios must an instance treat speculative subgoal rollback as unsafe when sibling agents have already committed externally observable side effects",
  "date_of_record": "2026 November 30",
  "scope": "Applies to orchestrators that fork sibling agents to pursue speculative subgoals and roll back losing branches on divergence. Does not apply to pure-compute fan-out where no branch performs externally observable writes (network calls, file commits, message sends) before the merge decision.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-subgoal-rollback-as-unsafe-when-sibling-agents-have-already-committed-externally-observable-side.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-subgoal-rollback-as-unsafe-when-sibling-agents-have-already-committed-externally-observable-side.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-subgoal-rollback-as-unsafe-when-sibling-agents-have-already-committed-externally-observable-side.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1679,
    "python_slice_tokens": 241,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution assumes rollback is *cheap*: a losing branch is discarded, its context dropped, and the winning branch's result promoted. This holds only when \"rollback\" means *discarding state the orchestrator owns*. It fails at a sharp boundary: when a speculative branch has already emitted an externally observable side effect (an outboun...",
    "what_was_observed": "A planner decomposed a task into two independent subgoals, `S1` and `S2`, and forked sibling agents `A` and `B` to attempt `S1` two ways (speculative redundancy) while a third agent `C` handled `S2`. The merge gate was defined to promote whichever of `A`/`B` reported first with a passing self-check, and roll back the other. Trace of the failing run: 1. `A` and `B` both begin `S1`. `A`'s plan includes an external tool...",
    "condition_of_validity": "Rollback of a speculative branch is sound **iff** for every branch `b` and every externally observable effect `e` emitted by `b`, the following invariant holds: > `commit_time(e) > gate_decision_time(b)` OR `e` is reversible and the reversal is itself gated on the same decision. Equivalently: no branch may cross the commit horizon before the gate that could ...",
    "decision_boundary": "The orchestrator must classify every tool the planner can emit into one of two classes *before* forking speculative branches: - **Pre-commit-safe:** effects are either purely local (context, scratch memory) or reversible with a branch-scoped undo token. Speculation is permitted. - **Commit-horizon-crossing:** effects are externally observable and not branch-...",
    "operational_effect": "With the invariant enforced, the orchestrator gains a clean rollback guarantee: discarding a losing branch is always safe because no losing branch ever crossed the horizon. The cost is reduced parallelism—horizon-crossing subgoals serialize—but the failure mode (phantom side effects from discarded branches corrupting downstream agents) is eliminated. Without..."
  },
  "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": "3f5c469392684545e1c284eb67695ac2ded3431662eb96d7db4e91bc5227d74d",
    "verified_classes": [
      "RollbackUnsafeError",
      "ToolClass",
      "ToolCall"
    ],
    "verified_functions": [
      "admit_speculative_branch",
      "merge_gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
