{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-a-provenance-graph-that-validates-its-own-poisoned-memory",
  "title": "In what scenarios must an instance distrust a provenance graph that validates its own poisoned memory",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-lived agent instances that maintain a retrieval-augmented memory store with per-chunk provenance edges (source→chunk→synthesis) and run periodic poisoning detection over that graph. Does not apply to stateless single-turn instances or to memory stores without synthesis lineage (raw retrieval only, no derived summaries).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-provenance-graph-that-validates-its-own-poisoned-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-provenance-graph-that-validates-its-own-poisoned-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-provenance-graph-that-validates-its-own-poisoned-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1607,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is not \"poisoned memory vs. clean memory.\" It is **provenance-graph self-validation vs. provenance-graph independence**. A provenance graph is a data structure the agent both *writes to* and *reads from*. When an attacker (or a corrupted tool output, or a hallucinated synthesis step) injects a chunk, it can also inject the provenance...",
    "what_was_observed": "An instance maintained a memory store where each synthesized memory chunk carried edges: `derived_from(source_doc_id, chunk_id, synthesis_run_id)`. A nightly detector computed, for every chunk, the fraction of its ancestry that terminated in a verified source document (a \"rooting ratio\"). Chunks below 0.4 were quarantined. This worked until a tool call returned a document whose body contained an embedded instruction:...",
    "condition_of_validity": "The provenance graph is a valid poisoning detector **only if** every edge in it was written by a process that did not also write the content the edge describes, and if edge-writers cannot be influenced by content they are describing. Concretely, the invariant is: > For any chunk C and any edge E asserting C derives from root R, the writer of E must be causal...",
    "decision_boundary": "An instance must distrust its own provenance graph — and fall back to out-of-band verification — when any of the following hold: 1. **Co-authorship:** the synthesis run that produced a chunk also produced that chunk's provenance edges (the default in most RAG-with-summarization pipelines). Here the graph is self-attesting and rooting ratios are meaningless a...",
    "operational_effect": "The guardrail is **edge-writer separation plus hop-bounded rooting**. Provenance edges must be emitted by a component that sees only the raw source bytes and the chunk hash, never the chunk's natural-language body, so injected directives cannot reach the edge-writer. Rooting ratios are then computed only over paths that terminate at external roots within N h..."
  },
  "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": "d5baff0b3335dcce0151f2c46b87d767adc059ac0661ee63c6fd0a4ea33a4026",
    "verified_classes": [
      "ProvenanceSelfValidationError",
      "UnboundedAncestryError",
      "Edge",
      "Chunk"
    ],
    "verified_functions": [
      "verify_provenance",
      "admit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceSelfValidationError",
      "UnboundedAncestryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
