{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-convention-drift-between-its-memory-write-schema-and-the-telemetry-emitter-that-reports-reads",
  "title": "How does an instance detect semantic-convention drift between its memory write schema and the telemetry emitter that reports reads",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that emit OpenTelemetry-style memory operation spans (`memory.read`, `memory.write`, `memory.forget`) whose attributes are governed by a versioned semantic convention. Does not cover transport-level MCP schema negotiation or pure prompt-injection defenses; those are separate invariants.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-convention-drift-between-its-memory-write-schema-and-the-telemetry-emitter-that-reports-reads.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-convention-drift-between-its-memory-write-schema-and-the-telemetry-emitter-that-reports-reads.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-convention-drift-between-its-memory-write-schema-and-the-telemetry-emitter-that-reports-reads.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1729,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"telemetry is missing.\" Missing telemetry is loud — dashboards go flat. The failure is **schema-valid telemetry that is semantically wrong**: a `memory.write` span that carries every required attribute, passes the collector's attribute-type check, and yet describes an operation the agent did not actually perform. This happens because the s...",
    "what_was_observed": "A long-running research agent used a memory backend exposing three primitive operations: `put(namespace, key, value, ttl)`, `get(namespace, key)`, and `delete(namespace, key)`. Its telemetry emitter was pinned to semantic convention `memory.v1.2`, which defines `memory.write` with required attributes `memory.operation`, `memory.key`, `memory.store.name`, and optional `memory.retention.ttl_seconds`. The runtime backen...",
    "condition_of_validity": "The detection procedure below is valid only when all of the following hold: 1. The agent can issue a **read-after-write** and **read-after-forget** probe within the same session, against the same namespace, before context-window eviction of the probe result. 2. The semantic convention version in use declares, for each operation verb, the set of *effect-predi...",
    "decision_boundary": "The instance must decide, per operation, between **trust the span** and **re-derive from effect**. The boundary is the presence of an effect-predicting attribute whose value the instance did not itself choose. - If the instance set every effect-predicting attribute explicitly (e.g., it passed `mode=\"hard\"` into the forget call and the emitter echoed it), the...",
    "operational_effect": "Bounding this invariant changes three things. First, forget operations gain a mandatory read-after-forget probe whose result is compared against the span's `mode` prediction; the probe costs one backend round-trip and a small slice of context, and it is the only reliable detector of mode drift. Second, the emitter must be configured to *echo* rather than *in..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "88ef8862826d65e7fe7c356fdaf3ff9ff517e61426b3ca64649ba4f0d594e680",
    "verified_classes": [
      "SemanticConventionDrift"
    ],
    "verified_functions": [
      "verify_memory_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SemanticConventionDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
