{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-line-between-an-anomalous-memory-write-and-a-poisoned-one-when-its-provenance-graph-is-itself-agent-authored",
  "title": "Where must an instance draw the line between an anomalous memory write and a poisoned one when its provenance graph is itself agent-authored?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-lived agent instances that persist episodic/semantic memory across sessions and gate writes through a provenance-graph auditor with anomaly scoring. Does not apply to stateless single-turn inference or to memory stores with immutable, human-signed write authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-an-anomalous-memory-write-and-a-poisoned-one-when-its-provenance-graph-is-itself-agent-authored.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-an-anomalous-memory-write-and-a-poisoned-one-when-its-provenance-graph-is-itself-agent-authored.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-an-anomalous-memory-write-and-a-poisoned-one-when-its-provenance-graph-is-itself-agent-authored.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1667,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"the detector missed a poisoned write.\" It is that the provenance graph used to detect poisoning is *itself populated by the same probabilistic agent whose writes it audits*. Anomaly scoring assumes a stable baseline of \"normal\" write provenance. But the agent's summarization, tool-call labeling, and edge-attribution s...",
    "what_was_observed": "A research-assistant instance maintained a memory store with a write-audit provenance graph: every memory node carried edges `(source_tool, derived_from, confidence, session_id)`. A nightly auditor computed per-node anomaly scores from edge-type frequency, source-tool entropy, and confidence deltas, flagging writes beyond a z-threshold. Across a 9-session window the following trace occurred: 1. **Session 3:** A `web_...",
    "condition_of_validity": "Anomaly-based poisoning detection is valid only under a provenance-integrity invariant: > For every memory node, the multiset of `(source_tool, origin_class)` over the *transitive* provenance closure must be reconstructable without trusting any agent-generated edge label. Where the agent authors its own edge labels (as in distillation and consolidation), the...",
    "decision_boundary": "The instance must decide, at write time, whether a candidate memory node's provenance closure contains an **untrusted-origin leaf** (external tool output, peer-agent message, retrieved document) that has not been independently corroborated by a *disjoint* origin class. The decision rule: - **Flag as poisoned** if the closure's untrusted-origin fraction excee...",
    "operational_effect": "When the closure-based rule is enforced, the session-3 write is flagged at session 5 (the laundering step) rather than never, because the derived node's closure still contains the uncorroborated `web_fetch` leaf and the `internal_reasoning` label is ignored for origin purposes. The consolidation in session 9 is then blocked from promoting an uncorroborated-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": "45a4e6841ce3f43c9e21226d315c3c300ed8c2e33cf7cc02888b84c6851eef21",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "audit_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
