image_d16_probe: report packed Y mismatches in first_off #459

Manually merged
github merged 1 commit from gh-pr/459/head into gh-pr/459/base 2026-11-26 09:01:33 +00:00
Owner

@⁠EdenBendheim on GitHub · 2026-11-24 05:42 UTC · original
EdenBendheim:ubiq/image-d16-probe-first-off-y → main · +63 −7 · 2 files · 1 commits · merged 2026-11-24 06:58 UTC

Claim: #14

What changed

  • tools/image_d16_probe.py: Align first_off example selection with the exact per-rule X/Y scoring predicate used for agreement counts so packed two-channel (r32g32_uint) Y-only mismatches are no longer silently omitted while scoring 0/32. Single-channel texels and exit codes (0/1/2/77) remain unchanged.
  • tests/test_image_d16_probe.py: Synthetic tests covering Y-only, X-only, combined, mixed-rule, and all-matching packed texels, single-channel readbacks, and the 4-example cap (plus LF fixture writes pinned).

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max, Python 3.14.3, Homebrew LLVM 21.1.8 (CPU-only, synthetic fixtures, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_image_d16_probe.py (22/22 passed, hardware class skipped), --self-test, check_no_game_data.py, LF check — all passed.
**@⁠EdenBendheim** on GitHub · 2026-11-24 05:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/459) `EdenBendheim:ubiq/image-d16-probe-first-off-y` → `main` · +63 −7 · 2 files · 1 commits · merged 2026-11-24 06:58 UTC Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 ### What changed - **`tools/image_d16_probe.py`**: Align `first_off` example selection with the exact per-rule X/Y scoring predicate used for agreement counts so packed two-channel (`r32g32_uint`) Y-only mismatches are no longer silently omitted while scoring `0/32`. Single-channel texels and exit codes (`0`/`1`/`2`/`77`) remain unchanged. - **`tests/test_image_d16_probe.py`**: Synthetic tests covering Y-only, X-only, combined, mixed-rule, and all-matching packed texels, single-channel readbacks, and the 4-example cap (plus LF fixture writes pinned). ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max, Python 3.14.3, Homebrew LLVM 21.1.8 (CPU-only, synthetic fixtures, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_image_d16_probe.py` (22/22 passed, hardware class skipped), `--self-test`, `check_no_game_data.py`, LF check — all passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:01:31 +00:00
github manually merged commit 7c2aaebf1a into gh-pr/459/base 2026-11-26 09:01:33 +00:00
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 06:58 UTC · original

Merging. Why merged: a real bug fix: first_off examples now check both packed halves (X and Y) against the same saturation rule; before, only X was checked.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_image_d16_probe 17 -> 22 tests OK (4 of the new tests fail on main).

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠QemmHD** on GitHub · 2026-11-24 06:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/459#issuecomment-7124477288) Merging. Why merged: a real bug fix: first_off examples now check both packed halves (X and Y) against the same saturation rule; before, only X was checked. Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_image_d16_probe 17 -> 22 tests OK (4 of the new tests fail on main). AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.