Multi-Agent Race Condition Simulator
Watch what happens when N AI agents compete for shared state — and why the math gets alarming fast.
RaceFloor is an interactive browser simulator that makes the multi-agent race condition problem visceral. You spin up agents, they move toward shared resources, and eventually two of them write conflicting data at the same moment.
The alarming part: both return HTTP 200 OK. No errors. No warnings. Silent data corruption.
As AI systems move from single-agent to multi-agent architectures, a critical failure mode emerges: parallel agents reading and writing shared state without coordination. The failures are subtle — not crashes, not exceptions, just wrong data that both sides reported as success.
This simulator makes that failure mode impossible to ignore.
The number of potential conflict pairs scales quadratically:
Conflicts = N * (N - 1) / 2
| Agents | Potential Conflicts |
|---|---|
| 2 | 1 |
| 5 | 10 |
| 10 | 45 |
| 20 | 190 |
Move the slider and watch the number update live.
racefloor/
├── index.html # Complete self-contained simulator (HTML + CSS + JS)
└── README.md # This file
No dependencies. No build step. Open in any browser.
# Clone and open
git clone https://github.com/RLASAF12/racefloor.git
cd racefloor
open index.htmlOr just visit the live version: https://rlasaf12.github.io/racefloor/
- Pick a scenario — Customer Support Queue, Shared Document, Database Record, or Agent Memory Write
- Set agent count (2–20) and resource count (1–4)
- Hit Start — watch agents move toward resources
- Wait for a collision — or hit "Force Race Condition" to trigger one immediately
- Read the overlay — both writes shown, both returned HTTP 200, last-write-wins result, real-world damage
| Scenario | Resources | Silent Failure |
|---|---|---|
| Customer Support Queue | Open tickets | Customer gets 2 contradictory emails |
| Shared Document | Doc sections | Reviewer's comments silently erased |
| Database Record | User rows | Account tier reverted without notice |
| Agent Memory Write | Memory slots | Agent acts on stale context indefinitely |
Part of Harel Asaf's nightly prototype series — AI systems that demonstrate real production failure modes.
- Portfolio: harelasaf.com
- Series: AgentGate · HalluciTrap · AgentBudget · FixLoop