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.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
fix(reporting): preserve unavailable Tier 3 evaluator scores (#251)
Narendran Raghavan5d2a5052056c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 59621a7c..128c9cd1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -43,6 +43,12 @@ All notable changes to SkillEvaluator are documented in this file.### Fixed+- Tier 3 reports preserve unavailable evaluator lift as `null` when no baseline+ ran, rather than reporting a measured zero. CLI evaluator tables display+ missing or unavailable scores as `n/a` without interrupting JSON and HTML+ report generation; measured zeroes retain their numeric formatting+ ([#240](https://github.com/NVIDIA/SkillEvaluator/issues/240)).+- Explicit searches of `/` (`find`, `grep -r`, `rg`, `ag`, `du` and `tree` with a`/` operand, and native search tools rooted at `/`) now count as wasted toolcalls whether or not they name the expected skill or script, including whendiff --git a/src/skillevaluator/evaluation/tier3_report.py b/src/skillevaluator/evaluation/tier3_report.pyindex d5206b1a..43b1c2ab 100644--- a/src/skillevaluator/evaluation/tier3_report.py+++ b/src/skillevaluator/evaluation/tier3_report.py@@ -1884,7 +1884,7 @@ def _build_evaluators(evaluators[metric] = {"with_skill": ws,"baseline": bl,- "lift": lift if lift is not None or excluded else 0.0,+ "lift": lift,}return evaluatorsdiff --git a/src/skillevaluator/reporting/cli.py b/src/skillevaluator/reporting/cli.pyindex af2c1fd0..304f9f55 100644--- a/src/skillevaluator/reporting/cli.py+++ b/src/skillevaluator/reporting/cli.py@@ -378,9 +378,9 @@ class CLIReporter(ReporterBase):table.add_column("Lift", justify="right")for name, scores in evaluators.items():- ws = scores.get("with_skill", 0.0)- bl = scores.get("baseline", 0.0)- lift = scores.get("lift", 0.0)+ ws = scores.get("with_skill")+ bl = scores.get("baseline")+ lift = scores.get("lift")if lift is None:lift_text = "n/a"else:@@ -388,7 +388,7 @@ class CLIReporter(ReporterBase):lift_text = f"[{lc}]{lift:+.2f}[/{lc}]"table.add_row(escape_markup(str(name).replace("_", " ").title()),- f"{ws:.2f}",+ f"{ws:.2f}" if ws is not None else "n/a",f"{bl:.2f}" if bl is not None else "n/a",lift_text,)diff --git a/tests/reporting/test_reporters.py b/tests/reporting/test_reporters.pyindex 8f3635ec..7fe3fae6 100644--- a/tests/reporting/test_reporters.py+++ b/tests/reporting/test_reporters.py@@ -3,6 +3,7 @@"""Tests for all reporters in the reporting module."""+import copyimport jsonimport reimport tempfile@@ -246,6 +247,47 @@ class TestCLIReporter:expected_lift,]+ @pytest.mark.parametrize(("with_skill", "expected_with_skill"), [(None, "n/a"), (0.0, "0.00"), (0.95, "0.95")])+ @pytest.mark.parametrize(("baseline", "expected_baseline"), [(None, "n/a"), (0.0, "0.00"), (0.95, "0.95")])+ @pytest.mark.parametrize(("lift", "expected_lift"), [(None, "n/a"), (0.0, "+0.00"), (0.95, "+0.95")])+ def test_render_agent_eval_score_availability(+ self, with_skill, expected_with_skill, baseline, expected_baseline, lift, expected_lift+ ) -> None:+ result = ValidationResult(validator_name="AGENT_EVAL")+ result.metadata["agent_eval"] = {+ "evaluators": {"accuracy": {"with_skill": with_skill, "baseline": baseline, "lift": lift}},+ }++ output = CLIReporter().render(result)+ plain_output = re.sub(r"\x1b\[[0-9;]*m", "", output)+ row = next(line for line in plain_output.splitlines() if "Accuracy" in line)++ assert [cell.strip() for cell in row.split("│")[1:-1]] == [+ "Accuracy",+ expected_with_skill,+ expected_baseline,+ expected_lift,+ ]++ @pytest.mark.parametrize(+ ("scores", "expected_cells"),+ [+ ({}, ["n/a", "n/a", "n/a"]),+ ({"with_skill": 0.0}, ["0.00", "n/a", "n/a"]),+ ({"baseline": 0.0}, ["n/a", "0.00", "n/a"]),+ ({"lift": 0.0}, ["n/a", "n/a", "+0.00"]),+ ],+ )+ def test_render_agent_eval_missing_scores_are_unavailable(self, scores, expected_cells) -> None:+ result = ValidationResult(validator_name="AGENT_EVAL")+ result.metadata["agent_eval"] = {"evaluators": {"accuracy": scores}}++ output = CLIReporter().render(result)+ plain_output = re.sub(r"\x1b\[[0-9;]*m", "", output)+ row = next(line for line in plain_output.splitlines() if "Accuracy" in line)++ assert [cell.strip() for cell in row.split("│")[1:-1]] == ["Accuracy", *expected_cells]+def test_render_failure_escapes_markup_in_finding_fields(self) -> None:"""Dynamic finding text should not be parsed as Rich markup."""result = ValidationResult(@@ -1203,6 +1245,66 @@ class TestGatingSplit:assert "team-b/shared-skill" in tier2+ ("baseline_scores", "expected_baseline", "expected_lift", "markdown_cells"),+ [+ ({}, None, None, "0.95 | N/A | N/A"),+ ({"accuracy": 0.0}, 0.0, 0.95, "0.95 | 0.00 | +0.95"),+ ({"accuracy": 0.95}, 0.95, 0.0, "0.95 | 0.95 | +0.00"),+ ],+)+def test_emit_reports_preserves_unavailable_evaluator_lift(+ tmp_path, capsys, baseline_scores, expected_baseline, expected_lift, markdown_cells+) -> None:+ agents = {+ "codex": {+ "execution_status": "succeeded",+ "execution_errors": [],+ "expected_attempts": 1,+ "scored_attempts": 1,+ "with_skill": {"accuracy": 0.95},+ "without_skill": baseline_scores,+ "rewards": [{"entry_id": "case-1", "accuracy": 0.95}],+ }+ }+ original_agents = copy.deepcopy(agents)+ payload = build_agent_eval_payload("demo-skill", agents, use_llm_judge=False)+ assert payload is not None+ expected_evaluator = {"with_skill": 0.95, "baseline": expected_baseline, "lift": expected_lift}+ assert payload["evaluators"]["accuracy"] == expected_evaluator+ assert payload["agents"]["codex"]["evaluators"]["accuracy"] == expected_evaluator+ assert payload["evaluator_cards"][0]["lift"] == expected_lift+ original_payload = copy.deepcopy(payload)+ result = ValidationResult(validator_name="AGENT_EVAL")+ result.metadata["agent_eval"] = payload+ # Findings make emit_reports include the detailed CLI evaluator table.+ result.add_finding(+ Finding(+ category="AGENT_EVAL",+ severity=Severity.LOW,+ check_name="diagnostic",+ message="Review evaluation diagnostics.",+ file_path="SKILL.md",+ )+ )++ emit_reports([result], report_formats=("cli", "json", "html"), output_dir=tmp_path, basename="skip-baseline")++ assert "Accuracy" in capsys.readouterr().out+ json_report = json.loads((tmp_path / "skip-baseline.json").read_text())+ saved_payload = json_report["tier3"]+ assert json_report["results"][0]["tier3"]["evaluators"]["accuracy"] == expected_evaluator+ assert saved_payload["evaluators"]["accuracy"] == expected_evaluator+ assert saved_payload["agents"]["codex"]["evaluators"]["accuracy"] == expected_evaluator+ html_report = (tmp_path / "skip-baseline.html").read_text()+ assert "<!DOCTYPE html>" in html_report+ assert "demo-skill" in html_report+ replayed = ValidationResult(validator_name="AGENT_EVAL", metadata={"agent_eval": saved_payload})+ assert f"| Accuracy | {markdown_cells} |" in MarkdownReporter(include_timestamp=False).render_all([replayed])+ assert agents == original_agents+ assert payload == original_payload++class TestHTMLReporter:"""Tests for HTMLReporter."""@@ -1490,7 +1592,7 @@ class TestMarkdownReporter:output = MarkdownReporter(include_timestamp=False).render_all([result])assert "### Evaluator Scores" in output- assert "| Accuracy | 0.90 | N/A | +0.00 |" in output+ assert "| Accuracy | 0.90 | N/A | N/A |" in outputdef test_render_tier3_normalized_evidence_uses_distinct_evidence_ids(self) -> None:result = _tier3_harbor_result()