Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

Keep tied top tool scores from crashing comparison reports

Rudy Celeklif709e1bd1874
diff --git a/testing/testing-tool-evaluator.md b/testing/testing-tool-evaluator.md
index 3f8a9ff6..efd5e834 100644
--- a/testing/testing-tool-evaluator.md
+++ b/testing/testing-tool-evaluator.md
@@ -259,8 +259,10 @@ class ToolEvaluator:
for eval in tool_evaluations
])
- # Rank tools
- comparison_df["Rank"] = comparison_df["Weighted Score"].rank(ascending=False)
+ # Equal best scores share rank 1; average ranking would give 1.5
+ # and make the existing Rank == 1 lookup fail. Stable input order
+ # selects the convenience top_performer field among tied leaders.
+ comparison_df["Rank"] = comparison_df["Weighted Score"].rank(method="min", ascending=False)
# Identify strengths and weaknesses
analysis = {