Skip to content

Keep auto-matched leaderboard model names stable across runs - #1154

Merged
NielsRogge merged 2 commits into
mainfrom
claude/leaderboard-stable-matched-names
Nov 23, 2026
Merged

NielsRogge merged 2 commits into
mainfrom
claude/leaderboard-stable-matched-names

Conversation

@NielsRogge

@NielsRogge NielsRogge commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

On CritPt, CritPt v2 and Terminal-Bench-Science, the live leaderboard engine kept two managed rows for one upstream entry, e.g. critpt-v2 47580 "Claude Fable 5.2" (2026-11-09) and 50208 "Claude Fable 5.2 (max)" (2026-11-22), both with methodology Official 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.match names a model after whichever spelling resolved first:

  • if only the base name resolved ("Claude Fable 5.2"), through the effort-suffix fallback, the match used the base name;
  • once a provider alias for the full name existed (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 older updated_at.

Fix

  • The matcher always returns the catalog name without the effort setting (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.
  • When a key has no row, the engine reuses the managed row whose methodology names the same entry label (same paper) and renames it, instead of creating a new one. Any later rename then keeps the row. LiveSyncStats.renamed counts these.

managed_label matches the property #1153 adds, so the two PRs conflict trivially.

Verification

  • New tests: an auto-matched (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.
  • Rolled-back dry run of every BOARD_SYNCS board against production with this branch: no new rows anywhere; two renames, critpt 49374 "Claude Fable 5.1" → "Claude Fable 5.1 (xhigh)" and critpt-v2 49375 "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_evaluation once 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.

LeaderboardModelMatcher now always returns the catalog name (effort suffix stripped via catalog_name) for matched models, so the same upstream entry does not get a second row when resolution path changes.

LiveLeaderboardSyncService gains effort_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.renamed tracks 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.

NielsRogge and others added 2 commits November 23, 2026 11:16
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
@NielsRogge
NielsRogge merged commit 8db72fa into main Nov 23, 2026
6 checks passed
@NielsRogge
NielsRogge deleted the claude/leaderboard-stable-matched-names branch November 23, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant