Rebases onto origin/main and retires the paused in-tree native-first workspace, legacy scripts, legacy CI, and native-only docs per ADR 0006 (preserving full history permanently at Git tag native-first-final). Addresses all maintainer review findings on PR #406: - Isolate CrossOver/Wine child process environment in bx-cli (env_clear + minimal allowlist + opt-in --inherit-env, with unit tests) - Replace naive objdump grep in scripts/build-shims.sh with strict PE Export Directory verification (exact names, ordinals, forwarders, 0 extra exports, 0 forbidden MinGW imports across all 16 DLLs / 102 exports) - Restore global * @MacosPorters/maintainers fallback in .github/CODEOWNERS alongside per-track rules - Restore independent-verification, claims/evidence-class, provenance-first, and contributor clean-room protections in AGENTS.md - Unify docs/roadmap.md, CONTRIBUTING.md, README.md, docs/README.md, THIRD_PARTY_NOTICES.md, and CHANGELOG.md around Milestones M0-M6 and ADR 0006 Signed-off-by: ates <ahmetrizaates@hotmail.com>
4.4 KiB
Contributing to BetterXen
BetterXen is a modular, CrossOver-based Xbox Series (Scarlett) compatibility layer for Apple Silicon macOS. Contributions are organized into 6 parallel tracks so 5–8+ human contributors and coding agents can work simultaneously without merge conflicts.
Active Work & Track Ownership
The single authoritative plan is docs/roadmap.md (Milestones M0–M6), supported by docs/architecture/parallel-tracks.md and the ready-to-claim Wave 1 issues in docs/issues/wave-1-backlog.md. The earlier native-first workspace was retired from main per ADR 0006 and remains preserved permanently at Git tag native-first-final.
- Pick an open unclaimed issue on your track (A–F) using
.github/ISSUE_TEMPLATE/track-handoff.yml. - Check all comments and open PRs, then claim in plain text (
Claiming — branch: track-<a..f>/<issue>-<slug>). A claim with no commits or PR after 7 days is stale and may be taken over with a reply saying so. - Work in a dedicated branch or
git worktreeand stay strictly inside the issue's exclusive file scope. - If your track needs a new cross-DLL helper or export, open a small
[ABI]PR touching onlyabi/first. Once merged, both tracks implement in parallel. - Add new synthetic PE32+ conformance binaries under
tests/conformance/test_<name>/CMakeLists.txt+main.cpp(auto-discovered by CMake — no shared-file edits needed).
Development & Verification
Requirements on Apple Silicon macOS: Rust 1.85+ (aarch64-apple-darwin), mingw-w64 & cmake (brew install mingw-w64 cmake), Python 3.11+, Rosetta 2, and CrossOver 26.3+ (externally installed, never bundled).
Run these checks before opening a PR:
cargo fmt --all -- --check
cargo clippy --locked --workspace --all-targets -- -D warnings
cargo test --locked --workspace
cargo build --locked -p bx-cli && lipo -archs target/debug/bx-cli
scripts/build-shims.sh
target/debug/bx-cli run --prefix /tmp/bx-test --shims build-shims/bin --log /tmp/bx-test.jsonl --exe build-shims/bin/test_veh_clwb.exe
target/debug/bx-cli run --prefix /tmp/bx-test --shims build-shims/bin --log /tmp/bx-test.jsonl --exe build-shims/bin/test_shim_exports.exe
python3 scripts/audit/docs_hygiene.py
Report exact commands, host hardware/macOS/CrossOver versions, and pass/fail/skip counts. Never report a skipped test or unavailable tool as a pass.
Clean-Room, Licensing & Provenance Policy
- Use publicly accessible specifications, publicly licensed software, and independently authored synthetic workloads only. Never submit leaked executables or SDKs, confidential Xbox documentation, firmware, keys, proprietary game binaries, or unauthorized shader dumps.
- Under BetterXen's clean-room policy, anyone who has accessed leaked or confidential Xbox materials must not contribute. Do not post details of restricted material in issues or PRs.
- Before incorporating third-party code, verify per-file license compatibility with
GPL-3.0-or-later, record provenance in docs/research/upstream-registry.md and docs/research/component-reuse-matrix.md, preserve copyright notices, and update THIRD_PARTY_NOTICES.md. Public visibility or a GPL license does not clear code derived from leaked material. - Never bundle or redistribute proprietary components (CrossOver, D3DMetal, Rosetta 2).
- Never claim Xbox hardware verification (BetterXen has no Xbox hardware access) or independent certification of your own work; classify evidence per docs/claims.toml.
Pull Requests & DCO Sign-Off
- Branch from
main, keep changes focused inside your track scope, link the issue withCloses #<number>, update CHANGELOG.md under[Unreleased], and update docs/README.md when adding or reorganizing docs. - Disclose material AI assistance and personally review generated changes. Never include secrets, personal paths, or credentials in patches or logs.
- Sign off every commit under the Developer Certificate of Origin:
git commit -s -m "Describe the change"
See AGENTS.md, docs/legal.md, SECURITY.md, and CODE_OF_CONDUCT.md.