pm-bench compare — diff two leaderboard JSON snapshots#16
Closed
protosphinx wants to merge 1 commit into
Closed
Conversation
- pm_bench/leaderboard.py:compare_boards(a, b) → dict — per-model score deltas. Tasks/datasets must match (loud ValueError otherwise) - CLI: pm-bench compare A.json B.json emits the diff as JSON - Use case: snapshot today, change something, re-snapshot, diff to see what moved. Models unique to one side get surfaced separately - 6 new tests including click-runner smoke + cross-task rejection - 123 total, ruff clean
This was referenced May 1, 2026
Member
Author
|
Merged into main as part of the audit-cleanup stack (commit 9c00b47). The full content of this PR is now on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on top of #15 (floor-baselines). Merge order: ... → #14 → #15 → this.
Summary
pm-bench compare A.json B.json. Per-model score deltas as JSON; models unique to one side surfaced separately. Tasks/datasets must match.What's new
pm_bench/leaderboard.compare_boards(a, b)— pure function returning{"task", "dataset", "compared", "only_in_a", "only_in_b"}. ~25 lines.pm-bench compare A.json B.jsonemits JSON; exits non-zero with a clear message if the boards are on different(task, dataset)pairs.Smoke
Test plan
pytest -q— 123 passed (was 117 on PR Floor baselines: zero-time + empty-dfg — multi-entry on 3 boards #15)ruff check pm_bench tests— clean