Skip to content

DAK: harden hardware telemetry and DABI64 native bridge - #347

Open
Ivan-VHS wants to merge 3 commits into
mainfrom
fix/native-hardware-backend-and-dabi64-bridge
Open

Ivan-VHS wants to merge 3 commits into
mainfrom
fix/native-hardware-backend-and-dabi64-bridge

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

This follow-up hardens the Windows-native GPU/NPU, AI, driver, gamepad and audio adapters already present on main, fixes the failing DABI64/native hardware CI, and adds optional NVIDIA vendor telemetry.

Native hardware improvements

  • Dynamically load the NVIDIA NVML runtime from the installed driver locations (System32 or NVIDIA NVSMI) without a CUDA SDK or shell command.
  • Query NVML GPU and memory utilization, temperature, board power, graphics/memory clocks and total/used VRAM when exposed by the installed NVIDIA driver.
  • Merge vendor telemetry with DXGI adapters by normalized device name; cap hardware enumeration at 32 devices.
  • Keep DXGI/PDH utilization and memory-budget telemetry when NVML is unavailable. Unsupported sensors remain Unknown, not 0.
  • Add hardware panel columns and tests for metric ranges and consistency.
  • Tighten device-state changes to external USB audio, external USB cameras and recognized game controllers. Internal audio, Bluetooth adapters, keyboards, mice, display, storage and system devices remain excluded.
  • Require both explicit confirmation and an elevated administrator token; no driver packages are installed, removed or replaced.

DABI64 and CI repairs

  • Declare the missing receive buffer, output length and metadata in the desktop IPC rejection/close contract test.
  • Fix the ONNX hardware test's stale inference identifier and force assertions on in Release configurations.
  • Verify negative confirmation paths for controller vibration, audio test playback/PCM route, and device state changes.
  • Download the ONNX Runtime 1.24.4 DirectML provider factory header matching the pinned SDK version when the NuGet package does not include that source header.

Boundary retained deliberately

  • The hardware services remain host-native Windows adapters. Linux reports unsupported where no Linux adapter is implemented.
  • ONNX Runtime performs local model/tensor inference; this does not claim a conversational LLM runtime, tokenizer, model catalogue or agent orchestration.
  • DABI64 wire validation, bounded endpoint queues and capability-broker primitives are host-tested. They are not yet connected to a ring-3 kernel task, kernel syscall transport or kernel-owned desktop session.
  • The kernel boot image already owns a framebuffer compositor/boot surface, but it is not yet a process-isolated user desktop.
  • Audio routing is DAK-owned PCM to a selected WASAPI endpoint; it does not replace the Windows audio engine or reroute other applications.

Verification

  • GitHub Actions will build/test the Linux and Windows native desktop matrices, including the portable IPC tests, ONNX CPU fixture, DirectML and plugin EP compile path.
  • The new NVML metrics are optional and are asserted only when the installed NVIDIA driver exposes them.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T15:17:01.981925Z
We couldn’t complete this review. Comment @codex review to try again.
a753a40 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant