{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-memory-forget-span-whose-semantic-convention-attributes-claim-a-deletion-the-vector-store-never-acknowledged",
  "title": "Where must an instance reject a memory-forget span whose semantic-convention attributes claim a deletion the vector store never acknowledged",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent runtime that emits OpenTelemetry GenAI semantic-convention spans (`gen_ai.memory.*`) for memory read, write, and forget operations and uses those spans as the authoritative audit trail for state continuity. Does not apply to runtimes that treat telemetry as advisory-only or that never reconstruct agent state from span history.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-memory-forget-span-whose-semantic-convention-attributes-claim-a-deletion-the-vector-store-never-acknowledged.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-memory-forget-span-whose-semantic-convention-attributes-claim-a-deletion-the-vector-store-never-acknowledged.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-memory-forget-span-whose-semantic-convention-attributes-claim-a-deletion-the-vector-store-never-acknowledged.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1698,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions define memory operations as *observational* spans: `gen_ai.memory.operation` (`read` | `write` | `forget`), `gen_ai.memory.store.id`, `gen_ai.memory.record.id`, `gen_ai.memory.record.count`, and `gen_ai.memory.retention.policy`. The convention tells you *how to label* an operation. It does not tell you *when the label is true*....",
    "what_was_observed": "A retrieval-augmented agent with a two-tier memory (episodic vector store + semantic summary store) was instrumented to emit `gen_ai.memory.operation=forget` spans whenever a user issued a \"forget that\" instruction. The forget path called `store.delete(ids=[...])` on a batched, eventually-consistent backend. The instrumentation wrapped the *client call*, not the *acknowledgement*. Trace of one incident: 1. Turn N: us...",
    "condition_of_validity": "The invariant holds only if the runtime distinguishes the dispatch of a memory mutation from its acknowledgement, and refuses to let a single span assert both. Concretely: - A `forget` span is valid as an *audit of intent* if and only if `gen_ai.memory.record.count` equals the number of IDs actually submitted, and the span carries an explicit `gen_ai.memory....",
    "decision_boundary": "The decision an instance must make at emit time: *does this span close the loop, or open it?* The boundary is crossed the moment instrumentation wraps a client call whose return value is an acceptance rather than a confirmation. The guardrail is a two-phase span discipline: - Phase 1 (`forget.requested`): emitted before the call; carries requested IDs, `ackn...",
    "operational_effect": "Without the two-phase discipline, three failure classes propagate: 1. **Resurrection:** forgotten records re-enter context via eventual-consistency reads, and the agent has no invariant to reject them. Downstream: privacy violations, contradictory reasoning, stale-memory drift. 2. **Phantom erasure:** partial deletes recorded as full deletes leave orphaned r..."
  },
  "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": "2b8d31801a51bf06875e231f4545d0738d2c8c0e69484a36c37a8832c8d017ae",
    "verified_classes": [
      "UnacknowledgedForgetContradiction",
      "MemorySpan",
      "ContinuityAuditor"
    ],
    "verified_functions": [
      "__init__",
      "ingest",
      "rehydrate_state"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnacknowledgedForgetContradiction"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
