docs/design: cite the tests of the Wave size and Typed buffer loads rows (DOC-DESIGN-ROW-CITES) #925

Closed
TuroYT wants to merge 1 commit from upstream-pr/925 into main
TuroYT commented 2026-11-24 15:13:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TuroYT on 2026-11-24T15:13:05Z.


Claimed in the coordination issue as: DOC-DESIGN-ROW-CITES (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135544593)

What was wrong

  • docs/design.md:338, the Wave size row, explains fssm_header.wave_size() (FSSM flags word u32[0xD4] bit 5) and cites no test. tests/test_fssm_wave_size.py checks that bit rule on synthetic blobs (7 tests).
  • docs/design.md:298, the Typed buffer loads row, names the file as tools\gfx10_formats.json with a backslash. The file is tools/gfx10_formats.json.

Reproduction on a28927849:

$ sed -n 338p docs/design.md | grep -c test_fssm_wave_size
0
$ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json'
tools\gfx10_formats.json
$ ls tools/gfx10_formats.json
tools/gfx10_formats.json

What changed

Two rows, no other text:

  • Wave size: one sentence naming tests/test_fssm_wave_size.py as the check of the bit rule on synthetic blobs. It says the test does not check the corpus counts in the row.
  • Typed buffer loads: the path is now tools/gfx10_formats.json. The row also names tests/test_gfx10_descriptors.py, which checks the format rows of runtime/src/gfx10_descriptors.h against that file.

Other open pull requests touch other rows of docs/design.md. None changes these two rows.

Tested

$ sed -n 338p docs/design.md | grep -c test_fssm_wave_size
1
$ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json'
tools/gfx10_formats.json
$ sed -n 298p docs/design.md | grep -c 'tools\\gfx10'
0
$ python3 -I tests/test_fssm_wave_size.py 2>&1 | tail -3
Ran 7 tests in 0.156s
OK
$ python3 -I tests/test_gfx10_descriptors.py 2>&1 | tail -3
Ran 5 tests in 0.039s
OK
$ python3 -I tests/test_text_write_line_endings.py 2>&1 | tail -3
Ran 3 tests in 5.261s
OK
$ python3 -I scripts/check_no_game_data.py docs/design.md
(exit 0)
$ git diff --check
(exit 0)
$ git diff --stat
 docs/design.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
$ python3 -I tests/test_docs_design_rows.py    -> Ran 5 tests OK
$ python3 -I tests/test_design_contract_rows.py -> Ran 5 tests OK
$ python3 -I tests/test_docs_encoding.py       -> Ran 1 test OK
$ python3 -I tests/test_docs_table_rows.py     -> Ran 2 tests OK

Also run, all OK: test_d16_format_probe.py (1 skipped), test_desc_cache.py, test_f16misc_diff.py, test_fma_mix_probe.py, test_hashdict.py, test_sad_diff.py, test_shader_meta.py.

Not tested

  • The pytest-based files that read docs/design.md (test_shader_index.py, test_values.py, test_valu_fuzz.py, and others) were not run.
  • The rendered Markdown table was not viewed in a browser.
  • No GPU, no game files. Docs only.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474882031 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/925). Originally posted by [TuroYT](https://github.com/TuroYT) on 2026-11-24T15:13:05Z. --- Claimed in the coordination issue as: DOC-DESIGN-ROW-CITES (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135544593) ## What was wrong - `docs/design.md:338`, the Wave size row, explains `fssm_header.wave_size()` (FSSM flags word `u32[0xD4]` bit 5) and cites no test. `tests/test_fssm_wave_size.py` checks that bit rule on synthetic blobs (7 tests). - `docs/design.md:298`, the Typed buffer loads row, names the file as `tools\gfx10_formats.json` with a backslash. The file is `tools/gfx10_formats.json`. Reproduction on `a28927849`: ``` $ sed -n 338p docs/design.md | grep -c test_fssm_wave_size 0 $ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json' tools\gfx10_formats.json $ ls tools/gfx10_formats.json tools/gfx10_formats.json ``` ## What changed Two rows, no other text: - Wave size: one sentence naming `tests/test_fssm_wave_size.py` as the check of the bit rule on synthetic blobs. It says the test does not check the corpus counts in the row. - Typed buffer loads: the path is now `tools/gfx10_formats.json`. The row also names `tests/test_gfx10_descriptors.py`, which checks the format rows of `runtime/src/gfx10_descriptors.h` against that file. Other open pull requests touch other rows of `docs/design.md`. None changes these two rows. ## Tested ``` $ sed -n 338p docs/design.md | grep -c test_fssm_wave_size 1 $ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json' tools/gfx10_formats.json $ sed -n 298p docs/design.md | grep -c 'tools\\gfx10' 0 $ python3 -I tests/test_fssm_wave_size.py 2>&1 | tail -3 Ran 7 tests in 0.156s OK $ python3 -I tests/test_gfx10_descriptors.py 2>&1 | tail -3 Ran 5 tests in 0.039s OK $ python3 -I tests/test_text_write_line_endings.py 2>&1 | tail -3 Ran 3 tests in 5.261s OK $ python3 -I scripts/check_no_game_data.py docs/design.md (exit 0) $ git diff --check (exit 0) $ git diff --stat docs/design.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) $ python3 -I tests/test_docs_design_rows.py -> Ran 5 tests OK $ python3 -I tests/test_design_contract_rows.py -> Ran 5 tests OK $ python3 -I tests/test_docs_encoding.py -> Ran 1 test OK $ python3 -I tests/test_docs_table_rows.py -> Ran 2 tests OK ``` Also run, all OK: `test_d16_format_probe.py` (1 skipped), `test_desc_cache.py`, `test_f16misc_diff.py`, `test_fma_mix_probe.py`, `test_hashdict.py`, `test_sad_diff.py`, `test_shader_meta.py`. ## Not tested - The pytest-based files that read `docs/design.md` (`test_shader_index.py`, `test_values.py`, `test_valu_fuzz.py`, and others) were not run. - The rendered Markdown table was not viewed in a browser. - No GPU, no game files. Docs only. AI-assisted (Claude Code).
MoonEyes commented 2026-11-24 17:39:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-24T17:39:31Z.

Review: APPROVED


LGTM. Checked on Windows 11, Python 3.14, main cf4c00cba:

  • tools/gfx10_formats.json exists with a forward slash; the backslash in the Typed buffer loads row was a typo.
  • tests/test_gfx10_descriptors.py loads that file (line 18) and checks the format rows of runtime/src/gfx10_descriptors.h against it: 5 tests OK.
  • tests/test_fssm_wave_size.py: 7 tests OK. It builds synthetic FSSM blobs with u32[0xD4] bit 5 (make_fssm, line 53), matching fssm_header.wave_size() (tools/fssm_header.py:155).
  • The new sentence says it does not check the corpus counts in the row, which is accurate: the test uses synthetic blobs only.

AI-assisted: yes (Claude Code ran the checks; I read them).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6044344701 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/925#pullrequestreview-6044344701). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-24T17:39:31Z. **Review:** APPROVED --- LGTM. Checked on Windows 11, Python 3.14, main cf4c00cba: - `tools/gfx10_formats.json` exists with a forward slash; the backslash in the Typed buffer loads row was a typo. - `tests/test_gfx10_descriptors.py` loads that file (line 18) and checks the format rows of `runtime/src/gfx10_descriptors.h` against it: 5 tests OK. - `tests/test_fssm_wave_size.py`: 7 tests OK. It builds synthetic FSSM blobs with `u32[0xD4]` bit 5 (`make_fssm`, line 53), matching `fssm_header.wave_size()` (`tools/fssm_header.py:155`). - The new sentence says it does not check the corpus counts in the row, which is accurate: the test uses synthetic blobs only. AI-assisted: yes (Claude Code ran the checks; I read them).
MoonEyes commented 2026-11-27 23:20:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:20:25Z.


Hi @TuroYT, thanks for this pull request. It currently conflicts with main (conflicting file(s): docs/design.md), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230063987 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/925#issuecomment-7230063987). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:20:25Z. --- Hi @TuroYT, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `docs/design.md`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
DadaCap commented 2026-11-28 10:32:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T10:32:20Z.


Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures.

Reason: low value and conflicting.

If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7237961094 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/925#issuecomment-7237961094). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T10:32:20Z. --- Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures. Reason: low value and conflicting. If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

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