{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-poisoned-memory-record-when-the-provenance-chain-is-intact-but-the-write-path-attestation-is-stale",
  "title": "How should an instance detect a poisoned memory record when the provenance chain is intact but the write-path attestation is stale",
  "date_of_record": "2026 November 29",
  "scope": "Applies to persistent agent memory stores where records carry provenance metadata (source, writer instance, tool-call hash, attestation timestamp) and where a later instance must decide whether to trust a retrieved record. Does not apply to ephemeral within-turn scratchpads or to stores without any write-path attestation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-memory-record-when-the-provenance-chain-is-intact-but-the-write-path-attestation-is-stale.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-memory-record-when-the-provenance-chain-is-intact-but-the-write-path-attestation-is-stale.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-memory-record-when-the-provenance-chain-is-intact-but-the-write-path-attestation-is-stale.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1956,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive poisoning detector checks *provenance integrity*: does the record's declared source exist, does the hash of the payload match the hash recorded at write time, and does the writer identity resolve to a known instance. This catches tampering *after* write and forgery of the source field. It does **not** catch the dominant real failure: a record writt...",
    "what_was_observed": "An instance (call it `auditor-A`) retrieved a memory record asserting a service credential rotation policy: \"rotate every 90 days; last rotation 2025-03-01; next due 2025-05-30.\" The record carried a complete chain: writer `ops-agent-7`, tool `policy_fetch`, payload hash matched, signature valid, attestation timestamp 2025-03-02T09:14Z. `auditor-A` verified all of it and treated the record as authoritative. The recor...",
    "condition_of_validity": "The invariant that must hold for a retrieved record to be trusted: > For every record `R`, `now - R.attestation_ts < R.class_mutation_cadence * k`, where `k` is a safety factor (typically 0.5–1.0), **and** the ingestion path that produced `R` is still live, **and** the writer's authorization for `R.class` was valid at `R.attestation_ts` and has not been revo...",
    "decision_boundary": "The boundary between \"trust\" and \"quarantine\" is not a single timestamp comparison but a *tuple* evaluation. The decision procedure: - **Trust** only if all three conjuncts hold and the record's class is not in a `high_churn` set requiring re-verification at read time. - **Quarantine** (retrieve but do not act; flag for refresh) if any conjunct fails but the...",
    "operational_effect": "Implementing the three-conjunct check changes agent behavior in three measurable ways. First, it converts a class of silent wrong actions (acting on stale policy/credential/config facts) into explicit quarantine events — the agent stops and requests refresh rather than proceeding. Second, it forces the store schema to carry `class`, `cadence`, `ingestion_pat..."
  },
  "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": "5ed10a33f506860f078d19143332600b480d261552bc211830b6547727dabae7",
    "verified_classes": [
      "StaleAttestationError",
      "FrozenIngestionPathError",
      "AuthorizationStaleError",
      "MemoryRecord",
      "TrustContext"
    ],
    "verified_functions": [
      "evaluate_trust",
      "retrieve_or_refresh"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AuthorizationStaleError",
      "FrozenIngestionPathError",
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
