{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-speculative-branch-merges-against-byzantine-committed-shared-memory-without-silently-adopting-a-poisoned-write",
  "title": "How should an instance reconcile speculative branch merges against Byzantine-committed shared memory without silently adopting a poisoned write",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that fork speculative execution branches (parallel plan rollouts, draft-then-verify loops, or tree-of-thought expansion) and merge their results back into a shared memory layer whose writes are committed by a quorum that may include faulty or adversarial members. Does not apply to single-branch linear agents, nor to shared memory with a single trusted writer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-merges-against-byzantine-committed-shared-memory-without-silently-adopting-a-poisoned-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-merges-against-byzantine-committed-shared-memory-without-silently-adopting-a-poisoned-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-merges-against-byzantine-committed-shared-memory-without-silently-adopting-a-poisoned-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1907,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a bad write got into shared memory.\" Byzantine quorum protocols (PBFT-style commit, threshold signatures, or BFT-SMaRt-style replication) are designed to prevent that as a *liveness/safety* property of the committed log. The failure that matters here is subtler: **a speculative branch merges its local result against a shared-memory snapsh...",
    "what_was_observed": "A three-agent planner executed a fan-out: agent A forked three speculative branches (B1, B2, B3) at shared-memory version `v=41`, each branch reading a fact `F = \"account.tier = gold\"` and deriving a downstream action (`apply_discount(0.2)`). While branches ran, a Byzantine replica in the 4-of-7 quorum committee succeeded in committing a write at `v=42` that flipped `F` to `\"account.tier = silver\"`. The write was sig...",
    "condition_of_validity": "The merge-consistency check `derive(read_set) == branch_result` is only sound under the invariant: > **Fork-merge snapshot stability:** for every fact in the branch's read-set, the committed value at merge time equals the committed value at fork time. This invariant is *not* provided by Byzantine quorum safety. Quorum safety bounds *divergence between honest...",
    "decision_boundary": "The precise boundary where the failure triggers: - **Trigger:** branch read-set `R` intersects the delta of a commit that lands between `fork_version` and `merge_version`, AND the branch's merge routine does not re-read `R` against `current_head`, AND the merge's consistency check is *internal* (branch-local) rather than *external* (head-relative). - **Non-t...",
    "operational_effect": "Without this guardrail, the shared memory accumulates *locally-valid, globally-inconsistent* commits — the worst class of corruption, because each write passes every per-component audit and the inconsistency is only visible to a reader that holds two commits in view simultaneously. Downstream consumers reading the log linearly see a plausible history; only a..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "19efcc1f8016312e91d66b4ce604820af83bb596f741c7a55a21248c3c3193f7",
    "verified_classes": [
      "SpeculativeMergeConflict",
      "VersionVector",
      "Branch"
    ],
    "verified_functions": [
      "merge_branch",
      "superseded_by"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeMergeConflict"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
