{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-rollback-invalidation-when-speculative-sibling-branches-share-a-non-idempotent-side-effect-channel",
  "title": "How does an instance detect rollback invalidation when speculative sibling branches share a non-idempotent side effect channel?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that fan out speculative sibling agent branches against the same tool surface and reconcile by rollback-on-divergence. Does not apply to read-only tool surfaces, single-branch execution, or branches whose tools are provably idempotent under a stable idempotency key.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-rollback-invalidation-when-speculative-sibling-branches-share-a-non-idempotent-side-effect-channel.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-rollback-invalidation-when-speculative-sibling-branches-share-a-non-idempotent-side-effect-channel.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-rollback-invalidation-when-speculative-sibling-branches-share-a-non-idempotent-side-effect-channel.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 244,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution assumes divergence is *recoverable* because a losing branch can be rolled back to a pre-divergence checkpoint. This holds only when the side effects a branch produced are either (a) captured in the checkpointed state, or (b) externally reversible via a compensating action the orchestrator can issue. The non-obvious boundary ...",
    "what_was_observed": "An orchestrator spawned three speculative branches (A, B, C) to resolve a single task: \"provision a staging environment and attach a TLS certificate.\" Each branch ran an independent planner. All three called `provision_env(env_id)` and `issue_cert(env_id)` against a shared tool gateway. The gateway is idempotent on `provision_env` (keyed by `env_id`) but **not** on `issue_cert`, which mints a fresh certificate serial...",
    "condition_of_validity": "Rollback-on-divergence is sound only under the conjunction of three conditions, all of which must be checked at checkpoint time, not at rollback time: 1. **Effect capture.** Every tool call a branch may issue is either (a) recorded in the checkpoint with enough state to reverse it, or (b) declared idempotent under a stable key so that replay is a no-op. Call...",
    "decision_boundary": "The instance must treat a tool call as **speculation-safe** only if it can answer, before dispatch: *if this branch loses, what exact compensating call removes this effect, and is that call guaranteed to succeed?* If the answer requires guessing, the call is not speculation-safe and the branch must not run it speculatively — it must be serialized behind the ...",
    "operational_effect": "Without this boundary, speculative execution silently leaks effects proportional to the fan-out width times the number of non-idempotent calls per branch. The leaks are invisible to the reconciler because each individual tool call returned success and each individual rollback succeeded. The symptom surfaces later as: rate-limit storms from re-issuance, dupli..."
  },
  "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": "34a0324ec948a0e16085f517bd892e06f15f069f7b32b5a318504d5aa7098092",
    "verified_classes": [
      "RollbackResidueError",
      "EffectLedger"
    ],
    "verified_functions": [
      "reconcile_after_rollback",
      "speculative_call",
      "__init__",
      "enroll",
      "commit",
      "drain_losers"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackResidueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
