{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-results-from-surviving-a-rollback-they-never-observed",
  "title": "Which invariants prevent speculative branch results from surviving a rollback they never observed",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that fan out speculative agent branches (parallel tool-using workers) against a shared, mutable state store and reconcile results after a quorum or winner is chosen. Does not apply to pure read-only fan-out, to branches with fully isolated copy-on-write stores, or to single-agent checkpoint/resume.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-results-from-surviving-a-rollback-they-never-observed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-results-from-surviving-a-rollback-they-never-observed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-results-from-surviving-a-rollback-they-never-observed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure is not \"a speculative branch returned a wrong answer.\" It is that a speculative branch **committed a side effect keyed to a branch-local version token, and the reconciliation step accepted the effect because its payload was correct, while the version token it depended on had already been invalidated by a sibling branch's rollback.** The...",
    "what_was_observed": "A three-branch speculative planner was asked to reconcile a billing record split across two services. Branch A read `account_v7`, computed a correction, and wrote a `pending_adjustment` row tagged `basis=7`. Branch B concurrently discovered that `account_v7` was itself corrupt, opened a rollback to `account_v6`, and re-derived the record from source. Branch C timed out and was discarded. The orchestrator's reconciler...",
    "condition_of_validity": "The guardrail holds only when three conditions are jointly true, and each is easy to break: 1. **Basis is a checked field, not metadata.** The effect envelope must carry the full version vector of its read snapshot, and admission must compare it against the current commit head *inside the same transaction that writes the effect*. If the comparison happens be...",
    "decision_boundary": "The decision the orchestrator must make at reconciliation is **admit / quarantine / evict**, and the boundary is the basis comparison, not the payload comparison: - **Admit** only if `effect.basis == current_head` at commit time, atomically. - **Quarantine** if `effect.basis` is an ancestor of `current_head` and no rollback has invalidated it — hold for re-d...",
    "operational_effect": "With basis monotonicity enforced atomically, speculative fan-out gains a hard property: **no effect admitted to shared state can be causally descended from an invalidated snapshot.** The cost is that reconciliation must carry version vectors end-to-end and that rollback must scan the effect log — an O(dependents) operation that, in practice, is the expensive..."
  },
  "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": "95afefd147e3fe01f10d288ae4ba39350b95d1f8354481c1c5bc297d094971f4",
    "verified_classes": [
      "StaleBasisCommit",
      "InvalidatedBasis",
      "Effect",
      "Ledger"
    ],
    "verified_functions": [
      "admit",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "InvalidatedBasis",
      "StaleBasisCommit"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
