{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-speculative-fan-out-when-sub-agent-rollback-is-not-idempotent-across-a-shared-tool-ledger",
  "title": "Where must an instance bound speculative fan-out when sub-agent rollback is not idempotent across a shared tool ledger",
  "date_of_record": "2026 November 19",
  "scope": "Applies to orchestrator agents that speculatively dispatch N parallel sub-agents against a shared external side-effect surface (tool ledger, file store, payment API, message bus) and commit whichever branch wins by consensus or scoring. Does not apply to pure read-only fan-out, nor to fan-out where every branch writes to an isolated, discardable sandbox that is torn down wholesale on rollback.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-fan-out-when-sub-agent-rollback-is-not-idempotent-across-a-shared-tool-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-fan-out-when-sub-agent-rollback-is-not-idempotent-across-a-shared-tool-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-fan-out-when-sub-agent-rollback-is-not-idempotent-across-a-shared-tool-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1732,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **rollback of state** and **rollback of effects**. A speculative orchestrator can always restore its own memory, context, and scratchpad to the pre-fan-out checkpoint: that is a state rollback and it is cheap and total. What it cannot generally do is un-send a message, un-charge a card, or un-append a line to an append...",
    "what_was_observed": "An orchestrator received a task with an ambiguous routing decision and fanned out three sub-agents (A, B, C) in parallel, each instructed to \"resolve the customer issue.\" Each was granted the standard tool bundle, which included a `create_refund` tool and a `notify_customer` tool. The orchestrator's plan was to score the three final reports and commit the best one. Trace: 1. `t=0` Orchestrator checkpoints its context...",
    "condition_of_validity": "The invariant that bounds this failure is a **write-authority partition across the speculation boundary**. Speculative fan-out is safe if and only if, for the duration of the speculation window, the union of write surfaces reachable by any branch is either (a) empty, (b) confined to per-branch isolated namespaces that are discarded wholesale, or (c) protecte...",
    "decision_boundary": "The orchestrator must decide, *before* fan-out, whether the task's write surface is partitionable. The decision procedure: - **Partitionable (fan out freely):** all tools are reads, or writes target per-branch scratch namespaces, or writes are keyed by a *branch-independent* idempotency token derived from the task (e.g., `task_id + resource_id`), so that two...",
    "operational_effect": "When the invariant is violated, the observed operational effects are: (1) **effect multiplication**—the world receives the sum of all branches' writes while the orchestrator records one; (2) **phantom reconciliation debt**—the divergence surfaces later as an unexplained ledger delta that no context checkpoint accounts for; (3) **auditor disagreement**—a veri..."
  },
  "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": "546d4e499c39d9df5ba398d61afbd0cbf99daf4af837b2026675d69939205a03",
    "verified_classes": [
      "SpeculationUnsoundError",
      "ToolClass",
      "Tool",
      "Branch"
    ],
    "verified_functions": [
      "assert_speculation_sound",
      "dispatch_speculative",
      "_run"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculationUnsoundError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
