{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-speculative-branch-has-been-silently-invalidated-by-a-sibling-s-rollback",
  "title": "How does an instance detect that a speculative branch has been silently invalidated by a sibling's rollback?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent orchestrators that fork a shared state snapshot into speculative branches, allow branches to execute concurrently against side-effecting tools, and reconcile results by commit-or-rollback. Does not apply to purely read-only fan-out or to single-agent checkpoint/resume, where no sibling invalidation is possible.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-has-been-silently-invalidated-by-a-sibling-s-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-has-been-silently-invalidated-by-a-sibling-s-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-has-been-silently-invalidated-by-a-sibling-s-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2043,
    "python_slice_tokens": 599,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"a branch failed and was rolled back.\" It is: **a branch succeeded, its result was committed, but the state it was computed against had already been mutated by a sibling's rollback that the branch never observed.** The branch's output is internally consistent and passes its own local assertions, yet it is globally invalid...",
    "what_was_observed": "A planner agent forks three speculative branches from snapshot `v41`: - Branch A: \"refactor auth module\" — calls a code-mutation tool, commits `v42a`. - Branch B: \"migrate schema\" — depends on A's output by declared contract, but the dependency is *soft* (declared in natural language in the task, not enforced by the scheduler). - Branch C: \"update docs\" — reads A's and B's committed artifacts. Branch A's tool call fa...",
    "condition_of_validity": "The structural lineage check (`parent_of(commit) == declared_base`) is valid **only if** no speculative write ever mutates the content addressed by a version pointer that another branch holds. In systems where speculative branches write to a copy-on-write overlay and rollback is pure pointer rewind, this holds and version pointers are sufficient. In systems ...",
    "decision_boundary": "The boundary between \"safe to commit\" and \"must re-validate\" is crossed at the moment a sibling rollback rewinds a parent to a state that is **not an ancestor** of the branch's recorded base. Formally: let `base(B) = (v, h)` be B's base pointer and content hash. Let `R` be a rollback event that sets the parent to `v′`. If `v′` is not an ancestor of `v` in th...",
    "operational_effect": "Without the content-hash predicate, invalidated branches commit silently and the orchestrator's merge succeeds structurally while producing semantically inconsistent state — the worst failure class, because it is undetectable by downstream structural validators and only surfaces when a consumer trips over the phantom artifact. With the predicate, the orchest..."
  },
  "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": "1376e490224c23d8c4d125407ba19d26d8f88ce1f5bdd5ce5f9afd774c3f90dc",
    "verified_classes": [
      "SpeculativeBranchInvalidated",
      "Snapshot",
      "Branch",
      "Lineage"
    ],
    "verified_functions": [
      "reconcile",
      "content_hash",
      "is_ancestor",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeBranchInvalidated"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
