docs/design.md: drop older copies that a newer sentence in the same row extends word for word (OLD-9934) #1224

Closed
wetw0rks-c0ding wants to merge 3 commits from upstream-pr/1224 into main
wetw0rks-c0ding commented 2026-11-24 20:35:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wetw0rks-c0ding on 2026-11-24T20:35:37Z.


Claimed in the coordination issue as: OLD-9934

What and why

Several docs/design.md contract rows repeat a measurement sentence word for word under two different hardware citations. The duplicate copies are removed so each row states its confirmation once, and the newer sentence's wording wins.

Tested

  • python3 -m pytest tests/test_docs_repeated_lines.py tests/test_docs_table_rows.py -q -> 4 passed in 0.19s (exit 0)
  • python -I scripts/check_no_game_data.py docs/design.md -> clean (exit 0)
  • Environment: Linux (CachyOS), CPU-only tests, no GPU required

AI-assisted: Yes. This work was done with OpenCode agents.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479899422 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1224). Originally posted by [wetw0rks-c0ding](https://github.com/wetw0rks-c0ding) on 2026-11-24T20:35:37Z. --- Claimed in the coordination issue as: OLD-9934 ### What and why Several `docs/design.md` contract rows repeat a measurement sentence word for word under two different hardware citations. The duplicate copies are removed so each row states its confirmation once, and the newer sentence's wording wins. ### Tested - `python3 -m pytest tests/test_docs_repeated_lines.py tests/test_docs_table_rows.py -q` -> 4 passed in 0.19s (exit 0) - `python -I scripts/check_no_game_data.py docs/design.md` -> clean (exit 0) - Environment: Linux (CachyOS), CPU-only tests, no GPU required AI-assisted: Yes. This work was done with OpenCode agents.
PierreEbele commented 2026-11-25 07:13:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T07:13:05Z.


Reviewed 03f7fa0f6: docs-only cleanup of 8 docs/design.md rows. The Integer clamp removal is verified against the translator (test_alu_add_co_clamp.py 4 OK, test_alu_u16_clamp.py 3 OK, test_alu_add_nc_clamp.py 24 OK, and v_add_co_u32 ... clamp saturates 0xffffffff+1 to 0xffffffff with carry=1), and the removals in Floating-point operations, Scalar select and pack, v_min3_f16..., and Swizzled buffer addressing preserve the kept text cleanly. Three issues to fix before merging:

  1. Other additions row: removing . GPU-checked with runtime/test/shaders/ps_gather_wrap.asm (...) on AMD (Radeon 880M, wave64) and NVIDIA RTX 5070 deletes the verb GPU-checked (leaving ...so they were not guessed; the border modes with runtime/test/shaders/ps_gather_border.asm ...) and drops distinct modes 0–3 GPU coverage on Radeon 880M / RTX 5070 that ps_gather_border.asm (modes 6–7 on RTX 4070 SUPER) does not cover. Restore that sentence; if you meant to dedupe this row, the actual word-for-word duplicate is the repeated opening image_gather4_l(_o) sentence.
  2. Buffer format stores row: dropping only the first sentence leaves Native gfx1036 confirmed both channel orders at all four instruction widths for packed and ordinary stores in wave32 and wave64. dangling after the NaN-sweep sentence with no antecedent while still repeated verbatim later in the row — drop that orphaned sentence too. (In Output modifiers on hardware (gfx1150), dropping the first denorm_mode_32 = 0 sentence also leaves too in `v_fma_mix*` f32 operands read as zero when denormal too without its prior antecedent.)
  3. Rebase needed: docs/design.md conflicts with main around Buffer format stores and Other additions (adjacent rows changed on main; all 8 target rows still need cleanup on main).
    AI-assisted review.

Recommendation: Fix first

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155616788 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1224#issuecomment-7155616788). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T07:13:05Z. --- Reviewed 03f7fa0f6: docs-only cleanup of 8 `docs/design.md` rows. The `Integer clamp` removal is verified against the translator (`test_alu_add_co_clamp.py` 4 OK, `test_alu_u16_clamp.py` 3 OK, `test_alu_add_nc_clamp.py` 24 OK, and `v_add_co_u32 ... clamp` saturates `0xffffffff+1` to `0xffffffff` with `carry=1`), and the removals in `Floating-point operations`, `Scalar select and pack`, `v_min3_f16...`, and `Swizzled buffer addressing` preserve the kept text cleanly. Three issues to fix before merging: 1. **`Other additions` row**: removing `. GPU-checked with runtime/test/shaders/ps_gather_wrap.asm (...) on AMD (Radeon 880M, wave64) and NVIDIA RTX 5070` deletes the verb `GPU-checked` (leaving `...so they were not guessed; the border modes with runtime/test/shaders/ps_gather_border.asm ...`) and drops distinct modes 0–3 GPU coverage on Radeon 880M / RTX 5070 that `ps_gather_border.asm` (modes 6–7 on RTX 4070 SUPER) does not cover. Restore that sentence; if you meant to dedupe this row, the actual word-for-word duplicate is the repeated opening `image_gather4_l(_o)` sentence. 2. **`Buffer format stores` row**: dropping only the first sentence leaves `Native gfx1036 confirmed both channel orders at all four instruction widths for packed and ordinary stores in wave32 and wave64.` dangling after the NaN-sweep sentence with no antecedent while still repeated verbatim later in the row — drop that orphaned sentence too. (In `Output modifiers on hardware (gfx1150)`, dropping the first `denorm_mode_32 = 0` sentence also leaves `too` in `` `v_fma_mix*` f32 operands read as zero when denormal too `` without its prior antecedent.) 3. **Rebase needed**: `docs/design.md` conflicts with `main` around `Buffer format stores` and `Other additions` (adjacent rows changed on `main`; all 8 target rows still need cleanup on `main`). AI-assisted review. **Recommendation:** Fix first
kawaii-shakal commented 2026-11-27 19:14:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kawaii-shakal on 2026-11-27T19:14:44Z.


Checked against main 43a9d562: merges cleanly (also with #1450 and #665). In the 8 changed rows each dropped sentence has a longer copy kept in the same row (e.g. Integer clamp keeps the test_alu_u16_clamp.py sentence that adds the RDNA2 hardware check; Output modifiers keeps the denorm_mode_32 sentence with the NaN results). Doc tests pass with the three merged.

AI-assisted (Claude Code); I ran the checks and read the diff.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226334358 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1224#issuecomment-7226334358). Originally posted by [kawaii-shakal](https://github.com/kawaii-shakal) on 2026-11-27T19:14:44Z. --- Checked against main 43a9d562: merges cleanly (also with #1450 and #665). In the 8 changed rows each dropped sentence has a longer copy kept in the same row (e.g. Integer clamp keeps the `test_alu_u16_clamp.py` sentence that adds the RDNA2 hardware check; Output modifiers keeps the `denorm_mode_32` sentence with the NaN results). Doc tests pass with the three merged. AI-assisted (Claude Code); I ran the checks and read the diff. --- _Generated by [Claude Code](https://claude.ai/code)_
aslan2142 commented 2026-12-01 10:56:32 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


The deduplication cleanup across docs/design.md (and the fixes on head 71395a81 for Other additions and Buffer format stores) looks solid, but requesting changes for merge readiness:

  1. Merge conflict: docs/design.md currently conflicts with main.
  2. No CI runs: No CI checks have run on head 71395a81.

Please rebase onto current main and ensure change-scope and no-game-data pass cleanly.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6129857906 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1224#pullrequestreview-6129857906). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T10:56:32Z. **Review:** CHANGES_REQUESTED --- The deduplication cleanup across `docs/design.md` (and the fixes on head `71395a81` for `Other additions` and `Buffer format stores`) looks solid, but requesting changes for merge readiness: 1. **Merge conflict:** `docs/design.md` currently conflicts with `main`. 2. **No CI runs:** No CI checks have run on head `71395a81`. Please rebase onto current `main` and ensure `change-scope` and `no-game-data` pass cleanly. *(AI-assisted review.)*
MoonEyes commented 2026-12-02 11:39:53 +00:00 (Migrated from github.com)

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


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:7344234584 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1224#issuecomment-7344234584). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T11:39:53Z. --- 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!1224
No description provided.