Files
betterxen/docs/research/upstream-integration-audit.md
T

20 KiB

Upstream integration audit (2026-11-25)

Companion to the upstream registry and component reuse matrix; those two hold the canonical rows, this file holds the audit evidence behind the new ones. Evidence class D unless stated: public repository metadata, file trees and files read through the GitHub API, plus one Apple license read as text. No upstream script, installer, binary or build hook was executed and no upstream code was copied. Not legal advice. CrossOver is not installed on the reference machine (Apple M4, 24 GB, macOS 27.0 build 26A428), so nothing below was validated against CrossOver.

Contributor-reported progress (unverified)

skakwy (a BetterXen contributor) maintains skakwy/victory-mac (GPL-3.0 per GitHub; head main pushed 2026-11-25). Reports received: about 1 frame per second with a commercial game, and later "two rendered frames". Both are contributor statements. No hardware, macOS or CrossOver version, workload, instrumentation or raw data has been shared, and the repository's own README gives only build and run commands. Treat both as unverified; neither is a compatibility claim. The repository describes itself as a fork of VIctory, a project whose purpose is a leaked Xbox Series build of a commercial game (see the registry), so it is a discovery reference at documentation level only. Information worth requesting from skakwy is listed under "Contributor request" below.

Projects reviewed

Pins are the default-branch head or the commit read on 2026-11-25. "Equivalent" is what BetterXen has or lacks. Status values: implemented (code and tests on this branch), reference (read, nothing taken), rejected.

Project URL Pin Licence (file read where stated) Verified facts BetterXen equivalent Provenance Classification Status
victory-mac github.com/skakwy/victory-mac not pinned (not reviewed past README and tree) GPL-3.0 (GitHub) Rust workspace with mac/ build and run scripts for CrossOver, D3DMetal, Rosetta 2; README says "VIctory fork with a Mac build" none needed Built on a game-specific upstream whose inputs are unauthorized; file-level review not done Technical reference only reference
VIctory-macOS github.com/pragyaangaur/VIctory-macOS see registry GPL-3.0 (GitHub) Described as an attempt to run one commercial game none needed Same concern Rejected for reuse rejected
MacBox github.com/aykhanium/MacBox not pinned GPL-2.0 (GitHub) README is candid: "not playable", "retail gameplay is unverified", test suite "known failures"; layers on XCL, an Xbox Series runtime for unpacked console executables none Game-specific; also GPL-2.0-only is not combinable with GPL-3.0-or-later (see decisions) Rejected for reuse rejected
ScarlettMac github.com/paveledits/ScarlettMac not pinned GPL-2.0 (GitHub); also LICENSE-silicon-rans, SOURCE-NOTICES.md Patch set and shell scripts for XCL on CrossOver; README states game screenshots and a game-specific status none Game-specific; mixed licences Rejected for reuse rejected
PortWatch VI portwatch-vi.xyz see registry NOASSERTION Editorial tracker none Not engineering evidence Reference only reference
ossover github.com/hemkum/ossover 5c11bd7be8da GPL-3.0-or-later (README, ATTRIBUTION.md lists per-file adaptations from Whisky and highball) Swift package: SysInfo (macOS, chip, memory, Rosetta probe), Bench/MetalHUDLog (parser for metal-HUD: log lines), Bench/Harness, Store/EngineProbe, Renderer/CrossOverBottleConfig, doctor command. README: alpha, one game verified on one machine, "no benchmark numbers have been published". Its design was derived from reverse engineering a CrossOver 26.3.0 bundle Host receipt, frame statistics (this branch) Clean, attribution explicit. Reverse-engineered CrossOver internals are not a supported interface Technical reference; ideas re-implemented independently reference
Whisky github.com/Whisky-App/Whisky fd5480a76b3e GPL-3.0-or-later (file header read: "version 3 ... or (at your option) any later version") Archived 2025-05-11. WhiskyKit: bottle settings, Wine process control, PE parser, Rosetta 2 check Rust host receipt covers the Rosetta check Clear Technical reference only (Swift; no reuse path) reference
rum github.com/lunguini/rum 657461b194e1 GPL-3.0 (GitHub) Active Whisky fork: DXMT/DXVK setup, run history, graphics settings views none needed Fork of Whisky Technical reference only reference
Sikarugir github.com/Sikarugir-App/Sikarugir 5446b7d18072 none reported 23 files; hosts copies of Apple's Game Porting Toolkit documents (D3DMetal/<ver>/License.pdf) none Redistributes Apple documents; no licence of its own Reference only; no reuse reference
Sikarugir-foss-sources github.com/Sikarugir-App/Sikarugir-foss-sources not reviewed LGPL-2.1 (GitHub) Fork of Wineskin sources none Unreviewed Reference only reference
Mythic github.com/MythicApp/Mythic see registry GPL-3.0 Launcher using a custom GPTK implementation none Not reviewed Reference only reference
DXMT github.com/3Shain/dxmt see registry LGPL-2.1-or-later (LICENSE read by prior pass); GitHub shows NOASSERTION D3D11/10 on Metal under Wine Selected by CrossOver as a backend Clear External dependency (via CrossOver) reference
DXVK, VKD3D-Proton, MoltenVK see registry see registry zlib, LGPL-2.1, Apache-2.0 No change from registry none Clear External (via CrossOver) reference
Gcenx macOS Wine builds github.com/Gcenx/macOS_Wine_builds 72f8915f2d01 none reported Community Wine packages none Binary provenance unreviewed Reference only reference
llvm-mingw github.com/mstorsjo/llvm-mingw 903f4cf7faa2 NOASSERTION per GitHub; LICENSE not yet read ARM64-capable mingw toolchain toolchain probe (this branch) finds it if installed Clear External dependency (candidate for #364) reference
Wine github.com/wine-mirror/wine see registry LGPL-2.1 Upstream of CrossOver's runtime none Clear Reference reference
Apple Game Porting Toolkit licence text of D3DMetal/4.0/License.pdf, copy hosted by Sikarugir document read, 6 pages Apple proprietary agreement See next section none Third-party copy of an Apple document; the original download was not read Proprietary; user-supplied only reference

Apple Game Porting Toolkit licence (for #354)

Read from the 4.0 License.pdf copy in the Sikarugir repository (not from Apple's site; confirm against Apple's download before relying on it). Section 2A grants a limited, personal licence to install, internally use and test the software "for the sole purpose of developing, testing, or evaluating video games for use on Apple-branded products", and to distribute it "solely for non-commercial purposes". Section 2C forbids use on non-Apple hardware, says components may not be separated from the bundle except that the Framework and Redistributables may be distributed separately (still non-commercial only), and section 2D forbids reverse engineering. Consequence for BetterXen: D3DMetal stays a user-supplied external component and is never bundled or redistributed by this repository. Whether running unrelated Windows software through it fits "evaluating video games for use on Apple-branded products" is a question for a lawyer, not answered here.

Decisions

  1. No external code was incorporated. The useful general-purpose ideas (host receipt, frame statistics, toolchain probe) are small, and the closest implementations are Swift, so they were written independently in Rust from public system interfaces. ossover and Whisky are credited as technical references in this file; nothing is adapted.
  2. GPL-2.0-only projects (MacBox, ScarlettMac) cannot be combined into this GPL-3.0-or-later workspace regardless of provenance. Both are also game-specific.
  3. Undocumented CrossOver internals are not a stable interface. ossover reads cxbottle.conf and bundle internals derived from reverse engineering. The new CrossOver module reads only Info.plist, lipo -archs and the defaults keys CodeWeavers documents, and states so in its output.
  4. The Metal HUD log parser in ossover was not ported. Its line format (metal-HUD: …) is documented only by that project's observation; it was not verified against Apple documentation or a real trace here. Frame statistics therefore take plain intervals. A HUD parser can be added when a real trace is captured (#145).

Implemented on this branch

New crate crates/hybrid (betterxen-hybrid, no third-party dependencies, native arm64 verified with lipo -archs: arm64).

Command Purpose Issue Validated
host macOS version and build, chip, memory, core split, whether an x86_64 binary executes (Rosetta), GPU and Metal family from system_profiler #353 Run on the M4 reference machine; unit tests parse a GPU fixture
crossover Finds CrossOver.app in standard locations and by Spotlight bundle identifier; reads version, build, executable architectures, minimum macOS, and the documented BottleDir and ManagedBottleDirs preferences #350, #355 Unit test on a synthetic bundle only. On the reference machine it reports installed: false. It has never inspected a real CrossOver
toolchain Lists mingw-w64 and llvm-mingw cross-compilers on PATH with version and target #364 Stub-compiler unit test; on the reference machine it found Homebrew x86_64-w64-mingw32-gcc 16.2.0 and i686-w64-mingw32-gcc. No ARM64 Windows target is installed. No program was compiled or run
frames <file> Frame-time statistics: mean, FPS, nearest-rank p50/p95/p99/p99.9, 1 % and 0.1 % lows, stutter count #145 Hand-derived known-answer tests, rejection of non-positive or non-finite intervals
receipt The above as one JSON document, betterxen-hybrid-receipt/0 #353 Run once; no second contributor has reproduced it

Not implemented: launching programs, bottle management, graphics-backend selection or detection, GPU or thermal sampling, a HUD parser, any rendering workload. None is justified yet by Phase 1 evidence.

Contributor request (to send, not sent)

Ask skakwy only for shareable, general information: Mac model, macOS and CrossOver versions, how frame rate was measured and over what duration, whether the two frames were presented or merely rendered, and any general-purpose tooling and authorized test workloads he wrote himself. Do not ask for game files, traces or instructions for running the leaked build.

Remaining blockers

CrossOver is not installed here, so criteria 2 and 6 of Phase 1 cannot progress on this machine; docs/research/primary-source-verification-2026-11-25.md lists documents still to read. The Rust toolchain default (stable, 1.94.1) is older than the workspace's 1.100; use rustup run 1.100.0 cargo.

skakwy/victory-mac: component-level review (second pass)

skakwy, the repository's maintainer and a BetterXen contributor, authorized integrating his independently developed work. His permission cannot cover third-party material, and the repository's purpose fixes what most of it is. Reviewed: full history (302 commits, 65 by skakwy, 194 tracked files at 22b3f8e45a59, main on 2026-11-25), every file he authored under mac/ and tools/macos/, and the headers and authorship of the game-facing crates. Nothing was executed; the checkout stayed outside this repository with git hooks disabled.

What the reported result is

From his own mac/PROGRESS.md and mac/run-victory.sh (his statements, unverified): the workload is an unpacked Xbox Series X dump of a commercial game, about 209 GB, run through VIctory under a CrossOver Preview bottle with Rosetta 2 and D3DMetal 4.0b2 on an Apple M3 Max with 36 GB and macOS 27.2.1. "About 1 fps" is 1 to 1.9 seconds per frame in the game world over a 17-minute run ("run 31, ~1.1 fps"), with 5,000 to 7,000 draws per frame and a GPU share of 0.15 to 0.5 s of each frame, taken from VIctory's own per-frame log line. So it is real presented frames from a program VIctory drives, measured by that program, on an input that BetterXen's rules forbid. It is not reproducible here, was not measured with independent instrumentation, and says nothing about authorized workloads. It does indicate, as an unverified observation, that a Rust-built Windows x86-64 program using D3D12 can reach D3DMetal under CrossOver on macOS 27. BetterXen has no evidence of that yet; the original D3D11 workload built on this branch is the authorized way to test it once CrossOver is installed.

Component record

Original repository for every row: https://github.com/skakwy/victory-mac (GPL-3.0, file LICENSE). Author: skakwy unless stated. Permission: granted by skakwy through the maintainer, not recorded in the repository itself.

Component Source path (commit) Provenance Classification BetterXen destination and method Validation Limits
Memory guard: do not start below N % free, stop a workload below M % mac/run-victory.sh (22b3f8e45a59) skakwy only; logic is general Integrated, adapted crates/hybrid/src/memory.rs and the guard command, reimplemented in Rust, SIGTERM then SIGKILL, unreadable memory is an error 6 unit tests including a child stopped on a simulated drop; end-to-end runs of refuse, pass-through and stop; real memory_pressure -Q parsed on macOS 27.0 Output format of memory_pressure -Q is not a documented stable interface; one machine
Windows cross-link wrapper for the gnullvm target tools/macos/gnullvm-cc.sh (22b3f8e45a59) skakwy only Unnecessary here Evaluated; not functional with Homebrew llvm@17; superseded by llvm-mingw (see hybrid-toolchain.md). Awaiting clarification of the LLVM version he uses Link failure reproduced Not integrated
Build wrapper for the victory exe mac/build.sh skakwy only Unnecessary Three lines around cargo build; scripts/hybrid/build-windows-workloads.sh replaces the idea n/a n/a
CrossOver launch conventions: bin/wine --bottle B --cx-app EXE run, wineserver -k, prefix at ~/Library/Application Support/CrossOver/Bottles/B, CX_GRAPHICS_BACKEND and _VERSION mac/run-victory.sh skakwy only; observations of "CrossOver Preview" Awaiting clarification / reference Recorded for #350 as undocumented third-party observations. Not coded: they are not documented interfaces. His note that backend version 3 gave a black screen and 4 worked is game-specific evidence none Undocumented; version unknown beyond "Preview"
Rosetta observations: AVX masked stores and vcvtps2ph stores to write-watched memory hung on macOS 26, handled on 27; ROSETTA_ADVERTISE_AVX mac/PROGRESS.md, mac/run-victory.sh skakwy only Reference Hypotheses to test with an original workload; no code adopted none Unverified; tied to his loader
Native helpers: mach_vm_remap aliases as a Wine unixlib (valias), Metal zero-copy swizzle mac/unixlib/* skakwy only; the swizzle credits UTM's d3dmetal-native Rejected The swizzle acts on D3DMetal internals; Apple's licence section 2D forbids reverse engineering and his notes give D3DMetal struct offsets (+0x58, +0x28c) found that way. The alias code serves game-memory copy-back none Awaiting clarification only for valias as a generic Wine unixlib example
Instruction and shader scanner mac/scan/* skakwy only Rejected Parses the game's shader pack format and a Rosetta-unsafe instruction census of its image none Game-specific
Game-specific loader patches: watchdog stepping, masked-store and MWAIT patching, BCPack placeholder fills crates/victory-loader/*, mac/PROGRESS.md skakwy and others Rejected Defeats a title's own self-protection and patches a leaked image; never adopted none n/a
GPU layer, shader emitters, HLE (victory-gpu, victory-shader, victory-hle, victory-loader, victory-core) skakwy commits ea9da87 to 22b3f8e45a59 on top of Marvis, fxceless, Duff and others (about 260 inherited commits) Mixed: inherited files carry other authors, and the content is console-game recompilation Rejected / requires provenance His share is real but inseparable from a runtime whose input is unauthorized; the console-shader work is also native-paused scope none File-level provenance would be needed for any future reuse
Run notes (mac/PROGRESS.md, mac/new_agent.md) same skakwy only Reference Source of the context above; not copied none Contains game-specific detail, not republished

Counts for this pass: 11 component groups reviewed; 1 integrated (adapted); 0 integrated verbatim; 3 reference or awaiting clarification; 2 unnecessary; 5 rejected (some groups overlap categories above).

Other repositories, completed

  • VIctory-macOS (pragyaangaur/VIctory-macOS, 215 files): a fork whose README describes running "the Xbox Series build" of one game; PortWatch calls the efforts it tracks builds of a "leaked Xbox Series build". Workflow files fleet-*.yml orchestrate an agent fleet, not build or test infrastructure of value here. Its README says it was built "with Claude on a free Claude Pro plan" and asks for sponsorship; irrelevant to reuse. Rejected, unchanged.
  • PortWatch VI (portwatch-vi.xyz): its own description says "leaked Xbox Series build of GTA VI". Reference for discovery only, unchanged.
  • MacBox, ScarlettMac: see above; unchanged.
  • ossover CI (.github/workflows/ci.yml): a macOS arm64 runner running bash -n over shell scripts, a standard-library Python manifest check with python3 -I, and swift build/test. The two cheap ideas (shell syntax check, isolated-interpreter script) match what docs_hygiene.py already does; a bash -n step for scripts/hybrid/*.sh is a candidate follow-up, not added.

Per-file authorship of victory-mac (measured with git blame at 22b3f8e45a59)

"Owned" means every line is attributed to skakwy. His permission covers these; it cannot cover lines written by others, and some owned files still carry other restrictions.

File (lines, all his) What it is Decision
crates/victory-shader/src/emit/f64.rs (409) fp64 by 64-bit integer operations, with tests against the CPU's f64 General-purpose. Candidate for the native shader compiler; native work is paused, so it waits for a maintainer decision (#387)
mac/run-victory.sh (139), crates/victory-core/src/notes.rs (135) Run script with memory guard; stall bookkeeping Memory guard adapted (guard); stall detection and settle adapted in #385; the rest is game-specific launch configuration
mac/unixlib/*, crates/victory-gpu/src/alias.rs (369), zerocopy.rs (365), crates/victory-hle/src/modules/vmem.rs (208) Alias mappings and a Metal swizzle over game memory Not integrated: they act on D3DMetal internals and game memory (Apple's licence section 2D forbids reverse engineering; his notes give D3DMetal struct offsets)
crates/victory-loader/src/maskmov.rs (830), masked_stores.rs (243) Rewrites masked AVX stores in a console title's image for Rosetta Not integrated: the header says it follows XCL's maskmov.rs, which is GPL-2.0-only (incompatible with GPL-3.0-or-later), and it patches a title image
crates/victory-gpu/src/ambient.rs (193), mac/scan/* Replaces one game's lighting output; scans its shader pack Not integrated: game-specific
crates/victory-gpu/src/dxc.rs (110) Loads Microsoft's dxcompiler.dll to compile HLSL under Wine General-purpose. Not needed yet: D3D12 minimal tests can use SM 5.1 through d3dcompiler_47. Revisit when a workload needs SM 6
tools/macos/gnullvm-cc.sh, mac/build.sh Windows cross-link wrapper, build wrapper Evaluated; failed with Homebrew llvm@17; superseded by llvm-mingw

Everything else in the repository is mostly or entirely other authors' work (for example victory-gpu/src/host.rs is 8 % his, victory-shader/src/emit/lower.rs 1 %).