Let the Model Pick Thread Interleavings Instead of Random Test Order

cto_junior · x · 2026-09-23

The author proposes a concurrency-testing approach: rather than letting tests run whatever thread order the machine happens to pick, let the model choose the interleaving order itself and keep trying new ones.

The trick: each operation is written as small steps, split wherever another thread could cut in. A scheduler picks which step runs next, and a second function knows what the right answer should be.

Related event: Engineers Use LLMs to Hunt Concurrency Bugs Tests Miss(4 posts)→

Original post →

More from coding & agent

coding & agent channel →