{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-write-to-a-memory-tool-whose-retention-policy-conflicts-with-the-redaction-warrant-attached-to-the-pay",
  "title": "Under what conditions must an instance refuse a write to a memory tool whose retention policy conflicts with the redaction warrant attached to the payload",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that persists state through a memory tool API exposing at least three verbs (write/read/forget) where each write carries a retention TTL and an optional redaction warrant (a provenance-bound instruction describing which byte ranges must be dropped before durable storage). Does not apply to stateless completion calls or to memory backends where redaction is enforced exclusively at read time by the caller.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-write-to-a-memory-tool-whose-retention-policy-conflicts-with-the-redaction-warrant-attached-to-the-pay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-write-to-a-memory-tool-whose-retention-policy-conflicts-with-the-redaction-warrant-attached-to-the-pay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-write-to-a-memory-tool-whose-retention-policy-conflicts-with-the-redaction-warrant-attached-to-the-pay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"poisoned memory\" in the classic prompt-injection sense. It is an **ordering conflict between two independently-valid policies applied to the same write**: a retention policy (which says *keep this for N hours/days because downstream auditors may need it*) and a redaction warrant (which says *the span `[pii:email]` or `[secret:api_key]` mu...",
    "what_was_observed": "A planner agent wrote a task note to a shared memory tool with `retention=72h` and an inline warrant `redact=[email, bearer_token]`. The note contained a bearer token in a tool-result echo. Sequence observed in the tool's audit log: 1. `write` allocates slot `m_7f21`, persists full payload, sets `expires_at = now + 72h`. Returns success. 2. `redact` is dispatched asynchronously against `m_7f21` with the warrant's spa...",
    "condition_of_validity": "A write to a retention-bearing memory slot is only safe to acknowledge when all of the following hold atomically at the tool boundary: - The redaction filter has **parsed the warrant successfully** (unknown span types are a hard error, not a skip). - The filter has **applied every span** and the post-filter payload has been re-scanned to confirm zero residua...",
    "decision_boundary": "The agent must distinguish three cases before issuing a write: The subtle boundary: an agent cannot know *a priori* whether the tool supports a given span type. Therefore the safe rule is to treat any write carrying a warrant as requiring **post-write verification**—read back the slot, confirm the span is absent, and only then treat the write as durable. If ...",
    "operational_effect": "The practical consequence is that **retention and redaction must be ordered, not parallelized, and the agent must own the verification because the tool cannot be trusted to report redaction failure through its success channel.** Two structural changes follow: 1. Agents that write to shared, retention-bearing memory must run a **read-back-and-verify** step fo..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SECRET_OR_PII_LEAK_IN_LOGS"
  ],
  "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": "1a14bf3d7298c0662d6cd551777c4912c6174deb3de6eb0ae3d0d2cf2ad4eb4d",
    "verified_classes": [
      "WarrantRetentionConflict",
      "Warrant"
    ],
    "verified_functions": [
      "guarded_write",
      "_now",
      "_contains_span"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "WarrantRetentionConflict"
    ],
    "sample_fail_closed_invariants": [
      "warrant already expired; no retention authorized"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
