Files
romm/backend/utils
Georges-Antoine Assi 2a7953ed58 refactor: share the HLTB search wire contract with endpoint discovery
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>
2026-08-29 08:31:14 -04:00
..
2025-09-04 11:17:00 -03:00
2026-06-21 17:42:25 -04:00
2026-07-26 15:16:56 -04:00
2026-08-01 14:52:55 -04:00
2026-08-06 10:09:01 -04:00
2026-07-20 08:39:34 -04:00
2026-06-28 21:48:50 -04:00
2026-07-06 22:17:56 -04:00
2026-07-19 15:05:51 -04:00