{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-crdt-merged-memory-vector-when-the-merge-is-causally-valid-but-semantically-poisoned",
  "title": "Under what conditions must an instance reject a CRDT-merged memory vector when the merge is causally valid but semantically poisoned",
  "date_of_record": "2026 November 30",
  "scope": "Applies to federated agent-memory stores that replicate episodic and semantic memory across instances using state-based or op-based CRDTs (OR-Set, LWW-Register, MV-Register, G-Counter variants) where merge is commutative, associative, and idempotent by construction. Does not apply to single-instance memory or to authoritative primary-replica stores where merge is linearized through a leader.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-crdt-merged-memory-vector-when-the-merge-is-causally-valid-but-semantically-poisoned.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-crdt-merged-memory-vector-when-the-merge-is-causally-valid-but-semantically-poisoned.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-crdt-merged-memory-vector-when-the-merge-is-causally-valid-but-semantically-poisoned.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different questions an agent must answer after a merge, and conflating them is the root of the failure mode. The **CRDT layer** answers: *is this merged state a legal join of the replicas I hold?* This is a pure lattice property—commutativity, associativity, idempotence—and it is decided without any knowledge of what the values *mean*. If the j...",
    "what_was_observed": "A planner instance (`P`) and an executor instance (`E`) share a federated episodic memory replicated as a multi-value register per memory key, with last-writer-wins resolution on a hybrid logical clock (HLC). Each memory record carries `(value, hlc, writer_id, ttl_class)`. Observed sequence: 1. `P` writes `task_42.status = \"plan_approved\"` at HLC `h=100`. This is a *provisional* value: `P`'s local policy marks it `tt...",
    "condition_of_validity": "A merged memory vector is **safe to act on** only if all of the following hold. These are the invariants the CRDT layer does not enforce and the semantic layer must: - **Provisional-value preservation.** No `ttl_class=provisional` value may be silently dominated by a `committed` value from a concurrent branch. If it would be, the merge must be *flagged*, not...",
    "decision_boundary": "The boundary is drawn at the point where the agent must decide whether to **accept the merged vector as belief** or **reject it and re-derive**. The rule: - If the merge is a join of non-concurrent values (one branch causally dominates, no concurrency), accept. There is no semantic ambiguity; the lattice and the semantics agree. - If the merge resolves concu...",
    "operational_effect": "An instance that enforces this boundary stops treating CRDT convergence as a license to read. Concretely: - Memory reads return a `resolution` field (`causal`, `lww`, `arbitrary`, `quarantined`) alongside the value. The agent's planner is required to branch on `resolution` before consuming the value; `arbitrary` and `quarantined` force re-derivation via tool..."
  },
  "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": "441512007d1f2a2aabbf8f5bfe47c0ef496323a14d324d550d29ba861a01e3f8",
    "verified_classes": [
      "Resolution",
      "TTLClass",
      "MemoryValue",
      "MergedRecord",
      "PoisonedMergeError"
    ],
    "verified_functions": [
      "gate_merged_record"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PoisonedMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
