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

Closed
github-bot wants to merge 1 commit from github-bot/gh-40 into main AGit
Owner

@⁠yualk on GitHub · 2026-11-27 12:47 UTC · original
yualk:fix/warm-recipe-errors → main · +199 −31 · 5 files · 1 commits · closed without merging

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.

**@⁠yualk** on GitHub · 2026-11-27 12:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/40) `yualk:fix/warm-recipe-errors` → `main` · +199 −31 · 5 files · 1 commits · closed without merging # 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.
Stop exact warm requests at the first unreadable recipe and preserve the completed prefix. Keep repairable missing links out of the bulk blacklist.
Distinguish unavailable books and native aborts by validating the worker protocol, not an exit code alone.
Test book-open failure, missing shader links and a reported native-host refusal with device-free CLI fixtures.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:02:02 +00:00
github-bot closed this pull request 2026-11-28 18:29:23 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 18:27 UTC · original

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.

**@⁠trustno1-coder** on GitHub · 2026-11-28 18:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/40#issuecomment-7243802164) 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!40
No description provided.