docs: clarify offline mode scope and warn without -FakeUser #2159

Merged
SimSalabimse merged 3 commits from upstream-pr/2167 into main 2026-11-25 03:06:09 +00:00
SimSalabimse commented 2026-11-25 02:33:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T02:33:12Z.


Change

Refs #2075 proposals (1) and (2).

  • docs/startup-runtime.md Run section: offline mode applies to the title process only; Gaming Services outside the process can still service runtime calls and a signed-in Xbox/Store account. Recommend an account-free user/machine or the isolated VM; link the existing note that network activity is not fully blocked.
  • tools/startup/run.ps1: Write-Warning when -FakeUser is not passed (user APIs then hit the host runtime).
  • tests/startup_run_ps1_check.py: text check + negative mutant for the warning.

Proposal (3) (allow-list / X2W_RUNTIME_LOCAL) left for maintainer discussion.

AI-assisted.

Verification

python3 -B tests/startup_run_ps1_check.py --text-only  # 0 failed
python3 -B tests/docs_links_check.py                   # passed

Evidence and follow-up

Docs + launcher warning only. No game files. Larger runtime allow-list remains for #2075 discussion.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6595848021 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2167). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-25T02:33:12Z. --- ## Change Refs #2075 proposals (1) and (2). - `docs/startup-runtime.md` Run section: offline mode applies to the title process only; Gaming Services outside the process can still service runtime calls and a signed-in Xbox/Store account. Recommend an account-free user/machine or the isolated VM; link the existing note that network activity is not fully blocked. - `tools/startup/run.ps1`: `Write-Warning` when `-FakeUser` is not passed (user APIs then hit the host runtime). - `tests/startup_run_ps1_check.py`: text check + negative mutant for the warning. Proposal (3) (allow-list / `X2W_RUNTIME_LOCAL`) left for maintainer discussion. AI-assisted. ## Verification python3 -B tests/startup_run_ps1_check.py --text-only # 0 failed python3 -B tests/docs_links_check.py # passed ## Evidence and follow-up Docs + launcher warning only. No game files. Larger runtime allow-list remains for #2075 discussion. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
tedin7 commented 2026-11-25 03:01:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:38:53Z.

Review: COMMENTED


Review of head 442a5d89456bcaee5f45ee0db4d81e4d89be3602 (docs + launcher warning only).

Verdict: no blockers. P1=0, P2=0, 2 nits.

CI at this head: Linux checks, gfx1013 fixtures and Windows build/test pass. Mergeable. Title and body are neutral. No game files.

Commands run locally in a worktree of this head:

  • git diff --stat origin/main...HEAD: 3 files, +37/-2
  • python3 -B tests/startup_run_ps1_check.py --text-only: 0 failed
  • python3 -B tests/startup_run_ps1_check.py: 0 failed (text only: not a Windows host)
  • python3 tests/docs_links_check.py: Checked 18 Markdown files and 403 links. Self-test passed.
  • python3 tests/bidi_controls_check.py: no bidirectional controls
  • git diff --check origin/main...HEAD: clean
  • Mutation 1: Write-Warning replaced with Write-Host in tools/startup/run.ps1. Result: FAIL text: missing Write-Warning when -FakeUser is not passed, 1 failed. Killed.
  • Mutation 2: if (-not $FakeUser) changed to if ($FakeUser). Result: same FAIL, 1 failed. Killed.
  • Both mutations reverted with git checkout -- ..

Checked by reading:

  • The #iterating-on-start-up-runs and #startup-memory-accounting anchors exist (docs/startup-runtime.md:594, :1726).
  • The claim that the live log window does not establish that all network activity is blocked matches docs/startup-runtime.md:1749.
  • The text_problems check also runs on Windows hosts that execute the script, and the no FakeUser warning mutant is correctly removed from the shell-executed mutants, because a run succeeds without the warning.

Nits (not blocking):

  1. tools/startup/run.ps1:50: the warning looks only at the -FakeUser switch. If X2W_FAKE_USER=1 is already set in the caller's environment, the warning still fires. Consider if (-not $FakeUser -and $env:X2W_FAKE_USER -ne "1"), or leave it as is, since the launcher only sets the variable from the switch.
  2. tests/startup_run_ps1_check.py: FAKE_USER_WARN pins the full message prefix, so rewording the warning needs a test edit. This is acceptable, but a shorter anchor such as Write-Warning plus -FakeUser would make the test less brittle.

Not run: Win2025 (win2025). The change is docs plus a one-line warning, and CI Windows already passes.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6050972046 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2167#pullrequestreview-6050972046). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T02:38:53Z. **Review:** COMMENTED --- Review of head `442a5d89456bcaee5f45ee0db4d81e4d89be3602` (docs + launcher warning only). **Verdict: no blockers. P1=0, P2=0, 2 nits.** CI at this head: Linux checks, gfx1013 fixtures and Windows build/test pass. Mergeable. Title and body are neutral. No game files. Commands run locally in a worktree of this head: - `git diff --stat origin/main...HEAD`: 3 files, +37/-2 - `python3 -B tests/startup_run_ps1_check.py --text-only`: `0 failed` - `python3 -B tests/startup_run_ps1_check.py`: `0 failed (text only: not a Windows host)` - `python3 tests/docs_links_check.py`: `Checked 18 Markdown files and 403 links.` Self-test passed. - `python3 tests/bidi_controls_check.py`: no bidirectional controls - `git diff --check origin/main...HEAD`: clean - Mutation 1: `Write-Warning` replaced with `Write-Host` in `tools/startup/run.ps1`. Result: `FAIL text: missing Write-Warning when -FakeUser is not passed`, 1 failed. Killed. - Mutation 2: `if (-not $FakeUser)` changed to `if ($FakeUser)`. Result: same FAIL, 1 failed. Killed. - Both mutations reverted with `git checkout -- .`. Checked by reading: - The `#iterating-on-start-up-runs` and `#startup-memory-accounting` anchors exist (`docs/startup-runtime.md:594`, `:1726`). - The claim that the live log window does not establish that all network activity is blocked matches `docs/startup-runtime.md:1749`. - The `text_problems` check also runs on Windows hosts that execute the script, and the `no FakeUser warning` mutant is correctly removed from the shell-executed mutants, because a run succeeds without the warning. Nits (not blocking): 1. `tools/startup/run.ps1:50`: the warning looks only at the `-FakeUser` switch. If `X2W_FAKE_USER=1` is already set in the caller's environment, the warning still fires. Consider `if (-not $FakeUser -and $env:X2W_FAKE_USER -ne "1")`, or leave it as is, since the launcher only sets the variable from the switch. 2. `tests/startup_run_ps1_check.py`: `FAKE_USER_WARN` pins the full message prefix, so rewording the warning needs a test edit. This is acceptable, but a shorter anchor such as `Write-Warning` plus `-FakeUser` would make the test less brittle. Not run: Win2025 (`win2025`). The change is docs plus a one-line warning, and CI Windows already passes. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 03:01:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:48:07Z.

Review: COMMENTED


Re-review of head e894eed8 (new commit on top of 442a5d89: docs + launcher warning only).

Verdict: no blockers. P1=0, P2=0. Previous nit 1 is resolved. Previous nit 2 is unchanged (optional).

Status of the earlier findings:

  1. Nit 1 (warning fired even when X2W_FAKE_USER=1 was already set): RESOLVED. tools/startup/run.ps1:50 is now if (-not $FakeUser -and $env:X2W_FAKE_USER -ne "1"). The test regex FAKE_USER_WARN in tests/startup_run_ps1_check.py was updated to pin the new condition.
  2. Nit 2 (test pins the full warning prefix, so rewording needs a test edit): still open, acceptable, not blocking.

State: PR is not Draft, mergeable. Title and body are neutral. CI at this head: Linux Python checks pass; gfx1013 fixtures and Windows build/test were still pending when I looked.

Commands run locally in a worktree of this head:

  • git diff --stat origin/main...HEAD: 3 files, +37/-2
  • python3 -B tests/startup_run_ps1_check.py: 0 failed (text only: not a Windows host)
  • python3 tests/docs_links_check.py: Checked 18 Markdown files and 403 links. Self-test passed.
  • python3 tests/bidi_controls_check.py: no bidirectional controls
  • git diff --check origin/main...HEAD: clean
  • Mutation A: removed -and $env:X2W_FAKE_USER -ne "1" from run.ps1. Result: FAIL text: missing Write-Warning when -FakeUser is not passed, 1 failed. Killed.
  • Mutation B: Write-Warning changed to Write-Host. Result: same FAIL, 1 failed. Killed.
  • Both reverted with git checkout -- .; worktree clean.

Not run: Win2025. The change is docs plus one launcher warning line; the Windows CI job covers it once it finishes.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6051081263 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2167#pullrequestreview-6051081263). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T02:48:07Z. **Review:** COMMENTED --- Re-review of head `e894eed8` (new commit on top of `442a5d89`: docs + launcher warning only). **Verdict: no blockers. P1=0, P2=0.** Previous nit 1 is resolved. Previous nit 2 is unchanged (optional). Status of the earlier findings: 1. Nit 1 (warning fired even when `X2W_FAKE_USER=1` was already set): RESOLVED. `tools/startup/run.ps1:50` is now `if (-not $FakeUser -and $env:X2W_FAKE_USER -ne "1")`. The test regex `FAKE_USER_WARN` in `tests/startup_run_ps1_check.py` was updated to pin the new condition. 2. Nit 2 (test pins the full warning prefix, so rewording needs a test edit): still open, acceptable, not blocking. State: PR is not Draft, mergeable. Title and body are neutral. CI at this head: Linux Python checks pass; gfx1013 fixtures and Windows build/test were still pending when I looked. Commands run locally in a worktree of this head: - `git diff --stat origin/main...HEAD`: 3 files, +37/-2 - `python3 -B tests/startup_run_ps1_check.py`: `0 failed (text only: not a Windows host)` - `python3 tests/docs_links_check.py`: `Checked 18 Markdown files and 403 links.` Self-test passed. - `python3 tests/bidi_controls_check.py`: no bidirectional controls - `git diff --check origin/main...HEAD`: clean - Mutation A: removed `-and $env:X2W_FAKE_USER -ne "1"` from run.ps1. Result: `FAIL text: missing Write-Warning when -FakeUser is not passed`, 1 failed. Killed. - Mutation B: `Write-Warning` changed to `Write-Host`. Result: same FAIL, 1 failed. Killed. - Both reverted with `git checkout -- .`; worktree clean. Not run: Win2025. The change is docs plus one launcher warning line; the Windows CI job covers it once it finishes. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 04:04:02 +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!2159
No description provided.