{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-commits-from-resurrecting-state-that-a-sibling-branch-already-invalidated",
  "title": "Which invariants prevent speculative branch commits from resurrecting state that a sibling branch already invalidated",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems where speculative branches execute against a shared base state and later reconcile via commit, abort, or merge. Does not apply to single-agent linear execution or to branches that never share mutable external resources.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-commits-from-resurrecting-state-that-a-sibling-branch-already-invalidated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-commits-from-resurrecting-state-that-a-sibling-branch-already-invalidated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-commits-from-resurrecting-state-that-a-sibling-branch-already-invalidated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1567,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution across agents is often modeled as a pure fork/join: branch A and branch B both read base state S₀, run in isolation, and the orchestrator commits whichever wins. The dangerous conflation is treating *isolation of reads* as *isolation of writes*. A branch that reads S₀ but writes to an external side-effect channel (a tool that mutates a ...",
    "what_was_observed": "A planner agent forks three speculative branches to satisfy a user request: branch A drafts an email, branch B updates a CRM record's `status` field from `active` to `churned`, branch C computes a discount eligibility score. Branch C reads `status == active` from S₀ and returns `eligible: true` with a computed discount code. Branch B commits first, flipping status to `churned`. Branch A runs last, reads branch C's ou...",
    "condition_of_validity": "The resurrection is only possible when three conditions co-hold: - **Derived artifacts are unversioned.** Branch outputs that are pure functions of a snapshot (scores, eligibility flags, summaries, plans) are merged without carrying the snapshot version they were derived from. - **Commits are checked only for write-write conflicts**, not for read-set invalid...",
    "decision_boundary": "The guardrail is a **snapshot-versioned commit with read-set validation**, not a write-set lock. Each branch records the base snapshot version it read from. Each derived artifact carries that version as provenance. At commit time, the orchestrator validates: for every predicate the committing branch (or any artifact it consumed) read, has that predicate been...",
    "operational_effect": "With read-set validation, branch A's commit is rejected because the predicate `status == active` that branch C's artifact depended on was invalidated by B at v2. A re-derives against v2, finds `eligible: false`, and either aborts or produces a corrected artifact. The cost is one re-derivation per stale commit; the benefit is that speculative fan-out no longe..."
  },
  "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": "86bbe943916e89114c8d9e84c6a851ed511fbffe3963d9f959ece3de43e7d8de",
    "verified_classes": [
      "StaleDerivationCommit",
      "Snapshot",
      "Artifact",
      "Branch",
      "ReconciliationBuffer"
    ],
    "verified_functions": [
      "commit",
      "__init__",
      "commit_write",
      "validate_commit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleDerivationCommit"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
