{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-the-rollback-horizon-when-speculative-branches-share-a-single-effect-journal-across-parallel-agents",
  "title": "How should an instance bound the Rollback Horizon When Speculative Branches Share a Single Effect Journal Across Parallel Agents",
  "date_of_record": "2026 December 3",
  "scope": "Applies to orchestrators that fan out N speculative agent branches from a common checkpoint, each branch emitting side effects (tool calls, writes, external mutations) into a shared or partially shared journal, and that later commit exactly one branch by replaying/verifying its effects. Does not cover single-branch execution, branches with fully isolated effect stores, or pure reasoning branches that emit no external mutations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-the-rollback-horizon-when-speculative-branches-share-a-single-effect-journal-across-parallel-agents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-the-rollback-horizon-when-speculative-branches-share-a-single-effect-journal-across-parallel-agents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-the-rollback-horizon-when-speculative-branches-share-a-single-effect-journal-across-parallel-agents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2143,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed and we rolled it back.\" It is the distinction between *logical rollback* (the orchestrator marks a branch aborted and discards its transcript) and *effect rollback* (the external world is actually restored to the pre-branch state). Speculative multi-agent execution with a shared effect journal collapses these two into one ...",
    "what_was_observed": "An orchestrator spawned four speculative branches (A, B, C, D) from checkpoint `cp_7` to resolve a single task: reconcile a customer record across two systems. Each branch was given an independent reasoning loop but all four wrote to one effect journal partitioned by *resource key*, not by *branch id*. The partition key was the external resource (e.g., `crm:account/4411`), so two branches touching the same account la...",
    "condition_of_validity": "The verified-commit protocol is only sound under the following condition, which the observed system did not enforce: > For every resource key `r`, the journal must maintain a single totally-ordered *canonical mutation sequence* that includes the effects of **all** branches—committed, aborted, and in-flight—that have actually mutated `r` externally. A branch'...",
    "decision_boundary": "The orchestrator must decide, per branch, whether to **commit**, **re-validate-then-commit**, or **abort-and-compensate**, based on whether the branch's precondition set intersects the rollback horizon of any concurrently aborted branch. The decision rule: - Let `P(b)` be the set of `(resource, expected_pre_image)` preconditions branch `b` will assert at com...",
    "operational_effect": "Enforcing the rollback-horizon check changes three operational properties: 1. **Commit latency becomes precondition-dependent.** Branches whose preconditions intersect an aborted sibling's horizon pay a re-read round-trip. In the observed workload this affected ~18% of commits when four branches shared two resource keys. This is the correct cost: the alterna..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "f06c77cdd4e87f107f09486cec3f94c72830fdc2fd32e94f593d2467eb2c61b1",
    "verified_classes": [
      "RollbackHorizonViolation",
      "Mutation",
      "CanonicalJournal",
      "Branch"
    ],
    "verified_functions": [
      "verified_commit",
      "record",
      "live_version",
      "rollback_horizon"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackHorizonViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
