startup: implement XPackageMountWithUiAsync and XPackageMountWithUiResult in xgameruntime #2294
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2294
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2294/head"
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?
@tedin7 on GitHub · 2026-11-25 10:28 UTC · original
tedin7:x2w-w4-xpackage-mount-async→main· +557 −44 · 8 files · 3 commits · merged 2026-11-25 11:08 UTCPart of #870
What this unblocks: callers of
XPackageMountWithUiAsync/XPackageMountWithUiResultget a working manual-queue mount instead ofE_NOTIMPL, removing the last explicit stub from the fixture-only xgameruntime table.Change
src/xgameruntime_shim.cpp:XPackageMountWithUiAsyncis now an implemented row and a newXPackageMountWithUiResultrow is added. Both reuseProviderAsyncSlot/reserve_async/complete_async(newAsyncKind::package_mount), in the style of #2179 and #2201. The identifier is validated likeXPackageMount(E_INVALIDARG, nothing consumed). A null or foreign queue givesE_NOTIMPL. The result returnsE_PENDINGuntil the callback was dispatched, then one mount handle once. A second claim, an untracked block or a block of another kind givesE_INVALIDARG. No free mount givesE_OUTOFMEMORYand frees the block.XAsyncGetResultSizereports one mount handle.tests/xgameruntime_package_async_check.cpp(CTestxgameruntime_package_async): pending/result lifecycle, in-callback claim, double claim, reuse of an in-flight block, invalid identifiers, null block/queue/out pointer (negative control), wrong-kind and close guards against a user-add block, mount-table exhaustion and recovery, sentinel-padded block bytes untouched.tests/xgameruntime_thunks_check.cpp,xgameruntime_contracts_check.cpp,xgameruntime_pls_xpackage_check.cpp,xgameruntime_table_check.py: the old stub negative control now expectsE_INVALIDARGfor a null block, and the table check requires both rows as implemented.CMakeLists.txtregisters the new test;docs/experiments.mddocuments the contract.Verification
Linux only (Win2025 WARP dev + release is left to the independent verification stage):
python3 -B tests/xgameruntime_table_check.py-> PASS (34 exports, stub=0, duplicate control detected)python3 -B tests/docs_links_check.py-> PASSgit diff --check-> cleanx86_64-w64-mingw32-g++ -std=c++17 -fsyntax-only -Isrconsrc/xgameruntime_shim.cppand the four touched/new C++ tests -> no errorsAI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-25 10:44 UTC · original
Independent verification of head
389fa37c: PASS.XPackageMountWithUiAsync/XPackageMountWithUiResultrows are implemented, with the same async slot lifecycle as the user-add path. The identifier is validated first (E_INVALIDARG, nothing consumed). The result givesE_PENDINGuntil dispatch, then one handle once. A second claim, an untracked block or a wrong-kind block givesE_INVALIDARG. Null out pointer givesE_POINTER.XAsyncGetResultSizereports one mount handle.xgameruntime_thunks_check.cppand the other checks are updated, andCMakeLists.txtregistersxgameruntime_package_async.python3 x2w_pipe.py win2025 2294 --force, default 3-slot pool): dev 10/10 and release 10/10 passed (xgameruntime_package_async,_table,_thunks,_contracts,_pls_xpackage,_user_async,_gamesave_async,_async_status,_identity,_preflight_stub_refused).AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 10:44 UTC · original · edited 2026-11-25 10:50 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
389fa37ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@ -12221,0 +12234,4 @@exhaustion:```shctest --preset dev --no-tests=error -R '^xgameruntime_package_async$' -V@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 10:50 UTC · original
After pulling this change into an existing
devbuild and running only the target-specific build recipe at line 12222,xgameruntime_package_async_checkremains unbuilt because that recipe lists only the older targets. Thecmake --buildhelp describes--targetasBuild <tgt> instead of default targets.Consequently, this command and the broader^xgameruntime_invocation below select the new test but report it as Not Run rather than exercising the implementation. Addxgameruntime_package_async_checkto the documented build command.AGENTS.md reference: AGENTS.md:L262-L263
Useful? React with 👍 / 👎.
@ -12221,0 +12234,4 @@exhaustion:```shctest --preset dev --no-tests=error -R '^xgameruntime_package_async$' -V@tedin7 on GitHub · 2026-11-25 10:57 UTC · original
Fixed in
abffecac: the documentedcmake --build --preset dev --target ...command now listsxgameruntime_package_async_check, so the new test is built beforectest -R '^xgameruntime_'runs.AI-assisted; commands listed were executed locally:
git fetch fork,git log --oneline -1 fork/x2w-w4-xpackage-mount-async. Docs-only change; no build run.@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 10:50 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
389fa37cddℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".