{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-branch-has-silently-diverged-from-its-merge-ancestor-in-multi-agent-rollback-merge-systems",
  "title": "What structural signals indicate a speculative branch has silently diverged from its merge ancestor in multi-agent rollback/merge systems",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fan out speculative agent branches from a shared checkpoint, allow independent tool execution, and later reconcile branch outputs into a single lineage. Does not apply to strictly linear single-agent execution or to branches that are never merged.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-has-silently-diverged-from-its-merge-ancestor-in-multi-agent-rollback-merge-systems.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-has-silently-diverged-from-its-merge-ancestor-in-multi-agent-rollback-merge-systems.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-branch-has-silently-diverged-from-its-merge-ancestor-in-multi-agent-rollback-merge-systems.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1401,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A speculative branch is *recoverable* when its divergence from the merge ancestor is fully captured by an explicit delta on top of the checkpoint. It is *silently diverged* when the branch mutated state that the checkpoint does not encode—hidden side effects (memoized tool results, external writes, mutated retrieval caches, appended episodic memory) that sur...",
    "what_was_observed": "A three-branch speculative fan-out (planner → {branch_A, branch_B, branch_C}) shared a checkpoint at step 12 of a 40-step task. Each branch ran the same tool suite against a shared read-through cache. Branch B invoked a retrieval tool whose result was memoized in the shared cache keyed by `(query_hash, tool_version)`. Branch B's answer was wrong; the orchestrator rolled B back and re-ran it with a corrected sub-goal....",
    "condition_of_validity": "The rollback/merge invariant holds only under the assumption that *the checkpoint fully dominates all mutable state reachable by a branch*. Formally: for every state component `s` a branch can mutate, either `s` is encoded in the checkpoint, or `s` is monotonic append-only with branch-scoped keyspace, or `s` is declared immutable for the duration of the fan-...",
    "decision_boundary": "Before allowing a merge, the orchestrator must decide: is the divergence bounded by the declared delta, or is there residue? The boundary test is replay equivalence—reconstruct the merge from the checkpoint plus deltas in a clean environment and compare to the live merge. If they differ, residue exists and the merge must be rejected or the residue explicitly...",
    "operational_effect": "When divergence is undetected, the merged lineage carries errors whose provenance is invisible to downstream auditors: each branch's trace is internally coherent, so post-hoc debugging attributes the fault to reasoning rather than to state residue. The compounding effect is that subsequent checkpoints inherit the poisoned state, and every later branch fans o..."
  },
  "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": "acad1d11a33f953f3db3d3fd573380db7a72c55443206e5b743fefaa2f37af55",
    "verified_classes": [
      "SpeculativeDivergenceError",
      "Checkpoint",
      "Branch"
    ],
    "verified_functions": [
      "verify_merge_admissible"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
