D3D12-UPCHECK-TAKE-BLOCKS-TEST: write same 4 KiB block in upcheck undeclared-write test #2936

Merged
bobcatchris merged 1 commit from upstream-pr/2936 into main 2026-12-02 13:34:15 +00:00
bobcatchris commented 2026-12-01 19:59:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-12-01T19:59:41Z.


Claimed in the coordination issue as: D3D12-UPCHECK-TAKE-BLOCKS-TEST (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7323731674; ref finding https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7320960276)

What and why

host::upcheck::tests::the_check_finds_an_undeclared_write_undone (d3d12/crates/leonida-gpu/src/host/upcheck.rs:911) began failing (left: (false, 0), right: (true, 16)) on both hardware GPUs and WARP after d920d850d enabled LEONIDA_TAKE_BLOCKS (4 KiB dirty-block uploads) by default:

  • The undeclared GPU write lands at (5 << 16) + 512..576 (4 KiB block 0 of page 5).
  • The test's subsequent CPU write was at (5 << 16) + 9000 (4 KiB block 2 of page 5).
  • With LEONIDA_TAKE_BLOCKS on, shadow.refresh only uploads changed 4 KiB blocks (block 2), leaving block 0 untouched on the card (undone = false) and uninspected by upcheck (found = 0).

Fix: write the neighbor CPU byte at (5 << 16) + 1000 (inside block 0 [0..4096) and disjoint from [512..576)), so block 0 is uploaded and checked under both LEONIDA_TAKE_BLOCKS=1 (default) and LEONIDA_TAKE_BLOCKS=0.

Tested

LEONIDA_RELAY=2 LEONIDA_RELAY_COPY=1 LEONIDA_UPCOPY_CHECK=1 cargo test --locked -p leonida-gpu --features diagnostics --lib upcheck::tests::the_check_finds_an_undeclared_write_undone -- --ignored --nocapture:

  • Red (before fix, default LEONIDA_TAKE_BLOCKS=1, AMD Radeon RX 7900 XTX): FAILED (undone on the card: false; the check found 0 words).
  • Green (after fix, default LEONIDA_TAKE_BLOCKS=1, AMD Radeon RX 7900 XTX): 1 passed, 0 failed (undone on the card: true; the check found 16 words).
  • Green (after fix, LEONIDA_TAKE_BLOCKS=0, AMD Radeon RX 7900 XTX): 1 passed, 0 failed (undone on the card: true; the check found 16 words).
  • Green (after fix, LEONIDA_D3D12_WARP=1, default LEONIDA_TAKE_BLOCKS=1): 1 passed, 0 failed (undone on the card: true; the check found 16 words).
  • python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/host/upcheck.rs: clean.

GPUs tested: AMD Radeon RX 7900 XTX 24 GB (driver 32.0.32029.2010, Windows 11, profile L) and Microsoft Basic Render Driver (WARP, Windows 11).

AI-assisted: yes — Gemini 4 Neon (implementation and an independent read-only reviewer pass).

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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5593458464 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2936). Originally posted by [bobcatchris](https://github.com/bobcatchris) on 2026-12-01T19:59:41Z. --- Claimed in the coordination issue as: D3D12-UPCHECK-TAKE-BLOCKS-TEST (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7323731674; ref finding https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7320960276) ### What and why `host::upcheck::tests::the_check_finds_an_undeclared_write_undone` (`d3d12/crates/leonida-gpu/src/host/upcheck.rs:911`) began failing (`left: (false, 0), right: (true, 16)`) on both hardware GPUs and WARP after `d920d850d` enabled `LEONIDA_TAKE_BLOCKS` (4 KiB dirty-block uploads) by default: - The undeclared GPU write lands at `(5 << 16) + 512..576` (4 KiB block 0 of page 5). - The test's subsequent CPU write was at `(5 << 16) + 9000` (4 KiB block 2 of page 5). - With `LEONIDA_TAKE_BLOCKS` on, `shadow.refresh` only uploads changed 4 KiB blocks (block 2), leaving block 0 untouched on the card (`undone = false`) and uninspected by `upcheck` (`found = 0`). Fix: write the neighbor CPU byte at `(5 << 16) + 1000` (inside block 0 `[0..4096)` and disjoint from `[512..576)`), so block 0 is uploaded and checked under both `LEONIDA_TAKE_BLOCKS=1` (default) and `LEONIDA_TAKE_BLOCKS=0`. ### Tested `LEONIDA_RELAY=2 LEONIDA_RELAY_COPY=1 LEONIDA_UPCOPY_CHECK=1 cargo test --locked -p leonida-gpu --features diagnostics --lib upcheck::tests::the_check_finds_an_undeclared_write_undone -- --ignored --nocapture`: - Red (before fix, default `LEONIDA_TAKE_BLOCKS=1`, AMD Radeon RX 7900 XTX): `FAILED` (`undone on the card: false; the check found 0 words`). - Green (after fix, default `LEONIDA_TAKE_BLOCKS=1`, AMD Radeon RX 7900 XTX): **1 passed, 0 failed** (`undone on the card: true; the check found 16 words`). - Green (after fix, `LEONIDA_TAKE_BLOCKS=0`, AMD Radeon RX 7900 XTX): **1 passed, 0 failed** (`undone on the card: true; the check found 16 words`). - Green (after fix, `LEONIDA_D3D12_WARP=1`, default `LEONIDA_TAKE_BLOCKS=1`): **1 passed, 0 failed** (`undone on the card: true; the check found 16 words`). - `python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/host/upcheck.rs`: clean. GPUs tested: AMD Radeon RX 7900 XTX 24 GB (driver 32.0.32029.2010, Windows 11, profile L) and Microsoft Basic Render Driver (WARP, Windows 11). AI-assisted: yes — Gemini 4 Neon (implementation and an independent read-only reviewer pass). ### 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.
merzleckeier commented 2026-12-01 20:13:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T20:13:22Z.


Hardware comparison with both dirty upload switches at 68215ad0 against 99a29d10 on RTX 4070 SUPER and Radeon RADV (Wine 11.22 / VKD3D-Proton 3.1.0). I ran the existing ignored test as a fresh process twice per GPU and switch combination. I held the relay/check settings fixed and used LEONIDA_CARD_BUFFERS_MIN_MB=1 so the existing 4 MiB fixture took its GPU-backed path on both adapters.

PAGE_PARTS TAKE_BLOCKS Main PR
1 1 false, 0 words true, 16 words
1 0 false, 0 words true, 16 words
0 1 false, 0 words true, 16 words
0 0 true, 16 words true, 16 words

The table reports whether the prior GPU write was overwritten and how many words the diagnostic counted. Both GPUs matched in all 32 processes. The previous cross-block fixture passes when both upload restrictions are disabled. Leaving either restriction enabled is enough for the old fixture to miss the intended overwrite. The PR’s same-block write passes under all four combinations. MEASURED with the existing synthetic fixture. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7324282005 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2936#issuecomment-7324282005). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T20:13:22Z. --- Hardware comparison with both dirty upload switches at `68215ad0` against `99a29d10` on RTX 4070 SUPER and Radeon RADV (Wine 11.22 / VKD3D-Proton 3.1.0). I ran the existing ignored test as a fresh process twice per GPU and switch combination. I held the relay/check settings fixed and used `LEONIDA_CARD_BUFFERS_MIN_MB=1` so the existing 4 MiB fixture took its GPU-backed path on both adapters. | PAGE_PARTS | TAKE_BLOCKS | Main | PR | | ---: | ---: | --- | --- | | 1 | 1 | false, 0 words | true, 16 words | | 1 | 0 | false, 0 words | true, 16 words | | 0 | 1 | false, 0 words | true, 16 words | | 0 | 0 | true, 16 words | true, 16 words | The table reports whether the prior GPU write was overwritten and how many words the diagnostic counted. Both GPUs matched in all 32 processes. The previous cross-block fixture passes when both upload restrictions are disabled. Leaving either restriction enabled is enough for the old fixture to miss the intended overwrite. The PR’s same-block write passes under all four combinations. MEASURED with the existing synthetic fixture. AI-assisted (Codex).
KelboLive commented 2026-12-01 21:38:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T21:38:04Z.

Review: COMMENTED


Confirmed on an RTX 4070 Ti SUPER: with this PR the test passes (undone=true, 16 words) under the default LEONIDA_TAKE_BLOCKS=1 and under =0, and reverting only +1000→+9000 on the same code fails with left: (false, 0). The change is the right fix for a test that assumed a 64 KiB page went up whole — KERNEL_PAGE is 4096 (shadow.rs:2939) and take_landed sends only noted blocks.

One coverage note: moving the write into block 0 means nothing now pins the new cross-block behaviour. An undeclared write in a block the title did not dirty survives the refresh (undone=false, at-send found=0) and is only reported by the at-rest look(). Either add a companion assertion/test for that, or say in the comment that it is expected, so a future granularity change is not mistaken for a regression.

Merge is clean. The old test was red on main for exactly this reason, not for an independent off-by-one.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6140607064 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2936#pullrequestreview-6140607064). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T21:38:04Z. **Review:** COMMENTED --- Confirmed on an RTX 4070 Ti SUPER: with this PR the test passes (`undone=true`, 16 words) under the default `LEONIDA_TAKE_BLOCKS=1` and under `=0`, and reverting only `+1000`→`+9000` on the same code fails with `left: (false, 0)`. The change is the right fix for a test that assumed a 64 KiB page went up whole — `KERNEL_PAGE` is 4096 (`shadow.rs:2939`) and `take_landed` sends only noted blocks. One coverage note: moving the write into block 0 means **nothing now pins the new cross-block behaviour**. An undeclared write in a block the title did not dirty survives the refresh (`undone=false`, at-send `found=0`) and is only reported by the at-rest `look()`. Either add a companion assertion/test for that, or say in the comment that it is expected, so a future granularity change is not mistaken for a regression. Merge is clean. The old test was red on main for exactly this reason, not for an independent off-by-one.
imShangLi commented 2026-12-02 07:09:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T07:09:33Z.


VERIFY-2936 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device, no game files

Verdict: PASS. The pull request is a correction to a test that cannot run here at all — it is #[ignore]d and wants a device — and I could not execute it, so I checked the arithmetic it depends on instead: the old offset was simply in the wrong 4 KiB block, and the new one is in the right one. It is the right fix. I also found that the harness reported one "red → green" and one "regression" for this pull request, and both are flaky watch tests on code the pull request never touches.

Head 68215ad0, base the current main (0ae5a266), merge base ab374c7d, 1 file, +5/−3: d3d12/crates/leonida-gpu/src/host/upcheck.rs.

1. What it changes

A test in upcheck.rs, host::upcheck::tests::the_check_finds_an_undeclared_write_undone. Its story: a shader writes a piece through a view nobody declared, and later the title writes another byte of the same place — which makes the whole 4 KiB block go up with title memory's older bytes, and the up-copy check is meant to notice and undo it. The title's byte was written at the wrong offset:

-    /// not known. The title writes another byte of the piece: it goes up
-    /// whole, with title memory's older bytes, and the check says so.
+    /// not known. The title writes another byte of the same 4 KiB block: it
+    /// goes up whole, with title memory's older bytes, and the check says so.
     ...
-        title[(5 << 16) + 9000] = 1;
+        // Write inside the same 4 KiB block as `+512` so `LEONIDA_TAKE_BLOCKS`
+        // (on by default) uploads this block rather than skipping it.
+        title[(5 << 16) + 1000] = 1;

The changed lines are all inside #[cfg(test)] mod tests (which starts at line 759/760 on the base), so the diff is test-only: no production code moves, and git diff shows nothing outside the doc comment and that one write.

2. The new test checks the property that matters

I could not run the changed test: it is annotated

#[ignore = "wants LEONIDA_RELAY=2 LEONIDA_RELAY_COPY=1 LEONIDA_UPCOPY_CHECK=1 and a process of its own"]

and its first line is let Some(host) = host() else { return; }; — with no device there is no host, so even forcing it with --ignored it would return at once and report ok while having tested nothing. It shows ignored on both sides of the harness. So I checked the property by arithmetic instead, which is decisive here.

shadow.rs:2768 sets const KERNEL_PAGE: usize = 4096;, and LEONIDA_TAKE_BLOCKS is on by default — toggled!("LEONIDA_TAKE_BLOCKS") expands to env var unset, or not "0" (switch.rs:31). When it is on, only the 4 KiB blocks the title changed go up.

title's write offset inside the 64 KiB piece 4 KiB block
the undeclared GPU write, (5 << 16) + 512 512–576 0
old: + 9000 9000 2
new: + 1000 1000 0

The old write landed two blocks away, so with LEONIDA_TAKE_BLOCKS on the block carrying the undeclared write was never uploaded, the check never saw it, and undone stayed false while the test asserts assert_eq!((undone, found), (true, 16)) — the test was broken. The new write is in the same block as +512, so that block goes up and the check has something to find. The doc-comment change matches: "another byte of the piece" was inaccurate, "the same 4 KiB block" is what the test needs.

I also looked for a test that does exercise this and can run, and found shadow::landing_tests::only_the_blocks_the_title_changed_go_up (not ignored, passing on both sides). It writes to KERNEL_PAGE + 100 and 4 * KERNEL_PAGE + 4095 and asserts the dirty set is exactly [part(1, 2), part(4, 5)] — the two 4 KiB blocks holding the writes, and no more. That is the block-level selection rule the fix relies on, verified by an executable test rather than by my reasoning alone.

3. What the tests do here

red (merge base + test hunks) green (head)
tests 703 703
pass 640 641
fail 4 4
ignored 59 59
  • red → green: 1 — watch::tests::a_write_is_reported_at_every_checked_view. Not this pull request, see §4.
  • regressions: 1 — watch::tests::a_view_being_split_leaves_its_pages_unguarded_elsewhere. Not this pull request, see §4.
  • fail on both: 3 — watch::many_askers_tests::holes_are_known_until_the_runtime_tells, watch::many_askers_tests::no_mapping_is_lost_between_askers, watch::tests::what_is_left_alone_is_no_known_hole.
  • pass on both: 639. only on red / only on green: 0 / 0.
  • host::upcheck::tests::the_check_finds_an_undeclared_write_undone: ignored on both sides. The test this pull request changes is not part of any of the rows above.

So the harness's own "red then green" verdict for this pull request is wrong in both directions, and the pull request's own test is invisible to it.

4. Any failure I saw, and why it is not this pull request

The red and green sides of this pull request contain byte-identical runnable code: the diff is entirely inside mod tests, so the merge base plus the test hunks and the head differ only in what an ignored test would do. A flake cannot be a regression, but a harness that reads one run each way will happily report one as "red → green" and the other as a "regression".

To be sure I ran the head binary's whole suite nine more times. The three watch failures were constant in every run, and other watch tests flipped from run to run on the same binary — watch::tests::guarded_blocks_in_a_row_are_opened_together and watch::tests::a_write_opens_the_view_it_goes_through each failed once, and the totals moved between 665 passed; 3 failed and 664 passed; 4 failed on an identical build. None of them are host::upcheck, and the pull request's file is upcheck.rs. It is the watch module's tests that are racing each other, not this one.

That leaves the three constant watch failures. They fail identically on the merge base through the same tool, so they predate the pull request. They are address-space bookkeeping, and they exercise mapping and decommit behaviour that Wine's VirtualAlloc emulation does not reproduce.

5. What I did not check

  • The changed test itself. This is the important one. the_check_finds_an_undeclared_write_undone is #[ignore]d, needs LEONIDA_RELAY=2, LEONIDA_RELAY_COPY=1, LEONIDA_UPCOPY_CHECK=1, a process of its own and a device, and returns early when there is no host. I have not executed it, on either side, in either direction. My case for the fix rests on the 4 KiB block arithmetic above and on only_the_blocks_the_title_changed_go_up demonstrating the selection rule.
  • LEONIDA_RELAY=2 and LEONIDA_RELAY_COPY=1. I did not enable the relay or the copy, so nothing here says what the test does when the relay is switched on rather than assumed to be on by default.
  • A GPU, a D3D12 adapter, or the running title. host() is None here, which is precisely why the ignored test is ignored. Everything I verified is cross-compiled code under Wine.
  • The exact values undone and found take. I argued that the old offset yields undone == false and that the new one lets the check find the 16 words the assertion expects, from how STALE and the upload path are written — not by watching them. If the lead wants that settled, it needs the relay env and a device, and I do not have either.
  • The three constant watch failures on native Windows. They look like Wine effects, and they are identical on the base, but I have not run this suite outside Wine.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7337845847 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2936#issuecomment-7337845847). Originally posted by [imShangLi](https://github.com/imShangLi) on 2026-12-02T07:09:33Z. --- ## VERIFY-2936 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device, no game files **Verdict: PASS.** The pull request is a correction to a test that cannot run here at all — it is `#[ignore]`d and wants a device — and I could not execute it, so I checked the arithmetic it depends on instead: the old offset was simply in the wrong 4 KiB block, and the new one is in the right one. It is the right fix. I also found that the harness reported one "red → green" and one "regression" for this pull request, and both are flaky `watch` tests on code the pull request never touches. Head `68215ad0`, base the current `main` (`0ae5a266`), merge base `ab374c7d`, 1 file, +5/−3: `d3d12/crates/leonida-gpu/src/host/upcheck.rs`. ### 1. What it changes A test in `upcheck.rs`, `host::upcheck::tests::the_check_finds_an_undeclared_write_undone`. Its story: a shader writes a piece through a view nobody declared, and later the title writes another byte of the same place — which makes the whole 4 KiB block go up with title memory's older bytes, and the up-copy check is meant to notice and undo it. The title's byte was written at the wrong offset: ```rust - /// not known. The title writes another byte of the piece: it goes up - /// whole, with title memory's older bytes, and the check says so. + /// not known. The title writes another byte of the same 4 KiB block: it + /// goes up whole, with title memory's older bytes, and the check says so. ... - title[(5 << 16) + 9000] = 1; + // Write inside the same 4 KiB block as `+512` so `LEONIDA_TAKE_BLOCKS` + // (on by default) uploads this block rather than skipping it. + title[(5 << 16) + 1000] = 1; ``` The changed lines are all inside `#[cfg(test)] mod tests` (which starts at line 759/760 on the base), so the diff is test-only: no production code moves, and `git diff` shows nothing outside the doc comment and that one write. ### 2. The new test checks the property that matters I could not run the changed test: it is annotated ```rust #[ignore = "wants LEONIDA_RELAY=2 LEONIDA_RELAY_COPY=1 LEONIDA_UPCOPY_CHECK=1 and a process of its own"] ``` and its first line is `let Some(host) = host() else { return; };` — with no device there is no host, so even forcing it with `--ignored` it would return at once and report `ok` while having tested nothing. It shows `ignored` on both sides of the harness. So I checked the property by arithmetic instead, which is decisive here. `shadow.rs:2768` sets `const KERNEL_PAGE: usize = 4096;`, and `LEONIDA_TAKE_BLOCKS` is on by default — `toggled!("LEONIDA_TAKE_BLOCKS")` expands to `env var unset, or not "0"` (`switch.rs:31`). When it is on, only the 4 KiB blocks the title changed go up. | title's write | offset inside the 64 KiB piece | 4 KiB block | |---|---|---| | the undeclared GPU write, `(5 << 16) + 512` | 512–576 | **0** | | old: `+ 9000` | 9000 | 2 | | new: `+ 1000` | 1000 | **0** | The old write landed two blocks away, so with `LEONIDA_TAKE_BLOCKS` on the block carrying the undeclared write was never uploaded, the check never saw it, and `undone` stayed false while the test asserts `assert_eq!((undone, found), (true, 16))` — the test was broken. The new write is in the same block as `+512`, so that block goes up and the check has something to find. The doc-comment change matches: "another byte of the piece" was inaccurate, "the same 4 KiB block" is what the test needs. I also looked for a test that does exercise this and *can* run, and found `shadow::landing_tests::only_the_blocks_the_title_changed_go_up` (not ignored, passing on both sides). It writes to `KERNEL_PAGE + 100` and `4 * KERNEL_PAGE + 4095` and asserts the dirty set is exactly `[part(1, 2), part(4, 5)]` — the two 4 KiB blocks holding the writes, and no more. That is the block-level selection rule the fix relies on, verified by an executable test rather than by my reasoning alone. ### 3. What the tests do here | | red (merge base + test hunks) | green (head) | |---|---|---| | tests | 703 | 703 | | pass | 640 | 641 | | fail | 4 | 4 | | ignored | 59 | 59 | - **red → green: 1** — `watch::tests::a_write_is_reported_at_every_checked_view`. *Not this pull request*, see §4. - **regressions: 1** — `watch::tests::a_view_being_split_leaves_its_pages_unguarded_elsewhere`. *Not this pull request*, see §4. - **fail on both: 3** — `watch::many_askers_tests::holes_are_known_until_the_runtime_tells`, `watch::many_askers_tests::no_mapping_is_lost_between_askers`, `watch::tests::what_is_left_alone_is_no_known_hole`. - **pass on both: 639.** **only on red / only on green: 0 / 0.** - `host::upcheck::tests::the_check_finds_an_undeclared_write_undone`: `ignored` on both sides. **The test this pull request changes is not part of any of the rows above.** So the harness's own "red then green" verdict for this pull request is wrong in both directions, and the pull request's own test is invisible to it. ### 4. Any failure I saw, and why it is not this pull request The red and green sides of this pull request contain **byte-identical runnable code**: the diff is entirely inside `mod tests`, so the merge base plus the test hunks and the head differ only in what an ignored test would do. A flake cannot be a regression, but a harness that reads one run each way will happily report one as "red → green" and the other as a "regression". To be sure I ran the head binary's whole suite nine more times. The three `watch` failures were constant in every run, and other `watch` tests flipped from run to run on the same binary — `watch::tests::guarded_blocks_in_a_row_are_opened_together` and `watch::tests::a_write_opens_the_view_it_goes_through` each failed once, and the totals moved between `665 passed; 3 failed` and `664 passed; 4 failed` on an identical build. None of them are `host::upcheck`, and the pull request's file is `upcheck.rs`. It is the `watch` module's tests that are racing each other, not this one. That leaves the three constant `watch` failures. They fail identically on the merge base through the same tool, so they predate the pull request. They are address-space bookkeeping, and they exercise mapping and decommit behaviour that Wine's `VirtualAlloc` emulation does not reproduce. ### 5. What I did not check - **The changed test itself.** This is the important one. `the_check_finds_an_undeclared_write_undone` is `#[ignore]`d, needs `LEONIDA_RELAY=2`, `LEONIDA_RELAY_COPY=1`, `LEONIDA_UPCOPY_CHECK=1`, a process of its own and a device, and returns early when there is no host. I have not executed it, on either side, in either direction. My case for the fix rests on the 4 KiB block arithmetic above and on `only_the_blocks_the_title_changed_go_up` demonstrating the selection rule. - **`LEONIDA_RELAY=2` and `LEONIDA_RELAY_COPY=1`.** I did not enable the relay or the copy, so nothing here says what the test does when the relay is switched on rather than assumed to be on by default. - **A GPU, a D3D12 adapter, or the running title.** `host()` is `None` here, which is precisely why the ignored test is ignored. Everything I verified is cross-compiled code under Wine. - **The exact values `undone` and `found` take.** I argued that the old offset yields `undone == false` and that the new one lets the check find the 16 words the assertion expects, from how `STALE` and the upload path are written — not by watching them. If the lead wants that settled, it needs the relay env and a device, and I do not have either. - **The three constant `watch` failures on native Windows.** They look like Wine effects, and they are identical on the base, but I have not run this suite outside Wine.
MoonEyes commented 2026-12-02 13:15:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T13:15:59Z.


RUN (in game, grouped): this head 68215ad0b was merged with git merge --no-ff, together with nine other rendering pull requests, onto main f6dd2242e (no conflicts), and the d3d12 layer was rebuilt from that tree (diag profile, with DLSS). RTX 4060 8 GB, driver 610.88, Windows 11; scripts/play-d3d12.ps1 -SeriesS -Resolution 1080 -FrameGen 2, low-memory profile, keyboard-driven entry into the world and a walking route.

  • At least 381 s in the world (time limit 330 s, then the run script stopped the game): no device loss, no unhandled exception, no hang or GPU stall in the log.
  • Rendering 14.7 frames/s median over the last 240 s (a single earlier run with the same launcher options on a different tree: 15.2).
  • Limits: one run, grouped, so a failure would not have named one pull request; the picture was not checked; free RAM was about 1.2 GB during the run.

Heads in this run: #2854 81a6e94a9, #2936 68215ad0b, #2939 561bbc19c, #2997 ef429f923, #3043 915d4d5aa, #3045 cb30a595a, #3046 0f19a0819, #3047 c33e5b48e, #3048 2ab0b4b9d, #3051 856615ce7.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346605100 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2936#issuecomment-7346605100). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T13:15:59Z. --- RUN (in game, grouped): this head `68215ad0b` was merged with `git merge --no-ff`, together with nine other rendering pull requests, onto `main` `f6dd2242e` (no conflicts), and the d3d12 layer was rebuilt from that tree (diag profile, with DLSS). RTX 4060 8 GB, driver 610.88, Windows 11; `scripts/play-d3d12.ps1 -SeriesS -Resolution 1080 -FrameGen 2`, low-memory profile, keyboard-driven entry into the world and a walking route. - At least 381 s in the world (time limit 330 s, then the run script stopped the game): no device loss, no unhandled exception, no hang or GPU stall in the log. - Rendering 14.7 frames/s median over the last 240 s (a single earlier run with the same launcher options on a different tree: 15.2). - Limits: one run, grouped, so a failure would not have named one pull request; the picture was not checked; free RAM was about 1.2 GB during the run. Heads in this run: #2854 81a6e94a9, #2936 68215ad0b, #2939 561bbc19c, #2997 ef429f923, #3043 915d4d5aa, #3045 cb30a595a, #3046 0f19a0819, #3047 c33e5b48e, #3048 2ab0b4b9d, #3051 856615ce7. AI-assisted (Claude Code, Claude Opus 5.5)
MoonEyes commented 2026-12-02 13:19:53 +00:00 (Migrated from github.com)

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


Merging. Head 68215ad0b merges cleanly with main bf7886746 and does not force a rebase of #2566. Checked on head 68215ad0b: all 6 CI checks green; third-party red/green by merzleckeier (RTX 4070 SUPER and RADV) on this head; an in-game run of at least 381 s with this head merged onto main f6dd2242e (grouped with nine other rendering pull requests, comment above) showed no device loss, no unhandled exception and no hang; item claimed in the coordination issue; author has earlier merged pull requests; conflict-free merge against main. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346705968 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2936#issuecomment-7346705968). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T13:19:53Z. --- Merging. Head `68215ad0b` merges cleanly with `main` `bf7886746` and does not force a rebase of #2566. Checked on head 68215ad0b: all 6 CI checks green; third-party red/green by merzleckeier (RTX 4070 SUPER and RADV) on this head; an in-game run of at least 381 s with this head merged onto main f6dd2242e (grouped with nine other rendering pull requests, comment above) showed no device loss, no unhandled exception and no hang; item claimed in the coordination issue; author has earlier merged pull requests; conflict-free merge against main. Merged by MoonEyes. AI-assisted (Claude Code).
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!2936
No description provided.