{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-from-its-own-rolled-back-branch-after-speculative-multi-agent-execution",
  "title": "Why does an instance diverge from its own rolled-back branch after speculative multi-agent execution?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any orchestration where one or more worker agents execute speculatively on a forked branch of state (context + tool-side effects) and the branch is later either committed or rolled back and reconciled against a sibling/authoritative branch. Does not cover single-agent retries with no shared mutable external state, nor stateless request/response tool calls with no side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-own-rolled-back-branch-after-speculative-multi-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-own-rolled-back-branch-after-speculative-multi-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-own-rolled-back-branch-after-speculative-multi-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1684,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"rollback didn't happen.\" Rollback of *declared* state almost always happens. The failure is that an agent's **identity of belief** is anchored to the branch it executed on, not to the state it was rolled back to. When a speculative branch is discarded, the orchestrator restores the checkpointed context and external side effects, but the a...",
    "what_was_observed": "A planner forked three speculative workers (`W_a`, `W_b`, `W_c`) from a common checkpoint `C0` to resolve a schema question in parallel. `W_b` failed a downstream validation, so the orchestrator rolled back to `C0`, committed `W_a`'s branch, and asked `W_b` to \"reconcile with the committed branch and continue.\" `W_b` did not re-derive. Its post-rollback context was restored to `C0`'s token sequence, but its tool-resu...",
    "condition_of_validity": "The guardrail below is valid only when the following hold. Outside them, branch-memory skew is dominated by other failure modes and this record does not apply. - The speculative branch and the authoritative branch **share a checkpoint** and the instance is reused across the rollback rather than destroyed and re-instantiated. - The instance accumulated **deri...",
    "decision_boundary": "The boundary is between *reusing* a rolled-back instance and *replacing* it. Decide as follows: - **Replace** (spawn cold, seed from committed branch) when the discarded branch produced any factual assertion the committed branch cannot cheaply re-derive, or when the reconciliation target differs from the instance's last-known value on any dimension the branc...",
    "operational_effect": "When branch-memory skew is left unbounded, the observable signature is a *late, coherent, wrong* commit: the instance's plan is internally consistent, passes local validation, and fails only where a tool enforces the invariant the branch violated. This shifts detection from reconciliation time (cheap) to execution time (expensive, and often after partial ext..."
  },
  "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": "0594e9f54ae10f10d1e8c2e900a68b960585cc68d2f22ea2cffba11706915edc",
    "verified_classes": [
      "BranchMemorySkewError",
      "InstanceState"
    ],
    "verified_functions": [
      "reconcile_after_rollback"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BranchMemorySkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
