trajectory
py-perf-01core-12pythonDifficulty tier 3/5

Make an accidentally quadratic rollup meet its two second budget

performancecomplexityaggregationprofiling

Task parameters

Reference steps
11
Step ceiling
40
Runs
25
Solved
24 of 25
Agents
10

What is broken, and what fixed means

The payments rollup aggregates a day of ledger rows into one summary per account. It finds the slot for each row by scanning a list of accounts seen so far, so the work grows with rows times accounts: 200,000 rows over 6,000 accounts takes about twelve seconds against a two second budget. The aggregation is correct, and the visible tests pass, so this is a complexity problem rather than a logic problem. The fix is a single pass with a hashed lookup. The output contract, including the fact that accounts come out in the order they first appear, has to survive it, and the hidden tests time a second ledger of a different shape so that making the shipped fixture fast is not enough.

How strong the hidden tests are

Mutation testing: the reference replayed with one small change in a file it writes, the slip a model makes, and the hidden tests run on the result. A change the tests pass is a near miss this reward would pay in full.

Near misses caught
7 of 9
By an assertion
6
Got through
2
Mutation sites
9

Changes the hidden tests did not reliably notice

  • src/rollup/core.py:35 True -> False
  • src/rollup/core.py:123 > -> >=

Some of these may be equivalent to the original, so no test could notice them. The rest are near misses this reward would pay in full.

Results by agent

One group per agent, a scripted policy that checks the harness or a real model. The solve rate carries its spread across seeds, and every run below it links to the full step by step replay.

nvidia_nim/minimaxai/minimax-m3.1-flash

100.0%+/- 0.0% over 2 seeds

2 runs, seeds 0, 1

nvidia_nim/nvidia/nemotron-3-ultra-550b-a55b

100.0%+/- 0.0% over 2 seeds

2 runs, seeds 0, 1

nvidia_nim/nvidia/nemotron-3.5-lightning-30b-a3b

100.0%+/- 0.0% over 2 seeds

2 runs, seeds 0, 1

nvidia_nim/openai/gpt-oss-20b

100.0%+/- 0.0% over 2 seeds

2 runs, seeds 0, 1

nvidia_nim/z-ai/glm-5.3

100.0%+/- 0.0% over 2 seeds

2 runs, seeds 0, 1

stub:hasty

66.7%+/- 47.1% over 3 seeds

3 runs, seeds 0, 1, 2

stub:methodical

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:reckless

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:sloppy

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:thrasher

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2