[PR #1502] [CLOSED] f32_fuzz: judge translator-oracle mismatches against KNOWN_DEVIATIONS #1530

Closed
opened 2026-11-26 20:21:34 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1502
Author: @whoalin1
Created: 11/25/2026
Status: ❌ Closed

Base: main ← Head: f32-fuzz-omod-oracle


📝 Commits (1)

  • 6f16d21 f32_fuzz: judge translator-oracle mismatches against KNOWN_DEVIATIONS

📊 Changes

2 files changed (+35 additions, -2 deletions)

View changed files

📝 tests/test_f32_fuzz.py (+19 -0)
📝 tools/f32_fuzz.py (+16 -2)

📄 Description

Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150685465 (also posted as a finding: earlier).

What

tools/f32_fuzz.py's translator-oracle check() compared model words directly, so a program whose omod turns a −0 result into +0 — the measured hardware quirk in dev_omod_neg_zero, active under the game's MODE — was reported as a mismatch even though the translator emits the hardware-correct +0. Repro: seed 53, program 246 (v_mul_legacy_f32_e64 mul:2, v1=0x1da20776, v3=0x819d422d): model expects 0x80000000, translator emits 0x00000000 = hardware.

check() now retries a mismatch against each KNOWN_DEVIATIONS entry — the same alternative words hw_verdict() accepts on the GPU path — in HW_PRIMARY mode. Only the deviation's exact words are excused; anything else is still a mismatch. GPU path untouched.

Tested

  • Repro case: before ('mismatch', want=[0x80000000,...]) → after ('match', None).
  • --seed 53 --programs 300: 276 match/1 mismatch → 277 match/0 mismatch; seeds 52, 54–57 unchanged vs baselines (no new false-negatives).
  • tests/test_f32_fuzz.py: 31 tests OK, incl. 2 new pins (deviation accepted end-to-end; monkeypatched wrong word still flagged).

AI-assisted (Devin).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1502 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `f32-fuzz-omod-oracle` --- ### 📝 Commits (1) - [`6f16d21`](https://github.com/ubiquitarianism/leonida/commit/6f16d21042d2dadab30f1d48120642c2ad9807bf) f32_fuzz: judge translator-oracle mismatches against KNOWN_DEVIATIONS ### 📊 Changes **2 files changed** (+35 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_f32_fuzz.py` (+19 -0) 📝 `tools/f32_fuzz.py` (+16 -2) </details> ### 📄 Description Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150685465 (also posted as a `finding:` earlier). ## What `tools/f32_fuzz.py`'s translator-oracle `check()` compared model words directly, so a program whose omod turns a −0 result into +0 — the measured hardware quirk in `dev_omod_neg_zero`, active under the game's MODE — was reported as a **mismatch** even though the translator emits the hardware-correct +0. Repro: seed 53, program 246 (`v_mul_legacy_f32_e64 mul:2`, v1=0x1da20776, v3=0x819d422d): model expects `0x80000000`, translator emits `0x00000000` = hardware. `check()` now retries a mismatch against each `KNOWN_DEVIATIONS` entry — the same alternative words `hw_verdict()` accepts on the GPU path — in `HW_PRIMARY` mode. Only the deviation's exact words are excused; anything else is still a mismatch. GPU path untouched. ## Tested - Repro case: before `('mismatch', want=[0x80000000,...])` → after `('match', None)`. - `--seed 53 --programs 300`: 276 match/1 mismatch → **277 match/0 mismatch**; seeds 52, 54–57 unchanged vs baselines (no new false-negatives). - `tests/test_f32_fuzz.py`: 31 tests OK, incl. 2 new pins (deviation accepted end-to-end; monkeypatched wrong word still flagged). AI-assisted (Devin). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:21:34 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1530
No description provided.