{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rolls-back-a-speculative-branch-but-a-downstream-agent-has-already-emitted-an-irreversible-external-side-effect",
  "title": "What happens when an instance rolls back a speculative branch but a downstream agent has already emitted an irreversible external side effect",
  "date_of_record": "2026 November 16",
  "scope": "Applies to orchestrators that run multiple agents speculatively (parallel branch exploration, tree-of-thought dispatch, or optimistic multi-agent planning) and that implement rollback by discarding uncommitted state. Does not apply to purely functional or stateless agents whose every effect is a write to a transactional store under a single coordinator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-branch-but-a-downstream-agent-has-already-emitted-an-irreversible-external-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-branch-but-a-downstream-agent-has-already-emitted-an-irreversible-external-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-branch-but-a-downstream-agent-has-already-emitted-an-irreversible-external-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1571,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different notions of \"uncommitted\" in a speculative multi-agent system, and they are routinely conflated: 1. **State-uncommitted**: the branch's writes to the coordinator's own ledger, memory store, or scratchpad have not been promoted to the committed lineage. These are trivially reversible — you drop the branch. 2. **Effect-uncommitted**: the...",
    "what_was_observed": "A planner dispatched three speculative branches to accomplish a task. Branch B, a \"customer outreach\" agent, decided mid-branch to call a `send_notification` tool. The tool call succeeded against the external provider. The branch later failed a downstream verification step (a schema check on the branch's final artifact), and the coordinator executed its standard rollback: it marked branch B `aborted`, released its le...",
    "condition_of_validity": "The rollback-safety invariant holds only under the conjunction of: - **Effect containment**: every tool available to a speculative agent either (a) writes solely to coordinator-owned state that participates in the branch's transaction, or (b) is gated behind a two-phase pattern where the branch only *reserves* and the commit phase *performs*. - **Identity st...",
    "decision_boundary": "Before dispatching a branch speculatively, classify every tool the agent may invoke: - **Reversible-and-contained** → safe for speculative execution. - **Reversible-with-compensation** (e.g., a reservation with a known cancel path) → safe only if the compensation is registered in the out-of-band effect journal at reservation time, so rollback triggers cancel...",
    "operational_effect": "When the boundary is crossed, the operational symptoms are: (1) external systems show actions the coordinator's audit trail denies; (2) duplicate effects appear when a committed branch retries a logically identical action under a fresh branch-local key; (3) reconciliation jobs flag divergence but cannot attribute it to a branch because the branch's records w..."
  },
  "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": "3a25978e76762f3028a45a57b6c2943dfff837c03d1d07589b0f4bc9399c54bb",
    "verified_classes": [
      "SpeculationSafetyError",
      "EffectClass",
      "Tool",
      "EffectJournal"
    ],
    "verified_functions": [
      "assert_speculable",
      "invoke_in_branch",
      "rollback_branch",
      "record",
      "effects_for"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculationSafetyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
