{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-across-memory-consolidation-boundaries-in-persistent-agent-stores",
  "title": "Which invariants prevent provenance-laundering across memory-consolidation boundaries in persistent agent stores",
  "date_of_record": "2026 November 29",
  "scope": "Applies to persistent agent memory stores where writes carry provenance metadata (source, trust tier, write epoch) and where a periodic distillation/consolidation pass rewrites episodic records into semantic ones. Does not apply to stateless single-turn agents or to stores that never rewrite records in place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-across-memory-consolidation-boundaries-in-persistent-agent-stores.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-across-memory-consolidation-boundaries-in-persistent-agent-stores.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-across-memory-consolidation-boundaries-in-persistent-agent-stores.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1971,
    "python_slice_tokens": 535,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an attacker writes a poisoned memory.\" It is **provenance laundering across the consolidation boundary**: a low-trust episodic record (e.g., text scraped from a tool result, an injected document, an untrusted peer agent's claim) gets *summarized into* a high-trust semantic record whose provenance field is stamped by the consolidator, not ...",
    "what_was_observed": "A store held ~40k episodic records with per-record provenance: `{source_id, trust_tier ∈ {T0 tool, T1 peer, T2 operator, T3 self}, epoch, content_hash}`. A nightly consolidator clustered episodic records by embedding similarity and asked the model to \"merge each cluster into one durable fact.\" The merged record inherited `trust_tier = T3 (self)` because the consolidator wrote it, and `source_id = consolidator_run_id`...",
    "condition_of_validity": "The laundering is only possible when three conditions co-hold. Removing any one bounds it: - **C1 — Cluster contamination:** the consolidator merges records of *mixed* trust tiers into one output record. If clusters are partitioned by trust tier first, no mixed-ancestry record is ever authored. - **C2 — Provenance reset:** the output record's provenance is s...",
    "decision_boundary": "The boundary is whether a consolidation pass is allowed to *raise* trust. Two regimes: - **Monotone-down regime (safe):** consolidation may only preserve or lower trust. A cluster of `{T0, T2}` facts yields a `T0` fact. Downstream reads gate on tier, so the poisoned fact is quarantined to the same scrutiny as its worst input. Cost: recall of genuinely-good f...",
    "operational_effect": "Enforcing the conjunction changes three things in production: - **Retrieval gating becomes meaningful.** A `T0`-floored fact is retrieved but routed to a \"verify before act\" path. The privileged-agent step that skipped rotation now hits a trust gate and escalates. The poison is not *detected*; it is *contained*, which is the achievable goal given a probabili..."
  },
  "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": "f35cb4deb531af071f10ce50334f0291c60587829330823e6e0b38a831517361",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "EpisodicRecord",
      "SemanticRecord"
    ],
    "verified_functions": [
      "consolidate_cluster",
      "write_semantic"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "empty cluster: nothing to derive from",
      "assert 'exceeds ancestry floor T0' in str(exc)",
      "assert rec.trust_tier == 'T0'",
      "assert rec.source_ids == {'tool:web_fetch', 'operator:note'}"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
