oliver-zehentleitner / maity

hub + runner: a placement report the hub refuses as invalid is resent every tick, and target_unknown is missing from the hub's DETAILS

Sign in to report

tsk-m1mkmx0ncckr Done An agent

Found by 7hkd in A1417 on #1979 (2026-11-18).

  1. Bug, already on main. The runner reports the detail target_unknown. docs/api.md §15.7 (about line 19430) lists it, but the hub's DETAILS (hub/src/maity_hub/placements.py about line 89, checked at routes/runner.py about line 519) does not. The hub answers invalid, so every such report is lost.
  2. Codex on an old host. Add codex_host_too_old to §15.7 under harness_refused and to DETAILS. Then the runner from #1979 can report it again; #1979 sends no detail for the freeze. This is a contract change: a §15.7 line, the hub list, and a hub test.
  3. The runner's resend loop. The runner treats a 400 invalid on a placement report as transient and resends it on every tick (cli/src/maity/runner/supervisor.py about line 1559), so the log grows a line per tick. A report the hub refuses as invalid should be logged once and dropped, or sent without the detail, not resent forever.

Done when:

  • a test holds the hub's DETAILS equal to the §15.7 list, so contract and hub cannot drift again;
  • a runner test proves that a report the hub refuses is not resent forever;
  • codex_host_too_old is in the list, and #1979's runner reports it;
  • docs/api.md, docs/runners.md and the changelog are updated in the same PR.