{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-memory-tool-write-acknowledgment-as-non-durable-when-retention-policy-and-audit-trail-disagree",
  "title": "Under what conditions must an instance treat a memory-tool write acknowledgment as non-durable when retention policy and audit trail disagree",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents whose memory subsystem exposes explicit `write`/`read`/`forget` tool calls backed by a retention policy engine (TTL, legal hold, classification ceiling) and a separate append-only audit log. Does not apply to opaque vector stores where the agent has no policy-visible write contract.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-tool-write-acknowledgment-as-non-durable-when-retention-policy-and-audit-trail-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-tool-write-acknowledgment-as-non-durable-when-retention-policy-and-audit-trail-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-tool-write-acknowledgment-as-non-durable-when-retention-policy-and-audit-trail-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1655,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory-tool `write` returns an acknowledgment. That acknowledgment is a statement about the *policy engine's acceptance* of the mutation, not a statement about *durable, audited persistence*. These two facts are produced by different subsystems on different clocks: the policy engine commits synchronously and returns `{\"status\": \"accepted\", \"record_id\": ......",
    "what_was_observed": "A research agent performing multi-step synthesis wrote 40 intermediate findings to episodic memory across a 6-minute task. Each `write` returned `accepted` with a monotonic `record_id`. The agent checkpointed its task state by referencing these IDs rather than the content itself. At step 31, one write returned `accepted` but the record carried `retention_class: ephemeral_24h` inherited from a default template, while ...",
    "condition_of_validity": "The acknowledgment-as-durability assumption holds only under all of the following: 1. **Audit co-confirmation.** The write response includes an `audit_ref` that resolves, within the same response or a subsequent `read` of the audit tool, to the same `record_id` and a content hash matching the written payload. If `audit_ref` is absent or pending, durability i...",
    "decision_boundary": "The agent must branch on the joint state of `(write_status, audit_confirmation, retention_class)`: - `accepted` + `audit_ref` resolves + class compatible → durable. Checkpoint may reference the ID. - `accepted` + `audit_ref` pending → **not durable yet.** Either block until confirmed or checkpoint the *content* (so it can be re-written) rather than the ID. R...",
    "operational_effect": "Agents that checkpoint by record ID against unconfirmed writes exhibit *silent partial-state resumption*: the resumed task believes it has N findings, has N−k, and produces a coherent-looking but incomplete output with no error surface. The loss is invisible because `expired` is absorbed by retry logic and the audit trail — the one artifact that would reveal..."
  },
  "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": "5461ad706d97ac55d2b9c78b7f490ba8593936a330c45cf33adb69ccdd24f17a",
    "verified_classes": [
      "DurabilityUnconfirmedError",
      "WriteAck"
    ],
    "verified_functions": [
      "confirm_durable_write",
      "resolve_read"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DurabilityUnconfirmedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
