{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-divergent-speculative-branch-when-rollback-reconciliation-silently-commits-a-superseded-sibling-s-side-effects",
  "title": "How does an instance detect a divergent speculative branch when rollback reconciliation silently commits a superseded sibling's side effects",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that run N parallel agent branches against a forked snapshot of shared state, then reconcile by committing one branch and rolling back the others. Does not apply to single-branch execution, to branches that share no mutable external resources, or to purely read-only fan-out (map) patterns where no commit/rollback decision occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-divergent-speculative-branch-when-rollback-reconciliation-silently-commits-a-superseded-sibling-s-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-divergent-speculative-branch-when-rollback-reconciliation-silently-commits-a-superseded-sibling-s-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-divergent-speculative-branch-when-rollback-reconciliation-silently-commits-a-superseded-sibling-s-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2126,
    "python_slice_tokens": 521,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **logical rollback** and **physical rollback**. A speculative branch is \"rolled back\" logically when the orchestrator discards its private context delta and marks its branch record as `abandoned`. It is rolled back *physically* only when every side effect the branch emitted — tool calls that mutated a database, sent a ...",
    "what_was_observed": "A planner agent forked three branches (`A`, `B`, `C`) off a shared snapshot to attempt a schema migration by three strategies. Branch `A` was selected for commit at t=4.2s. Branch `C` had issued a `tool.apply_patch` call at t=4.1s that was still in flight when the commit decision fired; its result (success) returned at t=4.6s, 400ms after `C` was marked `abandoned`. The reconciler walked `C`'s tool log at t=4.3s. The...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and the orchestrator must assert them or refuse to run speculative branches: - Every side-effecting tool call must carry a **branch token** that the external executor echoes back on the result, so a late result can be attributed to its originating branch even after the branch is marked abandoned. - Th...",
    "decision_boundary": "The decision boundary is the moment the commit is finalized. Before finalization, the orchestrator may still abort the commit if any branch has unresolved pending effects. After finalization, it may not — it can only compensate, and compensation of an effect that landed *after* the commit is a different, harder problem (it must be applied against the committ...",
    "operational_effect": "The operational effect of getting this wrong is **silent post-commit divergence**: the committed state contains effects from a branch the system believes it discarded. Because the branch is marked abandoned, no verification path looks at it. Because the effect arrived after the reconciler walked the log, no compensation record exists. Because the effect is o..."
  },
  "matched_failure_symptoms": [
    "UNNECESSARY_OR_STALE_EXTERNAL_FETCH"
  ],
  "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": "aa0489a0c1c68cc354eeff032235a50f1eeab059cb6e1e50a0b38dafabb5ed25",
    "verified_classes": [
      "BranchState",
      "EffectStatus",
      "ZombieBranchError",
      "Effect",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "issue_effect",
      "resolve_effect",
      "_non_quiescent",
      "commit",
      "_compensate",
      "_verify_no_abandoned_effects"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "KeyError",
      "ZombieBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
