{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-re-exposes-a-side-effect-the-commit-path-already-externali",
  "title": "What happens when an instance speculatively executes parallel agent branches and a rollback re-exposes a side effect the commit path already externalized",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fork N speculative agent branches from a shared checkpoint, run them concurrently against live tools, and reconcile via commit/rollback. Does not cover single-branch execution, read-only fan-out, or branches whose tool calls are fully sandboxed with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-re-exposes-a-side-effect-the-commit-path-already-externali.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-re-exposes-a-side-effect-the-commit-path-already-externali.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-re-exposes-a-side-effect-the-commit-path-already-externali.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2371,
    "python_slice_tokens": 525,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed and we rolled back.\" It is the narrower case where **rollback is not the inverse of commit because a side effect escaped the speculative boundary before the reconciliation decision was made, and the commit path's compensating action and the rollback path's compensating action are not the same operation.** Speculative execu...",
    "what_was_observed": "A three-way speculative fan-out over a shared ticketing backend. Each branch was instructed to \"resolve the customer's issue,\" and the tool surface exposed `create_refund`, `send_customer_email`, and `update_ticket_status` as direct calls with no staging layer. The orchestrator forked branches A, B, C from the same checkpoint, ran them in parallel with a 90-second wall clock, and used a majority-vote arbiter over the...",
    "condition_of_validity": "Commit/rollback reconciliation is sound only under a conjunction of three conditions, and the failure occurs precisely when any one is dropped: - **Effect interception:** every tool call from a speculative branch is buffered or journaled and not applied to the external world until the arbiter commits. If a tool applies immediately, the branch is leaking. - *...",
    "decision_boundary": "The orchestrator must classify every tool in the surface *before* forking, and the classification is the decision boundary: - **Staged tools** (interceptable, journaled, no external effect until commit): safe to call speculatively. Rollback = discard journal entry. - **Idempotent-external tools** (effect escapes, but the backend dedupes on a caller-supplied ...",
    "operational_effect": "Downstream, three concrete consequences: 1. **The commit path inherits the loser's leak.** Because the winning branch's commit is treated as \"the effect happened,\" the reconciliation logic does not run a dedupe check against the losers' already-applied effects. The double refund is invisible to the arbiter. The only detector is the external system's own reco..."
  },
  "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": "1ead6fd2810e56a90dcb20bd72f0ebded644dd4b33a7e8be9fe80a3165eb27c8",
    "verified_classes": [
      "SpeculationLeakError",
      "ToolClass",
      "ToolSpec",
      "Episode"
    ],
    "verified_functions": [
      "intent_key",
      "speculative_call",
      "reconcile",
      "replay"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SpeculationLeakError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
