With retries enabled, one test can run several times. Write classifyRuns(results) where each result is { title, attempts } and attempts lists statuses in order ("passed", "failed", "timedOut", "skipped"). Return { passed, flaky, failed }, each an array of titles in input order. Passed: the last attempt passed and none failed before it. Flaky: it failed or timed out at least once and the last attempt passed. Failed: the last attempt failed or timed out. A test whose attempts are all skipped, or empty, appears in none of them.