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(reports): distinguish skipped baselines from incomplete execution (#575)

Christopher Kevin9e332e21a84d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 906d638f..ff87eb43 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -258,6 +258,10 @@ All notable changes to SkillEvaluator are documented in this file.
case and retain custom grader explanations in collected results.
- The Copilot CLI `CP-NO-FRONTMATTER` finding and the plugin component findings
of `harness-check` no longer show internal test notes in their messages.
+- No-baseline Tier 3 reports no longer describe an intentionally skipped
+ baseline as incomplete execution or mismatched score contracts. Completed
+ with-skill attempts retain their results, with lift explicitly not measured
+ because no baseline was run.
- Success-detail metadata keeps the terminal's default text color. Values such
as `grade=B` stay visible in the default blue Windows PowerShell console.
- The behavior judge's FILE CHANGES evidence now covers Codex `apply_patch`
diff --git a/src/skillevaluator/tier3/case_summary.py b/src/skillevaluator/tier3/case_summary.py
index 2814ddeb..9399a135 100644
--- a/src/skillevaluator/tier3/case_summary.py
+++ b/src/skillevaluator/tier3/case_summary.py
@@ -97,7 +97,19 @@ def _details_truncated(agent: Mapping[str, Any]) -> bool:
return False
+def _baseline_skipped(agent: Mapping[str, Any]) -> bool:
+ conditions = agent.get("conditions")
+ baseline = conditions.get("without_skill") if isinstance(conditions, Mapping) else None
+ return (
+ isinstance(baseline, Mapping)
+ and baseline.get("execution_status") == "skipped"
+ and baseline.get("expected_attempts") == 0
+ )
+
+
def _contract_mismatch(agent: Mapping[str, Any]) -> bool:
+ if _baseline_skipped(agent):
+ return False
with_metrics, without_metrics = agent.get("metrics_with_skill"), agent.get("metrics_without_skill")
if (
isinstance(with_metrics, list | tuple)
@@ -117,12 +129,14 @@ def _execution_unavailable(agent: Mapping[str, Any]) -> bool:
isinstance(condition := conditions.get(key), Mapping)
and condition.get("execution_status") not in {None, "succeeded", "complete"}
for key, _ in _VARIANTS
+ if not (key == "without_skill" and _baseline_skipped(agent))
)
def _comparable(agent: Mapping[str, Any]) -> bool:
return not (
- _never_activated(agent)
+ _baseline_skipped(agent)
+ or _never_activated(agent)
or _details_truncated(agent)
or _contract_mismatch(agent)
or _case_mismatch(agent)
@@ -276,6 +290,7 @@ def verdict(agents: Mapping[str, Any]) -> tuple[str, str]:
deltas: dict[str, float] = {}
not_run: dict[str, int] = {}
unavailable: list[str] = []
+ no_baseline: list[str] = []
for name, agent in agents.items():
if not isinstance(agent, Mapping):
continue
@@ -299,6 +314,9 @@ def verdict(agents: Mapping[str, Any]) -> tuple[str, str]:
# Rates over different subsets of attempts are not comparable.
not_run[str(name)] = missing
continue
+ if _baseline_skipped(agent):
+ no_baseline.append(f"{name}: no baseline was run; lift not measured")
+ continue
rates = _agent_rates(agent)
with_pct, without_pct = _pct(*rates["with_skill"]), _pct(*rates["without_skill"])
if with_pct is not None and without_pct is not None:
@@ -307,9 +325,12 @@ def verdict(agents: Mapping[str, Any]) -> tuple[str, str]:
[f"{name} {delta:+.0f} pp" for name, delta in deltas.items()]
+ [f"{name}: {n} attempt(s) did not run" for name, n in not_run.items()]
+ unavailable
+ + no_baseline
)
if not deltas:
- return ("inconclusive", detail) if not_run or unavailable else ("", "")
+ if not_run or unavailable:
+ return "inconclusive", detail
+ return ("lift not measured", detail) if no_baseline else ("", "")
if all(delta >= _CLEAR_EFFECT_PP for delta in deltas.values()):
label = "skill helps"
elif all(delta <= -_CLEAR_EFFECT_PP for delta in deltas.values()):
@@ -487,8 +508,8 @@ def _condition_grid(
for case_id in case_ids:
with_case, without_case = _cases(agent, "with_skill").get(case_id), _cases(agent, "without_skill").get(case_id)
effect = (
- Text("-", style="dim")
- if with_skill_skipped
+ Text("lift not measured" if _baseline_skipped(agent) else "-", style="dim")
+ if with_skill_skipped or _baseline_skipped(agent)
else _effect(with_case, without_case, comparable=_case_comparable(agent, with_case, without_case))
)
effect = _effect_diagnostics(effect, with_case, without_case, safe)
@@ -540,6 +561,7 @@ def _agent_cell(
without_case: Mapping[str, Any] | None,
*,
comparable: bool = True,
+ baseline_skipped: bool = False,
safe: Callable[[object], str],
) -> Text:
with_marks, without_marks = _marks(with_case), _marks(without_case)
@@ -547,7 +569,9 @@ def _agent_cell(
cell.append(" → ", style="dim")
cell.append_text(_marks_text(with_marks))
(wp, wn), (op, on) = _attempt_rate(with_marks), _attempt_rate(without_marks)
- if not comparable or not wn or not on or ERROR in with_marks + without_marks:
+ if baseline_skipped and wn and ERROR not in with_marks:
+ cell.append(" no baseline", style="dim")
+ elif not comparable or not wn or not on or ERROR in with_marks + without_marks:
cell.append(" ?", style="yellow")
else:
delta = 100.0 * (wp / wn - op / on)
@@ -585,6 +609,7 @@ def _agent_grid(
a, _cases(a, "with_skill").get(case_id), _cases(a, "without_skill").get(case_id)
),
safe=safe,
+ baseline_skipped=_baseline_skipped(a) and not _execution_unavailable(a),
)
for a in agents.values()
),
@@ -594,7 +619,7 @@ def _agent_grid(
for a in agents.values():
r = _agent_rates(a)
cell = _arrow_cell(_pct(*r["with_skill"]), _pct(*r["without_skill"]), "{:.0f}%", "{:+.0f} pp")
- complete = _comparable(a)
+ complete = _comparable(a) or (_baseline_skipped(a) and not _execution_unavailable(a))
rates.append(cell if complete else Text(cell.plain.split(" ")[0]).append(" ?", style="yellow"))
table.add_row(
Text(
diff --git a/tests/reporting/test_tier3_skipped_baseline.py b/tests/reporting/test_tier3_skipped_baseline.py
new file mode 100644
index 00000000..df298e65
--- /dev/null
+++ b/tests/reporting/test_tier3_skipped_baseline.py
@@ -0,0 +1,96 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
+"""Intentionally omitted baseline arms do not make scored execution incomplete."""
+
+import json
+import shutil
+
+import pytest
+from tests.reporting.test_case_findings_report import _run
+from tests.test_tier3_case_summary import _agent, _case
+
+from skillevaluator.evaluation.tier3_report import agent_eval_result_from_directory, render_agent_eval_html_report
+from skillevaluator.reporting import BenchmarkReporter
+from skillevaluator.tier3.case_summary import _contract_mismatch, _execution_unavailable, verdict
+from skillevaluator.tier3.next_steps import next_steps
+from skillevaluator.tier3.result_display import render_result
+
+
+def skipped_agent():
+ agent = _agent({"case": _case(True)}, {})
+ agent.update(
+ metrics_with_skill=["security", "skill_execution", "accuracy", "goal_accuracy"],
+ metrics_without_skill=[],
+ conditions={
+ "with_skill": {"execution_status": "succeeded", "expected_attempts": 1, "scored_attempts": 1},
+ "without_skill": {"execution_status": "skipped", "expected_attempts": 0, "scored_attempts": 0},
+ },
+ lift={},
+ dimensions_without_skill={},
+ )
+ return agent
+
+
+def test_skipped_baseline_is_not_an_execution_or_contract_failure(skipped_agent, tmp_path):
+ assert not _contract_mismatch(skipped_agent)
+ assert not _execution_unavailable(skipped_agent)
+ assert verdict({"opencode": skipped_agent}) == (
+ "lift not measured",
+ "opencode: no baseline was run; lift not measured",
+ )
+ result = {"execution_status": "succeeded", "agents": {"opencode": skipped_agent}}
+ assert all(step["kind"] != "incomplete run" for step in next_steps(result, run_dir=tmp_path))
+ for agents in ({"opencode": skipped_agent}, {"opencode": skipped_agent, "codex": skipped_agent}):
+ terminal = render_result({**result, "agents": agents})
+ assert "no baseline was run; lift not measured" in terminal
+ assert "contracts differ" not in terminal
+ assert "execution is incomplete" not in terminal
+ assert " ?" not in "\n".join(line for line in terminal.splitlines() if "? incomplete" not in line)
+
+
[email protected]("status,expected", [("failed", 1), ("missing", 1), ("skipped", 1), ("skipped", None)])
+def test_unscored_baseline_is_not_treated_as_intentionally_omitted(skipped_agent, tmp_path, status, expected):
+ skipped_agent["conditions"]["without_skill"].update(execution_status=status, expected_attempts=expected)
+ assert _execution_unavailable(skipped_agent)
+ assert _contract_mismatch(skipped_agent)
+ assert verdict({"opencode": skipped_agent})[0] == "inconclusive"
+ steps = next_steps({"agents": {"opencode": skipped_agent}}, run_dir=tmp_path)
+ assert any(step["kind"] == "incomplete run" for step in steps)
+
+
[email protected]("status", ["failed", "succeeded"])
+def test_skipped_baseline_does_not_hide_with_skill_failure(skipped_agent, tmp_path, status):
+ skipped_agent["execution_status"] = status
+ skipped_agent["conditions"]["with_skill"].update(execution_status=status, scored_attempts=0)
+ skipped_agent["pass_at_k"]["with_skill"]["cases"]["case"] = _case(missing=1)
+ assert _execution_unavailable(skipped_agent) is (status == "failed")
+ assert verdict({"opencode": skipped_agent})[0] == "inconclusive"
+ assert any(
+ step["kind"] == "incomplete run"
+ for step in next_steps({"agents": {"opencode": skipped_agent}}, run_dir=tmp_path)
+ )
+
+
+def test_empty_agents_do_not_claim_a_skipped_baseline():
+ assert verdict({}) == ("", "")
+ assert not _contract_mismatch({})
+
+
+def test_saved_run_html_and_benchmark_keep_no_baseline_wording(skipped_agent, tmp_path):
+ run = _run(tmp_path, goal_accuracy=1.0)
+ shutil.rmtree(run / "opencode" / "without-skill")
+ source = {"execution_status": "succeeded", "agents": {"opencode": skipped_agent}}
+ (run / "result.json").write_text(json.dumps(source))
+ html = render_agent_eval_html_report(tmp_path, run, use_llm_judge=False, include_benchmark=True).read_text()
+ result = agent_eval_result_from_directory(tmp_path, run, use_llm_judge=False)
+ assert result is not None
+ publication = BenchmarkReporter(skill_name=tmp_path.name).render_all([result])
+ tier3 = (run / "tier3-benchmark.md").read_text()
+ for text in (html, publication, tier3):
+ assert "contracts differ" not in text
+ assert "execution is incomplete" not in text
+ assert "no baseline was run; lift not measured" in html
+ assert "no baseline" in tier3.lower()
+ assert "INCOMPLETE" in publication