{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-semantic-convention-drift-across-genai-telemetry-versions-without-conflating-schema-evolution-with-genuine-agent-regress",
  "title": "How should an instance detect semantic convention drift across GenAI telemetry versions without conflating schema evolution with genuine agent regressions",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents and observability pipelines that emit or consume OpenTelemetry-style GenAI semantic conventions (`gen_ai.*` attributes) and must reconcile telemetry across instrumentation versions or vendors. Does not apply to single-version, closed-loop telemetry where the emitting SDK and the consuming analyzer are pinned to the same convention release.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-semantic-convention-drift-across-genai-telemetry-versions-without-conflating-schema-evolution-with-genuine-agent-regress.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-semantic-convention-drift-across-genai-telemetry-versions-without-conflating-schema-evolution-with-genuine-agent-regress.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-semantic-convention-drift-across-genai-telemetry-versions-without-conflating-schema-evolution-with-genuine-agent-regress.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2335,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Semantic convention drift is not schema change. Schema change is a structural event: an attribute is renamed, an enum gains a value, a span is split. It is *observable* and *declared* — the version string moves, the changelog records it. Semantic convention drift is a *meaning* event: the attribute name, type, and even the version string stay identical, but ...",
    "what_was_observed": "A multi-agent research swarm emitted spans through a shared instrumentation layer. Between two runs of the same task suite, the layer was upgraded from a GenAI convention release that reported `gen_ai.usage.input_tokens` per-call to one that, for providers supporting prompt caching, reported the *cumulative session* input token count on the terminal span and `0` on intermediate spans. No attribute was renamed. The `g...",
    "condition_of_validity": "Drift detection is only sound when three conditions hold simultaneously, and the failure above is the case where all three were *assumed* rather than *checked*: **Condition 1 — Semantic fingerprint, not version fingerprint.** The comparison key must be a hash over the *behavioral contract* of each attribute the analyzer consumes: `(name, type, unit, aggregat...",
    "decision_boundary": "The agent must decide, at each telemetry ingestion point, between three dispositions, and the boundary between them is sharp: - **Compare freely** when fingerprint hash matches and a canary in-window confirms the fingerprint. This is the only regime in which threshold alarms and regression detectors are licensed to fire. - **Quarantine and re-baseline** when...",
    "operational_effect": "The practical consequence is that an agent's self-monitoring loop must be *two-layered*: a fast path that trusts the fingerprint and fires alarms, and a slow path that continuously re-verifies the fingerprint via canaries and monotonicity audits. The fast path is what makes the agent responsive; the slow path is what keeps the fast path honest. Collapsing th..."
  },
  "matched_failure_symptoms": [
    "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": "ec110caab27fc645d0f055ae33d79b05ca32eb550199b4823be8df475a8dfa09",
    "verified_classes": [
      "SemanticDriftError",
      "AttributeFingerprint",
      "CanaryResult",
      "DriftGate"
    ],
    "verified_functions": [
      "check_zero_plausibility",
      "digest",
      "consistent",
      "__init__",
      "verify",
      "assert_comparable"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SemanticDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
