runtime: test scoped guest content-root mapping #976

Merged
Jess-Doit merged 1 commit from upstream-pr/983 into main 2026-11-23 20:10:58 +00:00
Jess-Doit commented 2026-11-23 19:49:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T19:49:11Z.


Change

Refs #870. Add the scoped content-root fixture requested in the startup thread. A source-built Windows EXE binds a free guest letter in its own process and opens generated archive bytes from a package root. Claim

The fixture checks the exact package bytes and read-only access. A file present only in the separate save/config directory returns ERROR_FILE_NOT_FOUND. Binding an occupied host letter is refused. Both successful and missing-file scopes release the mapping, preserve the host drive mask, and remove their generated files.

Verification

f9a4c09 on Windows 10 22H2 (19045.6456), MSVC 19.44.35230 x64, Windows SDK 10.0.26100. Debug and Release each passed 1/1 with no skips. The docs link, source text, and diff checks passed.

foreach ($preset in 'dev','release') {
    cmake --preset $preset
    cmake --build --preset $preset --target guest_content_root_check
    ctest --preset $preset --no-tests=error -R '^startup_content_root$' -V
}
python -B tests/docs_links_check.py
python -B tests/bidi_controls_check.py
git diff HEAD^ HEAD --check

The three local controls failed at the intended assertions when deliberately redirecting to the save/config root, accepting an occupied drive, or retaining the mapping after scope exit.

Evidence and follow-up

The original fixture and generated byte strings are MIT-licensed. The resolver covers the fixture's root-level generated archive names. Windows drive assignments and the package loader use their existing behavior. Reproduction notes

Checklist

  • This pull request covers one reviewable behavior.
  • I included commands and results for the focused checks.
  • I considered a negative control or failure case for the fixture.
  • I updated the experiment documentation.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6567497869 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/983). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T19:49:11Z. --- ## Change Refs #870. Add the scoped content-root fixture requested in the startup thread. A source-built Windows EXE binds a free guest letter in its own process and opens generated archive bytes from a package root. [Claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111570927) The fixture checks the exact package bytes and read-only access. A file present only in the separate save/config directory returns `ERROR_FILE_NOT_FOUND`. Binding an occupied host letter is refused. Both successful and missing-file scopes release the mapping, preserve the host drive mask, and remove their generated files. ## Verification `f9a4c09` on Windows 10 22H2 (19045.6456), MSVC 19.44.35230 x64, Windows SDK 10.0.26100. Debug and Release each passed 1/1 with no skips. The docs link, source text, and diff checks passed. ```powershell foreach ($preset in 'dev','release') { cmake --preset $preset cmake --build --preset $preset --target guest_content_root_check ctest --preset $preset --no-tests=error -R '^startup_content_root$' -V } python -B tests/docs_links_check.py python -B tests/bidi_controls_check.py git diff HEAD^ HEAD --check ``` The three local controls failed at the intended assertions when deliberately redirecting to the save/config root, accepting an occupied drive, or retaining the mapping after scope exit. ## Evidence and follow-up The original fixture and generated byte strings are MIT-licensed. The resolver covers the fixture's root-level generated archive names. Windows drive assignments and the package loader use their existing behavior. [Reproduction notes](docs/experiments.md#scoped-content-root-on-windows) ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included commands and results for the focused checks. - [x] I considered a negative control or failure case for the fixture. - [x] I updated the experiment documentation. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted (Codex).
upstream-sync closed this pull request 2026-11-24 06:45:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!976
No description provided.