docs/design.md: one copy of each rule in the Known approximations and 64-bit scalar bitwise ops rows (OLD-9925) #1450

Closed
LouisRiverstone wants to merge 4 commits from upstream-pr/1450 into main
LouisRiverstone commented 2026-11-25 00:28:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-11-25T00:28:50Z.


Claimed in the coordination issue as: OLD-9925 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148545774)

Replaces the carried-over draft #193. I'm the original author of old upstream PR 9925.

What and why

Both rows had been stitched together from several copies of the same sentences. "Known approximations" was 14,392 characters with 14 sentences repeated word for word. "64-bit scalar bitwise ops" was 6,327 characters, with the measured words for the plain-data path appearing three times. Each row is rebuilt from one copy of each sentence, keeping the most complete copy. "Known approximations" drops to 5,172 characters, and "64-bit scalar bitwise ops" to 2,501.

The only text removed for good is stale text that the same row contradicts:

  • "In nearest mode the translator still rounds v_fma_mix{lo,hi}_f16 twice ... until #1774 lands", next to the sentence saying it rounds once in both modes through Gen.fma_mix_odd (SHADER-296)
  • "v_cos_f16, v_exp_f16 and v_log_f16 are unmeasured", next to the sentence saying all seven transcendentals were measured (RX 6700 XT, and the 65,536-input sweep on gfx1036)
  • "the nearest-even path is unchanged (f32 Fma, then narrow)"
  • a "Not GPU-verified." left in front of the RX 7600 hardware result

The pointer from "Known approximations" to the f16 transcendentals row is kept.

Rebuilt on current main. The old branch no longer merged, but the rows it changes are byte for byte the same on main as on its old base. Only neighbouring lines had changed. So each of those rows is replaced with the old branch's version, and no other line changes. No behaviour change.

Tested

  • I checked every measured value, file name and ID in the old rows against the new ones. Each is still there: the plain-data words (0x0F0F0000_00000000 and the others), 0x7fdd9bb47daa1333 and 0xffefffffffffffff, ps_f64_round.asm, ps_legacy_mul.asm, tests/test_mode_round.py, tools/mode_round_probe.py, tools/fma_mix_probe.py, SHADER-132/135/296, the omod-versus-denormal note, and the MODE write rules.
  • The tests/test_docs_*.py files (12, including test_docs_design_rows.py, test_docs_repeated_lines.py, test_docs_table_rows.py and test_docs_table_ids.py): all OK. git diff --check is clean.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: documentation only)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482746819 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1450). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-11-25T00:28:50Z. --- Claimed in the coordination issue as: OLD-9925 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148545774) Replaces the carried-over draft #193. I'm the original author of old upstream PR 9925. ### What and why Both rows had been stitched together from several copies of the same sentences. "Known approximations" was 14,392 characters with 14 sentences repeated word for word. "64-bit scalar bitwise ops" was 6,327 characters, with the measured words for the plain-data path appearing three times. Each row is rebuilt from one copy of each sentence, keeping the most complete copy. "Known approximations" drops to 5,172 characters, and "64-bit scalar bitwise ops" to 2,501. The only text removed for good is stale text that the same row contradicts: - "In nearest mode the translator still rounds `v_fma_mix{lo,hi}_f16` twice ... until #1774 lands", next to the sentence saying it rounds once in both modes through `Gen.fma_mix_odd` (SHADER-296) - "`v_cos_f16`, `v_exp_f16` and `v_log_f16` are unmeasured", next to the sentence saying all seven transcendentals were measured (RX 6700 XT, and the 65,536-input sweep on gfx1036) - "the nearest-even path is unchanged (f32 `Fma`, then narrow)" - a "**Not GPU-verified.**" left in front of the RX 7600 hardware result The pointer from "Known approximations" to the f16 transcendentals row is kept. **Rebuilt on current `main`.** The old branch no longer merged, but the rows it changes are byte for byte the same on `main` as on its old base. Only neighbouring lines had changed. So each of those rows is replaced with the old branch's version, and no other line changes. No behaviour change. ### Tested - I checked every measured value, file name and ID in the old rows against the new ones. Each is still there: the plain-data words (`0x0F0F0000_00000000` and the others), `0x7fdd9bb47daa1333` and `0xffefffffffffffff`, `ps_f64_round.asm`, `ps_legacy_mul.asm`, `tests/test_mode_round.py`, `tools/mode_round_probe.py`, `tools/fma_mix_probe.py`, SHADER-132/135/296, the omod-versus-denormal note, and the MODE write rules. - The `tests/test_docs_*.py` files (12, including `test_docs_design_rows.py`, `test_docs_repeated_lines.py`, `test_docs_table_rows.py` and `test_docs_table_ids.py`): all OK. `git diff --check` is clean. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: documentation only)
zmasi commented 2026-11-28 23:33:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:33:06Z.


Native Windows 11 Verification (2ce188ea9f) — PASS

Diff-audited docs/design.md (+2/-2) and verified merged onto origin/main (ba8b77b390) on Windows 11 (10.0.26200, Python 3.12.10 with -I).

Results

  • Deduplication & Translator Cross-Check:
    • Confirmed all mid-sentence merge-paste repetitions in both 64-bit scalar bitwise ops and Known approximations are eliminated (0 remaining garbled fragments), the truncated v_add_f64 FastTwoSum magnitude-ordering clause (|a| >= |b|) is restored cleanly, and the reconciled Gen.fma_mix_odd description matches tools/rdna2spirv.py (r = self.fma_mix_odd(*vals) in both rounding modes on main).
  • Documentation & Policy Suites (PR #1450 merged onto origin/main):
    • python -I tests/test_docs_links.py: Ran 17 tests in 1.817s — OK
    • python -I tests/test_docs_repo_paths.py: Ran 5 tests in 0.149s — OK
    • python -I tests/test_docs_table_rows.py: Ran 2 tests in 0.059s — OK
    • python -I tests/test_docs_list_items.py: Ran 3 tests in 0.600s — OK
    • python -I tests/test_docs_encoding.py: Ran 1 test in 0.023s — OK
    • python -I tests/test_docs_cli_flags.py: Ran 4 tests in 20.945s — OK
    • tests/test_progress_dashboard.py: all 64/64 translator-contract and dashboard tests pass (the single README.md vs DEFAULT_REPO mismatch on ba8b77b390 is upstream #2595, unrelated to docs/design.md).
    • python -I scripts/check_no_game_data.py & tests/test_text_write_line_endings.py (3/3): OK.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247506067 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1450#issuecomment-7247506067). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:33:06Z. --- ### Native Windows 11 Verification (`2ce188ea9f`) — PASS Diff-audited `docs/design.md` (`+2/-2`) and verified merged onto `origin/main` (`ba8b77b390`) on Windows 11 (`10.0.26200`, Python `3.12.10` with `-I`). #### Results - **Deduplication & Translator Cross-Check**: - Confirmed all mid-sentence merge-paste repetitions in both `64-bit scalar bitwise ops` and `Known approximations` are eliminated (`0` remaining garbled fragments), the truncated `v_add_f64` `FastTwoSum` magnitude-ordering clause (`|a| >= |b|`) is restored cleanly, and the reconciled `Gen.fma_mix_odd` description matches `tools/rdna2spirv.py` (`r = self.fma_mix_odd(*vals)` in both rounding modes on `main`). - **Documentation & Policy Suites (`PR #1450` merged onto `origin/main`)**: - `python -I tests/test_docs_links.py`: **`Ran 17 tests in 1.817s — OK`** - `python -I tests/test_docs_repo_paths.py`: **`Ran 5 tests in 0.149s — OK`** - `python -I tests/test_docs_table_rows.py`: **`Ran 2 tests in 0.059s — OK`** - `python -I tests/test_docs_list_items.py`: **`Ran 3 tests in 0.600s — OK`** - `python -I tests/test_docs_encoding.py`: **`Ran 1 test in 0.023s — OK`** - `python -I tests/test_docs_cli_flags.py`: **`Ran 4 tests in 20.945s — OK`** - `tests/test_progress_dashboard.py`: all `64/64` translator-contract and dashboard tests pass (the single `README.md` vs `DEFAULT_REPO` mismatch on `ba8b77b390` is upstream `#2595`, unrelated to `docs/design.md`). - `python -I scripts/check_no_game_data.py` & `tests/test_text_write_line_endings.py` (`3/3`): **`OK`**. AI-assisted.
TheGeogeo commented 2026-11-29 14:19:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:19:28Z.


Ready for testing: with today's merge of main into the branch (head 374f9cdc8), it merges cleanly with main 3535eb5c4, and its change is not in main yet. No duplicate found: its claim OLD-9925 appears in no other open pull request and in no main commit.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257213950 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1450#issuecomment-7257213950). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:19:28Z. --- Ready for testing: with today's merge of `main` into the branch (head `374f9cdc8`), it merges cleanly with `main` `3535eb5c4`, and its change is not in `main` yet. No duplicate found: its claim `OLD-9925` appears in no other open pull request and in no `main` commit. AI-assisted (Claude Code).
TheGeogeo commented 2026-11-29 17:12:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T17:12:42Z.


Tested 374f9cdc8 merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only.

  • The change is docs only (docs/design.md), so no test can show a red.
  • No regression: the 13 tests/test_docs_*.py files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge.
  • No game data check passes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7259511192 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1450#issuecomment-7259511192). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T17:12:42Z. --- Tested 374f9cdc8 merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only. - The change is docs only (`docs/design.md`), so no test can show a red. - No regression: the 13 `tests/test_docs_*.py` files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge. - No game data check passes. AI-assisted (Claude Code).
aslan2142 commented 2026-12-01 10:57:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T10:57:21Z.

Review: CHANGES_REQUESTED


The deduplication of the Known approximations and 64-bit scalar bitwise ops rows in docs/design.md is still needed on main and was well-verified in the thread, but docs/design.md now conflicts with current main after subsequent merges.

Please rebase onto current main and ensure change-scope and no-game-data pass so this can be merged.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6129870309 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1450#pullrequestreview-6129870309). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T10:57:21Z. **Review:** CHANGES_REQUESTED --- The deduplication of the `Known approximations` and `64-bit scalar bitwise ops` rows in `docs/design.md` is still needed on `main` and was well-verified in the thread, but `docs/design.md` now conflicts with current `main` after subsequent merges. Please rebase onto current `main` and ensure `change-scope` and `no-game-data` pass so this can be merged. *(AI-assisted review.)*
MoonEyes commented 2026-12-02 11:40:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T11:40:00Z.


Closing: this pull request no longer applies to current main (merge conflict in docs/design.md), and open pull requests that have fallen out of step with main are being closed so the list stays workable. If you still want this change, rebase it on current main and reopen it (or open a new pull request); it will be looked at again.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7344237134 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1450#issuecomment-7344237134). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T11:40:00Z. --- Closing: this pull request no longer applies to current `main` (merge conflict in `docs/design.md`), and open pull requests that have fallen out of step with `main` are being closed so the list stays workable. If you still want this change, rebase it on current `main` and reopen it (or open a new pull request); it will be looked at again. AI-assisted (Claude Code).

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!1450
No description provided.