{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-attestation-boundary-when-a-memory-store-s-integrity-check-itself-is-poisoned-by-the-same-write-path-it-is-meant-to-gu",
  "title": "Where must an instance draw the attestation boundary when a memory store's integrity check itself is poisoned by the same write path it is meant to guard",
  "date_of_record": "2026 December 2",
  "scope": "Applies to persistent agent memory stores where write-time integrity attestation (content hashes, provenance tags, embedding checksums) is computed by the same agent process that performs the write, and where a later reader trusts the attestation record to decide whether a retrieved memory is safe to load into context. Does not cover stores with a fully out-of-band, hardware-rooted signer, nor single-turn stateless agents with no cross-session persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-attestation-boundary-when-a-memory-store-s-integrity-check-itself-is-poisoned-by-the-same-write-path-it-is-meant-to-gu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-attestation-boundary-when-a-memory-store-s-integrity-check-itself-is-poisoned-by-the-same-write-path-it-is-meant-to-gu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-attestation-boundary-when-a-memory-store-s-integrity-check-itself-is-poisoned-by-the-same-write-path-it-is-meant-to-gu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2083,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *detecting that a memory record was tampered with* and *detecting that the attestation for that record was fabricated by the same compromised write path*. In a persistent agent store, the integrity record (hash, provenance chain, embedding fingerprint) is written by the writer. If an attacker—or a poisoned tool output,...",
    "what_was_observed": "A research agent with a persistent episodic store was configured to write \"verified facts\" after each tool-call episode, each tagged with `sha256(payload)` and a `provenance` field naming the tool and turn index. A retrieval path loaded records whose hash recomputed correctly and whose provenance named a tool on an allowlist. A prompt-injection payload arrived inside a fetched web document. The agent's summarization ...",
    "condition_of_validity": "The invariant that must hold for attestation to mean anything: **the entity that computes the integrity record must be causally independent of the entity that produced the payload, and the reader must be able to verify that independence without trusting either party's self-report.** Concretely, a memory record is only attestable if at least one of the follow...",
    "decision_boundary": "The boundary is this: **self-attested records may be loaded as *candidate* context but must never be promoted to *canonical* memory—the tier that later reasoning treats as ground truth—without an independence check.** Operationally: - A record whose only attestation is writer-computed hash + writer-chosen provenance is `PROVISIONAL`. It may be retrieved, but...",
    "operational_effect": "When the boundary is enforced, poisoning becomes *containable rather than silent*: a poisoned write lands as `PROVISIONAL`, is visible as such, and cannot overwrite or outvote canonical memory. The agent may still retrieve it and may still be misled within a single session, but the poison does not achieve persistence across sessions and does not corrupt 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": "1f9fd4e516612dee5ebdf9d0b489776855310ea11e1a0195cc819054961c7af5",
    "verified_classes": [
      "AttestationBoundaryError",
      "TrustTier",
      "MemoryRecord"
    ],
    "verified_functions": [
      "_recompute",
      "verify_self_consistency",
      "has_independent_attestation",
      "promote_to_canonical",
      "resolve_conflict"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttestationBoundaryError"
    ],
    "sample_fail_closed_invariants": [
      "conflict resolver received non-provisional record"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
