What comes home?
On screen, extraction is one held key. On the server, it changes what the player owns.
- Product
- Inventory persistence at the end of a ZOMBURG raid.
- My contribution
- Extraction cleanup, atomic inventory writes, runtime rollback and regression coverage.
- Period
- August 2026.
- Technologies
- TypeScript, TypeORM and SQL transactions.

- In the raid
Collected items carry a temporary raid marker.
- At extraction
The server clears that marker from the inventory and safe pocket and saves both together.
- Back at the shelter
The next quest reward sees the same inventory the player brought home.
The bug after the exit
A player could make it home with their haul, then run into an inventory error when claiming a quest reward. The live inventory had already cleared the raid markers. The saved inventory still carried them.
What I changed
I moved the save into extraction cleanup. A successful extraction now saves the inventory and safe pocket together. If that write fails, the cleanup restores the previous in-memory state. The quest reward check can keep doing its job.
The regression tests cover both a successful handoff and a failed save.
Account updated 2026-11-07.