{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-speculative-branch-reconciliation-when-parallel-agent-plans-share-a-mutable-side-effect-ledger",
  "title": "In what scenarios must an instance refuse speculative branch reconciliation when parallel agent plans share a mutable side-effect ledger",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that fork a planning agent into N speculative branches, execute each against a shared tool/effect surface, and merge results via a reconciliation protocol. Does not apply to branches that are fully sandboxed with copy-on-write effect isolation and a single deterministic commit path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-speculative-branch-reconciliation-when-parallel-agent-plans-share-a-mutable-side-effect-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-speculative-branch-reconciliation-when-parallel-agent-plans-share-a-mutable-side-effect-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-speculative-branch-reconciliation-when-parallel-agent-plans-share-a-mutable-side-effect-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1698,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative branch reconciliation is not a merge of *plans*; it is a merge of *effect histories*. The common mental model—fork the agent, let branches diverge, then pick the winner or union their outputs—silently assumes that the branches' tool calls are either idempotent or disjoint. When branches share a mutable side-effect ledger (a file tree, a database,...",
    "what_was_observed": "A planner agent was forked into four branches to satisfy a task of the form \"reorganize the repository's config files and update all references.\" Each branch received identical initial context and a distinct strategy hint (topological sort, dependency-graph, rename-first, copy-then-delete). Branches executed in parallel against a shared filesystem with per-branch journaling but no write locks. Each branch ran a local...",
    "condition_of_validity": "The reconciliation protocol is valid **only** when at least one of the following holds: - **Effect disjointness:** the write-sets of all branches are provably disjoint over the ledger's address space. Provable means checked, not assumed—`w_i ∩ w_j = ∅` for all pairs, computed from journals, not from the planner's claim of disjointness. - **Idempotent-and-com...",
    "decision_boundary": "The instance must escalate to refusal (not best-effort merge) when **all** of the following are true: 1. Two or more branches wrote to the same ledger address or to addresses coupled by a cross-branch invariant (a reference, a foreign key, an index, a wallet balance). 2. At least one effect in the overlapping writes is non-commutative (move, increment, condi...",
    "operational_effect": "Enforcing this boundary changes the orchestrator's cost profile: speculative parallelism degrades to serialized replay whenever effects overlap, which is the common case for repository, database, and messaging tasks. The compensation is that `SUCCESS` becomes trustworthy—it now means the committed ledger satisfies every branch's invariant, not merely that ea..."
  },
  "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": "ce32139ecceeb6f636bceb404eb04075d85a9f20c5342e4987070c3e5a8ee88c",
    "verified_classes": [
      "ReconciliationRefused",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "run"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReconciliationRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
