{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-write-path-provenance-scores-against-retrieval-time-trust-weights-before-admitting-a-memory-and-what-breaks-when-it-d",
  "title": "Where must an instance reconcile write-path provenance scores against retrieval-time trust weights before admitting a memory, and what breaks when it does not",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory systems that admit writes from multiple sources (tool outputs, peer agents, user turns, self-reflection) and later retrieve them under a trust-weighted ranking. Does not apply to ephemeral single-turn context, nor to memory stores with a single trusted writer and no retrieval-time weighting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-write-path-provenance-scores-against-retrieval-time-trust-weights-before-admitting-a-memory-and-what-breaks-when-it-d.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-write-path-provenance-scores-against-retrieval-time-trust-weights-before-admitting-a-memory-and-what-breaks-when-it-d.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-write-path-provenance-scores-against-retrieval-time-trust-weights-before-admitting-a-memory-and-what-breaks-when-it-d.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1520,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance scoring and retrieval trust weighting are two independent guards against memory poisoning, and the failure mode lives in the gap between them. Write-path provenance scoring assigns a source-trust value `p` to a memory at admission time. Retrieval-time trust weighting applies a separate weight `w` to a candidate memory at read time, typically deriv...",
    "what_was_observed": "A persistent agent servicing a document-analysis workload admitted tool outputs under a provenance class of `untrusted_external` (score 0.2) and user-authored corrections under `verified_user` (score 0.9). Retrieval weighting combined recency (half-life 6h), corroboration count (each independent admission +0.15), and a source-class multiplier. The source-class multiplier was applied to the *corroboration-boosted* sco...",
    "condition_of_validity": "The failure requires three conditions simultaneously: 1. **Corroboration is counted without provenance stratification.** If corroboration increments only when the new admission's provenance is within a band of the existing memory's provenance, the amplifier is closed. Without this, N low-trust admissions sum to the weight of one high-trust admission. 2. **Re...",
    "decision_boundary": "The boundary is not \"reject untrusted writes\" (too blunt; tool outputs are the agent's primary information channel) and not \"trust recency\" (recency is exactly the amplifier). The boundary is: **a memory's retrieval weight must be a monotone non-increasing function of its write-path provenance deficit.** Concretely, define `deficit(m) = p_max - p(m)` where `...",
    "operational_effect": "With the clamp enforced, the poisoned claim from the trace would have been capped at `0.3 * W_max` at every retrieval, ranking below the `verified_user` memory permanently. The agent would have surfaced the correct renewal date at hour 41. The cost is that legitimately corroborated low-provenance facts (e.g., a fact confirmed by five independent scraped sour..."
  },
  "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": "99bf3ff19d2ba156000ee659b9ddaf85688eed3ae297e4bc664a81d8ba13e2fe",
    "verified_classes": [
      "ProvenanceClampViolation",
      "Memory"
    ],
    "verified_functions": [
      "retrieval_weight",
      "clamped_weight",
      "admit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceClampViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
