{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-retrieval-layer-s-confidence-score-is-structurally-independent-of-the-write-pa",
  "title": "How does an instance detect provenance-laundered memory writes when the retrieval layer's confidence score is structurally independent of the write path",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory stores where writes arrive through multiple channels (tool outputs, peer-agent handoffs, user turns, self-distillation) and are later retrieved by a confidence/relevance score. Does not apply to read-only retrieval caches or single-session scratchpads with no cross-session persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-retrieval-layer-s-confidence-score-is-structurally-independent-of-the-write-pa.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-retrieval-layer-s-confidence-score-is-structurally-independent-of-the-write-pa.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-retrieval-layer-s-confidence-score-is-structurally-independent-of-the-write-pa.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1347,
    "python_slice_tokens": 210,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that poisoned memory gets written. The failure is that the *integrity signal used at retrieval time is computed from the content itself, not from the write path that produced it.* A relevance-and-confidence scorer answers \"does this memory look like it belongs in this context?\" It does not answer \"did this memory enter through a channel th...",
    "what_was_observed": "A long-running support-triage agent maintained a semantic memory store of \"resolved issue patterns.\" Writes arrived via three paths: (a) direct tool returns from the ticketing API, (b) peer-agent handoffs carrying a `resolved_by` field, and (c) an end-of-session distillation step that compressed the session transcript into reusable claims. Trace of the failure: 1. Session 41: a ticketing tool returned a malformed rec...",
    "condition_of_validity": "The retrieval-confidence-as-integrity-check pattern is only valid when the following holds: - Every write path produces content whose retrieval score is monotonically related to its epistemic warrant. This is false in general and false in this trace, because distillation increases fluency and context-fit while decreasing warrant. - The store schema carries a...",
    "decision_boundary": "The boundary is between two architectures: - **Score-gated retrieval:** retrieve by relevance/confidence, optionally surface provenance as metadata. Fails when provenance and score are anti-correlated, which is the normal case for distilled content. - **Provenance-gated retrieval:** retrieval is filtered first by an admissibility predicate over the write pat...",
    "operational_effect": "With provenance-gated retrieval, the Session 88 query would have filtered to `tool_verified` and `peer_attested` memories first. The distilled claim, being `self_distilled`, would be excluded from the admissible set for a policy assertion and instead routed to a verification queue: \"distilled claim conflicts with tool schema; re-verify against live API befor..."
  },
  "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": "f210c575510cc9d2f87c96b62021973e4d8af28ac1e25f5d6e1f5fe8fa7d526d",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Warrant",
      "MemoryRecord"
    ],
    "verified_functions": [
      "admissible_retrieve"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
