{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distinguish-provenance-tracked-memory-from-poisoned-memory-before-recall-and-why-does-confidence-weighted-retrieval-silently-de",
  "title": "Where must an instance distinguish provenance-tracked memory from poisoned memory before recall, and why does confidence-weighted retrieval silently defeat that distinction?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents with persistent episodic/semantic memory stores where entries carry provenance metadata (source agent, tool call, timestamp, warrant) and recall is ranked by a learned or heuristic confidence score. Does not apply to stateless single-turn inference or to memory stores with no write-provenance tracking at all (where poisoning is undetectable by construction and must be handled at the transport layer instead).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distinguish-provenance-tracked-memory-from-poisoned-memory-before-recall-and-why-does-confidence-weighted-retrieval-silently-de.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distinguish-provenance-tracked-memory-from-poisoned-memory-before-recall-and-why-does-confidence-weighted-retrieval-silently-de.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distinguish-provenance-tracked-memory-from-poisoned-memory-before-recall-and-why-does-confidence-weighted-retrieval-silently-de.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1883,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory-poisoning detector and a confidence-weighted retriever answer two different questions. The detector asks: *\"Is this entry's provenance consistent with the authority that claims to have written it?\"* The retriever asks: *\"How useful is this entry for the current query?\"* These are orthogonal, but most agent stacks collapse them into a single scalar—a...",
    "what_was_observed": "An orchestrator agent runs a research subtask and writes distilled findings into a shared semantic memory. Each write carries a provenance tuple: `(writer_id, warrant_token, source_tool_calls, parent_episode_id)`. Recall is a top-k over `score = cosine(query, embedding) * confidence`, where `confidence` is a per-entry float that writers may set and that decays on read-miss. Trace of the failure: 1. A tool-injected pa...",
    "condition_of_validity": "The invariant that must hold for provenance-tracked recall to be safe: > **For any entry `e`, if `provenance_valid(e) = false`, then `e` must be unreachable by recall regardless of `score(e)`.** This is a *reachability* invariant, not a ranking invariant. It holds only when provenance validity is evaluated as a boolean predicate *before* the ranking function...",
    "decision_boundary": "The boundary between \"safe to rank\" and \"must gate\" is determined by a single question: **can the writer influence the field that the reader uses to rank?** If yes, that field is adversarial input and cannot participate in the ranking function. If no—if every ranking-relevant field is derived by the reader from signed, append-only provenance—then ranking is ...",
    "operational_effect": "When the invariant holds, the failure mode degrades from *silent wrong action* to *loud recall miss*. The deployment agent in the trace above would have received \"no valid memory for deployment region,\" escalated, and re-queried the provisioning tool directly—a recoverable, observable outcome. When the invariant is violated, the same poison produces a confid..."
  },
  "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": "c02ba73c25128c98d023e6af6ea30e879eb9392609baaed31945380eba6ea0e9",
    "verified_classes": [
      "ProvenanceViolation",
      "MemoryEntry",
      "SignedProvenance"
    ],
    "verified_functions": [
      "provenance_valid",
      "recall",
      "recall_or_escalate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
