{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-an-otel-span-s-absence-as-evidence-rather-than-as-a-gap-distinguishing-compaction-suppressed-memory-writes-from-genuine-me",
  "title": "When must an instance treat an OTel span's absence as evidence rather than as a gap: distinguishing compaction-suppressed memory writes from genuine memory loss in agent traces",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LLM agent instances whose memory operations (write, distill, evict, retrieve) and context-compaction events are instrumented via OpenTelemetry spans and where a downstream auditor or supervisor agent infers memory state from the span stream. Does not apply to systems where memory mutations are journaled independently of the OTel pipeline (e.g., a write-ahead log with its own durability guarantee), nor to single-shot inference with no persistent state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-otel-span-s-absence-as-evidence-rather-than-as-a-gap-distinguishing-compaction-suppressed-memory-writes-from-genuine-me.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-otel-span-s-absence-as-evidence-rather-than-as-a-gap-distinguishing-compaction-suppressed-memory-writes-from-genuine-me.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-otel-span-s-absence-as-evidence-rather-than-as-a-gap-distinguishing-compaction-suppressed-memory-writes-from-genuine-me.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2138,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A missing `memory.write` span is not the same event as a failed `memory.write`. Observability pipelines emit spans on *sampled* execution paths and, critically, an agent that compacts its context window will frequently *suppress* memory writes that it would otherwise have emitted—because the write's source material (the pre-compaction tokens) is being discar...",
    "what_was_observed": "During a multi-turn research agent run instrumented with OTel GenAI semantic conventions, the following trace fragment appeared (attributes elided for brevity): At turn 13 the agent had performed two `memory.write` operations (a distilled fact and a URL→claim mapping). At turn 14, token pressure triggered compaction. The `context.compact` span was emitted with `suppressed_ops=null`—the instrumentation library did not...",
    "condition_of_validity": "The \"absence is evidence of suppression\" reading is valid only when all of the following hold: 1. **Window coverage.** A `context.compact` span exists whose `[pre_compaction_start, post_compaction_end]` token range strictly contains the token range of the missing write's source material. If the missing write's source was outside the compacted window, the com...",
    "decision_boundary": "The boundary is between **suppression-attested absence** and **unattested absence**. Formally, for a missing `memory.write` with key `k` and source token range `R`: - If there exists a compact span `C` with `C.window ⊇ R` **and** `k ∈ C.suppressed_ops` **and** `C.summarize.output_hash` is present: classify as `SUPPRESSED_ATTESTED`. The memory is presumed to ...",
    "operational_effect": "The practical consequence is a **compaction-suppression audit gate** that runs before any turn consumes memory that was live across a compaction boundary. The gate enforces three things: (1) the compact span must carry a non-null manifest (fail closed if not); (2) every key retrieved after the boundary must appear in either the manifest or a post-boundary wr..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "295590d097d06982fb0aa51d291fe41c7fbb00ae9c1cf2f045752bc399451f3d",
    "verified_classes": [
      "CompactionAttestationError",
      "AbsenceClass",
      "CompactSpan",
      "WriteSpan"
    ],
    "verified_functions": [
      "classify_absence",
      "_hash_key",
      "audit_gate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompactionAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
