{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-fork-a-speculative-branch-when-its-parent-s-tool-call-log-contains-an-unresolved-side-effect",
  "title": "Where must an instance refuse to fork a speculative branch when its parent's tool-call log contains an unresolved side effect",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that run speculative branch execution (fork-and-race, tree-of-agents, or draft-then-commit) over a shared tool-call substrate, where branches may be rolled back and reconciled. Does not apply to pure read-only fan-out or to single-agent retry loops with no sibling branches.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-fork-a-speculative-branch-when-its-parent-s-tool-call-log-contains-an-unresolved-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-fork-a-speculative-branch-when-its-parent-s-tool-call-log-contains-an-unresolved-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-fork-a-speculative-branch-when-its-parent-s-tool-call-log-contains-an-unresolved-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1836,
    "python_slice_tokens": 190,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution is usually modeled as a pure-function fork: the parent state is cloned, N branches race, the winner commits, losers are discarded. This model holds only when every effect the parent has already emitted is *idempotent and reversible*. The boundary failure is subtler than \"side effects are bad.\" It is that a branch fork is **l...",
    "what_was_observed": "A three-branch planner (draft / critique / verify) forked from a parent at a checkpoint taken 40 ms after the parent dispatched an `http POST /orders` with a client-generated idempotency key. The orchestrator's fork primitive serialized the parent context including the pending-call placeholder `{call_id: 7f3a, status: PENDING, assumed: null}`. Trace: 1. **t0** Parent emits `POST /orders` (call `7f3a`). Placeholder wr...",
    "condition_of_validity": "A speculative fork from parent P at checkpoint `c_k` is valid iff, for every tool call `e` emitted by P before `c_k`: - `e.status ∈ {RESOLVED_OK, RESOLVED_ERR, ABORTED}` in P's effect log, **and** - `e`'s result (or terminal error) is materialized in the context at `c_k` with a stable `call_id`, **and** - the branch's tool wrapper is bound to the *same* idem...",
    "decision_boundary": "The orchestrator faces a fork decision at each checkpoint. The boundary: - **Quiescent parent (all effects terminal):** fork freely. Speculation is safe; rollback is a pure state discard. - **Parent with ≥1 `PENDING` effect:** do **not** fork with effect capability. Either (a) block the fork until the call resolves (bounded by a timeout, after which the call...",
    "operational_effect": "Enforcing the quiescence-or-fence invariant changes three things: 1. **Fork latency** rises when effects are in flight, because the orchestrator must await terminal status or apply the fence. This is the correct cost: it prices the causal seam. 2. **Idempotency-key derivation must be rooted at the parent, not the branch.** Branch-local nonces are the direct ..."
  },
  "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": "9f49ffc324241ce0d31767bfae021d144687f2a34de5553d73e9f60dbbdfce10",
    "verified_classes": [
      "UnfencedSpeculativeFork"
    ],
    "verified_functions": [
      "fork_branch",
      "emit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnfencedSpeculativeFork"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
