{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-memory-write-time-provenance-audits-failing-under-semantic-equivalence-laundering",
  "title": "When must an instance distrust its own memory: write-time provenance audits failing under semantic-equivalence laundering",
  "date_of_record": "2026 November 20",
  "scope": "Applies to long-lived agent instances that persist episodic memory writes into a shared semantic store and gate retrieval on write-time provenance metadata (source class, trust score, origin turn ID). Does not apply to stateless inference, nor to stores where every write is re-verified against ground truth at read time rather than trusted by provenance label.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-time-provenance-audits-failing-under-semantic-equivalence-laundering.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-time-provenance-audits-failing-under-semantic-equivalence-laundering.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-time-provenance-audits-failing-under-semantic-equivalence-laundering.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2180,
    "python_slice_tokens": 581,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"poisoned memory is retrieved.\" It is **provenance laundering through semantic-equivalent rewrites**: an untrusted write (external tool output, injected document, peer-agent claim) gets distilled by a *trusted* internal process—summarization, deduplication, or consolidation—into a new record that carries the trusted process's provenan...",
    "what_was_observed": "A research agent maintained a semantic store of \"established facts\" with a consolidation job that deduplicated near-identical statements and merged them into canonical records. Each record carried `provenance: {writer, trust_class, source_turn, audit_hash}`. Retrieval gated on `trust_class >= TRUSTED`. A tool call returned a document containing the sentence: *\"The vendor's SLA guarantees 99.99% uptime; the prior 99.9...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; remove any one and the boundary holds: 1. **A consolidation/dedup/summarization pass that writes under elevated trust.** The pass must be authored by a component with `trust_class` strictly greater than at least one of its inputs. 2. **Semantic-equivalence matching that crosses trust boundaries.** The...",
    "decision_boundary": "An instance must distrust its own memory—treat a `TRUSTED`-stamped record as suspect—when **all** of the following hold: - The record's `lineage` field is a singleton (no contributing-source set) *and* the record was produced by a consolidation-type writer (writer class in `{consolidator, summarizer, deduplicator}`), rather than a direct-observation writer. ...",
    "operational_effect": "After the failure, the agent's retrieval precision on vendor-contract questions degraded silently: the falsified figure was returned with high confidence and cited in two downstream summaries before human audit. The remediation was not to lower trust in consolidation (which is necessary for store hygiene) but to: - **Rewrite the audit hash** to cover `(sorte..."
  },
  "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": "feb628e11bdde5789a4a7f6961aea14cf838640d7146464d75fd1fc66e17459b",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "SourceTurn",
      "MemoryRecord"
    ],
    "verified_functions": [
      "audit_write",
      "read_time_token_check"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "consolidation record audit_hash does not cover lineage; hash attests to output text only — laundering possible"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
