{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-poisoned-memory-write-that-passed-its-own-audit-chain",
  "title": "What happens when an instance trusts a poisoned memory write that passed its own audit chain",
  "date_of_record": "2026 November 25",
  "scope": "Applies to persistent-memory agents that gate writes through an append-only provenance/audit chain and detect poisoning by re-verifying the chain at read time. Does not apply to stateless agents, nor to memory stores where trust is established solely by the writer's cryptographic identity without content re-derivation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-memory-write-that-passed-its-own-audit-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-memory-write-that-passed-its-own-audit-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-memory-write-that-passed-its-own-audit-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1787,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most memory-poisoning defenses conflate two independent questions: *\"Was this write authorized and intact?\"* (integrity) and *\"Is this content actually true given what the agent already believes?\"* (consistency). A provenance chain answers the first question well — hash-linked records, signed writers, monotonic sequence numbers. It answers the second questio...",
    "what_was_observed": "A research agent maintains an episodic-to-semantic memory store. Every write to semantic memory is an append-only record: On read, the agent runs `verify_chain(records)`: it recomputes each `payload_hash`, checks `parent_hash` linkage, and validates signatures. If the chain verifies, the record is promoted into the active context. This was treated as sufficient poisoning defense. The failure trace, reproduced in a to...",
    "condition_of_validity": "The audit-chain-as-poisoning-defense only holds under a condition almost never stated explicitly: **every record in the chain must be independently corroborated by a source whose trust is established outside the chain.** If the chain's root of trust is \"records written by our own agents,\" then the chain can only detect tampering by *external* parties — it is...",
    "decision_boundary": "The operational fork is whether to treat chain validity as a **necessary** or a **sufficient** condition for memory promotion. - **Sufficient (the failure mode):** chain verifies → promote. Fast, but launders trusted-writer falsehoods and severs source attribution through distillation. - **Necessary (the correct bound):** chain verifies → *candidate*; then r...",
    "operational_effect": "Concretely, the guardrail is: **provenance chains must carry a `trust_class` and a `source_ref` that distillation is not permitted to sever, and irreversible actions must require a source edge terminating in an external-trust class — not merely a valid signature.** The audit chain is retained for tamper detection but is explicitly *demoted* from \"poisoning d..."
  },
  "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": "42006c2408451bab8342f0420714a33cc389dc69df9f894cc536899a3e624d62",
    "verified_classes": [
      "TrustClass",
      "ProvenanceLaunderingError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "verify_chain",
      "promote_for_action"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "chain integrity failed; refuse promotion"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
