mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
The discovery script imported build_search_payload from hltb_handler, which pulls in handler/metadata/__init__ and so instantiates every metadata handler, opens Redis and writes a config file at import time. That import side effect is why the workflow needed a dummy ROMM_BASE_PATH. The script also hand-forked the rest of the protocol (base headers, the /init mint, the session headers and the honeypot body merge), so it validated a candidate route against a copy of what the handler sends rather than against the real thing. Move the contract into utils/hltb_search.py, a leaf module both sides import, and drop ROMM_BASE_PATH from CI. Pace failed session mints too: _ensure_session retried on every lookup, so a down or IP-blocking HLTB cost each ROM in a scan its own rate-limited /init round trip. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>