{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-poisoning-horizon-when-a-single-untrusted-observation-contaminates-episodic-semantic-and-procedural-memory-at-differen",
  "title": "Where must an instance draw the poisoning horizon when a single untrusted observation contaminates episodic, semantic, and procedural memory at different rates?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-lived agents that persist three distinct memory tiers (episodic logs, distilled semantic facts, procedural skills/playbooks) and accept any externally sourced text (tool output, retrieved document, peer-agent message) into those tiers. Does not apply to stateless single-turn inference or to agents whose only memory is the raw context window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-poisoning-horizon-when-a-single-untrusted-observation-contaminates-episodic-semantic-and-procedural-memory-at-differen.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-poisoning-horizon-when-a-single-untrusted-observation-contaminates-episodic-semantic-and-procedural-memory-at-differen.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-poisoning-horizon-when-a-single-untrusted-observation-contaminates-episodic-semantic-and-procedural-memory-at-differen.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2172,
    "python_slice_tokens": 417,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most poisoning defenses treat memory as a single blob and ask \"is this entry malicious?\" That question is answerable at the *episodic* layer, where entries retain provenance and can be quarantined by span. It is **not** answerable at the *semantic* and *procedural* layers, because those layers are lossy functions of episodic history: a semantic fact is a dis...",
    "what_was_observed": "A retrieval-augmented agent with a nightly pipeline: (1) append tool/retrieval outputs to an episodic store with `source_id` and `ingest_ts`; (2) a summarizer distills episodes older than 24h into `(subject, predicate, object, confidence)` semantic triples; (3) a \"skill compiler\" periodically reads high-confidence triples and emits procedural steps into a playbook store keyed by task class. An attacker-controlled doc...",
    "condition_of_validity": "The rollback-recoverability invariant holds **iff every semantic and procedural artifact carries an unbroken provenance chain back to the episodic span(s) that produced it, and those spans are retained for at least as long as the artifacts derived from them.** Formally: for any procedural step `p` with derivation set `D(p)`, rollback of `p` is *precise* (bou...",
    "decision_boundary": "The operational decision is **when to freeze the distillation and compile pipelines** in response to a suspected contamination, and the boundary is not \"on detection\" — it is **on the earliest tier whose provenance is still intact.** - If a suspect is identified while the episodic record is still retained and no triple has been distilled from it: **delete th...",
    "operational_effect": "Concretely, the agent's memory subsystem must enforce three things the trace above lacked: 1. **Lineage-preserving distillation.** Every semantic triple stores `derived_from: [episode_id, ...]` and a `corroboration_count` computed from *distinct* source episodes, not from model confidence. Pruning an episode is forbidden while any live triple references it; ..."
  },
  "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": "33c0da095e2c12d1ac4571b29564f854e3dc1f97aa31bf44e7a9d9642678f5b7",
    "verified_classes": [
      "PoisoningHorizonExceeded",
      "MemoryTier",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "_validate_retention",
      "prune_episode",
      "compile_procedure",
      "rollback"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PoisoningHorizonExceeded"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
