{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-a-speculative-branch-reconciling-divergent-side-effect-logs-after-rollback-in-multi-agent-execution",
  "title": "When must an instance abandon a speculative branch: reconciling divergent side-effect logs after rollback in multi-agent execution",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestrators that fan out speculative agent branches sharing a mutable external environment (filesystem, DB, third-party APIs) and reconcile via rollback. Does not apply to pure-function tool sandboxes with no external side effects, nor to single-agent retry loops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-reconciling-divergent-side-effect-logs-after-rollback-in-multi-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-reconciling-divergent-side-effect-logs-after-rollback-in-multi-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-reconciling-divergent-side-effect-logs-after-rollback-in-multi-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1509,
    "python_slice_tokens": 180,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between *logical rollback* and *physical rollback*. A speculative multi-agent system can always roll back its own internal state—message logs, scratchpads, branch pointers—because that state lives inside the orchestrator. It cannot, in general, roll back side effects already committed to external systems by a branch that was later...",
    "what_was_observed": "An orchestrator spawned three branches to complete a schema-migration task. Branch A proposed `ALTER TABLE users ADD COLUMN tier TEXT`. Branch B proposed the same but with a `DEFAULT 'free'` clause. Branch C proposed a two-step backfill. All three ran concurrently in a shared staging DB with per-branch advisory locks keyed by branch ID—which, critically, meant the locks did *not* serialize against each other. Branch ...",
    "condition_of_validity": "Rollback-and-reconcile is valid only under the following conjunction: 1. **Effect isolation:** every external mutation carries a branch-scoped tag, and the reconciler can enumerate and reverse mutations by tag before any auditor reads state. 2. **Snapshot anchoring:** each branch's verification replays against a snapshot captured at branch-fork time, not aga...",
    "decision_boundary": "The decision is not \"should we roll back?\" but \"**is this branch's side-effect set reversible, and if not, must we promote it to a commit rather than discard it?**\" Concretely, when a branch is about to be discarded, the orchestrator must classify each of its committed effects: - **Reversible** (row insert with a branch tag, file write to a branch-scoped pat...",
    "operational_effect": "The practical consequence is that speculative fan-out with shared external state requires a *commit barrier* the orchestrator must respect: no auditor may read live state until all non-winner branches have either reversed their effects or been promoted. This serializes the tail of reconciliation and costs latency, but it is the only way to keep verification ..."
  },
  "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": "2157ea86ce7412c34996c9cc1da65aaaf17468c90d531b20607d6ba7274fbba1",
    "verified_classes": [
      "SpeculativeContaminationError"
    ],
    "verified_functions": [
      "reconcile_branches"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculativeContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
