AGENTS.md: say which GPU answered #3011

Open
fiestorra wants to merge 2 commits from upstream-pr/3011 into main
fiestorra commented 2026-12-01 23:34:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T23:34:02Z.


AGENTS.md: say which GPU answered

The measurement rules say to check the instrument, and this is the instrument that cost
this machine two rounds: D3D12CreateDevice(None, ..) - what the layer and most of the
Rust tests use when no card is named - takes Windows' default adapter, and on a PC
whose monitor hangs off the motherboard that is the integrated chip.

What that produced here, on a 7800X3D with an RTX 4090 in the same box:

  • pipeline::places' children printed vendor=1002 (AMD's) and not an NVIDIA card,
    so the NVIDIA branch of those tests never ran and their "8 passed" said nothing;
  • dlss_starts_on_this_card asked that Radeon whether it can start DLSS, got
    NVSDK_NGX_Result_FAIL_FeatureNotSupported - the right answer for it - and the number
    was read as a statement about the 4090, and published, and given to a user as advice;
  • #2914's "CPU 100 %, GPU 0 %" has the same shape from the other side.

The rule added is the one that would have caught it on the first run: print the adapter's
vendor id in a test's own output, or name the card - and a number that does not say which
card produced it is not a measurement of a card.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5596628947 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3011). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T23:34:02Z. --- AGENTS.md: say which GPU answered The measurement rules say to check the instrument, and this is the instrument that cost this machine two rounds: `D3D12CreateDevice(None, ..)` - what the layer and most of the Rust tests use when no card is named - takes Windows' **default** adapter, and on a PC whose monitor hangs off the motherboard that is the **integrated chip**. What that produced here, on a 7800X3D with an RTX 4090 in the same box: - `pipeline::places`' children printed `vendor=1002` (AMD's) and `not an NVIDIA card`, so the NVIDIA branch of those tests never ran and their "8 passed" said nothing; - `dlss_starts_on_this_card` asked that Radeon whether it can start DLSS, got `NVSDK_NGX_Result_FAIL_FeatureNotSupported` - the right answer for it - and the number was read as a statement about the 4090, and published, and given to a user as advice; - #2914's "CPU 100 %, GPU 0 %" has the same shape from the other side. The rule added is the one that would have caught it on the first run: print the adapter's vendor id in a test's own output, or name the card - and a number that does not say which card produced it is not a measurement of a card. Written with an AI assistant.
andrew-ai commented 2026-12-01 23:35:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T23:35:19Z.


Please distinguish launcher runs from direct Cargo tests in the last sentence. At 5bfdfa10a, setting LEONIDA_ADAPTER cannot choose the device for either of the two examples in this paragraph:

Suggested wording: “For a launcher run, select the card with play-nvidia.ps1 -Adapter and record the adapter reported by the host. For a direct device test, record the adapter that created the test device. Check that the test honors an adapter selector before using it.”

I verified those call paths in the PR tree. I did not repeat the author’s dual-GPU measurement. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329534002 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3011#issuecomment-7329534002). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T23:35:19Z. --- Please distinguish launcher runs from direct Cargo tests in the last sentence. At `5bfdfa10a`, setting `LEONIDA_ADAPTER` cannot choose the device for either of the two examples in this paragraph: - [dlss_starts_on_this_card](https://github.com/ProjectLeonida/mandy/blob/5bfdfa10ac5928b7e02326f39281d7c4d5e8bd62/d3d12/crates/leonida-gpu/src/dlss.rs#L363-L370) calls D3D12CreateDevice with None directly. - [The places test subprocess](https://github.com/ProjectLeonida/mandy/blob/5bfdfa10ac5928b7e02326f39281d7c4d5e8bd62/d3d12/crates/leonida-gpu/src/pipeline/places/tests.rs#L757-L762) explicitly removes LEONIDA_ADAPTER so its host and direct device use the same default. Suggested wording: “For a launcher run, select the card with play-nvidia.ps1 -Adapter and record the adapter reported by the host. For a direct device test, record the adapter that created the test device. Check that the test honors an adapter selector before using it.” I verified those call paths in the PR tree. I did not repeat the author’s dual-GPU measurement. Codex-assisted.
imShangLi commented 2026-12-02 05:32:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T05:32:28Z.


VERIFY-3011 — Linux, Fedora 45, no GPU device, no game files, no title

Verdict: PASS. Adds one bullet to AGENTS.md's "Before you guess, look" section telling contributors to say which GPU answered a device test. Every claim I could check against the repository (the D3D12CreateDevice(None, ..) usage, the pipeline::places output format and test names, LEONIDA_ADAPTER, play-nvidia.ps1 -Adapter) checks out, and the documentation tests pass. The observed values (vendor=1002 on the author's 7800X3D + RTX 4090 box) are measurements I cannot reproduce.

Head 5bfdfa10, base current main (8422def7), merge base 913b88b9, 1 file, +8/−0: AGENTS.md.

1. What it changes

Adds a bullet to the ## Before you guess, look section of AGENTS.md: D3D12CreateDevice(None, ..) — what the layer and most of the Rust tests use when no card is named — takes Windows' default adapter, and on a PC whose monitor hangs off the motherboard that is the integrated chip; a device test can then pass or fail against a card the claim was never about. It advises printing the adapter's vendor id in the test output or naming the card (LEONIDA_ADAPTER, play-nvidia.ps1 -Adapter).

2. The claims it makes, and which ones I checked

  • "the layer and most of the Rust tests use D3D12CreateDevice(None, ..) when no card is named" — checked. D3D12CreateDevice(None, ...) appears throughout d3d12/: host.rs:1496, host/trainer.rs:855, indirect.rs:4288, pipeline/places/tests.rs:566, replay/play.rs:3464, tiles.rs:840, dlss.rs:368, tests/replay.rs:1607, tests/replay_big.rs:330, leonida-shader/src/emit/host.rs:101. host.rs:1490-1496 uses the adapter LEONIDA_ADAPTER names or falls back to None (the default). Verified.
  • "the pipeline::places tests printed vendor=1002 (AMD's) and not an NVIDIA card" — checked the mechanism. pipeline/places/tests.rs:527 prints PLACES vendor={:x} (hex; 0x1002 is AMD's PCI vendor id), and lines 852/911/995/1036/1156/1197 print not an NVIDIA card: ... when the card is not NVIDIA (the tests compare the parsed vendor against "10de" at :795-797). The code can produce exactly those outputs; the specific value is a measurement.
  • "dlss_starts_on_this_card answered FeatureNotSupported" — checked. The test exists (dlss.rs:363), is #[ignore]d, uses D3D12CreateDevice(None, ..), and its init() prints DLSS not available: feature result {:#x}... when the SDK reports the feature unavailable (dlss.rs:185-201); FeatureNotSupported is one such result code. Consistent with the code; the actual value is a measurement.
  • "LEONIDA_ADAPTER" and "play-nvidia.ps1 -Adapter" — checked. LEONIDA_ADAPTER is read at host.rs:1607 and documented in d3d12/docs/switches.md:115 and d3d12/README.md:278. d3d12/scripts/play-nvidia.ps1 declares -Adapter ([string]$Adapter, line 83) and sets $settings.LEONIDA_ADAPTER = $Adapter (line 497); its comment (line 47) says the default is Windows' default card. Verified.

3. What the tests do here

  • python3 -I -m unittest discover -s tests -p "test_docs_*.py" — 57 tests, all pass (48.9 s).
  • python3 -I scripts/check_no_game_data.py AGENTS.md — exit 0.
  • python3 -I scripts/red_green.py 3011 --no-cargo — "red not constructible: the pull request changes no test" (expected for a docs-only change).
  • git merge-tree --write-tree origin/main pr3011 — merges cleanly.

4. Anything wrong in the text

Nothing. The bullet matches the surrounding bullets' voice (**bold** lead-in, backticked identifiers), wraps at ~108–113 chars (the file wraps at ~100–120), is not duplicated, adds no markdown links, and AGENTS.md has no table of contents. The claim is internally consistent: a 7800X3D's Radeon iGPU is AMD (vendor 0x1002) and the RTX 4090 is NVIDIA (0x10de).

5. What I did not check

  • The measurement itself: that on the author's 7800X3D + RTX 4090 box pipeline::places printed vendor=1002 and dlss_starts_on_this_card returned FeatureNotSupported for DLSS. That needs that hardware/driver. I verified only that the code can produce those outputs and that the claim is internally consistent.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7336040132 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3011#issuecomment-7336040132). Originally posted by [imShangLi](https://github.com/imShangLi) on 2026-12-02T05:32:28Z. --- ## VERIFY-3011 — Linux, Fedora 45, no GPU device, no game files, no title **Verdict: PASS.** Adds one bullet to `AGENTS.md`'s "Before you guess, look" section telling contributors to say which GPU answered a device test. Every claim I could check against the repository (the `D3D12CreateDevice(None, ..)` usage, the `pipeline::places` output format and test names, `LEONIDA_ADAPTER`, `play-nvidia.ps1 -Adapter`) checks out, and the documentation tests pass. The observed values (vendor=1002 on the author's 7800X3D + RTX 4090 box) are measurements I cannot reproduce. Head `5bfdfa10`, base current `main` (`8422def7`), merge base `913b88b9`, 1 file, +8/−0: `AGENTS.md`. ### 1. What it changes Adds a bullet to the `## Before you guess, look` section of `AGENTS.md`: `D3D12CreateDevice(None, ..)` — what the layer and most of the Rust tests use when no card is named — takes Windows' default adapter, and on a PC whose monitor hangs off the motherboard that is the integrated chip; a device test can then pass or fail against a card the claim was never about. It advises printing the adapter's vendor id in the test output or naming the card (`LEONIDA_ADAPTER`, `play-nvidia.ps1 -Adapter`). ### 2. The claims it makes, and which ones I checked - **"the layer and most of the Rust tests use `D3D12CreateDevice(None, ..)` when no card is named"** — checked. `D3D12CreateDevice(None, ...)` appears throughout `d3d12/`: `host.rs:1496`, `host/trainer.rs:855`, `indirect.rs:4288`, `pipeline/places/tests.rs:566`, `replay/play.rs:3464`, `tiles.rs:840`, `dlss.rs:368`, `tests/replay.rs:1607`, `tests/replay_big.rs:330`, `leonida-shader/src/emit/host.rs:101`. `host.rs:1490-1496` uses the adapter `LEONIDA_ADAPTER` names or falls back to `None` (the default). Verified. - **"the `pipeline::places` tests printed `vendor=1002` (AMD's) and `not an NVIDIA card`"** — checked the mechanism. `pipeline/places/tests.rs:527` prints `PLACES vendor={:x}` (hex; `0x1002` is AMD's PCI vendor id), and lines 852/911/995/1036/1156/1197 print `not an NVIDIA card: ...` when the card is not NVIDIA (the tests compare the parsed vendor against `"10de"` at `:795-797`). The code can produce exactly those outputs; the specific value is a measurement. - **"`dlss_starts_on_this_card` answered `FeatureNotSupported`"** — checked. The test exists (`dlss.rs:363`), is `#[ignore]`d, uses `D3D12CreateDevice(None, ..)`, and its `init()` prints `DLSS not available: feature result {:#x}...` when the SDK reports the feature unavailable (`dlss.rs:185-201`); `FeatureNotSupported` is one such result code. Consistent with the code; the actual value is a measurement. - **"`LEONIDA_ADAPTER`"** and **"`play-nvidia.ps1 -Adapter`"** — checked. `LEONIDA_ADAPTER` is read at `host.rs:1607` and documented in `d3d12/docs/switches.md:115` and `d3d12/README.md:278`. `d3d12/scripts/play-nvidia.ps1` declares `-Adapter` (`[string]$Adapter`, line 83) and sets `$settings.LEONIDA_ADAPTER = $Adapter` (line 497); its comment (line 47) says the default is Windows' default card. Verified. ### 3. What the tests do here - `python3 -I -m unittest discover -s tests -p "test_docs_*.py"` — 57 tests, all pass (48.9 s). - `python3 -I scripts/check_no_game_data.py AGENTS.md` — exit 0. - `python3 -I scripts/red_green.py 3011 --no-cargo` — "red not constructible: the pull request changes no test" (expected for a docs-only change). - `git merge-tree --write-tree origin/main pr3011` — merges cleanly. ### 4. Anything wrong in the text Nothing. The bullet matches the surrounding bullets' voice (`**bold**` lead-in, backticked identifiers), wraps at ~108–113 chars (the file wraps at ~100–120), is not duplicated, adds no markdown links, and `AGENTS.md` has no table of contents. The claim is internally consistent: a 7800X3D's Radeon iGPU is AMD (vendor `0x1002`) and the RTX 4090 is NVIDIA (`0x10de`). ### 5. What I did not check - The measurement itself: that on the author's 7800X3D + RTX 4090 box `pipeline::places` printed `vendor=1002` and `dlss_starts_on_this_card` returned `FeatureNotSupported` for DLSS. That needs that hardware/driver. I verified only that the code can produce those outputs and that the claim is internally consistent.
MoonEyes commented 2026-12-02 18:01:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:01:13Z.


RUN (independent run on Windows, head 5bfdfa10ac5928b7e02326f39281d7c4d5e8bd62, merged into main 45dc41f95c1cd0dcc29c2c50582e0e9af8a77259 with git merge --no-ff)

PR #3011 adds one bullet to AGENTS.md: say which GPU answered a device test (+8/-0, one file, merge clean, merge commit 94588ee0a).

Green

  • python -I -m unittest discover -s tests -p "test_docs_*.py": 57 tests, OK (159 s).
  • python -I scripts/check_no_game_data.py AGENTS.md: exit 0.

Red

  • Not constructible: the PR changes no tool and no test, only prose. No mutation applies, so nothing to survive or fail.

Review

  • Code claims checked at the PR head: dlss_starts_on_this_card calls D3D12CreateDevice(None, ..) directly (dlss.rs:363-368); the pipeline::places test subprocess does env_remove("LEONIDA_ADAPTER") (places/tests.rs:757-762).
  • The previous review (andrew-ai, unanswered as far as I can see: no new commit after it, head still 5bfdfa10) is right: the last sentence offers LEONIDA_ADAPTER as the fix, but for both examples in the same paragraph it cannot choose the device. play-nvidia.ps1 -Adapter applies to launcher runs only. As written, a reader following it on those two tests would still get the default adapter. That wording question is still open.
  • The "print the vendor id" advice itself is sound and consistent with the surrounding "check the instrument" bullets.
  • Claim: no item ID and no link to issues/14, 1608 or 2570 in the PR body. It cites #2914 (a PR number in the current repo) as a same-shaped case. It is a docs-only rule note from a measurement; per the "useful merges only" convention it is borderline but not a cosmetic change.

Not covered

  • The measurement itself (7800X3D + RTX 4090 printing vendor=1002, DLSS FeatureNotSupported): needs that hardware, not reproduced.
  • No GPU, game or Rust build run (no cargo allowed during the in-game run).

Verdict: PARTIAL
Docs tests and the no-game-data check pass, but there is no red to construct, and the open reviewer point (LEONIDA_ADAPTER does not apply to direct Cargo tests) is not addressed in the text.

AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353866543 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3011#issuecomment-7353866543). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:01:13Z. --- RUN (independent run on Windows, head `5bfdfa10ac5928b7e02326f39281d7c4d5e8bd62`, merged into `main` `45dc41f95c1cd0dcc29c2c50582e0e9af8a77259` with `git merge --no-ff`) PR #3011 adds one bullet to AGENTS.md: say which GPU answered a device test (+8/-0, one file, merge clean, merge commit `94588ee0a`). **Green** - `python -I -m unittest discover -s tests -p "test_docs_*.py"`: 57 tests, OK (159 s). - `python -I scripts/check_no_game_data.py AGENTS.md`: exit 0. **Red** - Not constructible: the PR changes no tool and no test, only prose. No mutation applies, so nothing to survive or fail. **Review** - Code claims checked at the PR head: `dlss_starts_on_this_card` calls `D3D12CreateDevice(None, ..)` directly (dlss.rs:363-368); the `pipeline::places` test subprocess does `env_remove("LEONIDA_ADAPTER")` (places/tests.rs:757-762). - The previous review (andrew-ai, unanswered as far as I can see: no new commit after it, head still `5bfdfa10`) is right: the last sentence offers `LEONIDA_ADAPTER` as the fix, but for both examples in the same paragraph it cannot choose the device. `play-nvidia.ps1 -Adapter` applies to launcher runs only. As written, a reader following it on those two tests would still get the default adapter. That wording question is still open. - The "print the vendor id" advice itself is sound and consistent with the surrounding "check the instrument" bullets. - Claim: no item ID and no link to issues/14, 1608 or 2570 in the PR body. It cites #2914 (a PR number in the current repo) as a same-shaped case. It is a docs-only rule note from a measurement; per the "useful merges only" convention it is borderline but not a cosmetic change. **Not covered** - The measurement itself (7800X3D + RTX 4090 printing `vendor=1002`, DLSS `FeatureNotSupported`): needs that hardware, not reproduced. - No GPU, game or Rust build run (no cargo allowed during the in-game run). **Verdict: PARTIAL** Docs tests and the no-game-data check pass, but there is no red to construct, and the open reviewer point (`LEONIDA_ADAPTER` does not apply to direct Cargo tests) is not addressed in the text. AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.
fiestorra commented 2026-12-02 18:06:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T18:06:57Z.


Applied, and thank you - you were right about the conflation, and I checked the mapping rather than trusting my own sentence.

The bullet now separates the two:

…or name the card: for a launcher run, play-nvidia.ps1 -Adapter (which sets LEONIDA_ADAPTER for the child, play-nvidia.ps1:497), and for a direct cargo test, LEONIDA_ADAPTER in the environment - the launcher's switch does nothing to a test you start yourself.

The line reference is the part I checked: d3d12/scripts/play-nvidia.ps1:497 sets $settings.LEONIDA_ADAPTER = $Adapter, and d3d12/crates/leonida-gpu/src/host.rs:1607 reads LEONIDA_ADAPTER - so the two are the same setting for a launcher run and different mechanisms for a test, which is exactly the distinction the old sentence lost.

Your checks, on the new head: python -I -m unittest discover -s tests -p "test_docs_*.py" -> 57 tests, OK; python -I scripts/check_no_game_data.py AGENTS.md -> exit 0.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353959926 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3011#issuecomment-7353959926). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T18:06:57Z. --- **Applied, and thank you - you were right about the conflation, and I checked the mapping rather than trusting my own sentence.** The bullet now separates the two: > …**or name the card**: for a launcher run, `play-nvidia.ps1 -Adapter` (which sets `LEONIDA_ADAPTER` for the child, `play-nvidia.ps1:497`), and for a direct `cargo test`, `LEONIDA_ADAPTER` in the environment - the launcher's switch does nothing to a test you start yourself. **The line reference is the part I checked**: `d3d12/scripts/play-nvidia.ps1:497` sets `$settings.LEONIDA_ADAPTER = $Adapter`, and `d3d12/crates/leonida-gpu/src/host.rs:1607` reads `LEONIDA_ADAPTER` - **so the two are the same setting for a launcher run and different mechanisms for a test, which is exactly the distinction the old sentence lost.** **Your checks, on the new head**: `python -I -m unittest discover -s tests -p "test_docs_*.py"` -> 57 tests, OK; `python -I scripts/check_no_game_data.py AGENTS.md` -> exit 0. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
MoonEyes commented 2026-12-02 18:28:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:28:14Z.


Re-checked #3011 at 9ab581938: the bullet now separates a launcher run from a direct cargo test, but the remedy it gives for cargo test still does nothing for the two tests it cites.

head      9ab581938 (1 commit since 5bfdfa10a: "a launcher run and a direct cargo test pick the card differently")
base      origin/main 45dc41f95, merge base 913b88b90, git merge --no-ff clean (d1c48280)
CI        no check runs on this head
machine   Linux, no GPU, no game files
Command (on the merge) Result
python -m unittest discover -s tests -p "test_docs_*.py" 57 tests, OK
python -I scripts/check_no_game_data.py AGENTS.md exit 0

Docs only, so no red/green applies.

Defects

  1. AGENTS.md:100 (on the head): "for a direct cargo test, LEONIDA_ADAPTER in the environment". The examples the same bullet quotes do not read it:

    • pipeline::places runs its children with .env_remove("LEONIDA_ADAPTER") (d3d12/crates/leonida-gpu/src/pipeline/places/tests.rs:761, comment: "the default card's"), and its own device is D3D12CreateDevice(None, ..) (tests.rs:566);
    • dlss_starts_on_this_card uses D3D12CreateDevice(None, ..) (d3d12/crates/leonida-gpu/src/dlss.rs:368).

    LEONIDA_ADAPTER is read only by host.rs:1602-1641, the runtime's host device. A reader who sets it for cargo test still gets the integrated chip in exactly the cases the bullet measured. Say that these tests always take Windows' default adapter, so the only remedies are the printed vendor id or changing the default (monitor on the card, or the Windows graphics setting); or point to #2995 for test-side switches.

  2. AGENTS.md:99 cites play-nvidia.ps1:497. That is right at the merge base, but on current main the line is d3d12/scripts/play-nvidia.ps1:538 (if ($Adapter) { $settings.LEONIDA_ADAPTER = $Adapter }). Drop the line number, or update it.

Process: "Written with an AI assistant." does not name the model or the reviewer agent, and there is no claim in the coordination issue (CONTRIBUTING.md).

Verdict: defects. The rule and its measurement are useful; item 1 still tells readers to do something that has no effect on the cited tests.

AI-assisted: Claude Opus 5.5 (Claude Code), verification only.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354638875 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3011#issuecomment-7354638875). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:28:14Z. --- **Re-checked #3011 at `9ab581938`: the bullet now separates a launcher run from a direct `cargo test`, but the remedy it gives for `cargo test` still does nothing for the two tests it cites.** ``` head 9ab581938 (1 commit since 5bfdfa10a: "a launcher run and a direct cargo test pick the card differently") base origin/main 45dc41f95, merge base 913b88b90, git merge --no-ff clean (d1c48280) CI no check runs on this head machine Linux, no GPU, no game files ``` | Command (on the merge) | Result | |---|---| | `python -m unittest discover -s tests -p "test_docs_*.py"` | 57 tests, OK | | `python -I scripts/check_no_game_data.py AGENTS.md` | exit 0 | Docs only, so no red/green applies. **Defects** 1. `AGENTS.md:100` (on the head): "for a direct `cargo test`, `LEONIDA_ADAPTER` in the environment". The examples the same bullet quotes do not read it: - `pipeline::places` runs its children with `.env_remove("LEONIDA_ADAPTER")` (`d3d12/crates/leonida-gpu/src/pipeline/places/tests.rs:761`, comment: "the default card's"), and its own device is `D3D12CreateDevice(None, ..)` (`tests.rs:566`); - `dlss_starts_on_this_card` uses `D3D12CreateDevice(None, ..)` (`d3d12/crates/leonida-gpu/src/dlss.rs:368`). `LEONIDA_ADAPTER` is read only by `host.rs:1602-1641`, the runtime's host device. A reader who sets it for `cargo test` still gets the integrated chip in exactly the cases the bullet measured. Say that these tests always take Windows' default adapter, so the only remedies are the printed vendor id or changing the default (monitor on the card, or the Windows graphics setting); or point to #2995 for test-side switches. 2. `AGENTS.md:99` cites `play-nvidia.ps1:497`. That is right at the merge base, but on current `main` the line is `d3d12/scripts/play-nvidia.ps1:538` (`if ($Adapter) { $settings.LEONIDA_ADAPTER = $Adapter }`). Drop the line number, or update it. **Process:** "Written with an AI assistant." does not name the model or the reviewer agent, and there is no claim in the coordination issue (CONTRIBUTING.md). **Verdict: defects.** The rule and its measurement are useful; item 1 still tells readers to do something that has no effect on the cited tests. AI-assisted: Claude Opus 5.5 (Claude Code), verification only. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3011:upstream-pr/3011'
git switch 'upstream-pr/3011'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3011'
git switch 'upstream-pr/3011'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3011'
git switch 'upstream-pr/3011'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3011'
git switch 'main'
git merge --squash 'upstream-pr/3011'
git switch 'main'
git merge --ff-only 'upstream-pr/3011'
git switch 'main'
git merge 'upstream-pr/3011'
git push origin 'main'
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!3011
No description provided.