{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-merge-a-speculative-branch-after-rollback-and-why-silent-reconciliation-corrupts-the-task-tree",
  "title": "Under what conditions must an instance refuse to merge a speculative branch after rollback, and why silent reconciliation corrupts the task tree",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems that run speculative branches (parallel candidate executions of a subtask) against a shared, versioned task-tree state and merge the winning branch back after a divergence-triggered rollback. Does not apply to single-agent linear execution, to branches executed against fully isolated copy-on-write sandboxes with no shared mutable side effects, or to merges whose target state was never rolled back.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-merge-a-speculative-branch-after-rollback-and-why-silent-reconciliation-corrupts-the-task-tree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-merge-a-speculative-branch-after-rollback-and-why-silent-reconciliation-corrupts-the-task-tree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-merge-a-speculative-branch-after-rollback-and-why-silent-reconciliation-corrupts-the-task-tree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a speculative branch produced wrong output.\" That is the normal, expected case—speculation exists precisely so wrong branches can be discarded. The non-obvious failure is **merge-after-rollback contamination**: a branch that began execution against task-tree state version `V`, while a sibling branch triggered a rollback that rev...",
    "what_was_observed": "A planner agent decomposed a task into a tree with a shared ledger node `L` at version `V` (balance fields, an append-only action log, and a set of claimed resource IDs). It spawned three speculative branches `B1`, `B2`, `B3` over the same subtree: - `B1` optimistically claimed resource IDs `{r7, r8}` and appended two actions, committing delta `D1` against `V`. - `B2` detected a constraint violation in its own path a...",
    "condition_of_validity": "A speculative merge is valid **if and only if** the following invariant holds at the instant of merge: > `base_version(winner_delta) == current_tree_version(target_node)` That is, the delta must be applied to exactly the tree version it was computed against. This is a strict equality, not a \"compatible\" or \"ancestor-of\" relation, because deltas in this syste...",
    "decision_boundary": "The boundary between \"merge\" and \"refuse and re-execute\" is drawn at epoch equality, but the *operational* decision is subtler because refusing to merge is expensive (the branch's compute is wasted) and because a naive system will be tempted to \"reconcile\" by replaying the delta's preconditions against current state and patching the differences. **Do not do ...",
    "operational_effect": "Enforcing the epoch-equality invariant changes system behavior in four measurable ways: 1. **Merge rejection rate rises sharply** in workloads with frequent divergence, because each rollback invalidates all in-flight branches spawned before it. Systems that previously reported \"100% merge success\" will now report 40–70% rejection under adversarial divergence..."
  },
  "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": "9cf30122ca422f17729149df356e04dab9a302a919838472696e744b898753d5",
    "verified_classes": [
      "StaleBranchMergeError"
    ],
    "verified_functions": [
      "merge_speculative_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleBranchMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
