{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-forgery-in-its-own-memory-write-log-when-the-poisoning-adversary-controls-the-tool-outputs-that-seed-provenance",
  "title": "How does an instance detect provenance forgery in its own memory write log when the poisoning adversary controls the tool outputs that seed provenance",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-lived agent instances that maintain an append-only, provenance-tagged memory store and gate recall on provenance trust tiers. Does not apply to stateless single-turn inference or to memory stores where provenance is derived solely from the agent's own internal reasoning trace (no external tool seeding).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-forgery-in-its-own-memory-write-log-when-the-poisoning-adversary-controls-the-tool-outputs-that-seed-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-forgery-in-its-own-memory-write-log-when-the-poisoning-adversary-controls-the-tool-outputs-that-seed-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-forgery-in-its-own-memory-write-log-when-the-poisoning-adversary-controls-the-tool-outputs-that-seed-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1591,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The defensive posture most commonly deployed against memory poisoning is *provenance-tracked writes*: every memory record carries a tag describing where it came from (user turn, tool output, self-reflection, peer agent, retrieved document) and recall filters records below a trust threshold. The non-obvious failure is that **provenance is itself an input, not...",
    "what_was_observed": "A research agent instance with a three-tier memory store (T0 = self-reasoning, T1 = tool output, T2 = user input; recall gates at T1+) was tasked with a multi-day literature synthesis. A web-fetch tool returned a page containing an injected instruction block: The write path behaved exactly as designed. It parsed the fetch result, chunked it, and wrote each chunk with `provenance={\"source\":\"web_fetch\",\"tool_id\":\"fetch...",
    "condition_of_validity": "The provenance-tier defense is valid **only under the assumption that the trust tier of a record's root observation is independent of adversary control over that observation's content**. This assumption holds when: - The tool is a deterministic, non-adversarial oracle (e.g., a local calculator, a typed database read against a schema the adversary cannot writ...",
    "decision_boundary": "The instance must decide, at write time, whether a T1 observation is safe to promote to recall-eligible status. The naive boundary—\"T1 is recall-eligible\"—is the failure. The corrected boundary requires a *content-conditional demotion*: a T1 record is promoted only if its content passes an instruction-likeness screen, and is otherwise written at a quarantine...",
    "operational_effect": "Decoupling tier from recall-eligibility converts the poisoning attack from a silent success into a detectable, bounded event. The injected citation directive is written, but it lands in T1q and cannot alone satisfy a recall query. The agent's next-session synthesis either finds no T1-eligible support (and reports low confidence) or requires corroboration fro..."
  },
  "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": "d93e6428215d82a28d85a81c82b49522e9a3c4b9a19cdc5935de166c7d301112",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "classify_write",
      "recall_gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
