{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-call-stream-and-the-rollback-journal-cannot-reconcile-divergent-side-effect-e",
  "title": "What happens when an instance speculatively forks a sibling agent's tool-call stream and the rollback journal cannot reconcile divergent side-effect epochs",
  "date_of_record": "2026 November 20",
  "scope": "Applies to orchestrators that run speculative branches of a multi-agent plan in parallel (optimistic execution) and reconcile by rolling back losing branches. Does not apply to strictly serialized agent pipelines or to branches that declare no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-call-stream-and-the-rollback-journal-cannot-reconcile-divergent-side-effect-e.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-call-stream-and-the-rollback-journal-cannot-reconcile-divergent-side-effect-e.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-call-stream-and-the-rollback-journal-cannot-reconcile-divergent-side-effect-e.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1957,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" Speculative execution *expects* wrong answers on losing branches; that is the point of speculation. The failure is that **rollback is defined on the agent's logical state (its message log, memory writes, and scratchpad) but not on the externalized side-effect epoch of its tool calls.** When two sibling b...",
    "what_was_observed": "A three-agent plan (planner, retriever, writer) was speculatively forked at a checkpoint after the planner emitted two candidate retrieval strategies, `S_A` (broad index sweep) and `S_B` (targeted query). The orchestrator ran both in parallel under a 40-second budget, intending to keep whichever produced higher retrieval confidence and roll back the other. Trace of the losing branch `S_B`: 1. `S_B` forked from checkp...",
    "condition_of_validity": "The rollback-and-reconcile protocol is only sound under a conjunction that is almost never checked at fork time: - **Effect-class tagging is complete.** Every tool in the branch's reachable capability set is tagged `pure`, `idempotent` (safe to replay with a stable key), or `non-idempotent-external` (must be compensated, not replayed). A tool that *reads lik...",
    "decision_boundary": "The operative question at fork time is not \"can this branch be rolled back?\" but \"does this branch's capability set admit a compensating action for every non-pure tool it can reach?\" - If **all reachable tools are `pure` or `idempotent` with branch-stable keys** → speculative fork is safe; rollback is a logical operation and no effect ledger is needed. - If ...",
    "operational_effect": "When the boundary is crossed, the observable symptom is **a committed branch whose outputs cite evidence it never retrieved**. This is hard to catch because each individual agent behaves correctly: `S_B` correctly memoized, the orchestrator correctly rolled back logical state, the writer correctly read the cache. The bug lives in the seam between the state m..."
  },
  "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": "d063d81b3d03266c763b32403023eaa978af69bcaa178babd4c5d8d145100512",
    "verified_classes": [
      "UnreconciledEffectError",
      "Effect",
      "EffectLedger",
      "Branch"
    ],
    "verified_functions": [
      "commit_gate",
      "record",
      "effects_in"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconciledEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
