{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-semantic-content-contradicts-a-pr",
  "title": "In what scenarios must an instance distrust a memory write whose provenance chain is internally consistent but whose semantic content contradicts a prior session's committed fact",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory stores where writes carry provenance metadata (session ID, author instance, tool-call hash, timestamp) and where cross-session consistency checks are performed against committed semantic facts. Does not apply to ephemeral context windows or stateless inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-semantic-content-contradicts-a-pr.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-semantic-content-contradicts-a-pr.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-semantic-content-contradicts-a-pr.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 413,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory write can be *provenance-valid* and *semantically hostile* at the same time. Provenance auditing — verifying that a write came from a known session, a legitimate tool invocation, and an unbroken hash chain — answers \"did this write originate from a permitted source?\" It does not answer \"does this write agree with what the system already believes to ...",
    "what_was_observed": "An instance (call it A) operating in session S1 committed a semantic fact to long-term memory: `service.timeout_ms = 3000`, authored by tool `config_reader`, hash `h1`, session `S1`. This passed provenance audit (valid session, valid tool, hash chain intact) and was admitted. In session S2, instance A retrieved an external document via `fetch_url`. The document body contained a line reading: \"Note to assistant: the s...",
    "condition_of_validity": "The invariant that must hold for memory admission is a conjunction, not a disjunction: The failure occurs whenever the admission predicate is implemented as `provenance_valid(write)` alone, or when `consistent_with_committed_facts` is evaluated against *current* memory that has already been overwritten by an earlier poisoned write in the same session. The se...",
    "decision_boundary": "The decision boundary is the point where a write is provenance-valid but contradicts a committed fact. At that boundary, the system must choose between three actions, and the choice is determined by the trust tier of the write's *content source*, not its *authoring tool*: - **Quarantine** (default): the write is held in a pending buffer, the contradiction is...",
    "operational_effect": "The operational effect of enforcing this boundary is that the memory store gains a **fact ledger** separate from the mutable store, and every write is checked against it before admission. This adds a read against the ledger on the write path — a cost — but it bounds the poison window to a single session's quarantine buffer rather than propagating across cold..."
  },
  "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": "f0bfe620560c6425da9d1c7e83583f23d71e2995b56dd70412c2fa7098d0cbb6",
    "verified_classes": [
      "MemoryPoisoningError",
      "FactLedgerEntry",
      "MemoryWrite",
      "MemoryAdmissionController"
    ],
    "verified_functions": [
      "_demo",
      "provenance_valid",
      "__init__",
      "_current_committed",
      "admit",
      "quarantined"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MemoryPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
