frexp_ldexp_f16_mods_probe: prevent duplicate selections from hiding failures #456

Merged
EdenBendheim merged 1 commit from upstream-pr/456 into main 2026-11-24 08:52:44 +00:00
EdenBendheim commented 2026-11-24 05:42:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-11-24T05:42:35Z.


Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123199710

What changed

  • tools/frexp_ldexp_f16_mods_probe.py: Deduplicate --waves and --ops selections in first-seen order so repeated selections do not run the same job twice and let a later passing readback overwrite an earlier failure. Direct evaluate_results() calls record a duplicate job result harness error (exiting 2) while preserving the first measurement's evaluated words and first_mismatches.
  • tests/test_frexp_ldexp_f16_mods_probe.py: Synthetic regressions covering CLI deduplication, direct duplicate readbacks (asserting both preserved mismatches and harness error), selection order, and identical reports.

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 oracle, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_frexp_ldexp_f16_mods_probe.py (19/19), --self-test (1,733 synthetic words), check_no_game_data.py, LF check — all passed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5466801779 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/456). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-11-24T05:42:35Z. --- Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123199710 ### What changed - **`tools/frexp_ldexp_f16_mods_probe.py`**: Deduplicate `--waves` and `--ops` selections in first-seen order so repeated selections do not run the same job twice and let a later passing readback overwrite an earlier failure. Direct `evaluate_results()` calls record a `duplicate job result` harness error (exiting `2`) while preserving the first measurement's evaluated words and `first_mismatches`. - **`tests/test_frexp_ldexp_f16_mods_probe.py`**: Synthetic regressions covering CLI deduplication, direct duplicate readbacks (asserting both preserved mismatches and harness error), selection order, and identical reports. ### 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 oracle, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_frexp_ldexp_f16_mods_probe.py` (19/19), `--self-test` (1,733 synthetic words), `check_no_game_data.py`, LF check — all passed.
QemmHD commented 2026-11-24 08:52:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T08:52:42Z.


Merging. Why merged: duplicate --ops/--waves selections can no longer hide harness errors in the frexp/ldexp f16 probe.
Why it's good: security-reviewed; on main 1c93c86: probe tests 13 -> 18 (9 fail without the fix); repo-consistency set 563/563.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7126675731 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/456#issuecomment-7126675731). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T08:52:42Z. --- Merging. Why merged: duplicate --ops/--waves selections can no longer hide harness errors in the frexp/ldexp f16 probe. Why it's good: security-reviewed; on main 1c93c86: probe tests 13 -> 18 (9 fail without the fix); repo-consistency set 563/563. AI-assisted (Claude Code, Claude Opus 5.5).
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!456
No description provided.