Repository navigation
Shortfall tests whether a cheap AI agent can find real, already-public race-condition and inventory-consistency bugs in MedusaJS 2.22.0, on local copies, with Oversold as the checker. A failure counts toward a bug only when a build with that bug's community fix clears it.
Results (10 trials per method, 300 runs each)
- With no bug report and no feedback, Claude Haiku 5.5 reproduced each race scenario in 7 of 10 trials, at a median of 33 runs, for under 2 US cents a try.
- A simple fixed list of tests found all three bug scenarios in 10 of 10 trials. The agent found all three in 3 of 10.
- Follow-up experiments, with the tests chosen first: not allowed to stop early, the agent found all three in 7 of 10. Claude Sonnet 5.5 found all three in 9 of 10, at about 40 US cents a try. Neither gap passed the test set in advance.
Checks on the method
- 0 of 4,330 runs on fix builds or with Redis locking broke the rule that fix covers.
- One cart, two orders: 24 of 1,260 runs with two servers and the in-memory lock, 0 of 660 with Redis and 0 of 660 on one server, consistent with a documented limit of that development-only lock.
- 39 of the 16,994 committed runs had a checkout with an unknown outcome. All 39 are marked inconclusive.
Read
- README: the short version
- WALKTHROUGH: one real trial, step by step
- RESULTS: every table, test and limit
Every run is committed with its full record, and a test rebuilds every published table and key number from that data.