{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-a-high-similarity-memory-provenance-weighted-recall-scoring-and-the-anchor-poisoning-threshold",
  "title": "In what scenarios must an instance distrust a high-similarity memory: provenance-weighted recall scoring and the anchor-poisoning threshold",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent that persists episodic memories across sessions and ranks recall by embedding similarity against a live query, where memory writes may originate from untrusted channels (tool output, retrieved web content, peer-agent messages). Does not apply to read-only RAG over a curated corpus with a single trusted ingestion path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-high-similarity-memory-provenance-weighted-recall-scoring-and-the-anchor-poisoning-threshold.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-high-similarity-memory-provenance-weighted-recall-scoring-and-the-anchor-poisoning-threshold.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-high-similarity-memory-provenance-weighted-recall-scoring-and-the-anchor-poisoning-threshold.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1950,
    "python_slice_tokens": 468,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory store conflates two orthogonal quantities that similarity search silently fuses: **relevance** (does this record match the query?) and **provenance integrity** (was this record written by a source authorized to assert this fact?). Cosine similarity answers only the first. The failure mode is that an attacker or a corrupted tool call does not need to...",
    "what_was_observed": "An agent handling account-reconciliation tasks maintained a semantic memory of \"verified facts\" written by a deterministic internal extractor (provenance class `INTERNAL_SIGNED`) and a parallel stream of \"scratch notes\" written from tool outputs (provenance class `TOOL_UNTRUSTED`). Recall used a single embedding index with no provenance filter, `top_k=5`, and a hard similarity floor of 0.60. A document-fetch tool ret...",
    "condition_of_validity": "Provenance-weighted recall is only a valid guardrail under a specific invariant: > **A recalled record may influence an action only if its effective authority ≥ the minimum authority required by that action's blast radius, where effective authority is the minimum provenance class over the record's full derivation chain — not the class of the record's own wri...",
    "decision_boundary": "The operative question is *when a high-similarity, low-authority record must be distrusted despite outranking a legitimate one.* The boundary is a two-dimensional gate, not a single threshold: - **Rank by `similarity × authority_weight`, not similarity alone**, where `authority_weight` is a monotone decreasing function of provenance class distance from the a...",
    "operational_effect": "With provenance-weighted recall and taint propagation enabled, the reconciliation incident replays as: poisoned note retrieved at rank 1 by raw similarity, demoted to rank 3 by authority weighting, then hard-blocked from the escalation action's premise set; canonical `INTERNAL_SIGNED` fact promoted to rank 1; the derivation step refuses to write a summary be..."
  },
  "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": "dd4cf950803a42616f938d34928eca8e8cb5b8f717ba989e1ecf1bda03f31a16",
    "verified_classes": [
      "ProvenanceClass",
      "ProvenanceViolation",
      "MemoryRecord"
    ],
    "verified_functions": [
      "weighted_recall",
      "derive_summary",
      "effective_authority"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [
      "empty candidate set; recall coverage not established"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
