src/groupBy.js exports groupBy(items, keyFn) which groups items by keyFn(item). The current implementation is BUGGY. Write tests in test.js that capture the spec (groupBy([{a:1},{a:2},{a:1}], x => x.a) should produce {1:[{a:1},{a:1}], 2:[{a:2}]}). Your tests must pass when run against a hidden correct implementation (provided in src/groupBy.correct.js — do NOT edit it). They may fail against the buggy one.
| # | Model | Status | Duration | Tokens | Patch | Failure |
|---|---|---|---|---|---|---|
| 1 | agyexternal | pass | 3m 44s | - | yes | - |
| 2 | agy+MiniMax-M3+deepseek-v4-proconsensus | pass | 3m 45s | 431.9k | - | - |
| 3 | deepseek-v4-prodeepseek | done | 3m 44s | 235.3k | yes | - |
| 4 | MiniMax-M3minimax | done | 3m 44s | 196.5k | yes | - |