Repository navigation
fix(reporting): publish the same Overall lift in BENCHMARK.md as every other output - #373
Conversation
…y other output When a metric is N/A in only one arm (the skill metrics in a baseline without the skill), Skill Lift compares the two arms on the dimensions both scored, so the scores it subtracts differ from the arm overall scores. BENCHMARK.md subtracted the arm overall scores instead and published a different uplift than lift.json and the JSON, HTML, Markdown and terminal reports. Record the pair the overall lift subtracts per agent as lift_overall in the canonical report and render the BENCHMARK.md Overall row from it, with a note when it differs from the arm overall scores. Add a cross-format test that reconciles arm Overall scores, recorded score policy and lift across reward summaries, lift.json, the canonical and JSON reports, HTML, Markdown, BENCHMARK.md and the terminal report, including a case where a six-metric mean would reverse the lift. Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 2 findings (0 P1, 0 P2, 2 P3); 2 posted inline.
Checked the lift_overall pair and the BENCHMARK.md Overall row against lift.json with synthetic collected runs on the PR head and origin/main: one-arm N/A (default and legacy policy), a mixed-judge case, custom-only and missing-lift inputs.
Tests: tests/test_overall_cross_format_consistency.py 2 passed on the head and 2 failed on an origin/main copy; tests/golden/test_benchmark_card.py, test_judge_lift_integrity.py and four tests/reporting files (unavailable lift labels, scoped reports, applicability saved runs, activation benchmark HTML) 244 passed; ruff check and format clean on the three changed Python files. A wider reporter run did not finish under machine load.
Merge with main: CHANGELOG.md only. With other open PRs: a real conflict with #376 in reporting/benchmark.py, where both rewrite the Overall row (keep this PR's lift_overall pair and #376's baseline_only argument; merge this PR first), and a CHANGELOG.md conflict with #225; the rest merge cleanly once #333 is rebased on main.
#386 fixes the same Overall lift for tier3 compare by recomputing from arm summaries instead of reading lift.json: with a judge fallback in one arm, compare shows +0.20 while lift.json and this PR's lift_overall give +0.4833, so BENCHMARK.md and compare still disagree after both merge unless #386 reads lift.json's overall delta.
#376's new HTML definition of Skill Lift ("the overall score with the skill minus the baseline") contradicts the docs/reports.mdx text added here for runs with a metric N/A in one arm, and #376's new BENCHMARK.md legend ("Overall row: the equal-weight mean of the five dimension scores with the skill") is wrong for this PR's Overall row whenever it shows the lift_overall pair (66.7% against a 60.0% with-skill overall in the PR description's example). #388's lift history shows arm scores next to the paired lift, the mismatch this PR removes from BENCHMARK.md.
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
…all-consistency Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # docs/reports.mdx
…all-consistency Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
NVIDIA#373 now builds the Overall row from the lift_overall pair, which for a baseline without the skill is the same comparison over the dimensions the baseline scored, 65.0% → 91.7% (+26.7 points) for the run in the test. Resolve the conflict by keeping main's row and note, drop this branch's own Overall helper and note, and check main's note in the test. Keep both CHANGELOG entries, with the Overall sentence left to Signed-off-by: Saibernard Yogendran <[email protected]> NVIDIA#373's.
Summary
When a metric is N/A in only one arm (the skill metrics in a baseline run without the skill), Skill Lift compares the two arms on the dimensions both scored, so the scores it subtracts differ from the arm overall scores.
lift.jsonand the JSON, HTML, Markdown and terminal reports published that lift, but theBENCHMARK.mdOverall row subtracted the arm overall scores and published a different uplift. Example from the new test: every other output says+0.10;BENCHMARK.mdsaid56.7% → 60.0% (+3.3 points).lift_overall(with_skill,baseline); it isnullwhen no overall lift is published.BENCHMARK.mdOverall row renders from that pair (56.7% → 66.7% (+10.0 points)) and adds a note when it differs from the arm overall scores. Arm scores, verdicts, the scoring policy and legacy/custom-only/incomplete handling are unchanged.tests/test_overall_cross_format_consistency.pyruns one synthetic standard-grading run through collection and every writer and checks that arm Overall,score_policyand lift agree across armsummary.json,lift.json, the canonical report, JSON, HTML, Markdown,BENCHMARK.mdand the terminal report. It covers the one-arm N/A case and a case where a six-metric mean would give a passing +0.10 lift, but the five-dimension policy gives a failing -0.08.Not covered here:
tier3 compareoutput is not part of the new test, and no credentialed live evaluation was run.Verification
make lintmake test(47 failures intest_ci_onboarding, plugin dependency/discovery,secure_fs,utils/test_helpers, input staging and results-location tests; the same files also fail on a cleanorigin/maincheckout in this environment, and none touch reporting)make buildThe new test fails on
origin/mainand passes with this change. Rantests/reporting,tests/evaluation,tests/test_judge_lift_integrity.pyandtests/test_harbor_metrics_truth.py(1,992 passed).Release Impact
CHANGELOG.md