feat: Track approved agents timeline#421
Merged
Merged
Conversation
…pproved-agents endpoint
camfairchild
approved these changes
Jun 23, 2026
ibraheem-abe
approved these changes
Jun 23, 2026
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
This PR updates the
GET /api/evaluation-sets/{ID}/approved-agentsendpoint to return 3 new fields and order the results so that the newest approved agents come first. Updated response schema:[ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "miner_hotkey": "string", "name": "string", "version_num": 0, "created_at": "2026-06-22T16:47:20.487Z", "final_score": 0, "emission": 0, "approved_at": "2026-06-22T16:47:20.487Z", --new "average_runtime_seconds": 0, --new "average_cost_usd": 0 --new } ]It also updates the
_should_run_auto_approval_judgeto match the/scoring/weightslogic. This means that if a candidate agent and the current leader have the same score it will use the average cost as a tie breaker and if that's the same then it will use the agent creation datetime as a tie breaker.