The main thread still builds and serializes the document; one on-demand
worker thread checks the text with the loader's pure validator and writes it
atomically. At most one job waits (a newer autosave replaces a queued one).
Quit waits for the worker; a mission end, reset or load cancels the queued
job and waits for the running one, so no late write lands afterwards.
Outcomes return to the main thread, which records faults in the crash log
and flashes "autosave.failed". The validator takes the OPZ chart size from
the main thread so it never touches pygame off it. Slot saves keep the
synchronous check.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CW6FkwLLc6KvPHvCs5KTRo