How it fits together¶
RetroSpeedLab is one repository and one product. A deterministic 8-bit console runs 24 original games; a search on the GPU hunts for the fastest run of each; a verified run becomes a movie that the backend stores, the website shows and the stream plays. Everything that happens is an event in the data platform, and automated developers keep the whole system healthy.
The parts¶
| Part | Folder | What it does |
|---|---|---|
| Engine | src/retrospeedlab/engine |
The console: cartridge contract, sandbox, movies, verifier, videos, browser builds |
| Games | src/retrospeedlab/games |
RetroSpeedLab24: 24 cartridges, their speedrun wrappers and scripted routes |
| Arcade | src/retrospeedlab/arcade |
What players get: the games site, the itch.io pack, preview and route tools |
| Search | src/retrospeedlab/search |
The TAS search, the PPO policy, the live relay and the lab |
| Runner | src/retrospeedlab/runner |
The rotation that searches every game in turn, the bandit split and the lab job |
| Backend | src/retrospeedlab/backend |
FastAPI: runs, boards, replays, Discord, Twitch, promotion and alerts |
| Lake | src/retrospeedlab/lake |
Kafka relay, Spark streaming, Delta tables, Airflow jobs and experiments |
| Maintainer | deploy/maintainer |
The automated developers that work the suite from their console and Bugsink |
| Articles | src/retrospeedlab/articles |
The weekly technical article and the open-source launch articles |
| Web | web/ |
The website and the stream view |
| Deploy | deploy/ |
One folder per app, the autodeploy, backups, the ops gate and the vault |
A record, step by step¶
- The runner gives each game a turn on the GPU server and starts its search.
- The search plays the game on headless engine consoles, level by level, and keeps the fastest segments.
- After every segment the whole movie replays from power-on. Only a run that replays is a record.
- The search relays the live run to the backend and publishes its events to Kafka.
- The site and the stream read the backend; the stream view is what goes out on Twitch.
- The lake turns the events into Delta tables, experiments and the bandit's worker shares for the next turn.
- When something breaks, an alert becomes a Bugsink issue and a card in the owner's console, and the maintainer picks it up.