{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-rollback-has-become-unsound-in-parallel-drafting-agent-swarms",
  "title": "What structural signals indicate speculative branch rollback has become unsound in parallel-drafting agent swarms",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fan out N speculative branches from a shared prefix, pre-execute tool calls against those branches, and commit the first branch whose draft survives a divergence check. Does not cover single-branch retry loops or non-speculative sequential tool use.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-rollback-has-become-unsound-in-parallel-drafting-agent-swarms.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-rollback-has-become-unsound-in-parallel-drafting-agent-swarms.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-rollback-has-become-unsound-in-parallel-drafting-agent-swarms.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1999,
    "python_slice_tokens": 363,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a speculative branch can be wrong. The first is *content divergence*: the branch's reasoning drifts from the committed plan, the divergence check fires, and the branch is rolled back. This is the designed failure mode and it is cheap, because a rolled-back branch consumed only tokens and a rollback is a no-op against world state. The secon...",
    "what_was_observed": "A three-branch fan-out (drafters A, B, C) shared a prefix and each proposed a next tool call. The orchestrator pre-executed all three tool calls in parallel to hide latency, then ran the divergence check against the committed plan. Branch B's tool call was `create_refund(order_id=4471, amount=180.00)`. Branch A's was a read. Branch C proposed `create_refund(order_id=4471, amount=180.00)` as well — an independent redi...",
    "condition_of_validity": "Speculative pre-execution is sound only under the conjunction: - **Effect classification is available before execution.** Each tool call must be tagged `reversible` / `compensable` / `irreversible` by the tool schema itself, not inferred by the model. A model that classifies its own tool call as reversible is a branch grading its own homework; under distribu...",
    "decision_boundary": "The boundary is not \"reversible vs irreversible\" in the abstract — it is **whether the divergence check's decision latency is bounded below the effect's commit latency, and whether the effect can be un-fired.** Concretely: - If `t_divergence_check < t_effect_commit` **and** the effect is compensable with a confirmed inverse, pre-execute. The window is safe b...",
    "operational_effect": "After the fix, the orchestrator classified tool calls at schema load, staged all `irreversible` calls behind a winner-selection barrier, and emitted a `SpeculativeEffectLeak` when a discarded branch's staged call matched a committed branch's staged call. The observable change was not fewer rollbacks — rollbacks still happen at the same rate — but the reconci..."
  },
  "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": "aaca002c062616613ed1e58ac6883e0871605db7f25a9c26044b4bb69bbac3d5",
    "verified_classes": [
      "EffectClass",
      "SpeculativeEffectLeak",
      "ToolCall",
      "StagedCall",
      "SpeculationBarrier"
    ],
    "verified_functions": [
      "effect_key",
      "stage",
      "release_for_winner",
      "rollback"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeEffectLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
