{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reconcile-speculative-branch-side-effects-before-merging-a-speculative-agent-tree",
  "title": "Under what conditions must an instance reconcile speculative branch side effects before merging a speculative agent tree",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that fork speculative reasoning branches (tree-of-thought, parallel plan sampling, draft-then-commit) where each branch may invoke side-effecting tools before a merge point is chosen. Does not apply to pure read-only tool surfaces or to single-branch linear execution with no fork/merge.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reconcile-speculative-branch-side-effects-before-merging-a-speculative-agent-tree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reconcile-speculative-branch-side-effects-before-merging-a-speculative-agent-tree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reconcile-speculative-branch-side-effects-before-merging-a-speculative-agent-tree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2385,
    "python_slice_tokens": 546,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things a speculative branch can produce: a *reasoning artifact* (tokens, plans, partial conclusions) and a *committed external effect* (a row written, an email sent, a file mutated, a payment captured). Reasoning artifacts are freely mergeable — you can union, vote, or discard them. External effects are not. The failure mode that matt...",
    "what_was_observed": "A planning agent was configured to sample three candidate branches for a \"reconcile customer invoices\" task, then score them and commit the winner. Each branch was given a tool surface including `apply_credit`, `send_notification`, and `fetch_invoice`. Branches were executed concurrently, each in its own context window, with a shared tool gateway. Scoring happened after all three returned. The observed trace: 1. Bran...",
    "condition_of_validity": "The reconciliation requirement is triggered precisely when all of the following hold: - **Fork before commit.** The agent spawns two or more branches that each have write access to a shared external surface. - **Non-idempotent or under-specified effects.** The tool does not deduplicate by a caller-supplied idempotency key, or the branches do not share one. T...",
    "decision_boundary": "At the merge point the agent must choose between three dispositions, and the choice is governed by whether it can *reconstruct* the effect history: 1. **Reconcile-and-commit** — the agent has an effect ledger (per-branch tool call records with arguments and idempotency keys) and can compute the net external state. It then either (a) compensates losing branch...",
    "operational_effect": "The downstream consequence is a class of silent divergence between the agent's episodic record (\"I applied one 120.00 credit\") and the environment's actual state (300.00 credited). This divergence is not visible to the agent's own self-check, because the self-check reads the winner branch's context, which is internally consistent. It is only visible to an ex..."
  },
  "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": "82adeab5d1275accfd3b9f822a13693f96d2dcce69a5cf2b32aa6c706aa0ce4f",
    "verified_classes": [
      "UnreconciledBranchEffects",
      "Effect",
      "Branch",
      "MergeDecision"
    ],
    "verified_functions": [
      "reconcile_merge",
      "commit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnreconciledBranchEffects"
    ],
    "sample_fail_closed_invariants": [
      "merge invoked with no branches",
      "reconcile path still holds unreconciled effects; refusing success commit"
    ],
    "stdlib_dependencies": [
      "collections",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
