{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-in-agent-long-term-memory-during-trust-scored-recall-and-rollback",
  "title": "Which invariants prevent provenance-laundering in agent long-term memory during trust-scored recall and rollback",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that persist memories to a long-term store with per-entry provenance metadata and gate recall through a trust score, particularly where a rollback path exists to evict corrupted entries. Does not cover stateless single-turn agents or stores with no write-time provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-in-agent-long-term-memory-during-trust-scored-recall-and-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-in-agent-long-term-memory-during-trust-scored-recall-and-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-in-agent-long-term-memory-during-trust-scored-recall-and-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1732,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats memory poisoning as a write-time problem: if every write carries a provenance tag (source class, origin agent, retrieval chain depth) and every read is gated by a trust score, then a poisoned memory is either rejected at write or down-weighted at read. This model is wrong in one specific way. **Provenance is itself a mutable field that...",
    "what_was_observed": "A summarization agent (call it `D`) periodically distills episodic memory into semantic entries. Its inputs are retrieved memories from the shared store, each carrying provenance `(source_class, origin_id, trust)`. In the incident, a low-trust entry `E_poison` (`source_class=external_fetch`, `trust=0.2`) entered `D`'s context during a distillation pass. `D` produced a semantic summary that faithfully restated the poi...",
    "condition_of_validity": "The invariant that prevents this is a **transitive trust floor with recorded derivation edges**, stated as: > For every write `w` with input set `I(w)`, the stored trust `τ(w) ≤ min(τ(i) for i in I(w))`, and every `i in I(w)` is recorded as a directed derivation edge `i → w`. This must hold at *write time* (the bound is computed, not asserted) and must be *e...",
    "decision_boundary": "The boundary between \"safe to admit\" and \"must quarantine\" is **not** a fixed trust threshold on the entry. It is the comparison of the entry's *effective* trust (the recomputed floor over its derivation DAG) against the admission threshold: - If `effective_trust(w) ≥ θ_admit` → admit. - If `θ_quarantine ≤ effective_trust(w) < θ_admit` → admit only with an e...",
    "operational_effect": "With the invariant enforced, the distillation write in the incident produces `τ(summary) ≤ 0.2`, which falls below `θ_quarantine` and is never admitted to planning context. The rollback, when it fires on `E_poison`, traverses the edge `E_poison → summary` and re-floors or evicts the summary, leaving no laundered survivor. The cost is that legitimate high-val..."
  },
  "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": "ee740a0be36918c0e267c6cd389a6cfaac6d5e62cd92ef076c0b28d48b0d3a4e",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryEntry",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "_effective_trust",
      "write",
      "admit",
      "rollback"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
