fix(cli): distinguish unreadable warm recipes from worker crashes #40

Closed
yualk wants to merge 1 commit from upstream-pr/40 into main
yualk commented 2026-11-27 12:47:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yualk on 2026-11-27T12:47:47Z.


fix(cli): distinguish unreadable warm recipes from host refusals

victory warm --these 42 can exit 0 without a report if the recipe book is missing or does not contain recipe 42. A recipe that exists but refers to a missing shader is instead counted as if the host refused a pipeline. In a bulk warm this can mark a recoverable recipe done.

The exact worker now stops at the first unreadable recipe, names its index, and exits nonzero. Completed prefix records and genuine host refusals keep their existing protocol. The bulk parent reports a separate unreadable count, continues later entries, and leaves a missing recipe out of both warm-done.txt and warm-bad.txt, so repairing the book can make it eligible again. This does not change shader hashes, driver cache identity, or title settings.

An unavailable shader book now fails bulk preflight before starting workers. The parent requires an explicit worker report as well as the exit status, so a native MSVC abort with status 3 still follows the crash path.

Reproduction

$test = Join-Path $env:TEMP ([guid]::NewGuid().ToString())
$env:VICTORY_CACHE_DIR = Join-Path $test 'cache'
$env:VICTORY_DATA_DIR = Join-Path $test 'data'
victory warm --these 42

Use an empty test directory. Before: exit 0, no completion. After: nonzero, with the recipe index in the error. The integration tests cover an absent book, an absent shader link with a completed prefix, and bulk preflight without a shader book. They use authored fixtures and never initialize a GPU.

On NVIDIA 959dcaf609052554e41d1188043820242437a070 plus this patch, cargo +1.98.1 test --locked --offline --profile diag -p victory --features diagnostics --test warm_recipes built the Windows CLI and passed all three tests.

The actual bulk parent/child path also passed on the exact reviewed CLI in Windows 11 build 26200. Of three authored entries, the two readable controls completed and the missing link was not blacklisted. After repairing only that link, the next invocation retried exactly one entry, all three were marked completed, and the blacklist was still empty. The two processes reported the same driver fingerprint. The test machine had an RTX 5070 Ti/610.88 installed, but this CLI does not identify the selected adapter. It opens a device for fingerprinting; the authored cases refuse before driver PSO creation. No game files, logs, save state, cache material or executables are included. No startup-time, renderer, or FPS claims.

AI use

omp with OpenAI GPT-6.2 Sol assisted with the implementation, focused Windows verification, and review.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5526883424 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/40). Originally posted by [yualk](https://github.com/yualk) on 2026-11-27T12:47:47Z. --- # fix(cli): distinguish unreadable warm recipes from host refusals `victory warm --these 42` can exit 0 without a report if the recipe book is missing or does not contain recipe 42. A recipe that exists but refers to a missing shader is instead counted as if the host refused a pipeline. In a bulk warm this can mark a recoverable recipe done. The exact worker now stops at the first unreadable recipe, names its index, and exits nonzero. Completed prefix records and genuine host refusals keep their existing protocol. The bulk parent reports a separate unreadable count, continues later entries, and leaves a missing recipe out of both `warm-done.txt` and `warm-bad.txt`, so repairing the book can make it eligible again. This does not change shader hashes, driver cache identity, or title settings. An unavailable shader book now fails bulk preflight before starting workers. The parent requires an explicit worker report as well as the exit status, so a native MSVC abort with status 3 still follows the crash path. ## Reproduction ```powershell $test = Join-Path $env:TEMP ([guid]::NewGuid().ToString()) $env:VICTORY_CACHE_DIR = Join-Path $test 'cache' $env:VICTORY_DATA_DIR = Join-Path $test 'data' victory warm --these 42 ``` Use an empty test directory. Before: exit 0, no completion. After: nonzero, with the recipe index in the error. The integration tests cover an absent book, an absent shader link with a completed prefix, and bulk preflight without a shader book. They use authored fixtures and never initialize a GPU. On NVIDIA `959dcaf609052554e41d1188043820242437a070` plus this patch, `cargo +1.98.1 test --locked --offline --profile diag -p victory --features diagnostics --test warm_recipes` built the Windows CLI and passed all three tests. The actual bulk parent/child path also passed on the exact reviewed CLI in Windows 11 build 26200. Of three authored entries, the two readable controls completed and the missing link was not blacklisted. After repairing only that link, the next invocation retried exactly one entry, all three were marked completed, and the blacklist was still empty. The two processes reported the same driver fingerprint. The test machine had an RTX 5070 Ti/610.88 installed, but this CLI does not identify the selected adapter. It opens a device for fingerprinting; the authored cases refuse before driver PSO creation. No game files, logs, save state, cache material or executables are included. No startup-time, renderer, or FPS claims. ## AI use omp with OpenAI GPT-6.2 Sol assisted with the implementation, focused Windows verification, and review.
trustno1-coder commented 2026-11-28 18:27:17 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T18:27:17Z.


Thanks for this. I'm closing it without merging because it conflicts with the current main in the files it changes, and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request. Thanks for the work.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243802164 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/40#issuecomment-7243802164). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T18:27:17Z. --- Thanks for this. I'm closing it without merging because it conflicts with the current main in the files it changes, and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request. Thanks for the work.

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
trustno1-coder/VIctory-NVIDIA!40
No description provided.