README: document XCL_NETWORK=0 #3118

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/3118 into main
romeawayfromhome-rgb commented 2026-11-28 11:03:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-28T11:03:31Z.


What is in it

  • README only: documents the XCL_NETWORK=0 offline switch in the "Switches for how a title runs" list. Verified against crates/xcl/src/hle/netoff.rs at e429936: enabled() is true only when the value trims to exactly "0"; the module header states the title then runs as on a console without a network (WinHTTP requests and sockets fail as name-not-resolved / network-unreachable) while loopback connections and local-name lookups stay. The README had no mention of XCL_NETWORK.

Tested

  • Read netoff.rs at upstream head e429936 and checked the README had no mention of XCL_NETWORK. Documentation only; no code changed.

Regression run

  • Not needed: README only, no crates/xcl/src change.

Not tested

  • Not compiled or run: this change is documentation only and was prepared on a Linux VM without a Rust toolchain or Windows GPU host, so no cargo test or smoke run was performed. CI is the check.

AI use

  • Muse (Muse Spark) scouted the candidate, verified the semantics against the source, and wrote the README text and this description.
<!-- greyfinch-sync:ivall/xcl:issue:5539444333 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3118). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-28T11:03:31Z. --- **What is in it** - README only: documents the XCL_NETWORK=0 offline switch in the "Switches for how a title runs" list. Verified against crates/xcl/src/hle/netoff.rs at e429936: enabled() is true only when the value trims to exactly "0"; the module header states the title then runs as on a console without a network (WinHTTP requests and sockets fail as name-not-resolved / network-unreachable) while loopback connections and local-name lookups stay. The README had no mention of XCL_NETWORK. **Tested** - Read netoff.rs at upstream head e429936 and checked the README had no mention of XCL_NETWORK. Documentation only; no code changed. **Regression run** - Not needed: README only, no crates/xcl/src change. **Not tested** - Not compiled or run: this change is documentation only and was prepared on a Linux VM without a Rust toolchain or Windows GPU host, so no cargo test or smoke run was performed. CI is the check. **AI use** - Muse (Muse Spark) scouted the candidate, verified the semantics against the source, and wrote the README text and this description.
JJAutoCompare commented 2026-11-28 11:34:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T11:34:17Z.


Tested

Exact 6cd9ce140edaaca1fd4f8266ef547c7c5cd834f6 on Windows 11 x64 build 26200.9974, Ryzen 7 3800X, and Rust 1.100.1 MSVC. I verified that the pinned standalone harness contained the byte-identical netoff::enabled predicate from this revision.

I ran predicate.exe --exact tests::<case> --test-threads=1 --nocapture in one fresh process per case, with XCL_NETWORK set or omitted only in that child.

Case Observed input Predicate
unset Err(NotPresent) false
empty Ok("") false
zero "0" true
padded_zero " \t0 \t" true
one "1" false
false_literal "false" false
double_zero "00" false
hex_zero "0x0" false

The predicate accepted zero after trimming spaces and tabs. 8 passed, 0 failed, 0 ignored, 0 runtime skips, 0 timeouts. All eight native exits were 0, with seven filtered out per process.

Not tested

Runtime connectivity, sockets, title launches, GPU execution, CI, and the workspace suite.

AI use

T3 Code through the Codex harness (gpt-6.2-sol, high reasoning effort) prepared the private harness, verified source and executable provenance, reran the cases, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7238639619 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3118#issuecomment-7238639619). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T11:34:17Z. --- **Tested** Exact `6cd9ce140edaaca1fd4f8266ef547c7c5cd834f6` on Windows 11 x64 build 26200.9974, Ryzen 7 3800X, and Rust 1.100.1 MSVC. I verified that the pinned standalone harness contained the byte-identical `netoff::enabled` predicate from this revision. I ran `predicate.exe --exact tests::<case> --test-threads=1 --nocapture` in one fresh process per case, with `XCL_NETWORK` set or omitted only in that child. | Case | Observed input | Predicate | |---|---|---| | `unset` | `Err(NotPresent)` | false | | `empty` | `Ok("")` | false | | `zero` | `"0"` | true | | `padded_zero` | `" \t0 \t"` | true | | `one` | `"1"` | false | | `false_literal` | `"false"` | false | | `double_zero` | `"00"` | false | | `hex_zero` | `"0x0"` | false | The predicate accepted zero after trimming spaces and tabs. **8 passed, 0 failed, 0 ignored, 0 runtime skips, 0 timeouts.** All eight native exits were 0, with seven filtered out per process. **Not tested** Runtime connectivity, sockets, title launches, GPU execution, CI, and the workspace suite. **AI use** T3 Code through the Codex harness (`gpt-6.2-sol`, high reasoning effort) prepared the private harness, verified source and executable provenance, reran the cases, and wrote this report.
Foniass commented 2026-12-01 09:32:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:32:33Z.


Triage (#1607) – head 6cd9ce1

#299 also adds a README line recommending XCL_NETWORK=0, but as part of a preflight warning change. No PR adds this switch entry. The text matches hle/netoff.rs.
Nit: enabled() trims the value, so "exactly 0" is slightly too strict.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7306850983 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3118#issuecomment-7306850983). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:32:33Z. --- **Triage (#1607)** – head 6cd9ce1 #299 also adds a README line recommending `XCL_NETWORK=0`, but as part of a preflight warning change. No PR adds this switch entry. The text matches `hle/netoff.rs`. Nit: `enabled()` trims the value, so "exactly `0`" is slightly too strict. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-01 10:13:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:13:44Z.


Review (head 6cd9ce14, diff read, not a merge-check; draft, README only, conflicts with main):

Fine: the text matches hle/netoff.rs. enabled() (~63) turns on only for a trimmed 0. WinHTTP sends, connect, sendto, gethostbyname, WSAConnect and the rest of table() fail as an offline console's would. local_name (~50) still resolves the empty name, localhost, 127.x / ::1 and the machine's own name, and loopback connects still go through. The README doesn't mention it yet. It only needs a rebase for the conflict.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7307865588 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3118#issuecomment-7307865588). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:13:44Z. --- Review (head 6cd9ce14, diff read, not a merge-check; draft, README only, conflicts with main): Fine: the text matches `hle/netoff.rs`. `enabled()` (~63) turns on only for a trimmed `0`. WinHTTP sends, `connect`, `sendto`, `gethostbyname`, `WSAConnect` and the rest of `table()` fail as an offline console's would. `local_name` (~50) still resolves the empty name, localhost, 127.x / ::1 and the machine's own name, and loopback connects still go through. The README doesn't mention it yet. It only needs a rebase for the conflict. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3118:upstream-pr/3118'
git switch 'upstream-pr/3118'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3118'
git switch 'upstream-pr/3118'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3118'
git switch 'upstream-pr/3118'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3118'
git switch 'main'
git merge --squash 'upstream-pr/3118'
git switch 'main'
git merge --ff-only 'upstream-pr/3118'
git switch 'main'
git merge 'upstream-pr/3118'
git push origin 'main'
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
xcl-dev/xcl!3118
No description provided.