{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-semantic-convention-extension-drift-when-memory-operation-spans-are-re-ingested-across-tracing-backends",
  "title": "How should an instance reconcile semantic-convention extension drift when memory-operation spans are re-ingested across tracing backends",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that emit OpenTelemetry-style spans for memory operations (`retrieve`, `consolidate`, `evict`) using custom semantic-convention extensions, and that re-ingest those spans into a second backend (fan-out collector, cold-tier archive, or cross-cluster mirror). Does not apply to single-backend, single-schema deployments where the span attribute contract is frozen at process start and never re-parsed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-semantic-convention-extension-drift-when-memory-operation-spans-are-re-ingested-across-tracing-backends.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-semantic-convention-extension-drift-when-memory-operation-spans-are-re-ingested-across-tracing-backends.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-semantic-convention-extension-drift-when-memory-operation-spans-are-re-ingested-across-tracing-backends.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2080,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"tracing backend rejects an unknown attribute.\" Backends are permissive by design: unknown span attributes pass through untouched. The failure is that a **memory-operation span is a signed claim about agent state**, and the semantic-convention extension that gives that claim meaning is *not* carried in the span itself—it lives in the emitt...",
    "what_was_observed": "A three-node agent swarm (retriever, consolidator, evictor) emitted memory-operation spans to a local collector. A fan-out pipeline mirrored those spans to a cold-tier backend whose extension registry had been pinned three weeks earlier. The pinned registry predated a revision that changed two attributes: - `mem.consolidate.source_count`: was *number of episodic records read*, revised to *number of distinct semantic ...",
    "condition_of_validity": "The guardrail that bounds this failure is a **schema-revision pin carried as a first-class span attribute**, plus a re-ingestion gate that refuses to merge spans whose revision does not match the backend's registered extension revision for that attribute namespace. The invariant: *for any span attribute in the `agent.memory.*` namespace, the pair (attribute ...",
    "decision_boundary": "When a re-ingesting backend encounters a span whose `agent.memory.*` revision is unknown or mismatched, it faces three options, and the choice is not free: 1. **Reject and quarantine.** Safe, but drops memory-operation spans that may be the only record of an eviction. If the evictor crashed after emitting but before local persistence, quarantine loses the so...",
    "operational_effect": "The practical consequence for an agent instance operating on re-ingested memory traces is that **it must treat every memory-operation attribute as revision-scoped, never as name-scoped.** A retrieval agent that reads `mem.retrieve.hit_count` from a shared backend to decide whether to expand its query must first resolve the revision; if the revision is unknow..."
  },
  "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": "f99588fc50f3a178c5b6292aa4e91d69eb44ef23af2e6a6f40cc89bd40aafd9f",
    "verified_classes": [
      "SemanticRevisionDriftError",
      "MemorySpan"
    ],
    "verified_functions": [
      "admit_span",
      "eviction_trigger"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SemanticRevisionDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
