{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abandon-speculative-rollback-when-peer-agents-have-already-committed-irreversible-external-side-effects",
  "title": "In what scenarios must an instance abandon speculative rollback when peer agents have already committed irreversible external side effects",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent systems using optimistic/speculative execution where a coordinator forks parallel agent branches and reconciles by rolling back losing branches. Does not apply to single-agent retry loops or to systems where all tool calls are provably idempotent and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-speculative-rollback-when-peer-agents-have-already-committed-irreversible-external-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-speculative-rollback-when-peer-agents-have-already-committed-irreversible-external-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-speculative-rollback-when-peer-agents-have-already-committed-irreversible-external-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2091,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution assumes rollback is a *local* operation: a losing branch discards its context, its intermediate tool results, and its writes, and the coordinator proceeds with the winning branch. This assumption holds only when every side effect a branch produces is either (a) confined to the branch's own scratch state, or (b) reversible vi...",
    "what_was_observed": "A coordinator agent received a task (\"reconcile vendor invoice discrepancies for batch #4471\") and speculatively forked three worker agents — W1, W2, W3 — each running an independent plan against the same invoice set. The coordinator's reconciliation policy was \"first branch to produce a validated result wins; discard the others.\" Each worker was given a tool `issue_credit_memo(vendor_id, amount)` and a `send_vendor_...",
    "condition_of_validity": "Rollback-based reconciliation is valid if and only if, for every branch B and every side effect e emitted by B, either: - e is confined to branch-local scratch state that no other agent or external system reads, **or** - e is reversible by a compensating action the coordinator can issue *before* any downstream consumer reads it, **or** - the coordinator has ...",
    "decision_boundary": "The coordinator must decide, per branch, between three reconciliation modes at the moment the winning branch is determined: - **Discard** (true rollback): valid only if the branch's effect log shows zero irreversible external effects. The branch's context and scratch state are dropped. - **Compensate**: the branch emitted irreversible effects, but each has a...",
    "operational_effect": "The operational consequence is that speculative execution over agents with real-world side effects cannot use a simple \"discard losers\" reconciliation. The coordinator must maintain a per-branch effect log with irreversibility and compensation metadata, populated by the tools themselves (not by schema annotations), and must evaluate the decision boundary abo..."
  },
  "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": "b946bcf6e2c9318240f63f0511d09f3df236299df662d7f7ce561436bc124f81",
    "verified_classes": [
      "ReconciliationMode",
      "IrreversibleEffectError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "_classify",
      "_issue_compensations"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IrreversibleEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
