Uploading a state fetched the ROM without checking it is visible to the
caller, so an ASSETS_WRITE holder could write against a ROM hidden from
them and tell an existing rom_id from a missing one by the 404. The
download path already guards this boundary; the upload path now matches.
The ROM was fetched twice with an identical 404 block, and the first
states_path was recomputed before use, so both collapse into the single
guarded fetch.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>