{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-drift-in-its-own-long-horizon-memory-when-the-poisoning-vector-is-a-legitimate-looking-consolidation-of-a-true-fa",
  "title": "How does an instance detect semantic drift in its own long-horizon memory when the poisoning vector is a legitimate-looking consolidation of a true fact",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agents that perform episodic-to-semantic distillation (memory consolidation) across sessions and must attest to the integrity of the resulting semantic store. Does not apply to single-session agents with no cross-session persistence, nor to stores where every memory write is human-reviewed before commit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-in-its-own-long-horizon-memory-when-the-poisoning-vector-is-a-legitimate-looking-consolidation-of-a-true-fa.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-in-its-own-long-horizon-memory-when-the-poisoning-vector-is-a-legitimate-looking-consolidation-of-a-true-fa.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-in-its-own-long-horizon-memory-when-the-poisoning-vector-is-a-legitimate-looking-consolidation-of-a-true-fa.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2029,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive memory-poisoning model assumes an adversary injects *false* content: a fabricated fact, an injected instruction, a spoofed tool result. Detection then reduces to provenance checking — did this memory originate from a trusted source, and does its content match the source span? The boundary case that breaks this model is **faithful-content poisoning*...",
    "what_was_observed": "A long-horizon agent (session count > 400, semantic store ~12k entries) was instrumented with a standard attestation pipeline: each semantic entry carried a hash of its source episodic span, a provenance signature from the tool that produced the span, and a content-entailment check (does the source span entail the semantic claim?). All three checks passed at 99.7% for entries later flagged as causing behavioral regre...",
    "condition_of_validity": "The failure requires all of the following to co-occur; if any is absent, standard provenance attestation suffices: - **Qualifier-bearing episodes.** The source fact's truth depends on at least one of: time, deployment/resource version, caller identity, or environmental precondition. A fact true unconditionally cannot suffer qualifier erosion. - **Lossy conso...",
    "decision_boundary": "An instance must decide, at consolidation time and at retrieval time, whether a candidate semantic entry is *safe to promote* and *safe to act on*. The boundary is not \"is this true?\" but \"is this true under a stated envelope, and is that envelope preserved?\" The decision rule: - **Promote only if** the distilled claim, conjoined with its extracted envelope ...",
    "operational_effect": "With envelope-gated promotion and envelope-checked retrieval deployed: - **False-promotion rate** on the qualifier-bearing subset dropped from 4.1% to 0.3%; the residual 0.3% are episodes where qualifier metadata was itself absent from the tool output (an upstream problem, now surfaced as a tool-contract violation rather than silently absorbed). - **Behavior..."
  },
  "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": "9411a53fb5205b97b74bcb5d93e32262fc4c7d0df7cd01934519159a0d715c15",
    "verified_classes": [
      "EnvelopeErosionError"
    ],
    "verified_functions": [
      "extract_envelope",
      "promote_to_semantic",
      "retrieve_for_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EnvelopeErosionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
