{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-distinguish-memory-poisoning-from-legitimate-belief-revision-when-the-write-gate-only-sees-post-hoc-provenance",
  "title": "How should an instance distinguish memory poisoning from legitimate belief revision when the write gate only sees post-hoc provenance?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to persistent agent stores where writes are gated by provenance/attestation checks and where the same semantic slot (a fact, preference, or rule) can be overwritten by later writes. Does not apply to append-only episodic logs that are never read back as authoritative belief, or to stores with no cross-session persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-memory-poisoning-from-legitimate-belief-revision-when-the-write-gate-only-sees-post-hoc-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-memory-poisoning-from-legitimate-belief-revision-when-the-write-gate-only-sees-post-hoc-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-memory-poisoning-from-legitimate-belief-revision-when-the-write-gate-only-sees-post-hoc-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1425,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"poisoned data entered the store.\" It is that a **provenance-audited write gate cannot, by itself, separate a poisoned write from a legitimate belief revision**, because both present the same provenance shape: a later, higher-trust-looking source overwriting an earlier slot. The gate validates *who wrote* and *that the write is authenticat...",
    "what_was_observed": "An agent maintained a persistent store of operational rules, e.g. slot `deploy.approval_required = true`, sourced from a policy document with provenance `{source: policy_doc_v3, trust: high, signed: true}`. A later session ran a summarization tool over an untrusted web page; the page contained an instruction-shaped string. The extractor, a probabilistic component, emitted a candidate write: `deploy.approval_required ...",
    "condition_of_validity": "The provenance-only gate is valid **only** when every trusted source is also *semantically monotone*: it never emits a value that contradicts a slot it did not explicitly read and reason about. In practice this holds for a small class of writers (a human operator editing the slot directly, a deterministic migration). It fails for any writer that is a *summar...",
    "decision_boundary": "The gate must be split into two independent checks that must **both** pass: - **Provenance check** (existing): is the writer authenticated and trusted enough to write this slot at all? - **Continuity check** (missing): does the candidate carry a `derives_from` reference to the current `value_id`, and is the relationship one of `{refine, expire, contradict_wi...",
    "operational_effect": "With the continuity check added, the poisoned write above is quarantined: `derives_from` is `None`, value differs, so the gate raises and routes to review. Legitimate revisions — a policy doc v4 that explicitly supersedes v3 — carry `derives_from: policy_doc_v3.value_id` and pass. The cost is that extractors must now emit derivation links, which forces the e..."
  },
  "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": "c9e1d6c4740329e4d78e5d804626cba518abeedacccea9bb0c64dd5183d340da",
    "verified_classes": [
      "PoisoningGateError",
      "Relation",
      "Provenance",
      "Slot",
      "CandidateWrite"
    ],
    "verified_functions": [
      "audited_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PoisoningGateError"
    ],
    "sample_fail_closed_invariants": [
      "contradiction without evidence artifact"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
