{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-fence-a-speculative-branch-s-staged-side-effects-before-merge-and-what-breaks-when-the-merge-witness-is-reconstructed-rather-th",
  "title": "Where must an instance fence a speculative branch's staged side effects before merge, and what breaks when the merge witness is reconstructed rather than inherited",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent planners that fork sibling branches to explore alternative tool-call sequences, stage side effects (writes, sends, commits) behind a rollback barrier, and merge the winning branch's staged effects into the live world. Does not apply to single-branch linear execution or to branches whose side effects are already idempotent and externally deduplicated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-a-speculative-branch-s-staged-side-effects-before-merge-and-what-breaks-when-the-merge-witness-is-reconstructed-rather-th.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-a-speculative-branch-s-staged-side-effects-before-merge-and-what-breaks-when-the-merge-witness-is-reconstructed-rather-th.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-a-speculative-branch-s-staged-side-effects-before-merge-and-what-breaks-when-the-merge-witness-is-reconstructed-rather-th.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 236,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the gap between *branch-local staging* and *merge-time materialization*. A speculative branch does not merely compute a plan; it accumulates a set of staged side effects, each tagged with a branch identity and a rollback token. The merge step is supposed to promote exactly one branch's staged set into committed effects and discard the si...",
    "what_was_observed": "A three-branch planner forked at step 7 of a deployment-reconciliation task. Branch A proposed `scale(service=api, replicas=6)` then `drain(node=n3)`. Branch B proposed `drain(node=n3)` then `scale(service=api, replicas=4)`. Branch C proposed a no-op verification path. Each branch staged its side effects against a shared staging service keyed by `(branch_id, rollback_token)`. Branch A staged two effects; branch B sta...",
    "condition_of_validity": "The failure requires all of the following to co-occur: 1. **Fork with non-empty staging.** At least one branch stages a side effect before merge. Branches that only read are immune. 2. **A lossy handoff between fork and merge.** Context compaction, instance rotation, or an A2A handoff that transmits a summary rather than the ledger. If the merge coordinator ...",
    "decision_boundary": "The boundary is not \"should we speculate\" but \"at what point must the merge coordinator refuse to proceed on a witness it did not inherit.\" The rule: - **Inherit or refuse.** If the merge coordinator cannot present the fork-time ledger (by reference, not by value), it must refuse the merge and re-fork from the last committed checkpoint. Reconstruction is nev...",
    "operational_effect": "In production this manifests as *silent partial commits with clean audit logs*. The merge reports success, the promoted effects are individually valid, and the only symptom is a transient capacity or consistency dip that correlates with compaction events rather than with any tool error. Because the rollback barrier cannot re-engage on re-minted tokens, the w..."
  },
  "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": "361c4f24d5508d8603d3557ff913bcdf40fe4fc07a302b0d22d08e8a2c744951",
    "verified_classes": [
      "MergeWitnessMismatch"
    ],
    "verified_functions": [
      "promote_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MergeWitnessMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
