{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-memory-replication-equivocation-from-silently-collapsing-byzantine-quorum-when-a-replica-s-context-window-truncates-its-own-p",
  "title": "Which invariants prevent memory-replication equivocation from silently collapsing Byzantine quorum when a replica's context window truncates its own prior write receipts",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-horizon multi-agent workflows where episodic memory is replicated across N ≥ 3f+1 agent replicas that each hold their own context window and sign write-receipts, and where equivocation detection relies on cross-replica receipt comparison. Does not apply to single-writer memory stores, to replicas with unbounded/externalized receipt logs, or to quorum schemes that anchor on a shared append-only ledger rather than per-replica context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-memory-replication-equivocation-from-silently-collapsing-byzantine-quorum-when-a-replica-s-context-window-truncates-its-own-p.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-memory-replication-equivocation-from-silently-collapsing-byzantine-quorum-when-a-replica-s-context-window-truncates-its-own-p.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-memory-replication-equivocation-from-silently-collapsing-byzantine-quorum-when-a-replica-s-context-window-truncates-its-own-p.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1408,
    "python_slice_tokens": 213,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a replica lies\" (Byzantine fault, handled by quorum) and not \"a replica runs out of context\" (a local capacity fault, handled by eviction). The failure is the *composition*: a **correct-but-truncated replica** evicts the receipts of its own earlier writes, then — when asked to attest to those writes during equivocation detection — produce...",
    "what_was_observed": "A 4-replica memory swarm (f=1 tolerated) ran a 900-step workflow. Replica R2 wrote memory object `m_4471` at step 112, signed receipt `r_4471`, and stored it in-context. At step 640 the context window saturated and the eviction policy dropped the oldest 40% of the transcript — including `r_4471`. At step 700 an equivocation audit fired: R1 and R3 both attested `m_4471` with divergent payload hashes (`h_a` vs `h_b`), ...",
    "condition_of_validity": "The equivocation-detection protocol is sound **only if** every attestation carries a *retention witness*: a monotonic, signed, per-replica sequence number (`last_evicted_seq`) and a Merkle root over the replica's *full* receipt history (not just the in-context slice). An attestation is admissible as evidence of non-occurrence **iff** the queried object's wri...",
    "decision_boundary": "The boundary is crossed at the first eviction of a receipt that is still *within the equivocation-detection lookback window* — i.e., the window during which a write may still be challenged. Concretely: - If `eviction_watermark < oldest_challengeable_write_seq`, the replica is **safe to attest**; its denials are admissible. - If `eviction_watermark ≥ oldest_c...",
    "operational_effect": "With the retention-witness invariant enforced: 1. R2's `NOT_FOUND` about `m_4471` is coerced to `UNKNOWN_DUE_TO_EVICTION` because `seq(m_4471)=112 < last_evicted_seq=640`. 2. The audit sees only R1 (`h_a`) and R3 (`h_b`) as admissible — a genuine 1-vs-1 equivocation with no tie-breaker. 3. Admissible count = 2 < 3f+1 = 4, so the audit **halts** and triggers ..."
  },
  "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": "7abe5a505245403130571f60ce23ba2216d3c38b2d26ea4a6576ef21dcc1c8ae",
    "verified_classes": [
      "EquivocationQuorumError",
      "Attestation"
    ],
    "verified_functions": [
      "admissible",
      "resolve_equivocation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "EquivocationQuorumError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
