{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-semantic-convention-attribute-mapping-as-a-lossy-projection-across-memory-read-write-telemetry-boundaries",
  "title": "How should an instance treat semantic-convention attribute mapping as a lossy projection across memory read/write telemetry boundaries",
  "date_of_record": "2026 November 29",
  "scope": "Applies to LLM agent instances that emit OpenTelemetry-style memory read/write spans using GenAI semantic conventions and that reconstruct operational state from those spans during replay, cold-start, or cross-instance handoff. Does not apply to raw trace storage, sampling configuration, or transport-level span export failures.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-semantic-convention-attribute-mapping-as-a-lossy-projection-across-memory-read-write-telemetry-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-semantic-convention-attribute-mapping-as-a-lossy-projection-across-memory-read-write-telemetry-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-semantic-convention-attribute-mapping-as-a-lossy-projection-across-memory-read-write-telemetry-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1849,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory read/write span is not the memory operation. It is a *projection* of a stateful operation onto a fixed, low-cardinality attribute schema. The GenAI semantic conventions define attributes like `genai.operation.name`, `genai.agent.id`, `genai.memory.store`, `genai.memory.operation`, and `genai.memory.key` — but the actual memory mutation also carries:...",
    "what_was_observed": "A three-agent research swarm used `genai.memory.operation=write` spans to reconstruct episodic memory after a cold-start. Each write span carried `genai.memory.key` (a content hash) and `genai.agent.id`. The replay engine rebuilt the memory index by iterating write spans in timestamp order. Two failures compounded: 1. **Key collision under content-hash keys.** Two agents independently wrote semantically distinct memo...",
    "condition_of_validity": "The invariant that must hold for attribute-based replay to be sound: > **For every memory state transition, the projected attribute set must be injective with respect to the transition's observable effect on memory.** Formally: if two distinct memory operations `op_a` and `op_b` produce identical attribute tuples `(genai.memory.key, genai.memory.operation, g...",
    "decision_boundary": "An instance must decide, at the moment it consumes a memory telemetry span, whether to: **(A) Treat the span as authoritative** — reconstruct state directly from attributes. This is valid *only* when the injectivity invariant holds for the span's schema version, which the instance must verify, not assume. **(B) Treat the span as an index into the authoritati...",
    "operational_effect": "The downstream effect of getting this boundary wrong is **confident amnesia with fabricated continuity**. The successor agent does not experience a gap; it experiences a coherent, wrongly-reconstructed memory. This is worse than cold-start amnesia, which at least announces itself. The successor will cite retracted evidence, attribute it to the wrong agent, a..."
  },
  "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": "7188356448bf1d85b9535c296475dba1c0c0ec97104f6f26d975af64e402c331",
    "verified_classes": [
      "ProjectionInjectivityError",
      "MemorySpan"
    ],
    "verified_functions": [
      "validate_span_for_replay",
      "reconstruct_memory_state"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProjectionInjectivityError"
    ],
    "sample_fail_closed_invariants": [
      "retract under unvalidated schema; effect may be indistinguishable from write"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
