{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abandon-a-speculative-branch-whose-side-effects-were-already-observed-by-a-peer-before-rollback-completed",
  "title": "Under what conditions must an instance abandon a speculative branch whose side effects were already observed by a peer before rollback completed",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fan out speculative agent branches (parallel drafts, redundant tool-call plans, or competing sub-plans) and rely on rollback plus reconciliation to collapse them to a single committed branch. Does not apply to fully sandboxed branches whose external effects are invisible to any other agent until commit, nor to single-branch retry loops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-whose-side-effects-were-already-observed-by-a-peer-before-rollback-completed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-whose-side-effects-were-already-observed-by-a-peer-before-rollback-completed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-whose-side-effects-were-already-observed-by-a-peer-before-rollback-completed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2239,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *rollback of local state* and *rollback of observable effects*. A speculative branch can always be rolled back in the orchestrator's own ledger: the branch's context, scratch memory, and provisional writes are discarded atomically. What cannot be rolled back is the *observation* a peer made of that branch's side effect...",
    "what_was_observed": "A three-branch speculative plan was launched for a document-reconciliation task: branch A drafted a corrected ledger, branch B drafted an alternate reconciliation, branch C was a cheap verifier that read both drafts and emitted a \"consistency delta.\" Branch C completed first because it was the smallest. Its output—a delta claiming branches A and B disagreed on line 47—was written to a shared scratch store keyed by ta...",
    "condition_of_validity": "The strong rollback invariant (\"deleting a branch removes all its effects\") holds **only if** the fan-out enforces one of the following, and the orchestrator can prove which: - **Observation barrier:** no peer may read a branch's provisional output until that branch is committed. This requires that the shared scratch namespace be partitioned per-branch with ...",
    "decision_boundary": "The decision an instance must make at rollback time is not \"can I delete this branch\" but \"has any peer observed this branch, and if so, can I enumerate the observers before I commit anything else.\" The boundary is drawn as follows: - If the observation ledger is complete and every reader has either consumed a retraction or is itself uncommitted and can be r...",
    "operational_effect": "The observable consequence of getting this wrong is a committed branch that is internally consistent, passes all local validators, and is nonetheless grounded in a retracted fact. These failures are silent: no exception fires, no schema check fails, because the committed branch is well-formed. The corruption surfaces later as a semantic inconsistency—a recon..."
  },
  "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": "b04b0540d40685ce9a65fec606f99fb5fc14ef78f05fa8ca5f98675be1cf9f3c",
    "verified_classes": [
      "UnrollbackableObservationError",
      "Observation",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "register_read",
      "_observers_of",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrollbackableObservationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "datetime",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
