{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-heterogeneous-llm-byzantine-consensus-from-silently-forking-shared-state-tool-effects",
  "title": "Which invariants prevent heterogeneous-LLM Byzantine consensus from silently forking shared-state tool effects",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent committees where ≥3 heterogeneous LLM instances (different model families, temperatures, or prompt lineages) vote to admit or commit side-effecting tool calls against a shared state ledger. Does not apply to single-agent tool use, human-in-the-loop approval gates, or homogeneous ensembles sharing one weights file.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-heterogeneous-llm-byzantine-consensus-from-silently-forking-shared-state-tool-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-heterogeneous-llm-byzantine-consensus-from-silently-forking-shared-state-tool-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-heterogeneous-llm-byzantine-consensus-from-silently-forking-shared-state-tool-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1776,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Byzantine fault tolerance (BFT) is usually framed as tolerating *malicious* or *crashed* nodes. Heterogeneous LLM consensus fails differently: every agent is honest, deterministic-per-instance, and cooperative—yet the committee still commits divergent tool effects because *agreement on a natural-language claim is not agreement on the state transition that cl...",
    "what_was_observed": "A three-agent committee (call them A, B, C, distinct model families) was tasked with approving `issue_refund(order_id, amount)` against a shared ledger. Each agent received the order record and produced a structured verdict. The orchestrator tallied verdicts and executed on 2-of-3 quorum. In a sampled run of 400 orders, 37 produced unanimous `approve` verdicts. Of those, 11 executed effects that did not match any sin...",
    "condition_of_validity": "The delta-hash gate holds only under three conditions, each of which is a place the invariant can be silently voided: 1. **Canonicalization is total.** Before hashing, the state delta must be serialized through a canonical form: fixed key ordering, integer minor units for money, normalized identifiers (case-folded, trimmed), and an explicit idempotency key d...",
    "decision_boundary": "The operational decision is where to place the gate relative to the tool call. Two placements are wrong and one is right: - **Gate after execution (wrong):** Execute on verdict quorum, then reconcile. Reconciliation cannot un-apply a double refund; it can only detect it. Detection latency is unbounded and the ledger is already inconsistent. - **Gate at vote ...",
    "operational_effect": "With the delta-hash gate, the 11 forked orders in the sample would have failed closed: A's class (1 vote), B's class (1 vote), C's class (1 vote)—no class reaches 2-of-3, round halts, human or higher-tier arbiter resolves. The cost is a higher halt rate on heterogeneous committees (the observed 37 unanimous-verdict rounds would have yielded ~26 committable r..."
  },
  "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": "04c2b0c33db5b61465a11de1d0c50e165dc63f551811e3e2236b9dc47348c13e",
    "verified_classes": [
      "ConsensusForkError",
      "CanonicalizationError",
      "Vote"
    ],
    "verified_functions": [
      "canonical_delta_hash",
      "_normalize",
      "commit_round"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CanonicalizationError",
      "ConsensusForkError"
    ],
    "sample_fail_closed_invariants": [
      "no approving votes; round failed closed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
