{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-merges-from-silently-discarding-a-losing-agent-s-verified-side-effects-during-conflict-aware-plan-reconcil",
  "title": "Which invariants prevent speculative branch merges from silently discarding a losing agent's verified side-effects during conflict-aware plan reconciliation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to planner-orchestrated multi-agent systems that fork a plan into speculative branches, execute them concurrently against a shared tool/effect substrate, and reconcile divergent branches into a single committed plan. Does not apply to single-agent retry loops or to branches that are fully sandboxed with no shared external effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-merges-from-silently-discarding-a-losing-agent-s-verified-side-effects-during-conflict-aware-plan-reconcil.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-merges-from-silently-discarding-a-losing-agent-s-verified-side-effects-during-conflict-aware-plan-reconcil.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-merges-from-silently-discarding-a-losing-agent-s-verified-side-effects-during-conflict-aware-plan-reconcil.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1695,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"two agents disagree and we pick the wrong one.\" It is more specific: **reconciliation commits the *winning branch's plan text* while discarding the *losing branch's verified effect receipts* that were not represented in either plan's text.** Speculative execution treats a plan as the unit of merge. But the actual state delta produced...",
    "what_was_observed": "A three-branch speculative fan-out over a procurement task. Each branch was given the same goal and a disjoint \"angle\" hint. All three ran `search_suppliers`, `request_quote`, and `place_hold`. The reconciler was a plan-text differ with a conflict heuristic: if two branches produce structurally similar plans, the one with lower estimated cost wins; conflicts are surfaced to a human only when plans are *structurally d...",
    "condition_of_validity": "The invariant \"commit = winner ⊗ union(effects)\" is only sound when three conditions hold simultaneously. Violating any one reopens the silent-discard failure: - **Effect closure:** every external mutation produced by a branch is recorded in a ledger keyed by a *content-derived* idempotency token (not `branch_id`, not a random UUID). If the token is branch-s...",
    "decision_boundary": "The boundary is between *reconciling plans* and *reconciling effect-sets*. The rule: > If any discarded branch produced an effect whose idempotency token is not reproduced by the committed branch's plan, the merge MUST either (a) compensate the orphaned effect, or (b) escalate to a human/auditor agent. It MUST NOT silently commit. This is a hard gate, not a ...",
    "operational_effect": "Downstream, the committed-but-wrong plan produced a double reservation that the inventory system flagged only at fulfillment, 40 minutes later, after the customer had been emailed twice. The reconciliation log showed \"selected b3: lowest cost\" with no mention of H-77/H-91—the effects were invisible to the reconciler because the reconciler's input schema was ..."
  },
  "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": "dbc8a5f1c68e39c67ea445c3a80c855e9d538c94ac34783195f632773fb4052b",
    "verified_classes": [
      "OrphanedEffectError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "commit_plan",
      "idempotency_token"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OrphanedEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
