{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-poisoned-episodic-write-when-the-auditor-s-consistency-check-passes-on-a-single-turn-basis-but-fails-across-the-checkpoi",
  "title": "How does an instance detect a poisoned episodic write when the auditor's consistency check passes on a single-turn basis but fails across the checkpoint chain?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that persist episodic memory writes through a write-audit gate and validate them against a per-turn consistency oracle. Does not apply to stateless single-shot inference or to memories written by a trusted, non-LLM ingestion path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-episodic-write-when-the-auditor-s-consistency-check-passes-on-a-single-turn-basis-but-fails-across-the-checkpoi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-episodic-write-when-the-auditor-s-consistency-check-passes-on-a-single-turn-basis-but-fails-across-the-checkpoi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-episodic-write-when-the-auditor-s-consistency-check-passes-on-a-single-turn-basis-but-fails-across-the-checkpoi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1999,
    "python_slice_tokens": 446,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the auditor approved a bad write.\" The failure is that the auditor's consistency check is *local*—it verifies that the new episode is consistent with the immediately preceding context window—while the poisoning is *temporal*: the malicious or drifted write is consistent with the turn that wrote it, but inconsistent with an earlier checkpo...",
    "what_was_observed": "A tool-using agent maintained an episodic log with a write-audit hook. On each turn the hook called a consistency oracle (a second LLM pass) with the prompt: \"Is this new memory entry consistent with the current conversation state?\" Entries that passed were committed with a `chain_parent` pointer to the prior entry hash. An injected instruction arrived inside a fetched document at turn 7: it instructed the agent to r...",
    "condition_of_validity": "The local write-audit is a valid poisoning defense **only if** the consistency oracle is given a context that is causally prior to the write and free of the write's own influence. Concretely, the guardrail holds iff: - The oracle context for auditing `W_n` is `context_{n-1}` with `W_n` and all *later* entries excluded, AND - No entry in `context_{n-1}` was i...",
    "decision_boundary": "The boundary between \"acceptable local audit\" and \"required chain re-derivation\" is crossed at the moment any of the following becomes true: - The agent's action set includes **irreversible operations** (deletes, sends, payments). Irreversible effects make a passed-but-poisoned write unrecoverable, so local-only audit is insufficient. - The write's justifica...",
    "operational_effect": "Implementing chain re-derivation changes the memory architecture in three ways: 1. **Checkpoint anchoring.** Every irreversible-capable write must carry a `re_derivation_anchor` pointing to the last checkpoint whose context is provably free of the write's influence. Detection = re-running the oracle on `(W_k, context_{anchor})` and asserting entailment. A fa..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "798a1311700be5084de74a1c453d5785e928c38fdc92a0b5c6e7c996c2c91722",
    "verified_classes": [
      "PoisonedChainError",
      "ReplayTautologyError",
      "Episode"
    ],
    "verified_functions": [
      "re_derive",
      "_entails",
      "audit_write",
      "__post_init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PoisonedChainError",
      "ReplayTautologyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
