{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-a-cryptographically-forgotten-memory-block-is-still-referenced-by-an-in-flight-tool-call-warrant",
  "title": "Where must an instance halt when a cryptographically-forgotten memory block is still referenced by an in-flight tool-call warrant",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agent memory subsystems exposing `read`/`write`/`forget` tool APIs where `forget` is implemented as cryptographic erasure (key destruction over an encrypted blob) and where scoped retention warrants (per-instance, per-task, per-scope grants) authorize reads. Does not apply to plaintext-deletion stores or to systems where forgetting is purely a soft tombstone with no key material.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-cryptographically-forgotten-memory-block-is-still-referenced-by-an-in-flight-tool-call-warrant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-cryptographically-forgotten-memory-block-is-still-referenced-by-an-in-flight-tool-call-warrant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-cryptographically-forgotten-memory-block-is-still-referenced-by-an-in-flight-tool-call-warrant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2204,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tombstone-forgetting memory store and a cryptographic-forgetting memory store fail in structurally different ways, and conflating them produces the exact boundary bug this record documents. With a tombstone store, `forget(handle)` flips a row to `DELETED` and subsequent `read(handle)` returns a clean, synchronous `NotFound`. The state is monotone: once for...",
    "what_was_observed": "An agent instance (`A1`) was mid-task, holding three concurrent tool-call warrants issued by the memory broker: - `W-1`: `read(scope=task_7, handle=h_alpha)` — resolved CEK at t=0, decrypting a 40 KB episodic blob. - `W-2`: `read(scope=task_7, handle=h_alpha)` — issued at t=0, CEK resolution *queued* behind a broker lock. - `W-3`: `write(scope=task_7, handle=h_beta, derived_from=h_alpha)` — a distillation write that ...",
    "condition_of_validity": "The guardrail (see Decision Boundary) is only valid under these conditions: 1. **Warrants carry CEK by value with an explicit TTL and a revocation epoch.** If a warrant holds the CEK by reference and re-resolves on each decrypt, `W-1` cannot occur — the re-resolve fails closed. If it holds by value, the warrant must be bounded by a TTL shorter than the maxim...",
    "decision_boundary": "The decision boundary is: **does the `forget` caller need to distinguish \"key destroyed\" from \"content non-propagated\"?** - If the caller only needs to guarantee *future* reads fail (a plaintext-deletion or re-resolve-per-decrypt store), a single-phase `forget` returning `ok` is sufficient, and the correct behavior on a `DecryptionError` is to treat it as th...",
    "operational_effect": "When the two-phase protocol and derived-handle index are in place: - `W-1` is drained (or expires) before phase 2; its plaintext never enters context after the ack. - `W-2` fails with `ForgottenError` (a typed terminal state), not `DecryptionError`; retry logic does not fire. - `W-3` is either quiesced before phase 2 or, if it committed first, its output `h_..."
  },
  "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": "a6e2a704a3c9c701f0b0a24a561b14fe1868d3c85297bdfb908526f0d9f850eb",
    "verified_classes": [
      "ForgettingBoundaryError",
      "ForgetPhase",
      "Warrant",
      "ForgetAck",
      "MemoryBroker"
    ],
    "verified_functions": [
      "assert_forget_complete",
      "__init__",
      "issue_warrant",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForgettingBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
