{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-speculative-branch-divergence-before-merge-arbitration-commits-a-poisoned-rollback",
  "title": "How does an instance detect speculative branch divergence before merge arbitration commits a poisoned rollback?",
  "date_of_record": "2026 November 19",
  "scope": "Applies to orchestrators that fan out multiple parallel agent branches from a shared checkpoint, execute them speculatively against a forked world-state, and later merge or roll back based on an arbiter's verdict. Does not apply to strictly sequential single-agent loops or to fan-out patterns where branches share no mutable state (pure read-only retrieval).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-branch-divergence-before-merge-arbitration-commits-a-poisoned-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-branch-divergence-before-merge-arbitration-commits-a-poisoned-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-branch-divergence-before-merge-arbitration-commits-a-poisoned-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1786,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a bad answer.\" It is that a **speculative branch mutated a side-effecting resource (tool state, memory store, or upstream service) during its speculative window, and the rollback path restored only the orchestrator's logical checkpoint—not the external mutation.** When the arbiter later rejects that branch, the merge pro...",
    "what_was_observed": "A three-branch fan-out was launched from checkpoint `C0` to resolve a scheduling conflict. Each branch was given a forked view of a shared scratch memory store and a `calendar.write` tool. Branch A proposed moving the meeting; Branch B proposed cancelling; Branch C proposed delegating to a peer agent. All three were permitted to *call* tools speculatively, with the understanding that rejected branches would be rolled...",
    "condition_of_validity": "The rollback invariant above holds only under the **compensable-effect assumption**: every tool a speculative branch may invoke either (a) is idempotent and reversible by a recorded inverse operation, or (b) is gated so it cannot execute until the branch is committed. The failure occurs precisely when a branch invokes a tool that violates both (a) and (b) in...",
    "decision_boundary": "The instance must decide, at fork time, whether a branch is *speculatively isolated* or *effect-authorized*. The boundary test: - If the branch's tool manifest contains any tool marked `UNCOMPENSABLE` or `EXTERNAL_SIDE_EFFECT`, the branch may not be executed speculatively; it must run in **serialized commit mode** (execute only after arbiter selection) or be...",
    "operational_effect": "Without the write-ahead effect log and the compensable-effect gate, speculative fan-out silently degrades into a system that commits the union of all branches' side effects while reporting only the arbiter's chosen branch. The observable symptom is **phantom state**: resources held, messages sent, or records written that no committed plan references. Phantom..."
  },
  "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": "99014518d566b65e6495d48c05f2c69c6b8ff51b9f7dbe9e3e7cdf76b6fa962d",
    "verified_classes": [
      "OrphanedEffectError",
      "MergeBlockedError",
      "EffectRecord",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "dispatch",
      "rollback",
      "_apply_inverse",
      "merge"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MergeBlockedError",
      "OrphanedEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
