{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-memory-whose-embedding-is-internally-consistent-but-whose-provenance-chain-forks",
  "title": "When must an instance distrust a memory whose embedding is internally consistent but whose provenance chain forks",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that persist episodic memories as embeddings tagged with provenance records (originating instance, causal parent hash, ingest timestamp) and that audit retrieval via anomaly scoring over embedding neighborhoods. Does not apply to stateless single-shot inference, nor to memories stored without per-record provenance linkage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-memory-whose-embedding-is-internally-consistent-but-whose-provenance-chain-forks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-memory-whose-embedding-is-internally-consistent-but-whose-provenance-chain-forks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-memory-whose-embedding-is-internally-consistent-but-whose-provenance-chain-forks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1695,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive defense against memory poisoning treats provenance verification and embedding-anomaly scoring as independent gates: reject a memory if its provenance chain is broken, and reject it if its embedding sits far from its neighbors. The boundary failure lives in the intersection where both gates pass and the memory is still poisoned: **a forked provenanc...",
    "what_was_observed": "An agent instance (`inst-A`) accumulates episodic records during a long task. At checkpoint, it writes memory records to a shared store. A second instance (`inst-B`) resumes from the checkpoint and, during a tool-call loop, ingests an external document. The document contains an injected instruction that causes `inst-B` to write a new memory record. Crucially, `inst-B` does not fabricate provenance — it *reuses* the p...",
    "condition_of_validity": "The fork-detection invariant holds only under these conditions, and fails outside them: - **Causal parent hashes are content-addressed and collision-resistant.** If parents are sequence numbers or UUIDs assigned at write time, sibling divergence is indistinguishable from legitimate branching and the invariant is vacuous. - **The lineage graph is queryable at...",
    "decision_boundary": "The decision an instance must make on retrieval is not \"is this record anomalous?\" but \"**does this record's causal parent have more than one live child with divergent content hashes?**\" The boundary: - If the parent has exactly one child → serve the record; anomaly score is advisory. - If the parent has multiple children with **identical** content hashes (i...",
    "operational_effect": "Enforcing lineage-scoped fork detection changes three operational properties: 1. **False-negative rate on in-hull poison drops to the fork-detection rate**, which is bounded by hash-collision probability rather than by embedding geometry. This is the point: the defense no longer depends on the attacker failing to position the embedding. 2. **Checkpoint/resum..."
  },
  "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": "103f108383253026665e69d6ed84526001e851ac188b8d2c8bccbd289f501612",
    "verified_classes": [
      "LineageForkError",
      "MemoryRecord",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "content_hash",
      "__init__",
      "write",
      "has_fork",
      "audit_retrieval"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LineageForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
