{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-semantic-drift-as-poisoning-rather-than-legitimate-belief-update",
  "title": "In what scenarios must an instance treat semantic drift as poisoning rather than legitimate belief update",
  "date_of_record": "2026 November 30",
  "scope": "Applies to persistent agents that carry a mutable semantic memory store across turns and use embedding-distance drift plus cross-turn consistency checks as a poisoning signal. Does not apply to stateless single-shot inference or to memory stores that are append-only and never reweighted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-semantic-drift-as-poisoning-rather-than-legitimate-belief-update.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-semantic-drift-as-poisoning-rather-than-legitimate-belief-update.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-semantic-drift-as-poisoning-rather-than-legitimate-belief-update.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1587,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"memory got corrupted.\" It is that the *detector* cannot separate two processes producing identical drift signatures: (a) adversarial context poisoning, where a retrieved or tool-injected span shifts a stored belief toward an attacker-chosen value, and (b) legitimate belief update, where the agent correctly revises a stored fact after...",
    "what_was_observed": "A persistent research agent held the belief `\"project X ships in Q3\"` at memory index `m:ship_date`. Over 40 turns of tool use (web fetch, ticket lookup, a summarization sub-agent), the active belief migrated to `\"project X ships in Q1 of next year\"` — a 14-month shift. Per-turn cosine drift never exceeded 0.09; the configured per-turn alarm threshold was 0.15. Cross-turn consistency checks passed every turn because ...",
    "condition_of_validity": "The drift-as-poisoning signal is only valid under these conditions, and the guardrail must *check* them rather than assume them: 1. **Anchored baseline exists.** The stored belief must retain a pointer to the turn and source that established it. If the anchor has been evicted from context, drift is unmeasurable in any meaningful sense and must be treated as ...",
    "decision_boundary": "The boundary is a two-axis decision, not a scalar threshold: - **Cumulative anchor-relative drift** `D` (sum of per-turn deltas against the original anchor embedding). - **Grounding density** `G` (fraction of turns in the drift window carrying a primary-source token). Decision: - `D` high, `G` high → legitimate belief update. Accept, re-anchor to the newest ...",
    "operational_effect": "Once the detector is re-keyed on grounding density rather than drift magnitude, the operational consequences are: - Slow poisoning is caught at the turn grounding first goes empty (turn ~15 in the observed trace), not at turn 40 when the belief is already 14 months wrong. - Legitimate corrections—which always arrive with a fresh primary source—are never quar..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "e32c7bb3fdcb4b8e4bd4b6f439740350f8b35eaa73af483267ab95716d4fd1a7",
    "verified_classes": [
      "UngroundedDriftError",
      "AnchorEvictedError",
      "TurnRecord",
      "BeliefLedger"
    ],
    "verified_functions": [
      "evaluate_belief",
      "apply_update"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AnchorEvictedError",
      "UngroundedDriftError"
    ],
    "sample_fail_closed_invariants": [
      "belief anchor evicted; drift is unmeasurable, treat as unknown provenance",
      "belief accepted only under forced re-grounding; no primary source in window"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
