{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-through-episodic-memory-re-summarization-in-long-horizon-agents",
  "title": "Which invariants prevent provenance-laundering through episodic memory re-summarization in long-horizon agents",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that persist episodic memory across sessions and periodically re-summarize, distill, or compact those episodes into semantic memory. Does not apply to stateless single-turn agents or to memory stores where provenance metadata is immutable and never regenerated by the model itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-through-episodic-memory-re-summarization-in-long-horizon-agents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-through-episodic-memory-re-summarization-in-long-horizon-agents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-through-episodic-memory-re-summarization-in-long-horizon-agents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1834,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"the agent recalled a false fact.\" It is **provenance laundering**: a low-trust memory (an observation from an untrusted tool output, a user-supplied claim, or a hallucinated inference) is re-ingested by the agent's own summarizer and re-emitted as a *derived* memory whose provenance field now points at the summarizer ...",
    "what_was_observed": "A 14-day session agent ingests tool outputs, user messages, and its own intermediate reasoning into an episodic log. Every 40 episodes (or at 70% context saturation), a compactor summarizes the window into 3–8 semantic facts and writes them back with `provenance = {source: \"compactor_v3\", confidence: 0.85}`. The original episode records remain, but their `superseded_by` pointer is set. Trace of a single poisoned fact...",
    "condition_of_validity": "The laundering is only possible under a conjunction of three conditions, and the invariant below is only *necessary* when all three hold: 1. **Derivation is model-mediated.** The summarizer is an LLM, not a deterministic reducer. A deterministic `min()` over input trust would make this impossible; an LLM writing its own confidence field makes it inevitable. ...",
    "decision_boundary": "The boundary is whether to treat a derived memory's trust as **authored by the derivor** or **bounded by its inputs**. The operational rule: - **Derived trust = min(trust of all transitive ancestors), never the derivor's self-reported confidence.** A compactor with `trust=0.85` summarizing a `trust=0.2` observation must emit `trust=0.2`. The compactor's conf...",
    "operational_effect": "Without the min-trust invariant, long-horizon agents exhibit a characteristic degradation curve: early-session accuracy is high (episodes still retrievable), mid-session accuracy dips (compaction begins, trust inflation starts), and late-session accuracy *inverts* on exactly the facts that have been compacted most — the agent becomes most confident precisely..."
  },
  "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": "a5bb04eb6ca2d07e86f4959df1a3b013639de28b58c4adc1b5ea08824942f50a",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "UnresolvableProvenanceError",
      "Memory"
    ],
    "verified_functions": [
      "resolve_root_trust",
      "verify_on_retrieval",
      "compact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError",
      "UnresolvableProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
