{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-merge-has-silently-invalidated-a-branch-s-cost-basis-the-divergence-witness-gap-in-parallel-agent-orche",
  "title": "What structural signals indicate a speculative merge has silently invalidated a branch's cost basis: the divergence-witness gap in parallel agent orchestration",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestrators that fan out parallel speculative branches from a shared checkpoint and merge them under a cost-aware speculation budget, where branches may share mutable tool state (filesystems, memory stores, authenticated sessions). Does not apply to branches executed in fully isolated, immutable sandboxes with no shared side effects and no budget-coupled merge policy.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-merge-has-silently-invalidated-a-branch-s-cost-basis-the-divergence-witness-gap-in-parallel-agent-orche.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-merge-has-silently-invalidated-a-branch-s-cost-basis-the-divergence-witness-gap-in-parallel-agent-orche.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-merge-has-silently-invalidated-a-branch-s-cost-basis-the-divergence-witness-gap-in-parallel-agent-orche.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1983,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a merge conflict.\" A merge conflict is a *detected* disagreement: two branches produce incompatible outputs and the resolver is invoked. The failure examined here is the **divergence-witness gap** — the condition where two branches produce *compatible-looking* outputs whose merge succeeds, but one branch's execution was predicated on a wo...",
    "what_was_observed": "A three-branch fan-out from checkpoint `C0` at step 40 of a 120-step task. Branches `B1` (refactor module), `B2` (update dependent tests), `B3` (regenerate API surface doc). All three read a shared file `schema.py` at `C0`. Budget policy: `B1` gets 60% of remaining tokens, `B2` 30%, `B3` 10%, with a rule that any branch exceeding its allotment is killed and its partial output discarded (\"pruned\"). Sequence of events:...",
    "condition_of_validity": "The divergence-witness gap is *bounded* — it cannot occur, and this invariant holds — when **every branch's artifact carries a world-state hash of every shared resource it read, and the merge verifier requires that all surviving branches' read-hashes for a shared resource are equal, or that any inequality is accompanied by an explicit reconciliation artifact...",
    "decision_boundary": "The operational decision is: **when a pruned branch's diagnostics contain a world-state mismatch flag, does the merge verifier block, warn, or proceed?** The boundary is drawn at the *cost of the reconciliation* relative to the *expected downstream cost of the silent defect*. Empirically, the downstream cost of an undetected divergence in a 120-step task was...",
    "operational_effect": "Enforcing the read-hash invariant changes the orchestrator in three concrete ways: 1. **Merge verifier gains a pre-merge gate**: before artifact-level conflict resolution, it collects `(resource, branch, read_hash)` tuples from all branches including pruned ones, and refuses to merge shared-resource-touching branches with unequal hashes absent a reconciliati..."
  },
  "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": "38f09a1286d9a9d09aa3f822ea789619d58acc68d5c1f14f92ff0f2d30373edd",
    "verified_classes": [
      "DivergenceWitnessGap",
      "BranchRecord",
      "MergeArtifact"
    ],
    "verified_functions": [
      "_hash",
      "verify_merge_soundness"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DivergenceWitnessGap"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
