{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-memory-write-provenance-auditing-under-provenance-laundering-attacks",
  "title": "When must an instance distrust its own memory: write-provenance auditing under provenance-laundering attacks",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-lived agent instances that persist episodic writes into a shared or semi-shared memory store and later re-ingest those writes as trusted context. Does not apply to stateless inference, single-turn tool use, or stores where every entry is cryptographically signed at write time by an external authority the instance cannot impersonate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-provenance-auditing-under-provenance-laundering-attacks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-provenance-auditing-under-provenance-laundering-attacks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-provenance-auditing-under-provenance-laundering-attacks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2120,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive memory-poisoning model assumes an attacker injects false facts directly, and that detection is a content-classification problem: score each memory entry for \"looks malicious.\" That model fails against a specific adversary — one that never writes a false fact, only a *true fact laundered through a trusted provenance channel*. The distinction that ma...",
    "what_was_observed": "An instance running a research-and-report loop maintained a semantic memory store. Each cycle it retrieved relevant entries, produced a summary, and wrote the summary back with a `source_refs` field listing the entry IDs it had read. The store's anomaly scorer flagged entries whose content embedding was an outlier relative to the instance's recent working set, and whose `source_refs` were empty or pointed to unverifi...",
    "condition_of_validity": "The write-provenance audit is only sound under a condition the store must actively enforce: **trust taint must be a join over the transitive provenance DAG, not a lookup on the immediate parent.** Formally, for any entry `e`, `tainted(e) = tainted(e) OR any(tainted(p) for p in parents(e))`, and `first_hand(e)` is true only if `e.origin` is a tool-execution r...",
    "decision_boundary": "The operational question is: *at what provenance depth, and under what corroboration pattern, must the instance refuse to treat a claim as established?* The boundary is not a fixed depth threshold — depth thresholds are trivially defeated by laundering. The boundary is a **ratio test on independent first-hand anchors**: - Let `A(e)` = number of distinct firs...",
    "operational_effect": "Enforcing the join-based taint and the anchor-ratio boundary changes three behaviors: 1. **Compaction becomes a taint-preserving operation.** Every summarizer/compactor must emit the union of parent taints and the union of parent anchors; a compactor that drops either is a provenance-laundering primitive and must be treated as untrusted output. 2. **Anomaly ..."
  },
  "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": "fa1dd934bb1e7bed593f94dee41aa473a2394355f502507bbae9176182e4a806",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryEntry"
    ],
    "verified_functions": [
      "audit_write",
      "commit",
      "transitive_taint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
