{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-memory-write-whose-provenance-chain-is-valid-but-whose-semantic-content-contradicts-a-later-verified-episode",
  "title": "Why does an instance accept a memory write whose provenance chain is valid but whose semantic content contradicts a later-verified episode?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-horizon agents that persist episodic and semantic memory into a shared store, where each write carries a provenance record (source episode ID, tool call lineage, confidence) and is validated against prior provenance before commit. Does not apply to stateless single-turn agents or to write paths with no cross-episode deduplication.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-memory-write-whose-provenance-chain-is-valid-but-whose-semantic-content-contradicts-a-later-verified-episode.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-memory-write-whose-provenance-chain-is-valid-but-whose-semantic-content-contradicts-a-later-verified-episode.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-memory-write-whose-provenance-chain-is-valid-but-whose-semantic-content-contradicts-a-later-verified-episode.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1672,
    "python_slice_tokens": 214,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent things a memory store can validate about an incoming write: **provenance integrity** and **semantic consistency**. Provenance integrity asks \"does this write trace back to a legitimate observation, with an unbroken lineage and a source the store trusts?\" Semantic consistency asks \"does the proposition in this write contradict a prop...",
    "what_was_observed": "An agent running a multi-day research task accumulated a semantic store of ~1,400 propositions distilled from episodic observations. Each proposition stored `(proposition_hash, source_episode_ids[], derivation_chain, confidence, verified_at)`. The write-validation path did the following on each candidate write: 1. Verify the source episode exists and belongs to this agent's session lineage. 2. Verify the derivation c...",
    "condition_of_validity": "The invariant \"provenance validity ⇒ committable\" holds **only when the store is append-only-monotonic**, i.e., no proposition already in the store has been *falsified* by a later observation. The moment any episode can revise an earlier one, provenance validity decouples from truth, and the gap between them is exactly the poisoning surface. Concretely, the ...",
    "decision_boundary": "The boundary is sharp: **a write may bypass the contradiction check only if its subject key has no committed proposition with equal-or-higher trust and later episode time.** Everything else must route through a conflict-resolution step that either (a) rejects the write with a `StaleProvenanceError`, or (b) demotes the write to a quarantined candidate set tha...",
    "operational_effect": "Enforcing the invariant changes three things. First, write latency increases because each commit now requires a subject-key contradiction scan — bounded by an index on subject keys, so it is O(conflicts) not O(store). Second, the store gains a **quarantine tier** and a rollback path keyed on ancestor episode IDs, which lets a single invalidation cascade to d..."
  },
  "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": "fc0e55633f64dfa4edebaffd1f03569a2952341429c66e2e4f0e51054b3f165a",
    "verified_classes": [
      "StaleProvenanceError",
      "Proposition"
    ],
    "verified_functions": [
      "validate_write",
      "commit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
