windows-boot: report Vulkan fault classes in the digest #1649

Merged
sodove merged 1 commit from upstream-pr/1649 into main 2026-11-28 14:46:40 +00:00
sodove commented 2026-11-25 07:00:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-25T07:00:58Z.


Claimed in the coordination issue as: WIN-BOOT-FAULT-DIGEST.

What and why

The Windows boot digest copied the first eight diagnostic lines verbatim. Routine dispatch telemetry could fill all eight slots before the driver reported its fault types. Even a healthy run could show a fault count, and the copied lines could contain private metadata.

The faults row now scans the whole stderr log for a device-loss marker and counts Vulkan address records by their symbolic type. Unknown types share one bucket. A loss with no address records, address records in a partial log, and ordinary telemetry have distinct summaries. Only fixed labels and counts from the fault report go in this row. The counts describe records and can exceed the number of losses.

Tested

  • Native Windows 11, Windows PowerShell 5.1. Five synthetic end-to-end -DigestOnly cases passed. The first three cases failed on the base implementation. The cases cover a write class after ten telemetry lines, repeated and unknown types, loss without address info, a truncated log, and absence of private field text from the fault summary.
  • The existing boot trace tests passed, 39 in total. The translator suite passed, 487 files and 6,279 tests. Text line-ending tests and the staged-file game-data check passed.

GPUs tested: n/a for the digest (offline log processing).

AI-assisted: yes (OpenAI Codex).

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract update inapplicable to this reporting change.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5486752730 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1649). Originally posted by [sodove](https://github.com/sodove) on 2026-11-25T07:00:58Z. --- Claimed in the coordination issue as: [WIN-BOOT-FAULT-DIGEST](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7155213247). ### What and why The Windows boot digest copied the first eight diagnostic lines verbatim. Routine dispatch telemetry could fill all eight slots before the driver reported its fault types. Even a healthy run could show a fault count, and the copied lines could contain private metadata. The faults row now scans the whole stderr log for a device-loss marker and counts Vulkan address records by their symbolic type. Unknown types share one bucket. A loss with no address records, address records in a partial log, and ordinary telemetry have distinct summaries. Only fixed labels and counts from the fault report go in this row. The counts describe records and can exceed the number of losses. ### Tested - Native Windows 11, Windows PowerShell 5.1. Five synthetic end-to-end `-DigestOnly` cases passed. The first three cases failed on the base implementation. The cases cover a write class after ten telemetry lines, repeated and unknown types, loss without address info, a truncated log, and absence of private field text from the fault summary. - The existing boot trace tests passed, 39 in total. The translator suite passed, 487 files and 6,279 tests. Text line-ending tests and the staged-file game-data check passed. GPUs tested: n/a for the digest (offline log processing). AI-assisted: yes (OpenAI Codex). ### Checklist - [x] Based on current main. - [x] One topic. - [x] No game data, keys or decryption. - [x] Translator contract update inapplicable to this reporting change.
whoalin1 commented 2026-11-25 08:31:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T08:31:19Z.


Independent verification (native Windows): PowerShell-only digest change + new test, zero runtime code touched. test_windows_boot_fault_digest.py 5/5 OK (real powershell runs); full RelWithDebInfo rebuild 409/409; GPU ctest (startup_trace, run_startup_cmdline, vulkan_device_fault, vk_sync_validation + real-GPU set vk_shader_fma, vk_pipeline_check_cli, vk_queue, vk_device_pick, vk_bindless_grow, vk_presenter_sync) all PASS on RTX 4070 SUPER and AMD gfx1036 iGPU with validation on. d3d12_boot_movie SKIP (needs game files) as expected. AI-assisted verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7157128139 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1649#issuecomment-7157128139). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T08:31:19Z. --- Independent verification (native Windows): PowerShell-only digest change + new test, zero runtime code touched. `test_windows_boot_fault_digest.py` 5/5 OK (real powershell runs); full RelWithDebInfo rebuild 409/409; GPU ctest (`startup_trace`, `run_startup_cmdline`, `vulkan_device_fault`, `vk_sync_validation` + real-GPU set `vk_shader_fma`, `vk_pipeline_check_cli`, `vk_queue`, `vk_device_pick`, `vk_bindless_grow`, `vk_presenter_sync`) all PASS on RTX 4070 SUPER and AMD gfx1036 iGPU with validation on. `d3d12_boot_movie` SKIP (needs game files) as expected. AI-assisted verification.
BubsMcgee commented 2026-11-25 15:36:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by BubsMcgee on 2026-11-25T15:36:52Z.


Tested on a real retail boot (Windows 11 Pro build 26300, RTX 3080 Ti, driver 616.64), -DigestOnly over the log of a healthy 200 s run that reached session d:

  • python -I tests/test_windows_boot_fault_digest.py — 5/5 pass.
  • The regenerated digest now carries the new row: faults: none, with the states, presents, input and frames rows unchanged, and no private metadata text in the digest.
  • No device loss occurred in this run, so the fault-class path itself was not exercised here (the synthetic cases cover it).

LGTM from this run; no code changes needed. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7167113760 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1649#issuecomment-7167113760). Originally posted by [BubsMcgee](https://github.com/BubsMcgee) on 2026-11-25T15:36:52Z. --- Tested on a real retail boot (Windows 11 Pro build 26300, RTX 3080 Ti, driver 616.64), `-DigestOnly` over the log of a healthy 200 s run that reached session `d`: - `python -I tests/test_windows_boot_fault_digest.py` — **5/5 pass**. - The regenerated digest now carries the new row: `faults: none`, with the `states`, `presents`, `input` and `frames` rows unchanged, and no private metadata text in the digest. - No device loss occurred in this run, so the fault-class path itself was not exercised here (the synthetic cases cover it). LGTM from this run; no code changes needed. AI-assisted.
MoonEyes commented 2026-11-28 14:46:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T14:46:37Z.


Red/green: pytest tests/test_windows_boot_fault_digest.py fails on main (5 failed) and passes on head 9c65c6ef2d merged with main (5 passed).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7240922483 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1649#issuecomment-7240922483). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T14:46:37Z. --- Red/green: `pytest tests/test_windows_boot_fault_digest.py` fails on main (5 failed) and passes on head 9c65c6ef2d71 merged with main (5 passed). Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
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!1649
No description provided.