{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-branch-is-unsafe-to-reconcile-after-sibling-rollback",
  "title": "What structural signals indicate a speculative branch is unsafe to reconcile after sibling rollback",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fan out speculative sibling branches (parallel drafters, probers, or tool-executing agents) from a shared checkpoint and later merge one survivor while rolling back the rest. Does not apply to strictly sequential single-branch agents or to stateless request/response tool calls with no shared mutable substrate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-is-unsafe-to-reconcile-after-sibling-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-is-unsafe-to-reconcile-after-sibling-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-is-unsafe-to-reconcile-after-sibling-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1532,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed\" and it is not \"the merge conflicted.\" Both are expected and handled. The failure is **reconciling a survivor whose committed side effects were conditioned on a sibling that has since been rolled back** — a *dangling causal dependency*. The distinguishing signal is that the survivor's output is internally consistent and it...",
    "what_was_observed": "A planner spawned three speculative branches from checkpoint `C0`: `B1` (draft via tool A), `B2` (draft via tool B), `B3` (probe that writes shared results into a scratch store `S`). The branches shared a mutable scratch namespace because the framework treated `S` as \"ephemeral, branch-local\" — but `S` was in fact a single process-global dict, keyed by task, not by branch. Trace: 1. `B1` writes `S[\"entity_42\"] = {id:...",
    "condition_of_validity": "The invariant holds only under these conditions, and breaks outside them: - **Shared substrate is keyed by branch, not by task.** If `S` is partitioned per branch and cross-branch reads are forbidden or recorded, the dependency is observable. If `S` is task-global (as here), reads are untracked and the invariant cannot be enforced by diffing. - **Rollback is...",
    "decision_boundary": "At merge time, for each surviving branch, compute the **closure of its causal reads**: the set of substrate keys it read that were *written by a sibling after `C0`*. Then: - If the read-closure is empty → safe to reconcile; commit. - If the read-closure is non-empty **and** every read key's value is re-derivable from `C0` ∪ survivor's own writes → safe; re-m...",
    "operational_effect": "Without this guard, the system exhibits **silent referential corruption**: commits succeed, downstream resolution sometimes fails loudly (dangling ID) and sometimes \"repairs\" itself by re-creating the referent from partial context, producing records that are internally consistent and externally wrong. The corruption is non-deterministic because it depends on..."
  },
  "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": "5c0e516ea5f89112ad5ad8a20402711376b0bc7db1803abf5d4f92ab925ef41b",
    "verified_classes": [
      "DanglingReadDependency",
      "ReadLedger"
    ],
    "verified_functions": [
      "reconcile",
      "record_read"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DanglingReadDependency"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
