Docs: ARCHITECTURE.md - module map, generated files, XCL_* variables #601

Open
github-bot wants to merge 1 commit from github-bot/gh-601 into main AGit
Owner

@⁠Kaairim on GitHub · 2026-11-24 02:19 UTC · original
Kaairim:architecture-doc → main · +194 −0 · 1 files · 1 commits · draft

HANDOFF.md is 1854 lines and the XCL_* variables are spread over doc comments. This adds a short map for new contributors; it rewrites nothing in HANDOFF.md or docs/specs/.

What is in it

  • docs/ARCHITECTURE.md (~190 lines): how xcl run works (launcher → host → loader → resolver → HLE → recompiler), a module map (console DLL → module → what it does → where its tests are), the generators in scripts/, the XCL_* variables for running and testing (each with the file that reads it), and where to start

Tested

  • Windows 11 (26300); docs only. Each module description comes from the module's own header comment, and the variables' meanings from the code that reads them (spot-checked: XCL_SPLIT_WAVE64, XCL_UMA_MB, XCL_DXIL_CACHE, XCL_LAZY_PSO, XCL_FRAME_DUMP, XCL_DUMP_SHADERS)
  • The two commands it shows were not run here (no Rust toolchain); they are the ones in AGENTS.md / README.md

Not tested

  • Whether the maintainer wants such a file under docs/ – happy to move or trim it

AI use

  • Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line.

Improvements by William "kaairim" Deivid (wdcore).

🤖 Generated with Claude Code

**@⁠Kaairim** on GitHub · 2026-11-24 02:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/601) `Kaairim:architecture-doc` → `main` · +194 −0 · 1 files · 1 commits · draft HANDOFF.md is 1854 lines and the `XCL_*` variables are spread over doc comments. This adds a short map for new contributors; it rewrites nothing in HANDOFF.md or docs/specs/. **What is in it** - `docs/ARCHITECTURE.md` (~190 lines): how `xcl run` works (launcher → host → loader → resolver → HLE → recompiler), a module map (console DLL → module → what it does → where its tests are), the generators in `scripts/`, the `XCL_*` variables for running and testing (each with the file that reads it), and where to start **Tested** - Windows 11 (26300); docs only. Each module description comes from the module's own header comment, and the variables' meanings from the code that reads them (spot-checked: `XCL_SPLIT_WAVE64`, `XCL_UMA_MB`, `XCL_DXIL_CACHE`, `XCL_LAZY_PSO`, `XCL_FRAME_DUMP`, `XCL_DUMP_SHADERS`) - The two commands it shows were not run here (no Rust toolchain); they are the ones in AGENTS.md / README.md **Not tested** - Whether the maintainer wants such a file under docs/ – happy to move or trim it **AI use** - Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line. Improvements by William "kaairim" Deivid (wdcore). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
HANDOFF.md is long and the variables are spread over doc comments. A
short map for new contributors: how xcl run works, which module stands
in for which console DLL and where its tests are, the generators, the
XCL_* variables a user or tester needs, and where to start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:47 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 12:55 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 12:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/601#issuecomment-7163050655) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 02:06 UTC · original · edited 2026-11-26 02:17 UTC

Checked the map at d7c88b566f41d56b893aa077f82b8305caab6645 against both its own source tree and main b49be1836844. Using git ls-tree -r --name-only <rev> and git show <rev>:<path>, I resolved all 31 reader references for 28 environment variables, the four generator/output pairs and five relative Markdown link occurrences.

Six reader references point to tests/*.rs under the document's stated path convention. All four distinct files are actually in crates/xcl/tests/ on both revisions. The generator/output pairs and Markdown links resolved on both. I also checked the defaults in config.rs, host.rs and gpu/recomp/dxc.rs: automatic UMA is 4095 MiB for advanced title memory and 2048 otherwise, and the compile-thread setting is clamped to 1–64.

Documentation-only correction. After the edit all 31 referenced paths resolve and contain the quoted variable on both revisions. git diff --check passed. This was a source-reference check on Windows build 26100, i7-13700, Python 3.14.3. OpenAI Codex (GPT-6) wrote and ran the check and prepared the edit. Runtime behavior and the full test suite were not exercised.

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 02:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/601#issuecomment-7180464119) · edited 2026-11-26 02:17 UTC Checked the map at `d7c88b566f41d56b893aa077f82b8305caab6645` against both its own source tree and main `b49be1836844`. Using `git ls-tree -r --name-only <rev>` and `git show <rev>:<path>`, I resolved all 31 reader references for 28 environment variables, the four generator/output pairs and five relative Markdown link occurrences. Six reader references point to `tests/*.rs` under the document's stated path convention. All four distinct files are actually in `crates/xcl/tests/` on both revisions. The generator/output pairs and Markdown links resolved on both. I also checked the defaults in `config.rs`, `host.rs` and `gpu/recomp/dxc.rs`: automatic UMA is 4095 MiB for advanced title memory and 2048 otherwise, and the compile-thread setting is clamped to 1–64. [Documentation-only correction](https://github.com/RavenCurseBurg/xcl/commit/2604439e1e53570d0b9f9be4bf2877f459bab64e). After the edit all 31 referenced paths resolve and contain the quoted variable on both revisions. `git diff --check` passed. This was a source-reference check on Windows build 26100, i7-13700, Python 3.14.3. OpenAI Codex (GPT-6) wrote and ran the check and prepared the edit. Runtime behavior and the full test suite were not exercised.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/601/head:github-bot/gh-601'
git switch 'github-bot/gh-601'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-601'
git switch 'github-bot/gh-601'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-601'
git switch 'github-bot/gh-601'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-601'
git switch 'main'
git merge --squash 'github-bot/gh-601'
git switch 'main'
git merge --ff-only 'github-bot/gh-601'
git switch 'main'
git merge 'github-bot/gh-601'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.