FEnigma/tests
Dominik Roth 8109db2f39 Accept a proposal using its detected marker id, not always a letter
detected_id (map_vision.read_marker_id) was wired into ground-truth
logging but never actually consumed when accepting a proposal --
every accepted target/ally silently got an auto-assigned A/B/C letter
regardless of what number the game itself shows for that unit.
_accept_proposal now prefers detected_id when present, falling back to
auto-assign on a collision (two markers misread to the same id, or a
real id that happens to match one already assigned) -- a duplicate id
is worse than losing traceability to the game's own number for that
one accept. Targets/allies keep their own separate id namespace, same
as auto-assignment already does elsewhere.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 19:19:43 +02:00
..
fixtures Fix ally marker detection; expand TargetType icons and pickers 2026-08-10 23:49:46 +02:00
test_app_accept_proposal.py Accept a proposal using its detected marker id, not always a letter 2026-08-13 19:19:43 +02:00
test_debug_capture.py Fix ally/target bugs, OCR fire-support parsing, add debug capture 2026-08-11 17:35:37 +02:00
test_map_vision_marker_id.py Add marker id detection; log unit_score/margin; use full-res captures 2026-08-13 18:54:53 +02:00
test_map_vision_warp.py Fix id-namespace regression, add StrikeRequest type, kill full-panel 2026-08-11 20:48:57 +02:00
test_models.py Fix id-namespace regression, add StrikeRequest type, kill full-panel 2026-08-11 20:48:57 +02:00
test_ocr.py Fix id-namespace regression, add StrikeRequest type, kill full-panel 2026-08-11 20:48:57 +02:00
test_solver.py Fix click/right-click placement landing one sub-cell off from the actual click 2026-08-09 21:18:47 +02:00