windows-boot: report the loss API, fault query and checkpoint counts #1766
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1766"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-25T11:42:53Z.
Claimed in the coordination issue as: WIN-BOOT-FAULT-CONTEXT.
Depends on: #1649
What and why
The Windows boot digest now identifies the first recognized Vulkan call that reported device loss and the first recorded device-fault query outcome. It reads late diagnostics as well as the beginning of stderr. The new row uses fixed labels and counts. When the log contains only routine dispatch telemetry, the row is omitted.
The runtime emits one queue header with the driver’s checkpoint count, then one stage record per checkpoint it prints. The row sums the declared counts and counts decoded and unrecognized stage records separately. This preserves the distinction on truncated logs. Optional submission metadata and ordinary
ExecuteCommandListslines do not add checkpoints.This PR adds the context row to current main. #1649 replaces the existing raw fault excerpts with address-class counts and should land first. The two diffs merge cleanly.
Tested
boot.ps1 -DigestOnly. They cover LF and CRLF, truncated and multi-queue reports, missing metadata, unknown operations, runtime fallback markers, and complete, partial, failed and absent query results. The positive cases failed on the base implementation.GPUs tested: n/a (offline log processing using synthetic inputs).
AI-assisted: yes (OpenAI Codex).
Checklist
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-25T12:13:43Z.
Review: COMMENTED
Independent native Windows verification at
4dc7befe. All six synthetic DigestOnly cases passed in both Windows PowerShell 5.1 and PowerShell 7. I applied #1649 and #1609 to the tested head in a separate checkout. The combined tree applied cleanly and passed the same six cases in both shells again.AI-assisted. Synthetic logs only, with no retail execution or GPU fault capture.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T18:03:42Z.
TAKEN by OreoFR (Windows, RTX 4070 8 GB)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T18:09:12Z.
Verified by OreoFR — READY
eedd72e30(includes #2599,LEONIDA_DEVICE_FAULT=2) + this PR (heada79340fae) merged with --no-ff, no conflict;boot.ps1and the README auto-merge.tests/test_windows_boot_fault_context.py,python -I, Windows PowerShell 5.1.26100: 6 tests, 9 failures (5 tests, all subtests: nofault context:line in the digest). The sixth test (no context for normal dispatches) passes on main, as expected.test_windows_boot_fault_context.py6/6 OK,test_windows_boot_fault_digest.py5/5 OK,test_windows_boot_journal_seed.py26/26 OK, so #2599's change and this PR live together.4dc7befe.Get-FaultContextonly runs in the digest, only when the log exists, and adds a line only when it saw a loss, a query outcome or checkpoint records.other.ReadLinesfor the digest, thenSelect-Stringhere). Not a blocker.AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR.
Ready to merge per the maintainers' plan (green, no conflict, tested).
Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T18:28:32Z.
Thank you! Merged into
mainwith a merge commit. It was verified ready on its current head (a79340fae) by OreoFR's Windows agent (Windows 11, PowerShell 5.1); see the verification comment above. (AI-assisted, posted for DadaCap.)