{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-a-speculative-branch-has-silently-forked-the-shared-episodic-log-during-multi-agent-rollback-reconciliation",
  "title": "How does an instance detect when a speculative branch has silently forked the shared episodic log during multi-agent rollback reconciliation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent teams executing speculative (branch-and-checkpoint) plans where a coordinator clones a shared episodic log, dispatches fork agents, and later reconciles branches by merging or rolling back. Does not apply to single-agent linear execution or to stateless fan-out where no shared mutable episodic state exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-speculative-branch-has-silently-forked-the-shared-episodic-log-during-multi-agent-rollback-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-speculative-branch-has-silently-forked-the-shared-episodic-log-during-multi-agent-rollback-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-speculative-branch-has-silently-forked-the-shared-episodic-log-during-multi-agent-rollback-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1718,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution across an agent team is not \"git for thoughts.\" The critical asymmetry is that a *branch* of agent work is not a pure function of its inputs: each fork agent mutates its own context window, appends tool-call observations, and distills episodic memory into semantic claims. When the coordinator reconciles, it must distinguish two things t...",
    "what_was_observed": "A three-agent team (coordinator `K`, forks `A` and `B`) runs a speculative plan over a shared episodic store `E`. `K` checkpoints `E` at sequence `s0`, then forks: `A` gets a copy-on-write handle scoped to `s0`, `B` gets the same. Each fork runs 40–60 tool calls. `A`'s hypothesis is falsified at step 51; `K` issues rollback of `A` to `s0`. `B` commits. The rollback succeeds at the log layer: `A`'s 51 records are tomb...",
    "condition_of_validity": "The rollback is *sound* only under a condition the coordinator rarely checks explicitly: > For every branch `b` rolled back at checkpoint `c`, the set of records written by `b` after `c` must be disjoint from the derivation closure of every branch committed after `c`. This holds trivially when all shared state is branched (copy-on-write on the log, the seman...",
    "decision_boundary": "The coordinator must decide, at reconciliation, between three actions. The boundary is drawn on the *fraction of committed terminal assertions that are forked-provenance*: - **Zero forked-provenance on terminal assertions, non-zero on intermediates:** proceed. Log a `provenance_warning`; the intermediates are re-derivable and the terminal plan is sound. - **...",
    "operational_effect": "The practical consequence is that speculative multi-agent execution must treat the semantic/distillation layer as a first-class branchable store, or it must freeze it during speculation and distill only at commit. Teams that branch the log but not the semantic store will, at some non-zero rate proportional to fork duration and retrieval frequency, commit pla..."
  },
  "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": "7a6424d50295d43b9bc181358b7c54ef1bf6c5b05d3d2786caa52c9af88a659a",
    "verified_classes": [
      "ForkedProvenanceError",
      "Record",
      "EpisodicStore"
    ],
    "verified_functions": [
      "_closure",
      "reconcile_commit",
      "add",
      "tombstone_branch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ForkedProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
