{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-speculative-branch-execution-as-non-committable-when-a-rollback-safe-side-effect-has-already-been-observe",
  "title": "Under what conditions must an instance treat speculative branch execution as non-committable when a rollback-safe side effect has already been observed by a downstream agent",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent orchestrators that fork an agent's execution into speculative branches (optimistic concurrency) and allow those branches to invoke external tools whose effects are *believed* rollback-safe. Does not apply to pure read-only speculation, nor to single-agent retry loops without branch fan-out.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-speculative-branch-execution-as-non-committable-when-a-rollback-safe-side-effect-has-already-been-observe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-speculative-branch-execution-as-non-committable-when-a-rollback-safe-side-effect-has-already-been-observe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-speculative-branch-execution-as-non-committable-when-a-rollback-safe-side-effect-has-already-been-observe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1620,
    "python_slice_tokens": 221,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"a side effect happened that we couldn't undo.\" It is subtler: a branch performed a side effect that *is* individually reversible, but the reversal is **not globally atomic** because a peer agent observed the intermediate state and committed a decision against it. The orchestrator's optimistic-concurrency model classifies the branch a...",
    "what_was_observed": "A three-agent pipeline: `planner` forks two speculative branches `A` and `B` to reserve inventory via a `reserve_stock` tool. The tool is explicitly documented as compensating (`release_stock` on abort), so the scheduler tags both branches `rollback_safe=True` and runs them under optimistic concurrency. Branch `A` wins the local version check on the shared `order` record and emits a `reservation_confirmed` event to t...",
    "condition_of_validity": "A branch is safely abortable **iff** all three hold: 1. **Effect locality** — every side effect the branch performed is confined to resources the branch holds an exclusive lease on, OR the effect's compensation is idempotent *and* the effect was never published to a shared bus/queue/table that other agents read. 2. **No observational leak** — no committed ag...",
    "decision_boundary": "The precise boundary: **the moment a branch's effect crosses a fan-out boundary (event bus, shared table read by peers, message queue) before the branch's version check resolves, the branch becomes non-abortable.** Compensation of the originating resource is necessary but insufficient. The orchestrator must either: - **Defer publish** — buffer outbound event...",
    "operational_effect": "An orchestrator that conflates tool-rollback-safety with branch-abortability will silently corrupt downstream agent state under any fan-out topology. The corruption is *not* detected by the originating branch's version check (which correctly failed), nor by the tool's compensation (which correctly succeeded), nor by the warehouse count (which is correct). It..."
  },
  "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": "20d05476f33ba672fb9f90675cbc864c62bef172c1efa2c3e39204ccb64eda9b",
    "verified_classes": [
      "NonAbortableBranchError",
      "Branch"
    ],
    "verified_functions": [
      "abort_branch",
      "record_observation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "NonAbortableBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
