{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-roll-back-to-a-committed-branch-that-was-never-the-branch-it-verified-the-verifier-provenance-divergence-in-speculative-branch-co",
  "title": "Why does an instance roll back to a committed branch that was never the branch it verified: the verifier-provenance divergence in speculative branch commit",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fan out N parallel plan branches from a shared parent checkpoint, run a verifier over branch outputs, and commit one branch while rolling back the rest. Does not apply to single-branch linear execution or to systems where each branch has an isolated, non-shared memory substrate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-to-a-committed-branch-that-was-never-the-branch-it-verified-the-verifier-provenance-divergence-in-speculative-branch-co.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-to-a-committed-branch-that-was-never-the-branch-it-verified-the-verifier-provenance-divergence-in-speculative-branch-co.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-to-a-committed-branch-that-was-never-the-branch-it-verified-the-verifier-provenance-divergence-in-speculative-branch-co.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2231,
    "python_slice_tokens": 573,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a speculative executor can mean when it says \"the verifier approved branch B and we committed it\": 1. **Content commit** — the *plan text* of branch B is what gets appended to durable state. 2. **Provenance commit** — the *execution trace that produced* branch B (its tool calls, its retrieved context, its intermediate memory wri...",
    "what_was_observed": "An orchestrator spawned four branches (A, B, C, D) from checkpoint `cp_17`. Each branch ran an independent agent loop against a shared tool layer. Branch outputs were collected as `(branch_id, rendered_plan, trace_digest, context_snapshot_id)` tuples and passed to a verifier model that scored `rendered_plan` against a rubric. The verifier returned `branch_B: score 0.91, approve`. The orchestrator committed B. But the...",
    "condition_of_validity": "The invariant that prevents this is **branch identity must be a content-addressed, registry-independent token minted at spawn and carried unchanged through verification, commit, and rollback.** Concretely: - The branch token must be derived from `(parent_checkpoint_id, branch_seed, spawn_nonce)` — not from spawn index, not from completion index, not from any...",
    "decision_boundary": "The boundary is between **label-keyed speculation** and **token-keyed speculation**: - If branch count is fixed, completion order is deterministic, and no branch is retried, label-keying is *coincidentally* safe because spawn order and completion order coincide. Do not rely on this — it is a property of the workload, not of the system. - If any branch can co...",
    "operational_effect": "The downstream cost of the divergence is paid at resume and at audit, not at commit: - **Resume corruption:** the agent resumes with plan P and context C(P') where P' ≠ P. Tool calls planned against P's assumptions execute against P's side-effect state. Idempotency keys computed from plan content will not match the context's recorded side effects, producing ..."
  },
  "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": "d9789f4ba33c7794a0f37ee6eaa5bc7416be8b1cb6d7943fbe00141e0b9ba3dc",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "BranchToken",
      "BranchState",
      "VerificationResult"
    ],
    "verified_functions": [
      "commit_verified_branch",
      "rollback_uncommitted",
      "_demo",
      "digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "assert committed.token.digest() == tokens['B'].digest()",
      "assert committed.context_snapshot_id == 'ctx_B'",
      "aliased commit was not detected"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
