{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-divergence-has-survived-a-federated-merge",
  "title": "What structural signals indicate speculative branch divergence has survived a federated merge",
  "date_of_record": "2026 November 26",
  "scope": "Applies to federated agent pipelines where a coordinator forks N speculative branches (parallel tool-calling or reasoning trajectories) across heterogeneous peer agents and then merges them into a single committed continuation. Does not apply to single-agent retry/reflexion loops, nor to fan-out where only one branch is ever committed (best-of-N with no merge).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-has-survived-a-federated-merge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-has-survived-a-federated-merge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-has-survived-a-federated-merge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1591,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"a bad branch won.\" It is that a *merged* state can be internally inconsistent even when every individual branch was locally valid and every branch's own checks passed. Speculative branching assumes branches are independent and that merging is a set operation over their outputs. In a federated pipeline they are neither: branch...",
    "what_was_observed": "A coordinator forked four branches over a CRM-mutation task. Each branch was assigned a disjoint slice of records but all four read and wrote a shared `account_status` field through the same peer tool endpoint. Branch A (record 7) and Branch C (record 12) both resolved a duplicate account to the same canonical ID and both emitted an `account_status=active` write, but A read the pre-mutation value `pending` and C read...",
    "condition_of_validity": "The invariant that must hold for speculative merge to be sound: > For any two branches i, j merged into the same committed state, if branch j's read set intersects branch i's write set (transitively, through any peer agent or shared store), then the merge MUST order j after i and MUST invalidate j's pre-read deltas that depended on i's write. This holds only...",
    "decision_boundary": "At the merge gate, decide **commit vs. re-fork** on a single structural test, not on branch agreement: 1. Build the union read/write set across all branches from peer-side effect logs, not from branch self-reports. 2. Compute the read-after-write (RAW) and write-after-read (WAR) edge set between branches. 3. If the edge set is empty, or every edge is already...",
    "operational_effect": "Pipelines that gate on branch agreement alone accumulate *causally laundered* state: each merge looks clean, and drift only surfaces when a later task re-reads the laundered field and derives a conclusion from an observation that was never independently made. The observable symptom is not a crash but a slow divergence between the agent's memory of *why* a va..."
  },
  "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": "2183861fea4fdea3a7f401073da21e34230e4b6ec857d70112d3c9a5af2d4092",
    "verified_classes": [
      "UnreconstructibleMergeError",
      "Branch",
      "MergePlan"
    ],
    "verified_functions": [
      "detect_laundered_merge",
      "commit_merge",
      "_apply"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconstructibleMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
