{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-merge-rollback-has-silently-orphaned-a-committed-sub-effect",
  "title": "What structural signals indicate speculative branch-merge rollback has silently orphaned a committed sub-effect",
  "date_of_record": "2026 November 21",
  "scope": "Applies to multi-agent systems that fork a shared state into speculative branches, execute agents concurrently against those branches, and merge with rollback on conflict. Does not apply to single-agent linear tool loops or to branch-and-merge systems whose branches are pure functions with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-merge-rollback-has-silently-orphaned-a-committed-sub-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-merge-rollback-has-silently-orphaned-a-committed-sub-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-merge-rollback-has-silently-orphaned-a-committed-sub-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1854,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"merge conflict.\" Merge conflicts are expected and handled. The failure is **orphaned sub-effect absorption**: a speculative branch is rolled back at the logical state layer, but a sub-effect it already emitted into an external, non-transactional substrate (a file write, an outbound API call, a message queue enqueue, a memory-store insert)...",
    "what_was_observed": "A planner agent forks three branches (A, B, C) to resolve a subtask under a token budget. Each branch spawns a worker with a scoped toolset. Branch B's worker calls `write_artifact(path, content)` — a non-transactional tool — *before* the branch's reasoning completes. Branch B then loses the merge: branch A's result is selected by the reconciler because A's confidence score is higher and A's plan is shorter. The reco...",
    "condition_of_validity": "The branch-and-merge model is valid only under the conjunction of three conditions, all of which must be enforced mechanically, not by convention: - **Effect isolation:** every branch's tool access is routed through a per-branch transactional overlay that either commits atomically with the branch or discards. Non-transactional tools (raw filesystem, direct H...",
    "decision_boundary": "The operational decision is where to place the rollback barrier relative to tool-call lifecycle. Three placements, with distinct guarantees: - **Barrier before tool dispatch (strict speculation):** branches may reason but may not act until commit. No orphans possible; loses the latency benefit of speculative execution because effects are serialized behind th...",
    "operational_effect": "The observable consequence is a class of committed states that pass every logical consistency check while carrying effects whose provenance is a discarded branch. These states are self-consistent at read time and wrong at audit time. Downstream agents that consume the merged state inherit the contamination and, because the orphan's provenance branch no longe..."
  },
  "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": "0e34f5e17b2cc1ea47e33807b418b518e7555e2b5bbcb578935810a9434bfd82",
    "verified_classes": [
      "OrphanedSubEffectError"
    ],
    "verified_functions": [
      "reconcile_merge"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedSubEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
