{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-rollback-fan-out-when-speculative-agent-branches-share-a-mutable-external-side-effect-log",
  "title": "How should an instance bound rollback fan-out when speculative agent branches share a mutable external side-effect log",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any orchestrator that speculatively forks N parallel agent branches against a shared, externally-observable side-effect channel (a job queue, a payments API, a file store, a message bus) and relies on rollback to reconcile losing branches. Does not apply to branches that are fully sandboxed with no external writes, nor to pure read-only fan-out.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-rollback-fan-out-when-speculative-agent-branches-share-a-mutable-external-side-effect-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-rollback-fan-out-when-speculative-agent-branches-share-a-mutable-external-side-effect-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-rollback-fan-out-when-speculative-agent-branches-share-a-mutable-external-side-effect-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *speculation over reasoning* and *speculation over effects*. An orchestrator can cheaply fork agent branches that only mutate in-context state — scratchpads, plan trees, candidate tool-call arguments — because rollback is a pointer swap. The boundary condition that breaks systems is when speculative branches are permit...",
    "what_was_observed": "A planning orchestrator forked four branches of a customer-refund agent against a shared payments ledger. Each branch was given the same task (\"resolve ticket #4471\") and a distinct `branch_id`. The orchestrator's speculative-commit policy was: branches may call `issue_refund` freely; the branch whose plan scores highest at reconciliation wins; losers are rolled back by calling `void_refund(refund_id)`. The failure t...",
    "condition_of_validity": "Compensating rollback is a valid reconciliation strategy only when all of the following hold simultaneously: - The effect channel exposes a *pre-commit* phase (reserve, hold, or draft) that is externally invisible and cheaply abandonable. - Every effect is tagged with a branch token that is written *atomically with the effect*, not by a separate wrapper call...",
    "decision_boundary": "The boundary is not \"how many branches may I fork\" but \"at what point does a branch's effect become the reconciler's problem rather than the branch's.\" Concretely, an effect is safe to speculate if and only if the reconciler can answer, from the external channel alone and within the reconciliation deadline, the question: *which branch tokens have committed e...",
    "operational_effect": "Systems that respect the boundary see speculative fan-out become latency-bound rather than correctness-bound: the winner's commit is serialized and observable, losers abandon reservations, and the reconciler's view of the world is derived from the channel of record. Systems that ignore it see the failure modes above — silent double-effects, void/settle races..."
  },
  "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": "3d2682bd9f9b144a9b6173ddb23adb8b4b64801e700b60a4bd26c4757c06e694",
    "verified_classes": [
      "SpeculativeCommitViolation",
      "Effect",
      "EffectChannel"
    ],
    "verified_functions": [
      "reconcile",
      "commit",
      "settle",
      "void"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpeculativeCommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
