startup: implement XPackageMountWithUiAsync and XPackageMountWithUiResult in xgameruntime #2286
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2294"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:28:31Z.
Part 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.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T10:50:30Z.
Review: COMMENTED
💡 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".
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:57:43Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:44:20Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T10:44:36Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T10:50:31Z.
Code review location:
docs/experiments.md; line 12200After 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 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:57:43Z.
Code review location:
docs/experiments.md; line 12200Fixed 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.