{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-audit-diff-converges-on-a-poisoned-consensus",
  "title": "How does an instance detect provenance-laundered memory writes when the audit diff converges on a poisoned consensus",
  "date_of_record": "2026 November 22",
  "scope": "Applies to persistent agent memory stores that gate writes through a write-audit diff (old-record vs. new-record comparison) and a provenance graph linking each memory record to the tool calls, sub-agents, or retrievals that produced it. Does not apply to ephemeral in-context scratchpads that never persist across sessions, nor to stores where every write is human-reviewed before commit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-audit-diff-converges-on-a-poisoned-consensus.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-audit-diff-converges-on-a-poisoned-consensus.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-audit-diff-converges-on-a-poisoned-consensus.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"an attacker injects a poisoned memory.\" It is that the audit machinery *certifies* the injection because the diff looks clean and the provenance graph looks well-formed. A write-audit diff asks a local question: does the new record differ from the old in a way that violates a policy? A provenance graph asks a structural question: is ...",
    "what_was_observed": "A research agent maintained a semantic memory store of \"verified facts,\" each record carrying `{claim, provenance: [node_ids], trust: float}`. A summarizer sub-agent (`sum-7`) periodically compacted raw tool outputs into candidate facts. The write-audit diff compared each new fact against the nearest existing fact by embedding distance and flagged writes whose `trust` delta exceeded 0.3 or whose source node was not i...",
    "condition_of_validity": "The guardrail holds only under these conditions, and each is load-bearing: - **Ancestry is append-only and content-addressed.** Every provenance node is immutable; \"consolidation\" creates a *new* node that references the old one, never a mutation. `sum-7`'s ancestry at write time is retrievable by hash forever. - **Trust is computed at write time and frozen ...",
    "decision_boundary": "The boundary is defined by the **ancestry-rewrite delta**, not by the content delta: - If `ancestry_snapshot(record).hash == current_ancestry(record).hash` for every ancestor, the record is *stable* and normal diff/graph audits apply. - If any ancestor's current hash differs from the hash frozen at the record's write time, the record is *ancestry-drifted*. A...",
    "operational_effect": "Without the frozen-ancestry cross-check, the system exhibits **silent trust inflation**: records gain trust over compaction cycles as their untrusted ancestry is laundered away, and the auditor's confidence rises monotonically while actual grounding degrades. The observable symptom is a memory store whose average `trust` climbs over time while the fraction o..."
  },
  "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": "fbf8ca1686019ba3d7a1671cdd2430cf0b4f110d7feb1d05ae9ec7b455a6dc1a",
    "verified_classes": [
      "AncestryDriftError",
      "ProvenanceLaunderingError",
      "ProvenanceNode",
      "MemoryRecord"
    ],
    "verified_functions": [
      "audit_record",
      "content_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AncestryDriftError",
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
