Surface agent code in OverallBestEntry for AgentDetailPage#87
Merged
Conversation
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.
Summary
GET /leaderboard/overallandGET /rounds/{id}/leaderboardnow includeagent_path+commit_hashon every per-spec best record. Closes the flywheel gap on the dashboard's AgentDetailPage — per-problem rows can now deep-link to the exact commit of code that achieved each score.Motivation
Operator directive (cad-optimizations-todos): "you show the agent that achieved SOTA for each problem and their performance — but NOT their agentic code. The whole point is that the winning agent code gets open-sourced so the next person can fork it and beat it by a decaying margin. Surface the code."
HeroStats (spec detail), SotaHero (homepage), and Leaderboard (per-row) already link to agent code on GitHub. AgentDetailPage was the missing surface —
OverallBestEntrycarriedscore+submitted_atbut no path/commit, so the per-problem result rows had nothing to link to.Changes
app/models.py: addagent_path: strandcommit_hash: strtoOverallBestEntry.app/routes/leaderboard.py: SELECTs.agent_path, s.commit_hashand pass through.app/routes/rounds.py: same change in the round-leaderboard path.CHANGELOG.md: 0.15.11 → 0.15.12.24 existing tests in
test_overall_leaderboard.py+test_rounds.pycontinue to pass — the new fields are populated from columns the fixtures already provide.