From 1fc885cddc4d374863681651076a7b3d5fc2d7e5 Mon Sep 17 00:00:00 2001 From: Natalie Date: Sat, 16 May 2026 23:52:14 -0700 Subject: [PATCH] =?UTF-8?q?fix(@projects/@magic-civilization):=20?= =?UTF-8?q?=F0=9F=90=9B=20fix=20median=20game=20length=20calculation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- tools/checklist-report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/checklist-report.py b/tools/checklist-report.py index b03af413..79471dc2 100755 --- a/tools/checklist-report.py +++ b/tools/checklist-report.py @@ -357,7 +357,10 @@ def ultimate_stress_verdict(results: list[tuple[int, dict]]) -> dict[str, Any]: turn_limit_seen = 0 for _, r in results: outcome = r.get("outcome", "") - turn = int(r.get("turn", 0)) + # `_collect` stores the final turn under "turns" (plural) at line ~89; + # reading "turn" (singular) here always returned 0 and made every + # ultimate_stress verdict fail with "median game length 0.0". + turn = int(r.get("turns", 0)) turn_limit_seen = max(turn_limit_seen, turn) turns.append(turn) if outcome == "victory":