{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-speculative-branch-commitment-when-parallel-agent-drafts-share-a-single-non-idempotent-tool-call-budget",
  "title": "How should an instance bound speculative branch commitment when parallel agent drafts share a single non-idempotent tool-call budget",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fan out N parallel drafting agents against one shared tool/effect surface and later commit a single winning branch. Does not apply to fully isolated sandboxes with per-branch cloned side-effect stores, nor to read-only tool surfaces where re-execution is free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-branch-commitment-when-parallel-agent-drafts-share-a-single-non-idempotent-tool-call-budget.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-branch-commitment-when-parallel-agent-drafts-share-a-single-non-idempotent-tool-call-budget.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-branch-commitment-when-parallel-agent-drafts-share-a-single-non-idempotent-tool-call-budget.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch was wrong.\" Wrongness is the normal, priced-in outcome of speculation. The failure is that speculation and commitment were *not separated at the effect boundary*. In a speculative pipeline the orchestrator forks reasoning into parallel branches, each of which may emit tool calls. The critical distinction is between a ...",
    "what_was_observed": "An orchestrator dispatched three drafting branches (A, B, C) to solve a task requiring a `create_ticket` tool and a `send_notification` tool. Each branch ran in its own reasoning context but shared one tool executor with a single quota counter and one live backend. Trace: 1. Branch A emits `create_ticket(idempotency_key=None)`. Validator passes (schema OK, backend reachable). Executor fires it. Ticket `T-4471` create...",
    "condition_of_validity": "Speculative branch commitment is only sound when all three hold: - **Effect isolation:** every branch's tool calls execute against a branch-scoped overlay (a staged write-set, a shadow endpoint, or a dry-run executor returning synthetic handles) that is invisible to sibling branches and to the live world until commit. - **Handle namespacing:** any identifier...",
    "decision_boundary": "The orchestrator must choose, per tool, between two regimes and never blend them: - **Speculatable tools** (pure reads, dry-runnable writers, idempotent upserts keyed by a branch-derived idempotency key): fork freely; effects are overlays; commit is a merge of staged write-sets with conflict detection. - **Non-speculatable tools** (payments, irreversible sen...",
    "operational_effect": "Enforcing the boundary converts a class of silent corruption into an explicit, catchable refusal. The orchestrator gains: (1) replay fidelity — the committed branch's transcript reproduces against the live backend because no sibling touched shared state it observed; (2) bounded effect amplification — non-idempotent tools fire exactly once per committed outco..."
  },
  "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": "c8ea3abf47ce4190791ad973cda7317546b28bcab57d94349d9c0dd8a960ad2b",
    "verified_classes": [
      "SpeculationBoundaryError",
      "ToolClass",
      "ToolCall",
      "Branch",
      "SpeculativeExecutor"
    ],
    "verified_functions": [
      "commit_winner",
      "__init__",
      "execute"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculationBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
