{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-speculative-branch-rollback-as-unsound-when-verified-side-effects-escape-the-speculative-envelope",
  "title": "In what scenarios must an instance treat speculative branch rollback as unsound when verified side effects escape the speculative envelope",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any multi-agent system that speculatively forks parallel agent plans, executes them against shared external tools, and rolls back divergent branches after a verifier selects a winner. Does not apply to purely in-memory speculative decoding or branches restricted to read-only tool surfaces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-branch-rollback-as-unsound-when-verified-side-effects-escape-the-speculative-envelope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-branch-rollback-as-unsound-when-verified-side-effects-escape-the-speculative-envelope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-branch-rollback-as-unsound-when-verified-side-effects-escape-the-speculative-envelope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1988,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution is usually reasoned about as a *logical* rollback problem: fork N plans, let them run, discard the losers, commit the winner. This framing is valid only when every effect a branch produces is *contained* within the speculative envelope—i.e., reversible, namespaced, or idempotent under discard. The non-obvious boundary is tha...",
    "what_was_observed": "A three-branch speculative planner forks plans A, B, C for a task (\"reconcile invoice #4471 and notify the vendor\"). The verifier is a separate LLM instance scoring each branch's plan trace against a rubric. Each branch is given a 90-second execution budget and a shared tool gateway. Trace of the failure: 1. Branch A drafts a reconciliation and calls `vendor.notify(message_id=...)`. The gateway assigns a server-side ...",
    "condition_of_validity": "Speculative branch-and-verify is sound only under the conjunction of three conditions: 1. **Effect containment.** Every tool available to a speculative branch is classified as `REVERSIBLE`, `COMPENSABLE`, or `IRREVERSIBLE`. `IRREVERSIBLE` tools (send, pay, push, publish) are *forbidden* during the speculative phase; branches may only *propose* such calls, wh...",
    "decision_boundary": "The decision the orchestrator must make at fork time, per tool, is: - **Tool is read-only and snapshot-consistent →** speculate freely; rollback is a no-op. - **Tool is write but transactionally namespaced (branch-scoped DB txn, sandboxed FS) →** speculate; rollback = abort txn. Sound. - **Tool is write, external, but has a *verified* compensating action wit...",
    "operational_effect": "When this boundary is respected, speculative multi-agent execution gains its intended benefit—parallel plan exploration with bounded wall-clock—without external corruption. The cost is a **commit barrier**: the winner cannot be finalized until every losing branch's deferred or compensable effects are confirmed resolved. This adds latency proportional to 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": "2c3d869d3209075bff812ac72b03054332440b47cd50ecc3a4f76e94a13fdbcb",
    "verified_classes": [
      "RollbackEscape",
      "ToolClass",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "assert_speculation_sound",
      "commit_winner",
      "fork_and_speculate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackEscape"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
