trajectory
go-race-01core-12goDifficulty tier 4/5

Fix a data race in a metrics registry without serialising every read

goconcurrencydata-racelockingrwmutex

Task parameters

Reference steps
9
Step ceiling
40
Runs
25
Solved
17 of 25
Agents
10

What is broken, and what fixed means

A latency aggregator shared by every request goroutine and one exporter goroutine fails under the race detector. A mutex was added around the map at some point and the work stopped there: the per endpoint aggregate fields, the histogram behind them and the global Observe counter are all mutated with no lock held, and a cache in front of the map that remembers the most recently used endpoint is read and written unsynchronised on the hot path. The cache is the subtle half. It is also why Reset leaves a stale bucket behind, which is a visible bug rather than a detector warning. The tempting fix is one exclusive mutex around every method, which is race free, correct, and puts every exporter read in a queue behind the others: the hidden suite measures concurrent reads of a deliberately slow read path and rejects it.

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
9 of 12
By an assertion
9
Got through
3
Mutation sites
12

Changes the hidden tests did not reliably notice

  • agg/aggregator.go:36 0 -> 1
  • agg/aggregator.go:37 0 -> 1
  • agg/aggregator.go:72 > -> >=

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

0.0%+/- 0.0% over 2 seeds

2 runs, seeds 0, 1

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

50.0%+/- 50.0% over 2 seeds

2 runs, seeds 0, 1

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

50.0%+/- 50.0% over 2 seeds

2 runs, seeds 0, 1

nvidia_nim/openai/gpt-oss-20b

50.0%+/- 50.0% over 2 seeds

2 runs, seeds 0, 1

nvidia_nim/z-ai/glm-5.3

0.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