ps_sweep: keep color mismatches in exact reports #2165

Closed
whoalin1 wants to merge 1 commit from upstream-pr/2165 into main
whoalin1 commented 2026-11-26 01:05:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T01:05:03Z.


Summary

Carries forward the semantics of OLD-9787 on current main. In compare --exact, a draw with a proven color readback mismatch was reclassified as missing, incompatible, or a depth mismatch whenever its depth companion was absent or unusable. The row already records depth_class separately, so bad depth must not erase the proven target mismatch.

Includes a synthetic regression case covering an absent depth file and a truncated depth file. No game data or GPU.

Verification

  • python -m compileall -q tools/ps_sweep.py tests/test_ps_sweep.py — PASS
  • python -I tests/test_ps_sweep.py — 25 tests OK (3 skipped)

AI-assisted (Devin).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5502019551 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2165). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T01:05:03Z. --- ## Summary Carries forward the semantics of OLD-9787 on current main. In `compare --exact`, a draw with a proven color readback mismatch was reclassified as `missing`, `incompatible`, or a depth mismatch whenever its depth companion was absent or unusable. The row already records `depth_class` separately, so bad depth must not erase the proven target mismatch. Includes a synthetic regression case covering an absent depth file and a truncated depth file. No game data or GPU. ## Verification - `python -m compileall -q tools/ps_sweep.py tests/test_ps_sweep.py` — PASS - `python -I tests/test_ps_sweep.py` — **25 tests OK (3 skipped)** AI-assisted (Devin).
real-rusher commented 2026-11-26 10:12:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by real-rusher on 2026-11-26T10:12:43Z.


Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. With this PR, python -I tests/test_ps_sweep.py: 25 tests OK (3 skipped). The PR's test file against main's tool: 1 failure, so the new test fails on main and passes with the fix. compileall clean.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189058030 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2165#issuecomment-7189058030). Originally posted by [real-rusher](https://github.com/real-rusher) on 2026-11-26T10:12:43Z. --- Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. With this PR, python -I tests/test_ps_sweep.py: 25 tests OK (3 skipped). The PR's test file against main's tool: 1 failure, so the new test fails on main and passes with the fix. compileall clean. AI-assisted: yes (Claude Code)
MoonEyes commented 2026-11-27 19:44:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T19:44:44Z.


Thanks a lot for this, @whoalin1. The same fix is already open in #1318, claimed in #14 as DRAFT-63: its change to tools/ps_sweep.py is identical to this one, and its test covers the same three cases (absent depth file, short depth file, matching-colour control), plus a check on the draw counts.

I am closing this one so the review happens in one place. Please continue the discussion on #1318, or reopen this one if you see something it misses.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226829240 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2165#issuecomment-7226829240). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T19:44:44Z. --- Thanks a lot for this, @whoalin1. The same fix is already open in #1318, claimed in #14 as DRAFT-63: its change to `tools/ps_sweep.py` is identical to this one, and its test covers the same three cases (absent depth file, short depth file, matching-colour control), plus a check on the draw counts. I am closing this one so the review happens in one place. Please continue the discussion on #1318, or reopen this one if you see something it misses. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2165
No description provided.