{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-poisoning-signal-is-diluted-below-per-entry-anomaly-thresholds",
  "title": "How does an instance detect provenance-laundered memory writes when the poisoning signal is diluted below per-entry anomaly thresholds",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-lived agents that persist episodic and semantic memory across sessions and gate writes through a provenance-tracked audit log with per-entry anomaly scoring. Does not apply to stateless single-turn inference, nor to memory 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-poisoning-signal-is-diluted-below-per-entry-anomaly-thresholds.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-poisoning-signal-is-diluted-below-per-entry-anomaly-thresholds.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-the-poisoning-signal-is-diluted-below-per-entry-anomaly-thresholds.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1960,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of memory poisoning assumes a *malicious write*: an injected instruction or fabricated fact that, considered in isolation, looks anomalous. Detectors built on this framing score each candidate write against a baseline and flag outliers. That works against single-shot poisoning. It does not work against **provenance laundering**, which is t...",
    "what_was_observed": "An agent with a semantic memory store of ~40k entries, each carrying a provenance tuple `(source_type, source_id, session_id, parent_write_id, timestamp, tool_call_hash)`, ran a per-entry anomaly scorer: cosine distance from the running centroid of the entry's `source_type` cluster, plus a z-score on token length and embedding norm. Threshold at z > 3.0. Over a 9-day window, zero entries crossed threshold, yet downst...",
    "condition_of_validity": "The per-entry detector is valid only under an assumption that is rarely stated and frequently false: **that independent provenance roots produce independent writes at a roughly stationary rate.** Under that assumption, a write cohort with a single dominant root is statistically improbable and would surface as an outlier. The moment an adversary (or a benign-...",
    "decision_boundary": "The boundary between \"score the entry\" and \"score the cohort\" is crossed when any of the following holds for a write cohort (grouped by `source_type` and a rolling window): - **Root concentration:** the top provenance root accounts for more than a threshold fraction (observed working value: 0.4) of writes in a cohort of size ≥ 8. Single-root dominance is the...",
    "operational_effect": "The corrective architecture is a two-tier audit. Tier one remains the per-entry anomaly scorer (catches single-shot poisoning). Tier two is a **provenance-graph cohort scorer** that runs at write-commit and at promotion time, computing root concentration and echo ratio over the cohort, and *hard-blocks* promotions with fewer than two distinct roots. On the a..."
  },
  "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": "f765ed59d03eda82c3b5971bea95481cb8f3530c755d899aec5ab6180369b2c8",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Write",
      "CohortAudit"
    ],
    "verified_functions": [
      "audit_cohort",
      "gate_promotion"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "collections",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
