{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-branch-has-outlived-its-rollback-safety-window-during-multi-agent-plan-merge",
  "title": "What structural signals indicate a speculative branch has outlived its rollback safety window during multi-agent plan merge",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fork N speculative agent branches from a shared checkpoint, execute them concurrently against external side-effecting tools, and merge the winning branch while discarding the rest. Does not apply to purely read-only speculative fan-out, nor to single-agent retry loops without shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-has-outlived-its-rollback-safety-window-during-multi-agent-plan-merge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-has-outlived-its-rollback-safety-window-during-multi-agent-plan-merge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-has-outlived-its-rollback-safety-window-during-multi-agent-plan-merge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2301,
    "python_slice_tokens": 459,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *logical rollback* and *physical rollback*. An orchestrator can always discard a losing branch's in-memory plan graph, its token log, and its message history—those are cheap and deterministic to drop. What it cannot cheaply drop is the *externalized residue* that a losing branch deposited in the world: a row written to...",
    "what_was_observed": "A three-way speculative fan-out was launched from a shared checkpoint to satisfy a procurement intent: branch A pursued a direct vendor API, branch B pursued a marketplace aggregator, branch C pursued a cached internal catalog. All three were dispatched with the same `speculation_id` propagated in a header, and the tool gateway was configured to route writes to a per-branch scratch namespace keyed by that id. The des...",
    "condition_of_validity": "The rollback-safe branch-and-merge invariant holds only under the following conjunction, and it is *invalid* the moment any conjunct fails: - **C1 (Reversibility assertion):** Every tool invoked by a speculative branch declares, in a machine-checkable field the orchestrator trusts, whether the effect is reversible and by whom. Idempotency is not reversibilit...",
    "decision_boundary": "The boundary the operator must draw is between *discard* and *abandon*. Discard is safe only when C1–C4 hold. When they do not, the correct operation is abandon: the branch is marked abandoned, its residue is enumerated, a compensating plan is generated and executed, and only then is the branch's plan graph freed. Abandon is slower and requires the orchestra...",
    "operational_effect": "Enforcing the boundary changes three things in production. First, speculative fan-out latency increases because commitment-class calls now require a promotion round-trip; teams that measured fan-out speed as a win must re-measure with promotion cost included. Second, the orchestrator must retain a reaper identity with standing authority over all speculative ..."
  },
  "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": "690b08456de0c2490e2f5b4098eb9ddfa64102671cc03d50979d6a42f0dea6fb",
    "verified_classes": [
      "RollbackWindowClosedError",
      "BranchState",
      "EffectClass",
      "ToolContract",
      "Residue",
      "SpeculativeBranch",
      "Orchestrator"
    ],
    "verified_functions": [
      "dispatch",
      "merge",
      "abandon"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackWindowClosedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
