mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Minting a session only proved a candidate route was session-backed, not that it answers the search the handler sends. A future session-minting route sorting ahead of the game-search route would have been published on that evidence alone, leaving installs without completion metadata until the fixture was corrected. Discovery now completes the real exchange: it mints a session, POSTs a search with it, and requires the HLTB game shape that search_games() reads back. The payload is no longer duplicated for the check, it moves to build_search_payload() so the handler and discovery send the same body. Also fixes the workflow being unable to run this script at all. It imports the backend config, which raises unless ROMM_AUTH_SECRET_KEY is set, and the workflow set no environment, so every run (including the manual dispatches) died at import before reaching any HLTB logic. That is why the fixture drifted from May despite the workflow existing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>