From 1025a5a880ca6b67451666cfcf6c15f61d3eba0f Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 10:20:13 +0000 Subject: [PATCH] fix(reporting): describe the Overall row comparison basis Signed-off-by: Christopher Kevin --- CHANGELOG.md | 2 ++ src/skillevaluator/reporting/benchmark.py | 6 +++++- tests/golden/benchmark_fail/BENCHMARK.md | 2 +- tests/golden/benchmark_pass/BENCHMARK.md | 2 +- tests/reporting/test_dimension_explanations.py | 15 +++++++++++++++ 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c0ca58e..6f68d8b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -305,6 +305,8 @@ All notable changes to SkillEvaluator are documented in this file. ### Fixed +- Benchmark methodology describes the Overall row's shared comparison basis + rather than the headline with-skill score, in Tier 3 and publication cards. - The Tier 2 scale guide names the fixed 8 MiB selected-manifest input budget and 1 MiB per-manifest limit, including in description-only embedding mode. - Saved Tier 2 catalogs use compact JSON so indentation no longer rejects dense diff --git a/src/skillevaluator/reporting/benchmark.py b/src/skillevaluator/reporting/benchmark.py index b577e3e6c..1964dc350 100644 --- a/src/skillevaluator/reporting/benchmark.py +++ b/src/skillevaluator/reporting/benchmark.py @@ -1063,7 +1063,11 @@ def _render_methodology( "- **Dimension score**: how well the agent did on one question above when it had the skill, " "from 0% to 100%." ), - "- **Overall** row: the equal-weight mean of the five dimension scores with the skill.", + ( + "- **Overall** row: when comparable baseline scores are available, the two scores used for " + "published Skill Lift, on the metrics and cases both arms scored comparably. Otherwise, " + "the available arm Overall score(s). These can differ from the headline with-skill score." + ), ( "- **Uplift**: the displayed skill score minus the displayed no-skill baseline score. " "Published Skill Lift compares Overall only on the metrics and cases both arms scored, " diff --git a/tests/golden/benchmark_fail/BENCHMARK.md b/tests/golden/benchmark_fail/BENCHMARK.md index 2f220edda..de3a6f72d 100644 --- a/tests/golden/benchmark_fail/BENCHMARK.md +++ b/tests/golden/benchmark_fail/BENCHMARK.md @@ -112,7 +112,7 @@ Which number answers which question: - **Overall verdict** (top of this card): whether the evidence supports publishing the skill. It needs every required tier, not only Tier 3 scores. - **Dimension score**: how well the agent did on one question above when it had the skill, from 0% to 100%. -- **Overall** row: the equal-weight mean of the five dimension scores with the skill. +- **Overall** row: when comparable baseline scores are available, the two scores used for published Skill Lift, on the metrics and cases both arms scored comparably. Otherwise, the available arm Overall score(s). These can differ from the headline with-skill score. - **Uplift**: the displayed skill score minus the displayed no-skill baseline score. Published Skill Lift compares Overall only on the metrics and cases both arms scored, so it can differ. Uplift does not set the verdict. - **pass@k** (HTML report and `pass_at_k_lift.json`): the share of eval cases with at least one passing attempt out of k. It measures how repeatable success is, separately from the dimension scores. - **Quality Score** (Tier 1, out of 100): a static review of the skill's files. It is not an input to any Tier 3 score or uplift. diff --git a/tests/golden/benchmark_pass/BENCHMARK.md b/tests/golden/benchmark_pass/BENCHMARK.md index 658c7f6ef..d28e42db4 100644 --- a/tests/golden/benchmark_pass/BENCHMARK.md +++ b/tests/golden/benchmark_pass/BENCHMARK.md @@ -108,7 +108,7 @@ Which number answers which question: - **Overall verdict** (top of this card): whether the evidence supports publishing the skill. It needs every required tier, not only Tier 3 scores. - **Dimension score**: how well the agent did on one question above when it had the skill, from 0% to 100%. -- **Overall** row: the equal-weight mean of the five dimension scores with the skill. +- **Overall** row: when comparable baseline scores are available, the two scores used for published Skill Lift, on the metrics and cases both arms scored comparably. Otherwise, the available arm Overall score(s). These can differ from the headline with-skill score. - **Uplift**: the displayed skill score minus the displayed no-skill baseline score. Published Skill Lift compares Overall only on the metrics and cases both arms scored, so it can differ. Uplift does not set the verdict. - **pass@k** (HTML report and `pass_at_k_lift.json`): the share of eval cases with at least one passing attempt out of k. It measures how repeatable success is, separately from the dimension scores. - **Quality Score** (Tier 1, out of 100): a static review of the skill's files. It is not an input to any Tier 3 score or uplift. diff --git a/tests/reporting/test_dimension_explanations.py b/tests/reporting/test_dimension_explanations.py index 5eceec15d..0236782cc 100644 --- a/tests/reporting/test_dimension_explanations.py +++ b/tests/reporting/test_dimension_explanations.py @@ -9,6 +9,7 @@ from copy import deepcopy from pathlib import Path +import pytest from scripts.ci import check_public_benchmarks as benchmark_gate from skillevaluator.constants import DIMENSION_HINTS, SIGNAL_EVIDENCE_SOURCES @@ -110,6 +111,20 @@ def test_benchmark_methodology_states_when_no_baseline_ran() -> None: assert _row(markdown, "Correctness").endswith("| 90.0% — baseline not run; uplift unavailable |") +@pytest.mark.parametrize("scope", ["publication", "tier3"]) +@pytest.mark.parametrize("baseline", [True, False]) +def test_overall_row_methodology_describes_comparison_basis(scope: str, baseline: bool) -> None: + result = _validation_result_from_payload(_payload({"agent": _agent(baseline=baseline)})) + markdown = BenchmarkReporter(report_scope=scope, include_timestamp=False).render(result) + + assert ( + "**Overall** row: when comparable baseline scores are available, the two scores used for published " + "Skill Lift, on the metrics and cases both arms scored comparably. Otherwise, the available arm " + "Overall score(s). These can differ from the headline with-skill score." + ) in markdown + assert "**Overall** row: the equal-weight mean of the five dimension scores with the skill." not in markdown + + def test_unscored_dimension_is_explained_not_zero(tmp_path: Path) -> None: markdown, html = _render(_payload({"agent": _agent(with_scores={"accuracy": None})}))