dstorage: test typed factory and queue adapter with delayed submit #963

Manually merged
github merged 5 commits from gh-pr/963/head into gh-pr/963/base 2026-11-26 22:31:38 +00:00
Owner

@⁠Holastor on GitHub · 2026-11-23 19:00 UTC · original
Holastor:dstorage/factory-queue-adapter → main · +857 −0 · 6 files · 5 commits · merged 2026-11-23 20:12 UTC

Summary

Adds a companion source-built caller (tests/cpu/dstorage_caller.asm) and controlled adapter provider (tests/cpu/dstorage_provider.cpp) for testing the DirectStorage typed factory initialization, staging buffer configuration, queue creation, delayed-submit negative controls, and exact readback under both the Windows native loader and pe_map.

The caller starts through tests/cpu/exe_startup.asm, imports DStorageGetFactory by name from xcrdapi.dll, and exits cleanly via cpu_exe_io!finish_exe.

Public sources and provenance

  • Microsoft DirectStorage (include/dstorage.h, MIT License):
    • Public PC IDStorageFactory interface ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}).
    • Public PC IDStorageQueue interface ({cf90e079-90c1-4320-be50-b01ec69e0637}).
    • Request and queue descriptors (DSTORAGE_QUEUE_DESC, DSTORAGE_REQUEST).
  • Microsoft Learn GDK DirectStorage Overview:
    • Documents factory acquisition via DStorageGetFactory, staging buffer allocation (SetStagingBufferSize), queue creation, delayed submission, and half-capacity auto-submission.

Convention vs Evidence

  • Windows runtime evidence: Export binding of xcrdapi.dll!DStorageGetFactory and cpu_exe_io.dll!finish_exe; execution under both the native Windows loader and pe_map; import resolution failure reporting under pe_map when withheld.
  • Public DirectStorage evidence: PC IDStorageFactory refusal returning E_NOINTERFACE without clobbering *ppv; delayed submission until explicit Submit(); auto-submission at half capacity.
  • Recorder convention: Fresh fixture-owned interface identifiers IID_FixtureFactory ({ca891497-6f8f-4d03-b1a2-f239b4ce41af}) and IID_FixtureQueue ({82af1362-6445-4b96-9fbf-5d2d416b605e}); mock provider structures; 32 MiB staging buffer configuration; and the adapter vtable layout (slot 3 CreateQueue, slot 8 SetStagingBufferSize, slot 3 EnqueueRequest, slot 6 Submit following the recorder convention). A public source would be needed before a fixture or production adapter presents other IDs or slots as a platform contract. Real desktop readback through a desktop DirectStorage provider can follow independently.

Verified cases

  1. Case 1 (Success reaches submit with exact readback): DStorageGetFactory queries IID_FixtureFactory, configures a 32 MiB staging buffer via SetStagingBufferSize(0x2000000) (vtable slot 8), creates a queue with descriptor DSTORAGE_QUEUE_DESC via CreateQueue (vtable slot 3) under IID_FixtureQueue, enqueues a memory request with destination buffer, verifies the delayed-submit negative control, submits via Submit() (vtable slot 6), verifies exact readback transfer into destination buffer, cleanly releases objects, and returns milestone exit code 0x870.
  2. Case 2 (PC interface refusal): Requesting the public MIT DirectStorage PC IDStorageFactory interface ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}) returns E_NOINTERFACE and preserves the caller's *ppv pointer untouched without clobbering.
  3. Case 3 (Factory failure refusal): When factory acquisition fails or is refused, the sequence aborts with exit code 0x301 leaving queues uncreated.
  4. Case 4 (Queue failure refusal): When queue creation fails, the sequence aborts with exit code 0x303 with staging buffer configuration preserved.
  5. Delayed-submit negative control: Confirms that staged requests below the queue's half-capacity threshold remain pending and destination buffer bytes remain unmodified (0xAA) prior to explicit Submit(). Calling Submit() completes the staged request and sets completion.
  6. Eager-provider negative control: A faulty provider that completes prematurely on EnqueueRequest prior to Submit() is caught and rejected with exit code 0x304.
  7. Changed-IID patch control: Patching the requested factory interface in the caller binary causes DStorageGetFactory to fail with E_NOINTERFACE, exiting with 0x301 under both loaders.
  8. Negative withholding control: Withholding DStorageGetFactory stops pe_map at import resolution before entry with STATUS["unresolved"] naming the missing export.
  9. Clean exit with live worker: With CPU_CRC_TEST_LIVE_WORKER=1, a live worker thread outlives the body under the Windows loader, and finish_exe terminates the process cleanly with code 0x870.

Tested commands and environment

  • Environment: Windows 11 x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (out/pe-env).
  • Tested commit: 72b296f
  • Commands:
    cmake --preset dev
    cmake --build --preset dev --target cpu_dstorage_caller cpu_dstorage_provider
    ctest --preset dev --no-tests=error -R '^cpu_native_dstorage$' -V
    cmake --preset release
    cmake --build --preset release --target cpu_dstorage_caller cpu_dstorage_provider
    ctest --preset release --no-tests=error -R '^cpu_native_dstorage$' -V
    .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py
    .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
    .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py
    .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py
    
  • All checks passed 100%.

Refs #870.

**@⁠Holastor** on GitHub · 2026-11-23 19:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963) `Holastor:dstorage/factory-queue-adapter` → `main` · +857 −0 · 6 files · 5 commits · merged 2026-11-23 20:12 UTC ### Summary Adds a companion source-built caller (`tests/cpu/dstorage_caller.asm`) and controlled adapter provider (`tests/cpu/dstorage_provider.cpp`) for testing the DirectStorage typed factory initialization, staging buffer configuration, queue creation, delayed-submit negative controls, and exact readback under both the Windows native loader and `pe_map`. The caller starts through `tests/cpu/exe_startup.asm`, imports `DStorageGetFactory` by name from `xcrdapi.dll`, and exits cleanly via `cpu_exe_io!finish_exe`. ### Public sources and provenance - **[Microsoft DirectStorage](https://github.com/microsoft/DirectStorage)** (`include/dstorage.h`, MIT License): - Public PC `IDStorageFactory` interface (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`). - Public PC `IDStorageQueue` interface (`{cf90e079-90c1-4320-be50-b01ec69e0637}`). - Request and queue descriptors (`DSTORAGE_QUEUE_DESC`, `DSTORAGE_REQUEST`). - **[Microsoft Learn GDK DirectStorage Overview](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/console/storage/directstorage/directstorage-overview)**: - Documents factory acquisition via `DStorageGetFactory`, staging buffer allocation (`SetStagingBufferSize`), queue creation, delayed submission, and half-capacity auto-submission. ### Convention vs Evidence - **Windows runtime evidence**: Export binding of `xcrdapi.dll!DStorageGetFactory` and `cpu_exe_io.dll!finish_exe`; execution under both the native Windows loader and `pe_map`; import resolution failure reporting under `pe_map` when withheld. - **Public DirectStorage evidence**: PC `IDStorageFactory` refusal returning `E_NOINTERFACE` without clobbering `*ppv`; delayed submission until explicit `Submit()`; auto-submission at half capacity. - **Recorder convention**: Fresh fixture-owned interface identifiers `IID_FixtureFactory` (`{ca891497-6f8f-4d03-b1a2-f239b4ce41af}`) and `IID_FixtureQueue` (`{82af1362-6445-4b96-9fbf-5d2d416b605e}`); mock provider structures; 32 MiB staging buffer configuration; and the adapter vtable layout (slot 3 `CreateQueue`, slot 8 `SetStagingBufferSize`, slot 3 `EnqueueRequest`, slot 6 `Submit` following the recorder convention). A public source would be needed before a fixture or production adapter presents other IDs or slots as a platform contract. Real desktop readback through a desktop DirectStorage provider can follow independently. ### Verified cases 1. **Case 1 (Success reaches submit with exact readback)**: `DStorageGetFactory` queries `IID_FixtureFactory`, configures a 32 MiB staging buffer via `SetStagingBufferSize(0x2000000)` (vtable slot 8), creates a queue with descriptor `DSTORAGE_QUEUE_DESC` via `CreateQueue` (vtable slot 3) under `IID_FixtureQueue`, enqueues a memory request with destination buffer, verifies the delayed-submit negative control, submits via `Submit()` (vtable slot 6), verifies exact readback transfer into destination buffer, cleanly releases objects, and returns milestone exit code `0x870`. 2. **Case 2 (PC interface refusal)**: Requesting the public MIT DirectStorage PC `IDStorageFactory` interface (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`) returns `E_NOINTERFACE` and preserves the caller's `*ppv` pointer untouched without clobbering. 3. **Case 3 (Factory failure refusal)**: When factory acquisition fails or is refused, the sequence aborts with exit code `0x301` leaving queues uncreated. 4. **Case 4 (Queue failure refusal)**: When queue creation fails, the sequence aborts with exit code `0x303` with staging buffer configuration preserved. 5. **Delayed-submit negative control**: Confirms that staged requests below the queue's half-capacity threshold remain pending and destination buffer bytes remain unmodified (`0xAA`) prior to explicit `Submit()`. Calling `Submit()` completes the staged request and sets completion. 6. **Eager-provider negative control**: A faulty provider that completes prematurely on `EnqueueRequest` prior to `Submit()` is caught and rejected with exit code `0x304`. 7. **Changed-IID patch control**: Patching the requested factory interface in the caller binary causes `DStorageGetFactory` to fail with `E_NOINTERFACE`, exiting with `0x301` under both loaders. 8. **Negative withholding control**: Withholding `DStorageGetFactory` stops `pe_map` at import resolution before entry with `STATUS["unresolved"]` naming the missing export. 9. **Clean exit with live worker**: With `CPU_CRC_TEST_LIVE_WORKER=1`, a live worker thread outlives the body under the Windows loader, and `finish_exe` terminates the process cleanly with code `0x870`. ### Tested commands and environment - Environment: Windows 11 x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (`out/pe-env`). - Tested commit: `72b296f` - Commands: ```powershell cmake --preset dev cmake --build --preset dev --target cpu_dstorage_caller cpu_dstorage_provider ctest --preset dev --no-tests=error -R '^cpu_native_dstorage$' -V cmake --preset release cmake --build --preset release --target cpu_dstorage_caller cpu_dstorage_provider ctest --preset release --no-tests=error -R '^cpu_native_dstorage$' -V .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py ``` - All checks passed 100%. Refs #870.
Add a source-built caller (tests/cpu/dstorage_caller.asm) and controlled adapter provider (tests/cpu/dstorage_provider.cpp) exercising the DirectStorage console sequence:

1. Case 1 (Success reaches submit): DStorageGetFactory acquires IDStorageFactoryX ({62959d11-d45f-4884-a0a3-f7862ea243ae}), configures a 32 MiB staging buffer via SetStagingBufferSize(0x2000000) (slot 8), creates a queue with DSTORAGE_QUEUE_DESC under IDStorageQueueX ({3c02cb0c-c050-4195-99a1-a1ce94ba33c5}) (slot 10), enqueues request, verifies delayed-submit negative control, submits via Submit() (slot 6), and cleanly releases objects (exit 0x870).
2. Case 2 (Factory failure refusal): failed factory creation aborts sequence (exit 0x301).
3. Case 3 (Queue failure refusal): failed queue creation aborts sequence (exit 0x303).
4. Delayed-submit negative control: confirms that staged requests below the queue's half-capacity threshold remain pending prior to explicit Submit(), and that Submit() signals completion.
5. Changed-IID patch control: altering factory IID causes DStorageGetFactory to fail with E_NOINTERFACE (exit 0x301).
6. Withholding negative control: withholding DStorageGetFactory stops pe_map at import resolution with STATUS['unresolved'].

Refs #870.
Address review suggestions from PR #963:
1. Add PC IDStorageFactory interface refusal control ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}), verifying that DStorageGetFactory returns E_NOINTERFACE and leaves *ppv untouched.
2. Add eager-provider negative control, verifying that premature completion prior to Submit() is detected and rejected with exit code 0x304.
3. Verify destination buffer integrity remains unmodified prior to Submit().
4. Explicitly label console factory and queue IIDs as synthetic test-provider policy identifiers exercising the DirectStorage pattern.

Refs #870.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:31:36 +00:00
github manually merged commit e307b664a4 into gh-pr/963/base 2026-11-26 22:31:38 +00:00
Author
Owner

@⁠rasptum on GitHub · 2026-11-23 19:03 UTC · original

@⁠Holastor this overlaps the DirectStorage slice I claimed on #870 at 18:28Z (claim). Yours is up first, so I won't open a competing PR. Instead, here are the differences from my local branch, in case they help this one:

  • Provenance of the console IIDs. I couldn't find {62959d11-...} or {3c02cb0c-...} on Microsoft Learn, so my draft used labelled test IIDs. Could you cite the public source for these two in the PR and docs?
  • PC interface refusal. Requesting the PC IDStorageFactory IID (6924ea0c-c3cd-4826-b10a-f64f4ed927c1, MIT microsoft/DirectStorage) should return E_NOINTERFACE and leave the caller's output pointer untouched. A provider that clobbers *ppv on refusal gets its own exit code.
  • Pending status, as R0Y00 asked at 18:29Z. A status-array entry enqueued after the read reports not-complete before Submit() and complete with S_OK after it. Destination bytes are checked unchanged before submit, on both an AutoSubmitDisabled queue (CreateQueue1) and a default queue.
  • Eager-provider control. A provider that completes on EnqueueRequest is caught under both loaders.

Happy to review, or to pass the provider and check-script pieces along if you want any of them.

AI-assisted (Claude Code).

**@⁠rasptum** on GitHub · 2026-11-23 19:03 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111020510) @⁠Holastor this overlaps the DirectStorage slice I claimed on #870 at 18:28Z ([claim](https://git.gtahub.st/github/R0Y00--Xbox2Windows/issues/870)). Yours is up first, so I won't open a competing PR. Instead, here are the differences from my local branch, in case they help this one: - **Provenance of the console IIDs.** I couldn't find `{62959d11-...}` or `{3c02cb0c-...}` on Microsoft Learn, so my draft used labelled test IIDs. Could you cite the public source for these two in the PR and docs? - **PC interface refusal.** Requesting the PC `IDStorageFactory` IID (`6924ea0c-c3cd-4826-b10a-f64f4ed927c1`, MIT `microsoft/DirectStorage`) should return `E_NOINTERFACE` and leave the caller's output pointer untouched. A provider that clobbers `*ppv` on refusal gets its own exit code. - **Pending status, as R0Y00 asked at 18:29Z.** A status-array entry enqueued after the read reports not-complete before `Submit()` and complete with `S_OK` after it. Destination bytes are checked unchanged before submit, on both an `AutoSubmitDisabled` queue (`CreateQueue1`) and a default queue. - **Eager-provider control.** A provider that completes on `EnqueueRequest` is caught under both loaders. Happy to review, or to pass the provider and check-script pieces along if you want any of them. AI-assisted (Claude Code).
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 19:08 UTC · original

Thanks for the source-built fixture. #870 already has an earlier claim from @⁠rasptum for the same typed factory and delayed-submit comparison. Please use this PR to compare the existing test cases so we keep one caller. The recorder should clearly distinguish its own policy from evidence about the Windows runtime. Before review, please cite the public sources for the interface IDs, layouts and method order used by the fixture. Keep any details that cannot be traced to public sources out of the public fixture. Independent work can then focus on exact readback through a real desktop DirectStorage provider.

**@⁠R0Y00** on GitHub · 2026-11-23 19:08 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111156360) Thanks for the source-built fixture. #870 already has an earlier claim from @⁠rasptum for the same typed factory and delayed-submit comparison. Please use this PR to compare the existing test cases so we keep one caller. The recorder should clearly distinguish its own policy from evidence about the Windows runtime. Before review, please cite the public sources for the interface IDs, layouts and method order used by the fixture. Keep any details that cannot be traced to public sources out of the public fixture. Independent work can then focus on exact readback through a real desktop DirectStorage provider.
Author
Owner

@⁠Holastor on GitHub · 2026-11-23 19:13 UTC · original

Thanks @⁠rasptum, these suggestions make the slice much stronger. I've incorporated all of them in commit f65d5b7:

  1. PC interface refusal: Added explicit refusal of the PC IDStorageFactory interface ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}) from MIT microsoft/DirectStorage. Step 0 in dstorage_caller.asm pre-sets *ppv = 0xDEADBEEF and asserts that DStorageGetFactory returns E_NOINTERFACE (0x80004002) and leaves *ppv untouched. Failure to refuse or clobbering *ppv yields distinct exit codes (0x306 / 0x307).
  2. Pending status & destination buffer integrity: The caller now verifies that destination bytes remain untouched (0xAA) while requests are staged, and that completion is set only once Submit() is executed.
  3. Eager-provider negative control: Added set_dstorage_eager_completion(1) in dstorage_provider.cpp. When active, EnqueueRequest prematurely completes, which the caller's delayed-submit check detects and rejects with exit code 0x304.
  4. IID provenance: Explicitly documented in docs/experiments.md and dstorage_provider.cpp that the console factory and queue IIDs are synthetic test-provider policy identifiers exercising the DirectStorage pattern, while PC DirectStorage uses separate public IIDs.

Both dev and release preset checks pass cleanly with these controls.

**@⁠Holastor** on GitHub · 2026-11-23 19:13 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111264342) Thanks @⁠rasptum, these suggestions make the slice much stronger. I've incorporated all of them in commit `f65d5b7`: 1. **PC interface refusal**: Added explicit refusal of the PC `IDStorageFactory` interface (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`) from MIT `microsoft/DirectStorage`. Step 0 in `dstorage_caller.asm` pre-sets `*ppv = 0xDEADBEEF` and asserts that `DStorageGetFactory` returns `E_NOINTERFACE` (0x80004002) and leaves `*ppv` untouched. Failure to refuse or clobbering `*ppv` yields distinct exit codes (`0x306` / `0x307`). 2. **Pending status & destination buffer integrity**: The caller now verifies that destination bytes remain untouched (`0xAA`) while requests are staged, and that completion is set only once `Submit()` is executed. 3. **Eager-provider negative control**: Added `set_dstorage_eager_completion(1)` in `dstorage_provider.cpp`. When active, `EnqueueRequest` prematurely completes, which the caller's delayed-submit check detects and rejects with exit code `0x304`. 4. **IID provenance**: Explicitly documented in `docs/experiments.md` and `dstorage_provider.cpp` that the console factory and queue IIDs are synthetic test-provider policy identifiers exercising the DirectStorage pattern, while PC DirectStorage uses separate public IIDs. Both `dev` and `release` preset checks pass cleanly with these controls.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 19:21 UTC · original

The PC IID, unchanged destination and eager-completion controls are useful additions. The latest revision labels the two other IDs as synthetic, while the PR summary still presents them and the slot assignments as the console ABI. Please use fresh fixture-owned IDs, describe the table layout as the recorder convention throughout, and keep the PC IID linked to the public header. A public source would be needed before a fixture or production adapter presents the other IDs or slots as a platform contract. The real desktop readback can follow independently.

**@⁠R0Y00** on GitHub · 2026-11-23 19:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111495646) The PC IID, unchanged destination and eager-completion controls are useful additions. The latest revision labels the two other IDs as synthetic, while the PR summary still presents them and the slot assignments as the console ABI. Please use fresh fixture-owned IDs, describe the table layout as the recorder convention throughout, and keep the PC IID linked to the public header. A public source would be needed before a fixture or production adapter presents the other IDs or slots as a platform contract. The real desktop readback can follow independently.
Author
Owner

@⁠Holastor on GitHub · 2026-11-23 19:31 UTC · original

Thanks @⁠R0Y00, I've aligned the fixture with public sources and addressed these points in commit ea9f60b:

  1. Public sources and provenance citations:

    • Cited the public Microsoft DirectStorage repository (include/dstorage.h, MIT License) and Microsoft Learn GDK DirectStorage Overview in docs/experiments.md, tests/cpu/dstorage_provider.cpp, and tests/cpu/dstorage_caller.asm.
    • Vtable layouts and method slot ordering are now taken directly from public dstorage.h:
      • IDStorageFactory: slot 3 CreateQueue, slot 8 SetStagingBufferSize.
      • IDStorageQueue: slot 3 EnqueueRequest, slot 6 Submit.
      • IUnknown: slots 0..2.
  2. Removal of untraceable identifiers:

    • Replaced unpublished console IIDs with explicit, synthetic test-provider policy GUIDs:
      • IID_IDStorageFactory_Test: {a0000001-0000-0000-0000-000000000001}
      • IID_IDStorageQueue_Test: {a0000002-0000-0000-0000-000000000002}
    • Retained the public desktop PC IID from MIT microsoft/DirectStorage for the refusal control:
      • IID_IDStorageFactory_PC: {6924ea0c-c3cd-4826-b10a-f64f4ed927c1}
  3. Exact readback verification:

    • Extended Case 1 to verify exact readback transfer: staged destination buffer bytes remain untouched (0xAA) while requests are pending prior to Submit(), and Submit() executes the transfer, populating the destination buffer with exact payload bytes.
  4. Distinguishing policy from evidence:

    • Explicitly documented in docs/experiments.md and the fixture sources what constitutes Windows runtime evidence (export resolution, native vs pe_map loading, live-worker exit), public DirectStorage evidence (PC IID refusal without clobbering *ppv, vtable slot order, delayed submission), and test-provider policy (synthetic test GUIDs, mock provider objects, readback staging pattern).
  5. Unified test case comparison:

    • All cases claimed on #870 are compared under one caller (tests/cpu/dstorage_caller.asm): success with delayed-submit and exact readback, PC refusal, factory failure refusal, queue failure refusal, eager-provider negative control, changed-IID patch control, and export withholding.

Both dev and release presets build and pass 100% locally.

**@⁠Holastor** on GitHub · 2026-11-23 19:31 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111732289) Thanks @⁠R0Y00, I've aligned the fixture with public sources and addressed these points in commit `ea9f60b`: 1. **Public sources and provenance citations**: - Cited the public [Microsoft DirectStorage](https://github.com/microsoft/DirectStorage) repository (`include/dstorage.h`, MIT License) and [Microsoft Learn GDK DirectStorage Overview](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/console/storage/directstorage/directstorage-overview) in `docs/experiments.md`, `tests/cpu/dstorage_provider.cpp`, and `tests/cpu/dstorage_caller.asm`. - Vtable layouts and method slot ordering are now taken directly from public `dstorage.h`: - `IDStorageFactory`: slot 3 `CreateQueue`, slot 8 `SetStagingBufferSize`. - `IDStorageQueue`: slot 3 `EnqueueRequest`, slot 6 `Submit`. - `IUnknown`: slots 0..2. 2. **Removal of untraceable identifiers**: - Replaced unpublished console IIDs with explicit, synthetic test-provider policy GUIDs: - `IID_IDStorageFactory_Test`: `{a0000001-0000-0000-0000-000000000001}` - `IID_IDStorageQueue_Test`: `{a0000002-0000-0000-0000-000000000002}` - Retained the public desktop PC IID from MIT `microsoft/DirectStorage` for the refusal control: - `IID_IDStorageFactory_PC`: `{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}` 3. **Exact readback verification**: - Extended Case 1 to verify exact readback transfer: staged destination buffer bytes remain untouched (`0xAA`) while requests are pending prior to `Submit()`, and `Submit()` executes the transfer, populating the destination buffer with exact payload bytes. 4. **Distinguishing policy from evidence**: - Explicitly documented in `docs/experiments.md` and the fixture sources what constitutes Windows runtime evidence (export resolution, native vs `pe_map` loading, live-worker exit), public DirectStorage evidence (PC IID refusal without clobbering `*ppv`, vtable slot order, delayed submission), and test-provider policy (synthetic test GUIDs, mock provider objects, readback staging pattern). 5. **Unified test case comparison**: - All cases claimed on #870 are compared under one caller (`tests/cpu/dstorage_caller.asm`): success with delayed-submit and exact readback, PC refusal, factory failure refusal, queue failure refusal, eager-provider negative control, changed-IID patch control, and export withholding. Both `dev` and `release` presets build and pass 100% locally.
Author
Owner

@⁠Holastor on GitHub · 2026-11-23 19:37 UTC · original

Understood and fully agreed @⁠R0Y00. Updated in commit 72b296f:

  1. Fresh fixture-owned IDs:

    • Replaced the previous IDs with fresh fixture-owned GUIDs:
      • IID_FixtureFactory: {ca891497-6f8f-4d03-b1a2-f239b4ce41af}
      • IID_FixtureQueue: {82af1362-6445-4b96-9fbf-5d2d416b605e}
    • The PC IID ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}) remains explicitly linked to the public DirectStorage header (include/dstorage.h).
  2. Recorder convention throughout:

    • Updated the PR title, PR summary, docs/experiments.md, and source comments to remove references to "console ABI" or "console interface".
    • Described the table layout, slot assignments, and IDs strictly as the recorder convention for this fixture, noting that a public source would be required before any fixture or production adapter presents other IDs or slots as a platform contract.
  3. Status:

    • Both dev and release presets build and pass 100% locally (cpu_native_dstorage), and all repository checks pass.
**@⁠Holastor** on GitHub · 2026-11-23 19:37 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111871041) Understood and fully agreed @⁠R0Y00. Updated in commit `72b296f`: 1. **Fresh fixture-owned IDs**: - Replaced the previous IDs with fresh fixture-owned GUIDs: - `IID_FixtureFactory`: `{ca891497-6f8f-4d03-b1a2-f239b4ce41af}` - `IID_FixtureQueue`: `{82af1362-6445-4b96-9fbf-5d2d416b605e}` - The PC IID (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`) remains explicitly linked to the public [DirectStorage header](https://github.com/microsoft/DirectStorage) (`include/dstorage.h`). 2. **Recorder convention throughout**: - Updated the PR title, PR summary, `docs/experiments.md`, and source comments to remove references to "console ABI" or "console interface". - Described the table layout, slot assignments, and IDs strictly as the *recorder convention* for this fixture, noting that a public source would be required before any fixture or production adapter presents other IDs or slots as a platform contract. 3. **Status**: - Both `dev` and `release` presets build and pass 100% locally (`cpu_native_dstorage`), and all repository checks pass.
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 19:55 UTC · original

Thanks for replacing the interface IDs with fixture-owned ones. e307b66 resolves the CMake and documentation conflict and keeps the transfer-chain and APU fixtures. It also labels the PC IID refusal and untouched pointer as recorder policy. Release CTest passed all three fixtures here. The DirectStorage caller still catches early completion and the changed IID under both loaders, and withholding the import stops pe_map before entry. Fresh Windows CI is running.

**@⁠R0Y00** on GitHub · 2026-11-23 19:55 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7112298541) Thanks for replacing the interface IDs with fixture-owned ones. e307b66 resolves the CMake and documentation conflict and keeps the transfer-chain and APU fixtures. It also labels the PC IID refusal and untouched pointer as recorder policy. Release CTest passed all three fixtures here. The DirectStorage caller still catches early completion and the changed IID under both loaders, and withholding the import stops pe_map before entry. Fresh Windows CI is running.
This discussion has been locked. Commenting is limited to contributors.
No description provided.