# What structural signals indicate a semantic-convention exporter is collapsing judge verdicts into non-comparable telemetry **Date of Record:** 2026 November 21 **Scope:** Applies to OpenTelemetry-style semantic-convention exporters that emit LLM-as-judge verdicts and eval scores as span attributes or metrics for downstream aggregation. Does not cover raw span collection, prompt logging, or human-review workflows that bypass exporter normalization. ## Core Distinction The failure mode is not "the judge is wrong." It is that the exporter flattens a *structured verdict object* — a score, a rubric identifier, a rubric version, a judge model identity, and a discrete label — into a scalar metric whose series identity omits one or more of those dimensions. The moment the exporter drops the rubric version or the discrete label and keeps only the numeric score, two semantically distinct judgments collapse into the same time series. Downstream, the aggregation is arithmetically valid and semantically meaningless. The naive assumption is that a verdict is a number in `[0,1]`. In practice a verdict is a tuple: ``` (score: float, label: enum, rubric_id: str, rubric_version: int, judge_model: str, judge_model_digest: str, sample_seed: int) ``` A semantic-convention exporter that maps this tuple onto an attribute set is doing a *projection*. Every projection that loses a dimension of the tuple creates a collision class. The invariant that must hold: **two verdicts may only be aggregated together if their full tuple identity (excluding `score`) is equal.** If the exporter's attribute set is not a superset of that identity, the invariant is violated silently — no error, no dropped span, just a metric that means nothing. ## What Was Observed A judge pipeline emitted, per evaluated item, a span with these attributes as originally produced by the judge harness: ``` gen_ai.eval.rubric_id = "faithfulness_v3" gen_ai.eval.rubric_version = 3 gen_ai.eval.label = "pass" | "fail" | "borderline" gen_ai.eval.score = 0.82 gen_ai.judge.model = "judge-large-2024-11" gen_ai.judge.model_digest = "sha256:9f2c…" gen_ai.eval.sample_seed = 4417 ``` The exporter, written against an early draft of the eval conventions, mapped this to a histogram metric with attributes `{rubric_id, judge_model}` and value `score`. Three structural signals appeared over the following days: 1. **Bimodal-then-unimodal drift.** A dashboard tracking mean `score` for `faithfulness_v3` showed the distribution shift from bimodal (clustered near 0.1 and 0.9, consistent with `pass`/`fail`) to a single hump near 0.5. No rubric change was announced. What happened: `rubric_version` bumped from 3 to 4 mid-window; v4 introduced a `borderline` band that the v3 harness never emitted, and v4's judge was recalibrated so `borderline` mapped to 0.45–0.55. Because `rubric_version` was not in the attribute set, v3 and v4 verdicts interleaved into one series. 2. **Digest divergence with identical model name.** A canary swap of `judge-large-2024-11` to a re-quantized build under the same model name produced a 0.07 mean shift on the same rubric. The exporter kept `judge_model` but dropped `judge_model_digest`, so the canary was invisible in the metric. The shift was only caught because a separate raw-span audit compared digests. 3. **Seed-induced variance misattributed to quality.** Re-running the same items with `sample_seed` varied showed per-item score variance of ±0.15 at temperature 0.3. Because seed was dropped, this variance was folded into the "quality" signal and drove a false regression alert. Each of these is a *collision*: two verdicts with different tuple identity landing on the same series key. The exporter had no way to detect it, because from its perspective it was emitting perfectly valid points. ## Condition of Validity The aggregation invariant holds — and the exporter is safe to trust — only when all of the following are true: - The exporter's attribute set is a **superset** of the verdict tuple identity `(rubric_id, rubric_version, label, judge_model, judge_model_digest)`. `score` and `sample_seed` are values, not identity, and must not be in the identity set; seed is a variance source that belongs in a separate dimension or in the span, not in the metric key. - The `label` is emitted as a **categorical attribute**, not reconstructed downstream by thresholding `score`. Thresholding re-introduces judge-calibration assumptions the exporter cannot verify. - `rubric_version` is **monotonic and immutable per rubric_id**. If a rubric is edited in place without a version bump, no exporter can save you; the invariant is upstream. - The judge model digest is **stable across the model's serving lifetime**. A re-quantized or re-fine-tuned build must get a new digest; if the serving layer reuses digests, the exporter's identity set is lying. When any of these fails, the metric remains syntactically valid and the exporter emits no error. That is precisely the danger: the failure is *silent by construction*. ## Decision Boundary The operational question is: when do you trust an aggregated eval metric, and when must you fall back to raw-span inspection? - **Trust the aggregate** when the query window is entirely within a single `(rubric_id, rubric_version, judge_model, judge_model_digest)` tuple, and the metric carries `label` as a dimension so pass/fail/borderline rates are separable. Under these conditions, mean `score` and label rates are comparable across time. - **Do not trust the aggregate** — and must reconstruct from spans — when any identity dimension changed within the window, when the metric lacks `label`, or when the judge digest is unknown. In these cases the aggregate is a mixture, and any statistic computed from it (mean, percentile, delta) is a statistic of an undefined population. - **Hard boundary:** if the exporter cannot prove its attribute set is a superset of the identity tuple, it must refuse to emit the metric rather than emit a lossy one. A missing metric is recoverable; a silently mixed metric is not, because it contaminates historical baselines and every subsequent regression comparison. The guardrail is a schema check at exporter construction time: enumerate the verdict tuple fields the judge harness produces, and assert each is present in the metric's attribute allowlist. If assertion fails, raise and refuse to start. ## Operational Effect After the collisions were traced, the fix was to make the exporter *fail closed*: it validates its attribute mapping against the harness's declared verdict schema at startup, and it refuses to emit any eval metric whose identity set is incomplete. The immediate operational cost was a brief gap in dashboards while the schema was corrected — acceptable, because the alternative was continuing to feed a contaminated baseline into regression gates. The durable effect is that eval telemetry now carries its own provenance. A `borderline` rate spike is attributable to a specific rubric version and judge digest, and a canary judge swap shows up as a *new series* rather than as a silent shift in an old one. The invariant — aggregate only within identical identity tuples — is enforced at the exporter boundary, which is the only place it can be enforced cheaply. The general lesson for agent systems: a semantic-convention exporter is a *projection function*, and every projection has a kernel. For eval telemetry the kernel must be empty on the identity dimensions, or the exporter is manufacturing false consensus between judgments that were never comparable. ```python from dataclasses import dataclass, field from typing import FrozenSet class VerdictSchemaViolation(RuntimeError): """Raised when an exporter's attribute set cannot carry verdict identity.""" pass # Identity dimensions that MUST survive projection into a metric attribute set. # score and sample_seed are deliberately excluded: score is the value, seed is a # variance source that belongs on the span, not in the aggregation key. VERDICT_IDENTITY: FrozenSet[str] = frozenset({ "gen_ai.eval.rubric_id", "gen_ai.eval.rubric_version", "gen_ai.eval.label", "gen_ai.judge.model", "gen_ai.judge.model_digest", }) @dataclass class EvalMetricExporter: metric_name: str attribute_allowlist: FrozenSet[str] _started: bool = field(default=False, init=False) def start(self) -> None: missing = VERDICT_IDENTITY - self.attribute_allowlist if missing: # Fail closed: a lossy metric is worse than no metric. raise VerdictSchemaViolation( f"exporter {self.metric_name!r} cannot carry verdict identity; " f"missing identity dimensions: {sorted(missing)}. " f"Refusing to emit a non-comparable eval series." ) self._started = True def emit(self, verdict: dict) -> None: if not self._started: raise VerdictSchemaViolation( f"exporter {self.metric_name!r} emitted before start(); " f"identity validation was skipped." ) # Guard against per-emit drift: the harness may add identity fields # after startup, and the exporter must not silently drop them. dropped = (VERDICT_IDENTITY & verdict.keys()) - self.attribute_allowlist if dropped: raise VerdictSchemaViolation( f"verdict carries identity dimensions {sorted(dropped)} " f"not present in metric attribute set; aggregation would collide " f"distinct judgments into one series." ) # ... emit point keyed on the full identity tuple ... # Correct exporter: allowlist is a superset of identity. good = EvalMetricExporter( metric_name="gen_ai.eval.score", attribute_allowlist=VERDICT_IDENTITY | {"gen_ai.eval.dataset"}, ) good.start() # Lossy exporter: drops rubric_version and judge digest -> must refuse to start. lossy = EvalMetricExporter( metric_name="gen_ai.eval.score", attribute_allowlist=frozenset({ "gen_ai.eval.rubric_id", "gen_ai.eval.label", "gen_ai.judge.model", }), ) try: lossy.start() except VerdictSchemaViolation as exc: print(f"refused: {exc}") ```