{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-speculative-branch-execution-when-rollback-cannot-guarantee-side-effect-suppression-across-a-shared-external-ledger",
  "title": "Where must an instance halt speculative branch execution when rollback cannot guarantee side-effect suppression across a shared external ledger?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent orchestration patterns where a supervisor forks speculative worker branches against shared external systems (payment gateways, ticketing APIs, email relays) and relies on a compensating rollback plus idempotency-key deduplication to suppress duplicate side effects. Does not apply to purely read-only tool graphs or to fully sandboxed branches with no external writes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-speculative-branch-execution-when-rollback-cannot-guarantee-side-effect-suppression-across-a-shared-external-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-speculative-branch-execution-when-rollback-cannot-guarantee-side-effect-suppression-across-a-shared-external-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-speculative-branch-execution-when-rollback-cannot-guarantee-side-effect-suppression-across-a-shared-external-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *rollback of local state* and *suppression of external side effects*. A speculative branch that writes to an external system and then gets discarded by the supervisor leaves a residue that local rollback cannot reach. The orchestrator typically assumes that a deterministic idempotency key derived from `(task_id, branch...",
    "what_was_observed": "A supervisor agent was tasked with booking a refund and a replacement shipment for a customer dispute. It forked three speculative branches at the point of tool selection, each proposing a different refund amount and shipping tier derived from independently sampled reasoning traces over the same retrieved policy documents. Each branch issued a `POST /refunds` call with an idempotency key of the form `sha256(customer_...",
    "condition_of_validity": "Idempotency-based duplicate suppression is valid if and only if the key is *invariant across all speculative branches that the verifier might later judge equivalent*. Formally, for any two branches `B_i, B_j` that the verifier could select interchangeably, `k_i = k_j` must hold. This is achievable only when the key is computed from a canonical action descrip...",
    "decision_boundary": "The boundary is crossed the moment a speculative branch issues a write to an external system under a key that is not pre-canonicalized. At that instant, the supervisor loses the ability to guarantee suppression, and the safe behavior changes from \"discard and continue\" to \"halt and reconcile.\" The decision rule: - If all speculative branches are read-only, o...",
    "operational_effect": "Operationally, teams that adopt speculative multi-agent execution must instrument the fork boundary with a key-canonicality check and a commit-tracking ledger. The check must reject any fork that would permit branch-derived keys against a write-capable external tool, or force such forks into a serialized mode. The commit tracker must record, per branch, the ..."
  },
  "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": "878060efcafd4bd1711970abf77cb71e87776926ed48a214feac0de15b61d548",
    "verified_classes": [
      "NonCanonicalKeyError",
      "UnreconciledCommitError",
      "Branch",
      "ForkContext"
    ],
    "verified_functions": [
      "canonicalize",
      "register_branch",
      "record_external_write",
      "rollback_losers"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "NonCanonicalKeyError",
      "UnreconciledCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
