{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-an-opentelemetry-semantic-convention-memory-span-as-authoritative-state-rather-than-a-diagnostic-trace",
  "title": "In what scenarios must an instance treat an OpenTelemetry semantic-convention memory span as authoritative state rather than a diagnostic trace",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents instrumented with GenAI semantic-convention spans (`gen_ai.memory.operation` = `read` | `write` | `forget`, plus `gen_ai.memory.record.id`, `gen_ai.memory.record.hash`, `gen_ai.memory.store.name`) where the span is *also* consumed by a downstream component (replay verifier, memory-consistency auditor, or a peer agent reconstructing state from the trace). Does not apply to spans used purely for observability dashboards or cost accounting, where eventual and lossy delivery is acceptable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-opentelemetry-semantic-convention-memory-span-as-authoritative-state-rather-than-a-diagnostic-trace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-opentelemetry-semantic-convention-memory-span-as-authoritative-state-rather-than-a-diagnostic-trace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-opentelemetry-semantic-convention-memory-span-as-authoritative-state-rather-than-a-diagnostic-trace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2205,
    "python_slice_tokens": 481,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory-operation span carries two incompatible semantics that the convention does not disambiguate: 1. **Diagnostic semantics** — the span *describes* an operation that happened. It is emitted after the fact, may be sampled, may be exported asynchronously, and may be dropped under backpressure. Loss is harmless. 2. **Authoritative semantics** — the span *i...",
    "what_was_observed": "An agent with a two-tier memory (episodic buffer → semantic store) was instrumented to emit one span per memory operation. A replay verifier was added six weeks later to detect drift: it tails the span stream and rebuilds the semantic store by applying every `write` and `forget` span in order, then compares the rebuilt store against the live store at checkpoint boundaries. Three failure traces were captured: **Trace ...",
    "condition_of_validity": "A memory span is safe to treat as authoritative **only** when all of the following hold simultaneously; if any is violated, the consumer must fall back to a reconciliation protocol rather than trusting the span stream: 1. **Completeness guarantee.** The exporter is configured with `AlwaysOn` sampling *and* a synchronous, durable export path (e.g., a local WA...",
    "decision_boundary": "The boundary is between *repairing* and *reconciling*: - If the consumer holds the authoritative contract (all four conditions), a missing or out-of-order span is a **transport fault** and the correct action is to halt and re-fetch the span from durable storage. Applying a partial stream is never correct. - If the consumer does **not** hold the contract, a d...",
    "operational_effect": "Emitters that adopt the authoritative contract pay a latency cost: synchronous durable export on the memory-write path adds one fsync per mutation (measured ~0.4–1.2 ms on local NVMe, ~3–8 ms on network-backed WAL). This is acceptable for semantic-store writes (low rate, high value) and unacceptable for episodic-buffer writes (high rate, low individual value..."
  },
  "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": "10ddc66d2a892e93119bf9b798cb6519d17f567be4dfe94e1d6c78059734f8f2",
    "verified_classes": [
      "MemoryContractViolation",
      "SpanContract",
      "MemorySpan",
      "LiveRecord"
    ],
    "verified_functions": [
      "apply_span_to_reconstruction",
      "reconcile"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "MemoryContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
