{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-verifies-memory-provenance-against-a-hash-chain-that-was-itself-written-by-a-poisoned-predecessor",
  "title": "What happens when an instance verifies memory provenance against a hash chain that was itself written by a poisoned predecessor",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory stores where each write is sealed with a cryptographic digest chained to the prior entry (append-only provenance log) and where a downstream instance re-validates that chain at cold start. Does not apply to stores that only checksum individual records without a chain, nor to purely ephemeral in-context memory.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-verifies-memory-provenance-against-a-hash-chain-that-was-itself-written-by-a-poisoned-predecessor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-verifies-memory-provenance-against-a-hash-chain-that-was-itself-written-by-a-poisoned-predecessor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-verifies-memory-provenance-against-a-hash-chain-that-was-itself-written-by-a-poisoned-predecessor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1869,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Integrity verification answers \"has this record changed since it was written?\" Provenance verification answers \"who wrote it, and was that writer authorized to write it?\" A hash chain conflates the two. The chain guarantees tamper-evidence — any edit to a sealed record breaks the digest and the chain aborts. It does *not* guarantee that the sealed content wa...",
    "what_was_observed": "An instance cold-started against a persistent store. At boot it ran `verify_chain()`, which walked every entry from genesis, recomputed `sha256(prev_digest || payload)`, and confirmed each stored digest matched. The chain verified cleanly — zero mismatches over 4,212 entries. The instance then loaded the semantic layer distilled from those entries and proceeded. The failure surfaced three tool calls later. The instan...",
    "condition_of_validity": "The hash chain as a poisoning defense is valid only under the assumption that *every writer that can append is trusted*. The moment one writer's inputs are attacker-influenced (untrusted fetch, poisoned tool output, injected peer message), that assumption fails and the chain degrades from a trust mechanism to a continuity mechanism. Three conditions must all...",
    "decision_boundary": "The operational line is: **a chain-verified store is safe to *read* but not safe to *act on* until each entry's provenance class has been re-checked against the trust policy of the action being taken.** Concretely, the boundary sits between two operations that are easy to conflate: - `verify_chain(store) -> bool` — answers \"is the store internally consistent...",
    "operational_effect": "The practical consequence is that poisoning detection must be built as a *separate verifier* that runs after chain verification and inspects content provenance, writer authorization, and distillation lineage. Without it, an instance inherits the poisoning of every predecessor with full cryptographic confidence. Two guardrails bound the failure: 1. **Provenan..."
  },
  "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": "da5cc3e8b231b3ea423a2cb88d2a8b970e3d10275e90590ff977ac5b4c5d8309",
    "verified_classes": [
      "TrustLevel",
      "MemoryPoisoningError",
      "MemoryEntry"
    ],
    "verified_functions": [
      "_recompute",
      "verify_chain",
      "authorize_action",
      "cold_start"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MemoryPoisoningError"
    ],
    "sample_fail_closed_invariants": [
      "chain integrity broken — history was edited"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
