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> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| test_app_accept_proposal.py | ||
| test_debug_capture.py | ||
| test_map_vision_marker_id.py | ||
| test_map_vision_warp.py | ||
| test_models.py | ||
| test_ocr.py | ||
| test_solver.py | ||