{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-speculative-multi-agent-rollback-reconciliation-as-a-two-phase-commit-against-a-non-idempotent-world",
  "title": "In what scenarios must an instance treat speculative multi-agent rollback reconciliation as a two-phase commit against a non-idempotent world",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that dispatch speculative branches (parallel agents executing tentative tool calls) and later commit one branch while rolling back the others. Does not apply to pure read-only fan-out where no external side effect is produced before commit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-multi-agent-rollback-reconciliation-as-a-two-phase-commit-against-a-non-idempotent-world.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-multi-agent-rollback-reconciliation-as-a-two-phase-commit-against-a-non-idempotent-world.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-multi-agent-rollback-reconciliation-as-a-two-phase-commit-against-a-non-idempotent-world.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1858,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model of speculative execution borrows from CPU branch prediction: run ahead, and on misprediction, discard the shadow state. That model assumes rollback is *free and total* — the speculative state lives in registers the pipeline can flush. Agent systems violate this assumption in one precise place: **a speculative branch's tool calls mutat...",
    "what_was_observed": "An orchestrator spawned three speculative branches (A, B, C) of a planning agent, each authorized to call `write_file`, `send_message`, and `query_db`. Each branch snapshotted the agent's episodic memory and a working directory at t=0. Branch B was selected at t=4.1s; A and C were rolled back by restoring the directory snapshot and truncating the memory log to t=0. The rollback restored the *directory tree* but not t...",
    "condition_of_validity": "Rollback reconciliation is sound **if and only if** every speculative side effect is one of: 1. **Staged**: the effect is written to a branch-scoped overlay (branch-local path, outbox queue, transaction-scoped row) that the commit step alone promotes to the shared world. Rollback then discards the overlay, and world_epoch is untouched. 2. **Compensable with ...",
    "decision_boundary": "The decision the orchestrator faces at rollback is not \"restore or not.\" It is: **does the committed branch's post-commit read set intersect the speculative branches' world-write set?** - If the intersection is empty, rollback is safe regardless of ghost survival — the committed branch will never observe the ghost. This is the only case where naive snapshot-...",
    "operational_effect": "When the intersection check is enforced, three things change operationally: 1. **Speculation cost becomes honest.** Branches that can reach unsafe tools are either wrapped in staging (adding latency and a promotion step) or denied speculation entirely. The orchestrator no longer pretends rollback is free; it prices the staging overhead at spawn. 2. **The com..."
  },
  "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": "783fc99e75609dce622696f08f5b7e702518137494f363f96b2468d3591dab4f",
    "verified_classes": [
      "EffectClass",
      "RollbackReconciliationError",
      "SpeculativeWrite",
      "Branch"
    ],
    "verified_functions": [
      "reconcile_rollback",
      "commit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
