mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-12-03 11:12:27 +00:00
BetterXen Documentation
Getting Started & Architecture
- Project README — Overview, quick start,
bx-clicommands, and verified scope. - Roadmap — Single authoritative plan: the foundation milestones (M0–M2) and the stages the target build reaches (Boot, Picture, Menus, World, Fidelity, Playable), with exit gates and decision gates.
- Working Method — What an agent does when told "work" — the blocker queue, run protocol, source ranks, pull-request shape and the starting queue.
- Parallel Track Architecture — Which track owns which directories, and how the tracks stay apart (one blocker per pull request, ABI first, self-contained tests). The rules themselves are in
AGENTS.md. - Wave 1 Parallel Backlog — Non-overlapping starter issues across Tracks A–F.
- Frozen ABI Contracts — Cross-DLL C headers (
abi/include/) and canonical.defexport tables (abi/defs/). - Synthetic Conformance Suite — Auto-discovered PE32+ conformance binaries.
- Changelog — Unreleased and historical changes.
Architecture Decision Records
- ADR 0005: CrossOver-based hybrid direction — Pivot to CrossOver + Rosetta 2 + D3DMetal as the external foundation.
- ADR 0006: Retire in-tree native-first workspace — Retirement of paused native code/scripts/docs from
main(preserved at Git tagnative-first-final). - ADR 0007: API-set win32_bridge shims under CrossOver — Accepted: CrossOver answers the six API-set import names itself, so the shims are not loaded for static imports.
- ADR 0008: M2 Shader Format Gate — Proposed: Branch D1 (DXIL through D3DMetal, with the measured wave64 and 64-bit-atomic gaps as M3 work); ACCC-only containers refused with
E_NOTIMPLuntil a lawful format source exists. - ADR 0010: The GDK's own libraries at run time — Accepted: console texture layouts and BCPack come from the GDK's own PC libraries (
xg_xs.dll,BCPack.dll), and translated shaders are compiled with its PCdxcompiler.dll; all are staged bybx-cli runfor the target build from each machine's GDK, and never reimplemented, committed or shipped. - ADR 0009: Xbox-layout D3D12 objects — Proposed:
d3d12_xsgives titles objects with the Xbox object layout and function-table order (generated from the Xbox header), hosting the PC proxies; Phase 1 covers the device chain and the objects it creates.
Research, Testing & Licensing
- Target-Build Bring-Up: Development Cycle and Review — How contributors run a project-authorized target build offline, turn findings into single-track PRs, and review them independently without proprietary details.
- Hybrid Workloads & Measurement Protocol — Original Windows workloads, receipt fields, timing conventions, and negative controls.
- CrossOver Licensing & Redistribution Boundaries — Per-component license review for CrossOver, Wine, DXMT, DXVK, VKD3D-Proton, MoltenVK, D3DMetal, and Rosetta 2.
- Upstream Research Registry & Component Reuse Matrix — Public upstream evaluation and provenance screening.
- Primary-Source Verification (2026-11-25) & Hybrid Backlog Research Record — Vendor documentation verification notes.
- D3D12 Swapchain References under D3DMetal — Swapchain lifetime results across two Apple Silicon hosts and CrossOver builds.
- gfx10-translate — BetterXen's GFX10.3 console shader translator: container reader, decoder with an LLVM-generated opcode table, HLSL translation ported from the Python prototype, coverage over local shaders, and how to add an instruction.
- Shader Corpus — Phase 0 of the console shader translator: BetterXen-authored kernels built locally into console containers, Microsoft ISA listings and PC DXIL, with the derived
FSPXcode-section layout (#649). - D3DMetal GPU Limits — Constraints a shader translator targeting D3DMetal must handle, measured by the
test_d3dmetal_gpu_limitsfixture (WaveSize(64)and SM 6.6 64-bit atomics not run, bounded lock emulation), plus unverified reports kept separate as leads (#453). - Console Compute Shader Entry ABI — Wave size, root-argument registers, descriptor forms and binding metadata observed from the NewBE backend of Microsoft's Series X|S PIX shader compiler on project-authored probes (class U: an authorized, not yet independently reproduced observation; inferred register roles).
- Public Technical References, Xbox GDK Notes, RDNA 2 Notes, and Shader Containers — Public specification references for shim and shader work.
Governance, Security & Legal
- Engineering & Agent Rules (
CLAUDE.mdsymlink) — Mandatory rules for human contributors and coding agents. - Contributing Guidelines — Claiming, verification, provenance policy, and DCO sign-off.
- Claims & Evidence Classes — Scoped claims with an evidence-class legend (A, B, D, E, U); classes describe evidence type, not Xbox hardware verification.
- Legal Scope, Dependency Licensing, and Third-Party Notices — Input policy, attribution, and redistribution boundaries.
- Threat Model & Security Policy — Isolation boundaries and vulnerability reporting.