diff --git a/crates/platform-server/src/db/queries.rs b/crates/platform-server/src/db/queries.rs
index 2a602a5f..ed2afadd 100644
--- a/crates/platform-server/src/db/queries.rs
+++ b/crates/platform-server/src/db/queries.rs
@@ -327,6 +327,10 @@ pub async fn get_evaluations_for_agent(pool: &Pool, agent_hash: &str) -> Result<
// LEADERBOARD
// ============================================================================
+/// Update leaderboard entry for an agent by calculating consensus score from evaluations
+///
+/// Calculates the average score from all evaluations for the agent and updates the leaderboard.
+/// Returns `None` if no evaluations exist for the agent.
pub async fn update_leaderboard(pool: &Pool, agent_hash: &str) -> Result