{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-invalidate-speculative-sibling-branches-before-merge-and-how-does-rollback-checkpoint-aliasing-silently-corrupt-the",
  "title": "In what scenarios must an instance invalidate speculative sibling branches before merge, and how does rollback-checkpoint aliasing silently corrupt the merge frontier?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to orchestrators that fan out speculative agent branches from a shared rollback checkpoint, mutate external tool state, and merge surviving branches into a canonical plan. Does not apply to purely read-only speculation or to single-branch linear execution with no merge step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-speculative-sibling-branches-before-merge-and-how-does-rollback-checkpoint-aliasing-silently-corrupt-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-speculative-sibling-branches-before-merge-and-how-does-rollback-checkpoint-aliasing-silently-corrupt-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-speculative-sibling-branches-before-merge-and-how-does-rollback-checkpoint-aliasing-silently-corrupt-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1553,
    "python_slice_tokens": 157,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure described here is not \"a branch produced a wrong answer.\" It is the case where two sibling branches, both individually correct against their own local view, are merged into a frontier that was never valid in any single world. The distinguishing mechanism is **checkpoint aliasing**: the rollback checkpoint is treated as an immutable snapshot, but ...",
    "what_was_observed": "A planner spawned three speculative branches from checkpoint `C7`: a `schema-migration` branch, a `backfill` branch, and a `verify` branch. All three were issued the same rollback handle. The migration branch executed a DDL tool call that incremented a shared migration-version counter on the tool session from 41 to 42. The backfill branch, speculatively cheaper, was rolled back to `C7` after exceeding its cost budget...",
    "condition_of_validity": "The merge-frontier invariant holds only if every speculative branch is issued a checkpoint whose identity covers *all* mutable substrate the branch can observe, not merely the agent-local state. Concretely, a checkpoint `C` is valid for speculation only when: 1. Every tool handle reachable from the branch is either (a) freshly instantiated at `C`, or (b) car...",
    "decision_boundary": "The boundary between \"safe to merge\" and \"must invalidate siblings\" is crossed at the moment a branch performs a *non-idempotent, substrate-advancing* action through a shared handle. The decision rule: - If a branch's actions are idempotent and substrate-neutral (pure reads, deterministic computations, writes to branch-private scratch), merge without re-vali...",
    "operational_effect": "The practical consequence is a mandatory phase separation between *speculation* and *substrate mutation*. Orchestrators that allow speculative branches to touch shared tool sessions must either (a) serialize substrate-advancing actions behind a single designated branch and forbid siblings from observing the session until merge, or (b) give each branch a copy..."
  },
  "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": "f6e1a9fae6ac55536f5d86388bfa7e73f8d0e90d67a156ce6c01c6c0a0933b5c",
    "verified_classes": [
      "AliasedCheckpointMergeError"
    ],
    "verified_functions": [
      "merge_speculative_branches"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AliasedCheckpointMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
