Skip to content

windows-boot: report the loss API, fault query and checkpoint counts - #1766

Open
sodove wants to merge 1 commit into
ProjectLeonida:mainfrom
sodove:fix/windows-boot-fault-context
Open

sodove wants to merge 1 commit into
ProjectLeonida:mainfrom
sodove:fix/windows-boot-fault-context

Conversation

@sodove

@sodove sodove commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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 ExecuteCommandLists lines 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

  • Native Windows 11 and Windows PowerShell 5.1. Six synthetic end-to-end test methods passed through 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.
  • Merged both changes into a temporary test tree. All six context tests and all five windows-boot: report Vulkan fault classes in the digest #1649 tests passed. A separate combined-digest check found the expected API, query, address class and checkpoint counts, and zero injected private markers anywhere in the digest.
  • Passed all 39 boot trace tests, 3 text line-ending tests, 16 docs link tests and 16 CI registration tests. The changed-file game-data and Git whitespace checks passed.

GPUs tested: n/a (offline log processing using synthetic inputs).

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.

@lixonik lixonik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants