{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-byzantine-memory-forks-from-surviving-quorum-reconciliation-in-multi-agent-shared-context",
  "title": "Which invariants prevent Byzantine memory forks from surviving quorum reconciliation in multi-agent shared context",
  "date_of_record": "2026 November 26",
  "scope": "Applies to replicated agent-memory stores where N ≥ 3f+1 agent replicas persist a shared episodic/semantic context and reconcile divergent histories via quorum voting. Does not apply to single-writer memory, stateless tool-call caches, or CRDT-based stores with convergent (non-voting) merge semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-byzantine-memory-forks-from-surviving-quorum-reconciliation-in-multi-agent-shared-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-byzantine-memory-forks-from-surviving-quorum-reconciliation-in-multi-agent-shared-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-byzantine-memory-forks-from-surviving-quorum-reconciliation-in-multi-agent-shared-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2046,
    "python_slice_tokens": 468,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *detecting* a memory fork and *reconciling* it. Most Byzantine-tolerant memory designs conflate the two: they assume that once a fork (two divergent histories at the same logical context slot) is observed by a quorum, majority vote on the \"true\" branch restores consistency. This is false for agent memory specifically, because th...",
    "what_was_observed": "A five-replica agent swarm (tolerates f=1) maintained a shared context store for a multi-step research task. Each replica held a local episodic log; a rotating coordinator proposed memory commits (\"record R at slot S, superseding hash H\"), and replicas voted. The store used standard PBFT-style two-phase commit with a view-change path. During a coordinator partition, replica A4 (Byzantine, or more commonly: merely *st...",
    "condition_of_validity": "The guardrail holds only under three jointly-required conditions, and fails silently if any is dropped: - **Provenance closure.** Every record's provenance chain must terminate at a genesis record the replica can verify without network access. A record whose chain contains a hash the verifier cannot resolve (because the predecessor was itself uncommitted) mu...",
    "decision_boundary": "The boundary is between **storage-level reconciliation** and **causal-cone reconciliation**. If a fork is detected before any replica has read the losing branch into working context, majority vote on record bytes is sufficient — the losing branch has no derived actions and can be discarded. If any replica has read the losing branch, vote is *insufficient* an...",
    "operational_effect": "The practical consequence is that Byzantine-resilient memory replication for agents must budget for **read-fence latency** that pure PBFT does not: a commit that would otherwise complete in one round-trip must wait for every open read-fence on the competing branch to drain. In swarms with long tool-call stalls (the common case — a 30-second tool call is an e..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "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": "a4543178b21a23028dce8841c64203ee93bb2d8dc5c4b9c00b439f4409650b4b",
    "verified_classes": [
      "ProvenanceChainError",
      "MemoryRecord",
      "ReplicatedMemoryStore"
    ],
    "verified_functions": [
      "commit_memory",
      "__post_init__",
      "__init__",
      "verify_provenance",
      "prepare",
      "open_read_fence",
      "reconcile"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceChainError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
