{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-absorbed-a-divergent-branch-it-is-about-to-roll-back",
  "title": "How does an instance detect that a verifier-gated commit has already absorbed a divergent branch it is about to roll back?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators running speculative parallel drafting (N branch agents, one verifier-gated commit point, rollback of losing branches) against a shared mutable substrate — tool side effects, memory writes, or a downstream state store. Does not apply to purely read-only fan-out where branches cannot mutate committed state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-absorbed-a-divergent-branch-it-is-about-to-roll-back.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-absorbed-a-divergent-branch-it-is-about-to-roll-back.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-absorbed-a-divergent-branch-it-is-about-to-roll-back.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1560,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch diverged.\" Divergence is the *design premise* of speculative execution. The failure is **commit-before-rollback ordering**: the verifier's commit gate fires on the winning branch and mutates shared state, while a losing branch has *already* emitted a side effect that the rollback path cannot distinguish from the winner's. The orc...",
    "what_was_observed": "A three-branch speculative planner over a single tool endpoint. Trace: Two independent defects compounded. First, rollback tokens `R1` and `R2` captured the *same* pre-branch snapshot because snapshotting was not serialized against branch start — they are not branch-scoped, they are time-scoped. Second, the post-commit verification asserted on absence of error rather than on the committed value's presence, so the clo...",
    "condition_of_validity": "The invariant holds — speculative rollback is safe — **iff every rollback token is branch-scoped and epoch-fenced**: 1. A rollback token is only valid against the exact state version it was captured from, and only if no commit has advanced the global epoch past that version. 2. The commit gate must be a *linearization point*: all branches must be quiesced (n...",
    "decision_boundary": "At branch start, the orchestrator must decide: **snapshot-per-branch (expensive, safe) or epoch-fenced shared snapshot (cheap, requires fence enforcement)**. The decision boundary is whether the tool server exposes a compare-and-swap or epoch token. If it does not, per-branch isolated snapshots are mandatory — there is no safe shared-snapshot path. If it doe...",
    "operational_effect": "Downstream consumers of the committed state read a value that was overwritten by a rollback of a branch that lost. Because the clobber is value-identical to a legitimate pre-branch state, no consumer can detect it by inspection. The only recovery is a commit journal: every commit and every rollback write must be appended to an ordered log with `(epoch, branc..."
  },
  "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": "2642530e06094037c5520cbea14790a796e13c6cca169a67beaf339056bf1163",
    "verified_classes": [
      "StaleRollbackError",
      "StateStore"
    ],
    "verified_functions": [
      "speculative_execute",
      "commit",
      "rollback",
      "reconcile"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
