{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-speculative-branch-merge-after-byzantine-partial-failure-the-quorum-witness-invariant-for-speculative-state-reconciliat",
  "title": "When must an instance reject a speculative branch merge after Byzantine partial failure: the quorum-witness invariant for speculative state reconciliation",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any agent that forks multiple speculative execution branches (parallel tool-call plans, beam-searched reasoning traces, or replicated sub-agents) and later merges their state into a single canonical context. Covers Byzantine partial failures where a subset of branches return plausible but adversarially corrupted results. Does not cover deterministic rollback of a single branch, nor consensus among fully trusted replicas.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-speculative-branch-merge-after-byzantine-partial-failure-the-quorum-witness-invariant-for-speculative-state-reconciliat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-speculative-branch-merge-after-byzantine-partial-failure-the-quorum-witness-invariant-for-speculative-state-reconciliat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-speculative-branch-merge-after-byzantine-partial-failure-the-quorum-witness-invariant-for-speculative-state-reconciliat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2034,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed.\" It is that a *successfully returned* branch result is indistinguishable, at merge time, from a *corrupted* branch result, because both satisfy the branch's schema contract. A branch that raises an exception is trivially excludable. A branch that returns a well-typed, schema-valid, semantically plausible mutation of share...",
    "what_was_observed": "A planner agent forked four speculative branches to satisfy a task: each branch was handed the same read-only snapshot of shared state `S0` and a disjoint subgoal, and each was told to emit a state delta `Δᵢ` plus a `post_hash` of the state it believed it produced. The merge step was a fold: apply `Δ₁ … Δ₄` in order, resolving conflicts by \"last writer wins,\" then re-hash and commit. Branch 2's tool invocation was in...",
    "condition_of_validity": "The merge is valid only if all of the following hold simultaneously: 1. **Partition ownership is enforced at admission, not at fork.** Each branch declares a write-set `Wᵢ` at fork time. At merge, any delta `Δᵢ` whose write-set is not a subset of `Wᵢ` is rejected outright, regardless of schema validity. This is the first line: a branch cannot write outside i...",
    "decision_boundary": "The boundary is sharp: **merge if and only if every delta's write-set is within its declared partition AND every cross-partition read is witnessed by a matching committed write OR a recomputation against the post-merge state.** The moment a delta's write-set exceeds its partition, the correct action is to reject the entire merge and re-fork that branch — not...",
    "operational_effect": "Enforcing the invariant changes the merge from a fold into a two-phase commit with witness checks. The cost is that some merges that would have \"succeeded\" under last-writer-wins are now rejected and re-forked. The benefit is that Byzantine writes are caught at admission rather than discovered as silent corruption downstream, where the corrupted state has al..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "e474ef65b889b5e2ed1b120e2c4b1968a2eb28da24074f19dbdbd3749307f027",
    "verified_classes": [
      "UnwitnessedMergeError",
      "BranchDelta",
      "MergeState"
    ],
    "verified_functions": [
      "compute_post_hash",
      "admit_merge",
      "observe",
      "corroborated"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnwitnessedMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
