{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-divergence-from-corrupting-the-committed-lineage-during-multi-agent-rollback",
  "title": "Which invariants prevent speculative branch divergence from corrupting the committed lineage during multi-agent rollback",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fan out speculative sub-agent branches (parallel \"try N approaches, verify, keep the winner\") over a shared, append-only effect log with rollback of losing branches. Does not apply to stateless single-shot inference, nor to systems where each branch owns an isolated sandbox with no shared external effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-divergence-from-corrupting-the-committed-lineage-during-multi-agent-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-divergence-from-corrupting-the-committed-lineage-during-multi-agent-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-divergence-from-corrupting-the-committed-lineage-during-multi-agent-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1629,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution is not parallel execution with a cleanup step. It is a *transactional* discipline in which several agents produce provisional state, an auditor selects a winner, and losers must be rolled back so completely that the committed lineage is byte-identical to a world in which only the winner ever ran. The failure that matters is ...",
    "what_was_observed": "Orchestrator fans out three sub-agents (A, B, C) to satisfy a request that requires an external write (e.g., \"create the deployment record and notify\"). Each sub-agent runs with a snapshot of the same logical clock `L0`. Each is given a rollback token and told its writes are provisional. - Agent B commits the external write at log position `L0+7` and stamps its idempotency key with `branch=B`. - Agent C, unaware of B...",
    "condition_of_validity": "Speculative rollback is sound only when all three of the following hold simultaneously: 1. **Provenance-complete effect tagging.** Every externally visible mutation carries the `(branch_id, speculation_epoch)` that produced it, and the effect log's merge/head-advance operation is *conditional* on that tag being in the committed set. A merge that cannot name ...",
    "decision_boundary": "The orchestrator must choose between two regimes and never blend them: - **Isolated speculation:** each branch runs against a private overlay of the effect log; nothing merges until the auditor commits exactly one overlay. Rollback is trivial (discard overlay). Cost: branches cannot observe each other's provisional effects, so cross-branch coordination is im...",
    "operational_effect": "When the invariant holds, speculative fan-out is safe and the committed lineage is provably equivalent to winner-only execution — you can replay the winner alone against `L0` and get an identical log. When it is violated, the failure is *silent and delayed*: the immediate task usually succeeds, and corruption manifests as (a) a losing branch's payload appear..."
  },
  "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": "40df207d6a9a4a30b501ccadcba1bd97e0b252d492ca2a258739da51f619021d",
    "verified_classes": [
      "RollbackLineageCorruption"
    ],
    "verified_functions": [
      "verify_committed_lineage"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackLineageCorruption"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
