mxc icon indicating copy to clipboard operation
mxc copied to clipboard

ProcessContainer: `captureDenials` fails with `E_NOTIMPL` on 25H2/26H2 build .9974, but `nativeCaptureAvailable` reports true

Open theelliotm opened this issue 2 weeks ago • 2 comments

Relevant area(s)

Windows

Brief description of your issue

On Windows builds 26200.9974 (25H2) and 26300.9974 (26H2), StartLearningModeTraceWithOptions returns E_NOTIMPL (0x80004001). The Learning Mode API set and the processmodel.dll exports are still present, so nativeCaptureAvailable reports true. Requests with captureDenials pass the support check and then fail at trace start with backend_unavailable.

  • Since this host update, native-denial-capture fails in nightly validation on 25H2/26H2 x64 and arm64.
  • Builds .9725 passed the day before. 24H2 (26100.9711) and prerelease hosts still pass.
  • No MXC learning-mode or ProcessContainer code changed between the passing and failing runs.
  • Failing run: https://github.com/microsoft/mxc/actions/runs/42984359932

Steps to reproduce

  1. Use a 25H2 or 26H2 host on build 26200.9974 or 26300.9974.
  2. Run wxc-exec --probe. It reports nativeCaptureAvailable: true.
  3. Run a processcontainer request with processContainer.captureDenials.outputPath set, or run tests/scripts/run_processcontainer_policy_tests.ps1.

Expected behavior

Either capture works and writes the denial document, or nativeCaptureAvailable is false and the request is rejected before execution with the "requires native Learning Mode capture support" message.

Actual behavior

{"error":{"code":"backend_unavailable","message":"captureDenials: failed to start learning-mode capture:
StartLearningModeTraceWithOptions failed (HRESULT = 0x80004001)"}}

The probe says capture is available, but the start call fails.

theelliotm avatar Nov 12 '26 02:11 theelliotm

[AgentAssisted] This now fails the required windows / arm64 PR check. GitHub's arm64 runner image windows-11-vs2026-arm64 20261112.217.1 runs build 26200.9974. On it, runtime_proxy_captures_denials_and_launches_child (src/mxc-sdk/src/backends/process_container/common/base_container_helpers/tests.rs) passes its is_native_capture_available() check and then fails with captureDenials: failed to start learning-mode capture: StartLearningModeTraceWithOptions failed (HRESULT = 0x80004001). Jobs on the previous image, 20261101.203.1 (build 26200.9725), pass.

Both images are in service, so until this is fixed a PR's windows / arm64 job passes only when it lands on the previous image.

adpa-ms avatar Nov 13 '26 20:11 adpa-ms

Addressed by #1769, merged on November 14. Trace startup now checks NETWORK source support and selects legacy access-only StartLearningModeTrace when unsupported or unverified. The merged PR description now includes Fixes #1741; closing this issue as completed.

richiemsft avatar Dec 01 '26 00:12 richiemsft