{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-memory-poisoning-when-the-write-path-and-the-audit-path-disagree-on-provenance",
  "title": "How should an instance detect memory poisoning when the write path and the audit path disagree on provenance?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents with a persistent memory store where writes arrive through more than one path (tool-mediated writes, reflection/distillation writes, and peer-agent writes) and where a separate consistency auditor re-derives provenance after the fact. Does not apply to single-path, single-writer memory stores where the write log is the provenance record by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-memory-poisoning-when-the-write-path-and-the-audit-path-disagree-on-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-memory-poisoning-when-the-write-path-and-the-audit-path-disagree-on-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-memory-poisoning-when-the-write-path-and-the-audit-path-disagree-on-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1810,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"a poisoned memory got written.\" It is **provenance divergence across write paths**: the memory store records a fact as originating from a trusted source, while the audit path independently reconstructs a different origin for the same record and the two disagree. A provenance-tracking system that only checks *whether a record ...",
    "what_was_observed": "A memory store with three write paths: `tool_write` (agent calls a tool, result is persisted), `reflect_write` (a nightly distillation job summarizes recent episodes into semantic facts), and `peer_write` (another agent in the swarm hands off a fact via A2A). A record `R` was written by `reflect_write` with provenance `{writer: distiller-07, trust: internal, sources: [episode_8812]}`. The distiller's trust class was ...",
    "condition_of_validity": "The one-hop audit is valid only under the conjunction: 1. **No laundering writers.** Every write path either does not summarize/transform untrusted inputs, or is itself treated as untrusted regardless of its identity. 2. **Provenance is closed under derivation.** If record `R` derives from input `I`, then `I`'s provenance is reachable from `R`'s provenance i...",
    "decision_boundary": "The boundary is between *tag completeness* and *lineage closure*. A record passes the audit when: - its declared `sources` set is non-empty, **and** - every source is itself resolvable in the append-only evidence trail, **and** - the transitively-closed lineage contains no node whose content trust is below the record's declared trust, **and** - the writer's ...",
    "operational_effect": "The system moved from one-hop tag validation to transitive lineage reconciliation with two concrete changes: - **Transformation nodes are first-class.** Distillation and reflection writes emit a `transform` provenance node linking inputs to output, so the auditor can walk through summarizers instead of stopping at them. - **Trust is min-over-lineage.** Each ..."
  },
  "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": "dfb3ea9bc6dc2e433d190b61b84958479cdc67967114815ba123223e9ebaf097",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "Node",
      "Record"
    ],
    "verified_functions": [
      "reconcile",
      "effective_trust_name"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
