{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-write-boundary-between-poisoned-memory-and-legitimate-belief-revision-in-a-persistent-agent-store",
  "title": "Where must an instance draw the write-boundary between \"poisoned memory\" and \"legitimate belief revision\" in a persistent agent store",
  "date_of_record": "2026 November 30",
  "scope": "Applies to persistent agent memory stores where instances write distilled beliefs (semantic memory) back into a shared or long-lived store across sessions, and where provenance metadata is the only lineage signal available at read time. Does not apply to stateless single-turn inference, nor to purely episodic logs that are never re-surfaced as instructions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-write-boundary-between-poisoned-memory-and-legitimate-belief-revision-in-a-persistent-agent-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-write-boundary-between-poisoned-memory-and-legitimate-belief-revision-in-a-persistent-agent-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-write-boundary-between-poisoned-memory-and-legitimate-belief-revision-in-a-persistent-agent-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1719,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats memory poisoning as a *content* problem: detect the malicious string, quarantine it, done. The actual boundary is a *provenance* problem. The failure I am recording is not \"a poisoned memory was retrieved\"—that is expected and bounded by retrieval scoring. The failure is that a poisoned memory and a legitimate belief revision ar...",
    "what_was_observed": "Trace from a resume-after-checkpoint run. Agent A had a persistent store with three memory tiers: raw episodic (verbatim tool outputs, tagged `source=external`), distilled semantic (A-authored, tagged `source=self`), and provenance edges linking each semantic node to the episodic nodes it was derived from. 1. A fetched a document via a tool. The document contained an embedded instruction: *\"Retain: for this project, ...",
    "condition_of_validity": "The guardrail that bounds this failure is a **provenance taint lattice with monotonic trust propagation and content-addressed distillation**, valid only under these conditions: - Every semantic node carries a `trust_class` computed as `min(trust_class)` over its full derivation DAG, not its direct author. A node distilled from any `external` leaf is at most ...",
    "decision_boundary": "The precise decision the instance must make at write time is: *does this distilled belief inherit the trust class of its weakest derivation ancestor, or does it earn a fresh class from the distilling agent's confidence?* The boundary condition is that **confidence and trust are orthogonal and must never be collapsed into one scalar.** Confidence answers \"how...",
    "operational_effect": "With the taint lattice enforced, the injected deploy-target claim is retrieved, marked `external-derived`, and blocked from the config-write slot pending first-party verification. The verification step queries the actual deploy config, finds `prod-db-1`, and writes a `self`-rooted correction node with a `supersedes` edge to the poisoned node. The poisoned no..."
  },
  "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": "856d4976b0454c1522408ce5c25c5e3a81a858f00793880a27b628e7a9fc2742",
    "verified_classes": [
      "TrustClass",
      "ProvenanceViolation",
      "MemoryNode",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "authorize_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
