Repository navigation
Keep auto-matched leaderboard model names stable across runs - #1154
Merged
Merged
Conversation
The matcher named an effort-suffixed entry after its base model when only the base resolved, and after the full upstream name once an alias for the full name existed. Rows are keyed by model name, so the flip created a second row for the same upstream entry on CritPt, CritPt v2 and Terminal-Bench-Science. The matcher now always returns the catalog name without the effort setting. The three Artificial Analysis boards, whose reviewed names keep the setting, use the upstream name instead. The engine renames a managed row in place when its entry label resolves to a new model name, so any future rename reuses the row instead of duplicating it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…able-matched-names # Conflicts: # .github/workflows/scripts/README.md # backend/services/carbon_board_syncs.py # backend/services/live_leaderboard_sync.py
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.
Problem
On CritPt, CritPt v2 and Terminal-Bench-Science, the live leaderboard engine kept two managed rows for one upstream entry, e.g.
critpt-v247580 "Claude Fable 5.2" (2026-11-09) and 50208 "Claude Fable 5.2 (max)" (2026-11-22), both with methodologyOfficial leaderboard entry "Claude Fable 5.2 (max)". In production: 10 pairs across the three boards (Claude Fable 5.2, DeepSeek V4.1 Flash 1017, GPT-6 Sol, Gemini 4 Hydrogen, Gemini 4 Neon).Root cause
LeaderboardModelMatcher.matchnames a model after whichever spelling resolved first:model_provider_aliases: "Claude Fable 5.2 (max)" was added on 2026-11-22), the full name resolved directly and the match used "Claude Fable 5.2 (max)".The engine keys rows by
(paper_id, model_name, harness), so the flip created a second row, and the old one was left behind with an olderupdated_at.Fix
catalog_name), whichever spelling resolved.LiveLeaderboard.effort_in_model_name(set on the three Artificial Analysis boards) names auto-matched rows after the upstream name instead. On those boards 56 of 57 reviewed effort-labelled identities keep the suffix ("GPT-6 Astra (max)"). Other boards (swe-sweep) strip it.LiveSyncStats.renamedcounts these.managed_labelmatches the property #1153 adds, so the two PRs conflict trivially.Verification
(max)entry keeps one row when its full name gains a provider alias between runs, under both naming modes (fails on the old matcher with a second row); and a managed row is renamed in place with its reviewer notes kept.pytest backend/tests/evaluation -k sync: 505 passed. ruff, format and the backend comment ratchet are clean.BOARD_SYNCSboard against production with this branch: no new rows anywhere; two renames,critpt49374 "Claude Fable 5.1" → "Claude Fable 5.1 (xhigh)" andcritpt-v249375 "GPT-6 Astra" → "GPT-6 Astra (medium)", which take the names their entry labels give.Data cleanup (separate from the deploy)
The 10 stale bare-named twins (47575, 47416, 47415, 47580, 47418, 48721, 49574, 47574, 47417, 48742) have the same score, rank and protocol as the suffixed rows the sync updates, and no reviewer notes. They are deleted through
EvaluationService.delete_evaluationonce the user confirms.🤖 Generated with Claude Code
Note
Medium Risk
Changes leaderboard sync identity keys and in-place renames for managed rows on live CritPt/TBS boards; wrong matching could affect displayed scores but is bounded to sync-owned rows.
Overview
Fixes duplicate evaluation rows when auto-matched leaderboard names flip between a base model name and an effort-suffixed spelling as provider aliases are added.
LeaderboardModelMatchernow always returns the catalog name (effort suffix stripped viacatalog_name) for matched models, so the same upstream entry does not get a second row when resolution path changes.LiveLeaderboardSyncServicegainseffort_in_model_name(enabled on CritPt, CritPt v2, and Terminal-Bench-Science) so those boards keep one row per upstream effort-labelled name, matching their reviewed identities. Other boards still collapse effort settings onto one catalog row. When the sync key misses an existing managed row, it reuses and renames the row whose methodology cites the same official entry label;LiveSyncStats.renamedtracks this.Tests cover stable single-row behavior when a
(max)alias appears between runs (both naming modes) and in-place rename with reviewer notes preserved.Reviewed by Cursor Bugbot for commit 8b32e6b. Bugbot is set up for automated code reviews on this repo. Configure here.