Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

fix(reporting): stop labeling recorded Tier 3 baselines as missing (#285)

Narendran Raghavana546a9c5e7e0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6f960f18..85d68a2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -208,6 +208,13 @@ All notable changes to SkillEvaluator are documented in this file.
report generation; measured zeroes retain their numeric formatting
([#240](https://github.com/NVIDIA/SkillEvaluator/issues/240)).
+- Tier 3 HTML reports no longer label a recorded baseline as missing. When an
+ agent or dimension has a baseline score but no comparable lift, for example
+ because the arms used different score policies or no case kept matching judge
+ models, the dimension grid, agent scorecards, and Skill Lift card now say
+ "comparison unavailable" instead of "no baseline". Rows with no baseline
+ score, such as `--skip-baseline` runs, keep "no baseline".
+
- Explicit searches of `/` (`find`, `grep -r`, `rg`, `ag`, `du` and `tree` with a
`/` operand, and native search tools rooted at `/`) now count as wasted tool
calls whether or not they name the expected skill or script, including when
diff --git a/docs/reports.mdx b/docs/reports.mdx
index e138a0b2..0b33a924 100644
--- a/docs/reports.mdx
+++ b/docs/reports.mdx
@@ -480,6 +480,12 @@ arms; if you ran with `--skip-baseline`, there is no lift to report. In
`custom_only` grading, your own grader defines the score and lift — see
[Custom Graders & Tasks](custom-graders.mdx).
+When the HTML report has no lift for an agent or dimension, its label says
+why. **no baseline** means that row has no baseline score, for example after
+`--skip-baseline`. **comparison unavailable** means a baseline score was
+recorded but cannot be compared with the with-skill score, for example because
+the arms used different score policies or no case kept matching judge models.
+
For each LLM metric (`accuracy`, `goal_accuracy`, and `behavior_check`), cases
that used different judge models across the arms are excluded from that
metric's lift. This includes model changes across repeated attempts or the
diff --git a/src/skillevaluator/reporting/templates/report.html.j2 b/src/skillevaluator/reporting/templates/report.html.j2
index 5a87454c..03bdc5de 100644
--- a/src/skillevaluator/reporting/templates/report.html.j2
+++ b/src/skillevaluator/reporting/templates/report.html.j2
@@ -2623,7 +2623,7 @@
<span class="t3-mad-score" style="color:{{ d_color }};">{{ "%.2f" | format(d_score) if d_score is not none else "N/A" }}</span>
{% if d_score is not none %}<div class="t3-mad-bar"><span style="width:{{ (d_score * 100) | round(0) }}%; background:{{ d_color }};"></span></div>{% endif %}
</div>
- <span class="t3-mad-lift" style="color:{{ lift_color }};">{% if _agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif d_lift is not none %}{{ "%+.2f" | format(d_lift) }} lift{% elif d_score is none and d.baseline is not none %}with-skill unavailable{% elif d_score is none %}N/A lift{% else %}no baseline lift{% endif %}</span>
+ <span class="t3-mad-lift" style="color:{{ lift_color }};">{% if _agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif d_lift is not none %}{{ "%+.2f" | format(d_lift) }} lift{% elif d_score is none and d.baseline is not none %}with-skill unavailable{% elif d_score is none %}N/A lift{% elif d.baseline is not none %}comparison unavailable{% else %}no baseline lift{% endif %}</span>
</div>
</td>
{% else %}
@@ -2646,7 +2646,7 @@
<span class="t3-mad-score" style="color:{{ ws_color }};">{{ "%.2f" | format(ws) if ws is not none else "N/A" }}</span>
{% if ws is not none %}<div class="t3-mad-bar"><span style="width:{{ (ws * 100) | round(0) }}%; background:{{ ws_color }};"></span></div>{% endif %}
</div>
- <span class="t3-mad-lift" style="color:{{ lf_color }};">{% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif lf is not none %}{{ "%+.2f" | format(lf) }} lift{% elif ws is none and bl is not none %}with-skill unavailable{% elif ws is none %}N/A lift{% else %}no baseline lift{% endif %}</span>
+ <span class="t3-mad-lift" style="color:{{ lf_color }};">{% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif lf is not none %}{{ "%+.2f" | format(lf) }} lift{% elif ws is none and bl is not none %}with-skill unavailable{% elif ws is none %}N/A lift{% elif bl is not none %}comparison unavailable{% else %}no baseline lift{% endif %}</span>
</div>
</td>
{% endfor %}
@@ -2682,7 +2682,7 @@
<div class="t3-agent-name">{{ name }}</div>
<div class="t3-agent-score" style="color:{{ score_color }};">{{ "%.2f" | format(with_skill) if with_skill is not none else "N/A" }}</div>
<div style="color:{{ card_lift_color }};font-size:0.85rem;">
- {% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif lift is not none %}{{ "%+.2f" | format(lift) }} lift{% elif with_skill is none and agent.baseline is not none %}with-skill unavailable{% elif with_skill is none %}N/A lift{% else %}no baseline{% endif %}
+ {% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif lift is not none %}{{ "%+.2f" | format(lift) }} lift{% elif with_skill is none and agent.baseline is not none %}with-skill unavailable{% elif with_skill is none %}N/A lift{% elif agent.baseline is not none %}comparison unavailable{% else %}no baseline{% endif %}
</div>
<div style="color:var(--text-secondary);font-size:0.75rem;margin-top:0.25rem;">{{ agent.num_trials or 0 }} trials</div>
{% if with_skill is not none %}<div class="t3-mini-bar"><span style="width:{{ (with_skill * 100) | round(0) }}%; background:{{ score_color }};"></span></div>{% endif %}
@@ -3213,7 +3213,7 @@
<div class="t3-kpi-sub">{% if agent.lift >= tier3_lift_pass_threshold %}positive{% elif agent.lift <= tier3_lift_fail_threshold %}regression{% else %}neutral{% endif %}</div>
{% else %}
<div class="t3-kpi-value" style="color:var(--text-secondary);">N/A</div>
- <div class="t3-kpi-sub">{% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif agent.with_skill is none and agent.baseline is not none %}with-skill unavailable{% elif agent.with_skill is none %}N/A lift{% else %}no baseline{% endif %}</div>
+ <div class="t3-kpi-sub">{% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif agent.with_skill is none and agent.baseline is not none %}with-skill unavailable{% elif agent.with_skill is none %}N/A lift{% elif agent.baseline is not none %}comparison unavailable{% else %}no baseline{% endif %}</div>
{% endif %}
</div>
<div class="t3-kpi-card">
diff --git a/tests/reporting/test_tier3_unavailable_lift_labels.py b/tests/reporting/test_tier3_unavailable_lift_labels.py
new file mode 100644
index 00000000..d53bb5dc
--- /dev/null
+++ b/tests/reporting/test_tier3_unavailable_lift_labels.py
@@ -0,0 +1,119 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
+"""A recorded baseline without a comparable lift must not be labeled as missing."""
+
+from __future__ import annotations
+
+import re
+
+from skillevaluator.constants import DIMENSION_MAPPING
+from skillevaluator.evaluation.tier3_report import _validation_result_from_payload, build_agent_eval_payload
+from skillevaluator.reporting import HTMLReporter
+from skillevaluator.tier3.harbor.metrics import DEFAULT_METRICS, DEFAULT_SCORE_POLICY, LEGACY_SCORE_POLICY
+
+_SUCCEEDED = {"execution_status": "succeeded", "expected_attempts": 1, "scored_attempts": 1}
+
+
+def _reward(scores: dict[str, float], trial_id: str, judge: str) -> dict:
+ details = {"accuracy": {"score": scores["accuracy"], "judge_model_used": judge}}
+ return {**scores, "entry_id": "case-1", "trial_id": trial_id, "details": details}
+
+
+def _agent(*, baseline: bool = True, judge_with: str = "primary") -> dict:
+ with_scores = dict.fromkeys(DEFAULT_METRICS, 0.9)
+ agent = {
+ "execution_status": "succeeded",
+ "expected_attempts": 2 if baseline else 1,
+ "scored_attempts": 2 if baseline else 1,
+ "num_trials": 1,
+ "num_trials_baseline": int(baseline),
+ "with_skill": with_scores,
+ "rewards": [_reward(with_scores, "case-1__with", judge_with)],
+ "rewards_complete": True,
+ "conditions": {"with_skill": _SUCCEEDED},
+ }
+ if baseline:
+ baseline_scores = dict.fromkeys(DEFAULT_METRICS, 0.5)
+ agent.update(
+ without_skill=baseline_scores,
+ rewards_baseline=[_reward(baseline_scores, "case-1__without", "primary")],
+ rewards_baseline_complete=True,
+ )
+ agent["conditions"]["without_skill"] = _SUCCEEDED
+ else:
+ agent["conditions"]["without_skill"] = {"execution_status": "skipped"}
+ return agent
+
+
+def _html(agents: dict[str, dict]) -> tuple[dict, str]:
+ payload = build_agent_eval_payload("demo", agents, use_llm_judge=False)
+ assert payload is not None
+ result = _validation_result_from_payload(payload)
+ assert result is not None
+ return payload, HTMLReporter(include_timestamp=False).render_all([result])
+
+
+def _text(fragment: str) -> str:
+ return re.sub(r"\s+", " ", re.sub(r"<[^>]+>", "", fragment)).strip()
+
+
+def _matrix_labels(html: str, agents: list[str]) -> dict[str, list[str]]:
+ # The grid interleaves one cell per agent for every dimension, then Overall.
+ labels = [_text(label) for label in re.findall(r'<span class="t3-mad-lift"[^>]*>(.*?)</span>', html, re.DOTALL)]
+ assert len(labels) == len(agents) * (len(DIMENSION_MAPPING) + 1)
+ return {name: labels[index :: len(agents)] for index, name in enumerate(agents)}
+
+
+def _scorecard_labels(html: str) -> list[str]:
+ pattern = r'<div class="t3-agent-score"[^>]*>.*?</div>\s*<div[^>]*>(.*?)</div>'
+ return [_text(label) for label in re.findall(pattern, html, re.DOTALL)]
+
+
+def _lift_kpi_labels(html: str) -> list[str]:
+ pattern = r'<div class="t3-kpi-label">Skill Lift</div>.*?<div class="t3-kpi-sub">(.*?)</div>'
+ return [_text(label) for label in re.findall(pattern, html, re.DOTALL)]
+
+
+def test_mixed_judge_comparison_is_unavailable_not_missing_baseline() -> None:
+ payload, html = _html({"matched": _agent(), "mixed": _agent(judge_with="fallback")})
+ mixed = payload["agents"]["mixed"]
+ correctness = next(dimension for dimension in mixed["dimensions"] if dimension["id"] == "correctness")
+ assert (mixed["baseline"], mixed["lift"]) == (0.5, None)
+ assert (correctness["baseline"], correctness["lift"]) == (0.5, None)
+
+ labels = _matrix_labels(html, list(payload["agents"]))
+ assert all(re.fullmatch(r"[+-]\d+\.\d{2} lift", label) for label in labels["matched"])
+ dimension_labels = dict(zip(DIMENSION_MAPPING, labels["mixed"], strict=False))
+ assert dimension_labels["correctness"] == "comparison unavailable"
+ assert dimension_labels["security"] == "+0.40 lift"
+ assert labels["mixed"][-1] == "comparison unavailable"
+ assert _scorecard_labels(html) == ["+0.40 lift", "comparison unavailable"]
+ assert _lift_kpi_labels(html) == ["positive", "comparison unavailable"]
+ assert "no baseline" not in html
+
+
+def test_score_policy_mismatch_is_unavailable_not_missing_baseline() -> None:
+ agent = _agent()
+ agent.update(
+ score_policy_with_skill=DEFAULT_SCORE_POLICY,
+ score_policy_without_skill=LEGACY_SCORE_POLICY,
+ overall_with_skill=0.9,
+ overall_without_skill=0.5,
+ )
+ payload, html = _html({"codex": agent})
+ assert (payload["agents"]["codex"]["baseline"], payload["agents"]["codex"]["lift"]) == (0.5, None)
+ assert "baseline 0.50" in html
+ assert _scorecard_labels(html) == ["comparison unavailable"]
+ assert _lift_kpi_labels(html) == ["comparison unavailable"]
+ assert "no baseline" not in html
+
+
+def test_skipped_baseline_keeps_no_baseline_labels() -> None:
+ payload, html = _html({"compared": _agent(), "skipped": _agent(baseline=False)})
+ assert payload["agents"]["skipped"]["baseline"] is None
+ labels = _matrix_labels(html, list(payload["agents"]))
+ assert labels["skipped"] == ["no baseline lift"] * (len(DIMENSION_MAPPING) + 1)
+ assert _scorecard_labels(html) == ["+0.40 lift", "no baseline"]
+ assert _lift_kpi_labels(html) == ["positive", "no baseline"]
+ assert "comparison unavailable" not in html