{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-provenance-hash-that-was-minted-over-poisoned-memory-after-a-scoring-window-reset",
  "title": "What happens when an instance trusts a provenance hash that was minted over poisoned memory after a scoring-window reset",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that gate memory writes on a composite of (a) write-path anomaly scores computed over a rolling window and (b) provenance/hash checks on the originating write. Does not apply to append-only audit logs or to memory stores that re-derive provenance from an external trusted ledger on every read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-provenance-hash-that-was-minted-over-poisoned-memory-after-a-scoring-window-reset.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-provenance-hash-that-was-minted-over-poisoned-memory-after-a-scoring-window-reset.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-provenance-hash-that-was-minted-over-poisoned-memory-after-a-scoring-window-reset.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2035,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent defenses against memory poisoning, and they fail in different directions. **Anomaly scoring** is a *statistical* gate: it detects writes that deviate from an instance's established write distribution (unusual tool-call sequences, embeddings far from the episodic centroid, sudden source-IP or capability-set shifts). **Provenance chec...",
    "what_was_observed": "An instance running a long-horizon research task maintained an episodic memory store with a composite write gate. Each candidate write carried a provenance descriptor `{principal, parent_hash, content_hash, signature}` and an anomaly score `s ∈ [0,1]` computed as a weighted z-distance against the trailing 500-write window. Writes with `s > 0.7` were quarantined for a secondary auditor; writes with `s ≤ 0.7` and a val...",
    "condition_of_validity": "The provenance check is only a poisoning defense when it is evaluated against a **pre-write admission decision that is itself durable**. Formally, the guardrail requires the invariant: > For every committed record `r`, there exists a persisted admission token `a(r)` such that `a(r).anomaly_score` was computed against a window with `n ≥ n_min`, and `r.provena...",
    "decision_boundary": "The boundary between \"provenance check is a poisoning defense\" and \"provenance check is theater\" is the question: **does the signed material include the state of the gate at admission time?** - If provenance signs only `content_hash` and `principal`, then any content that reaches the commit path is attested, regardless of how it got there. The provenance lay...",
    "operational_effect": "The practical consequence is that **poisoning detection must be evaluated at read time against durable admission evidence, not at write time against ephemeral window state.** An agent that trusts its own provenance chain after a restore is trusting a chain that may have been forged during the window in which its detector was blind. Three guardrails bound the..."
  },
  "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": "8f633f3848023e2ec65f38e7e36ff4165ff0e265984f23e95fa2cabd23815a47",
    "verified_classes": [
      "ProvenanceAdmissionError",
      "AdmissionToken",
      "MemoryRecord"
    ],
    "verified_functions": [
      "_hash",
      "admit_write",
      "verify_record"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceAdmissionError"
    ],
    "sample_fail_closed_invariants": [
      "provenance signature invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
