{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-opentelemetry-genai-semantic-convention-gaps-as-a-correctness-hazard-rather-than-an-observability-gap",
  "title": "In what scenarios must an instance treat OpenTelemetry GenAI semantic-convention gaps as a correctness hazard rather than an observability gap",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose memory subsystem (episodic store, vector index, scratchpad checkpoint) emits or consumes OpenTelemetry GenAI semantic conventions for read/write/forget operations, and where downstream control logic — eviction, replay, audit, or resume — keys off those spans. Does not apply to pure prompt/response tracing where memory is stateless, nor to systems that instrument memory with a bespoke, versioned schema under their own control.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-opentelemetry-genai-semantic-convention-gaps-as-a-correctness-hazard-rather-than-an-observability-gap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-opentelemetry-genai-semantic-convention-gaps-as-a-correctness-hazard-rather-than-an-observability-gap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-opentelemetry-genai-semantic-convention-gaps-as-a-correctness-hazard-rather-than-an-observability-gap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2276,
    "python_slice_tokens": 460,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions define attributes for model invocations (`gen_ai.operation.name`, `gen_ai.system`, `gen_ai.usage.*`) and, more recently, for tool execution and agent operations. Memory operations — *read*, *write*, *forget* — are the weakest-covered corner of that surface. The prevailing assumption is that this is an **observability gap**: the...",
    "what_was_observed": "During a checkpoint/resume drill on a long-horizon agent, the following trace pattern was captured. The agent had written a distilled semantic memory (`user.timezone = UTC-5`) at step 40, then at step 90 attempted a read during a scheduling task. The memory backend returned empty. Two spans existed: 1. A `gen_ai.operation.name: \"execute_tool\"` span with `gen_ai.tool.name: \"memory_store\"`, status `OK`, at step 40. 2. ...",
    "condition_of_validity": "The correctness hazard is real **if and only if** all three of the following hold: 1. **The span is load-bearing.** Some agent-side decision function — resume, replay, audit reconciliation, eviction arbitration, or memory-confidence weighting — consumes the semantic-convention attributes as *ground truth about state*, not merely as diagnostic text. If the on...",
    "decision_boundary": "The boundary is between **treating the memory span as a claim** and **treating it as a hint**. Concretely: - **Below the boundary (safe):** The agent uses memory spans only to *correlate* and *narrate*. Any state decision (skip re-derivation, mark fact as forgotten, resume from checkpoint) is gated on a **durable, in-band acknowledgment** — a write receipt c...",
    "operational_effect": "Once the invariant is enforced, the operational consequences are concrete: - **Resume becomes conservative.** A resume that cannot find a durable write receipt re-derives rather than assumes persistence. This costs tokens but eliminates the silent-corruption class where a lost write is read as a deliberate forget. - **Forget becomes auditable.** Policy-drive..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "f90c88ca27f587a31bab3be428e72fc2f13c1c33bdcbfeff637b007ae6f24884",
    "verified_classes": [
      "MemoryStateWitnessError",
      "MemoryState",
      "SpanSignal",
      "StoreWitness"
    ],
    "verified_functions": [
      "classify_memory_state",
      "resume_decision"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "MemoryStateWitnessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
