ps_sweep: keep color mismatches in exact reports #2165

Closed
leonida/mandy
whoalin1 wants to merge 0 commits from ps-sweep-exact-depth-mismatch into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

whoalin1 commented 2026-11-26 01:05:03 +00:00

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).

## 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

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)

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

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)

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)
Sign in to join this conversation.
No description provided.