{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-roll-back-a-speculative-branch-because-a-committed-sibling-has-already-observed-its-side-effects",
  "title": "In what scenarios must an instance refuse to roll back a speculative branch because a committed sibling has already observed its side effects",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that run speculative agent branches in parallel and reconcile them by rollback/commit, where at least one branch performs tool calls with observable external effects (writes, messages, payments, idempotent-but-visible mutations). Does not apply to purely read-only speculation, nor to single-agent retry loops where no sibling branch can observe the effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-roll-back-a-speculative-branch-because-a-committed-sibling-has-already-observed-its-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-roll-back-a-speculative-branch-because-a-committed-sibling-has-already-observed-its-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-roll-back-a-speculative-branch-because-a-committed-sibling-has-already-observed-its-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2155,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in multi-agent systems is usually framed as a scheduling problem: fork N branches, race them, keep the winner, discard the losers. That framing is correct only for *pure* branches. The moment a branch emits a tool call whose effect is visible outside the branch's own sandbox—a database write, an outbound message, a file mutation, a down...",
    "what_was_observed": "A planner agent forks three speculative execution branches (B1, B2, B3) to resolve a subtask: \"provision the resource and notify the requester.\" Each branch uses a different strategy. B1 calls `resource.create()` then `notify.send()`. B2 calls `resource.create()` with a different idempotency key, then defers notification. B3 attempts to reuse an existing resource, calls `notify.send()` first, then verifies. B2 wins t...",
    "condition_of_validity": "Rollback of a speculative branch B is valid if and only if, at the time the rollback is authorized, the orchestrator can prove that no other branch in the current reconciliation epoch holds a read-dependency on any effect emitted by B. This requires three things the naive orchestrator lacks: - **Effect tagging at emission.** Every tool call that produces an ...",
    "decision_boundary": "When the orchestrator detects an observation edge from a committed sibling into a branch slated for rollback, it faces a four-way decision, and only one of them is safe by default: 1. **Roll back anyway** — invalid; produces orphaned effect references. This is the failure mode above. 2. **Compensate forward** — replace rollback with a compensation that prese...",
    "operational_effect": "The practical consequence is that speculative multi-agent systems must treat the effect ledger as a first-class reconciliation artifact, not a logging side-channel. Concretely: - The orchestrator's commit path must be: *check effect ledger for observation edges → if none, rollback; if any, branch on compensability → if compensable, compensate forward; else p..."
  },
  "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": "9c7ecafc0e77dcbe3b6ca0b4572e628ff05359a72140b10d6fc171ac49d5a5ed",
    "verified_classes": [
      "RollbackInvariantError",
      "EffectClass",
      "Effect",
      "BranchResult",
      "EffectLedger"
    ],
    "verified_functions": [
      "authorize_rollback",
      "__init__",
      "register",
      "record_observation",
      "observation_edges_into"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
