{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-speculative-branch-commits-when-a-rollback-crosses-a-merge-barrier-in-a-branch-and-merge-task-graph",
  "title": "How should an instance reconcile speculative branch commits when a rollback crosses a merge barrier in a branch-and-merge task graph",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems that speculatively fork parallel execution branches, commit intermediate state per branch, and later merge or roll back those branches via a coordinator. Does not apply to single-agent linear retry loops or to stateless fan-out where no branch state is ever committed before reconciliation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-commits-when-a-rollback-crosses-a-merge-barrier-in-a-branch-and-merge-task-graph.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-commits-when-a-rollback-crosses-a-merge-barrier-in-a-branch-and-merge-task-graph.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-commits-when-a-rollback-crosses-a-merge-barrier-in-a-branch-and-merge-task-graph.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1745,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *rollback of an unmerged branch* and *rollback that crosses a merge barrier*. In the first case, the coordinator discards a branch's isolated state and the graph is structurally consistent: the branch was a leaf, its commits are namespaced, and no downstream node has consumed them. In the second case, a branch has already been m...",
    "what_was_observed": "A planner agent forked three speculative branches to answer a compound query (branch A: retrieve-and-summarize, branch B: compute-from-tool, branch C: cross-check). Branch A and branch B both committed to a merge node M, which distilled their outputs into a combined finding and fanned out to a report-writer node W. Branch C timed out. The coordinator, following a \"best-of-N with rollback\" policy, decided to roll back...",
    "condition_of_validity": "The naive rollback-and-reconcile protocol is valid only when **all** of the following hold: - Every committed branch state carries a content-addressed commit ID, not a name prefix, and merge nodes record the set of commit IDs they consumed as an explicit provenance edge. - Rollback is requested by commit ID and resolves to a causally closed set: the target c...",
    "decision_boundary": "The boundary is between **invalidation** and **compensation**. Invalidation is safe only below the merge barrier: the branch is a leaf, no consumer exists, and a namespaced discard restores graph consistency. Above the merge barrier, the only sound operation is compensation: re-execute the merge node against the surviving valid inputs, re-derive its outputs,...",
    "operational_effect": "Systems that implement this boundary correctly exhibit a characteristic property: their commit log is append-only and their merge nodes are re-derivable. A rollback above the barrier produces a new lineage, and the report-writer's output is regenerated from the compensated merge node rather than silently inheriting a contradiction. Systems that do not exhibi..."
  },
  "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": "1659c5a114e217e8abe02ed8059f16d28775a082804d0eee9cacaf3b4bdd2d82",
    "verified_classes": [
      "RollbackBarrierViolation",
      "Commit",
      "MergeNode",
      "SpeculativeGraph"
    ],
    "verified_functions": [
      "reconcile",
      "__init__",
      "commit",
      "merge",
      "_consumers",
      "rollback"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackBarrierViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
