diff --git a/.github/ISSUE_TEMPLATE/track-handoff.yml b/.github/ISSUE_TEMPLATE/track-handoff.yml index 8cb17379..a6df4347 100644 --- a/.github/ISSUE_TEMPLATE/track-handoff.yml +++ b/.github/ISSUE_TEMPLATE/track-handoff.yml @@ -9,6 +9,14 @@ body: Use this template to hand off work to contributors across Tracks A-F. Keep file scopes disjoint so 5-8+ contributors can work concurrently without merge conflicts. Never include proprietary game files, names, hashes, or leaked material in issues or PRs. + - type: textarea + id: zen + attributes: + label: Zen + description: 1โ€“2 plain-English sentences explaining the core purpose of this issue and why it matters. + placeholder: Enable guest allocations to stay within a 16 GiB Mac's unified memory budget so bring-up never OOMs. + validations: + required: true - type: dropdown id: track attributes: diff --git a/CHANGELOG.md b/CHANGELOG.md index a1ef9432..f6972a8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ remains unsupported. ### Added - Implemented offline `xgameruntime.dll` task queues and async completion, local user handles, synthetic game-license queries, console identity, and bottle-local storage (#418). Added a synthetic conformance executable for Lockhart and Anaconda launches. Only the marked conformance title receives an active synthetic SKU. The build also produces an unmarked control with the same executable name. Queue shutdown delivers accepted callbacks, and bottle-local storage is keyed by executable path. +- Added a visual `Progress Tracker` section to `README.md` with an M0โ€“M6 Mermaid milestone pipeline, a Track Aโ€“F live status board (`๐ŸŸฉ`/`๐ŸŸจ`/`โฌœ`), and direct GitHub label links for open M1 issues. +- Added a required `Zen` field to `.github/ISSUE_TEMPLATE/track-handoff.yml` so every track handoff issue states its core purpose briefly in plain English up front. - Added Section 0 (`First-Time Contributor Onboarding`) to `AGENTS.md` (`CLAUDE.md` symlink) giving coding agents a turnkey step-by-step onboarding flow (preflight, `bx-cli doctor`, unclaimed `status: ready` issue discovery, claiming, scoped implementation, local verification including hosts without CrossOver, DCO commit, and PR CI watching). - Overhauled the repository into a clean 6-track parallel hybrid workspace (Milestone M0) designed for 5โ€“8+ concurrent contributors and coding agents: added frozen cross-DLL ABI headers and canonical `.def` export tables (`abi/`), native ARM64 Rust workspace (`launcher/crates/{bx-cli,bx-probe,bx-telemetry}` with `env_clear()` child environment isolation, and `shader-transpiler/crates/dxbc-accc`), CMake + `mingw-w64` superbuild (`shims/`, `scripts/build-shims.sh`) producing 16 standalone x86-64 PE32+ shim DLLs (`bx_runtime_veh.dll` with working `clwb` VEH trap and JSONL logger, `xmem.dll`, `XCRDAPI.dll`, `d3d12_xs.dll`, `xg_xs.dll`, `xgameruntime.dll`, `GameInput.dll`, `AcpHal.dll`, `xapu.dll`, `chad.dll`, and PSM/ntuser forwarders) with strict PE Export Directory verification (exact names, ordinals, forwarders, zero extra exports, zero dynamic MinGW runtime dependencies), auto-discovered synthetic PE32+ conformance tests (`tests/conformance/`), `.github/workflows/hybrid-ci.yml`, `.github/ISSUE_TEMPLATE/track-handoff.yml`, `docs/adr/0006-retire-in-tree-native-workspace.md`, `docs/architecture/parallel-tracks.md`, and `docs/issues/wave-1-backlog.md`. Unified `docs/roadmap.md`, `CONTRIBUTING.md`, `AGENTS.md`, `README.md`, and `.github/CODEOWNERS` (retaining global `* @MacosPorters/maintainers` fallback and full provenance/independent-verification rules). Verified locally on Apple M5 (macOS 27.2.1, CrossOver 26.3, Rosetta 2) with all Rust checks, strict 16-DLL export verification, and live `test_veh_clwb.exe` + `test_shim_exports.exe` smoke tests passing. - Documented the original Windows workload set and Phase 1 hybrid measurement protocol (#353), including receipt-field sources, percentile definitions, negative controls and independent reproduction requirements. The protocol identifies the unmerged runner candidate and its missing raw traces and measurements; it adds no execution or compatibility claim. diff --git a/README.md b/README.md index 12a02136..c3feb8de 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,58 @@ BetterXen builds the missing Xbox Game OS layer around **CrossOver 26.3+**, **Ro --- +## Progress Tracker + +> *Tracks engineering milestones and synthetic conformance progress only โ€” not commercial game compatibility percentages.* + +```mermaid +flowchart LR + M0["M0: Foundation & Shims\n(Merged #406)"]:::done + M1["M1: Boot to D3D12\n(Active โ€” Milestone #17)"]:::active + M2["M2: First Frame &\nShader Gate"]:::planned + M3["M3: Shaders &\nTexture Tiling"]:::planned + M4["M4: 3D, DXR/BVH\n& Input"]:::planned + M5["M5: Audio, Saves\n& Stability"]:::planned + M6["M6: Cache & 16 GB\nOptimization"]:::planned + + M0 --> M1 --> M2 --> M3 --> M4 --> M5 --> M6 + + classDef done fill:#dafbe1,stroke:#1a7f37,color:#0f5323,stroke-width:2px + classDef active fill:#ddf4ff,stroke:#0969da,color:#0a3069,stroke-width:2px + classDef planned fill:#f6f8fa,stroke:#8c959f,color:#57606a +``` + +Legend: ๐ŸŸข **Done / Merged** ยท ๐Ÿ”ต **Active Milestone** ยท โšช **Planned** + +### Active Milestone โ€” [M1: Startup Shims to `D3D12XboxCreateDevice`](https://github.com/MacosPorters/betterxen/milestone/17) + +| Track | Focus | Visual Status | Live Issues | +| --- | --- | --- | --- | +| **Track A** | `bx-cli` supervision, `clwb` VEH + crash dumper, Win32 bridge | `๐ŸŸจ๐ŸŸจ๐ŸŸจ` *(3/3 PRs open)* | [View Track A](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+A%22) | +| **Track B** | `xmem.dll` core + physical/scatter pages, `XCRDAPI.dll` DirectStorage | `๐ŸŸจ๐ŸŸจ๐ŸŸจ` *(3/3 PRs open)* | [View Track B](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+B%22) | +| **Track C** | `d3d12_xs.dll` COM proxy (D3DMetal 3.0), `xg_xs.dll` texture computer | `โฌœโฌœ` *(needs contributors!)* | [View Track C](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+C%22) | +| **Track D** | `dxbc-accc` FSPX C ABI bridge, `d3dmetal-native` harness | `๐ŸŸจโฌœ` *(1 PR open, 1 ready)* | [View Track D](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+D%22) | +| **Track E** | `xgameruntime.dll` offline GDK, `AcpHal`/`xapu`/`chad`, `GameInput` | `๐ŸŸจ๐ŸŸจ` *(2/2 PRs open)* | [View Track E](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+E%22) | +| **Track F** | End-to-end synthetic boot fixture (`test_integration_boot`) | `๐ŸŸจ` *(1/1 PR open)* | [View Track F](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+F%22) | + +`๐ŸŸฉ` Merged & verified ยท `๐ŸŸจ` PR open / in review ยท `โฌœ` Open & ready to claim + +### Milestone Roadmap (M0 โ†’ M6) + +| Milestone | Scope | Status | +| --- | --- | --- | +| **M0 โ€” Repo, ABI & Cross-Build** | 6-track layout, frozen `abi/`, ARM64 `bx-cli`, 16 cross-compiled PE32+ shims, live CrossOver + Rosetta 2 smoke tests (`test_veh_clwb`, `test_shim_exports`) | ๐ŸŸข **Merged (`#406`)** | +| **M1 โ€” Boot to `D3D12XboxCreateDevice`** | Full startup shim coverage (`xmem` physical/scatter pages, `XCRDAPI` async file reads, `d3d12_xs` auto-logging COM proxy, offline `xgameruntime`, audio queue stubs) | ๐Ÿ”ต **Active ([Milestone #17](https://github.com/MacosPorters/betterxen/milestone/17))** | +| **M2 โ€” First Frame & Shader Gate** | `PresentX` โ†’ `IDXGISwapChain3::Present` via D3DMetal 3.0; inspect runtime shaders to select DXIL fast path vs. `ACCC`/`FSPX` RDNA 2 transpilation | โšช Planned | +| **M3 โ€” Shaders, Streaming & Textures** | DirectStorage decompression, RDNA 2 `xg_xs` texture deswizzling, full shader pipeline | โšช Planned | +| **M4 โ€” 3D Rendering, DXR/BVH & Input** | BVH4 rehydration โ†’ live D3DMetal 3.0 DXR rebuild, PC FidelityFX/MetalFX upscaling shim, full `GameInput` | โšช Planned | +| **M5 โ€” Audio, Saves & Stability** | Software audio/DSP decoding (`AcpHal`/`xapu`/`chad`), `PersistentLocalStorage`, multi-hour soak stability | โšช Planned | +| **M6 โ€” Cache, 16 GB Tuning & Polish** | Persistent PSO/shader disk cache, Lockhart 16 GB unified memory optimization, Metal System Trace tuning | โšช Planned | + +See [docs/architecture/parallel-tracks.md](docs/architecture/parallel-tracks.md) and [docs/roadmap.md](docs/roadmap.md) for full details. + +--- + ## Architecture Rosetta 2 executes x86-64 CPU code (including AVX/AVX2/FMA/F16C/BMI1/BMI2/128-bit VAES when launched with `ROSETTA_ADVERTISE_AVX=1`), CrossOver/Wine provides Win32/NT/CRT/XAudio2/WinHTTP, and D3DMetal 3.0 translates Direct3D 12 + DXR onto Metal. BetterXen supplies the modular Xbox Game OS shims, `clwb` exception handling, shader bridge, and ARM64 orchestration around that stack. @@ -89,22 +141,6 @@ The repository is organized into disjoint track directories around a single froz --- -## Milestones - -| Milestone | Scope | Status | -| --- | --- | --- | -| **M0 โ€” Repo, ABI & Cross-Build** | 6-track layout, frozen `abi/`, ARM64 `bx-cli`, 16 cross-compiled PE32+ shims, live CrossOver + Rosetta 2 smoke tests (`test_veh_clwb`, `test_shim_exports`) | **Verified locally on Apple M5** | -| **M1 โ€” Boot to `D3D12XboxCreateDevice`** | Full startup shim coverage (`xmem` physical/scatter pages, `XCRDAPI` async file reads, `d3d12_xs` auto-logging COM proxy, offline `xgameruntime`, audio queue stubs) | **Open (Wave 1 backlog ready)** | -| **M2 โ€” First Frame & Shader Gate** | `PresentX` โ†’ `IDXGISwapChain3::Present` via D3DMetal 3.0; inspect runtime shaders to select DXIL fast path vs. `ACCC`/`FSPX` RDNA 2 transpilation | Planned | -| **M3 โ€” Shaders, Streaming & Textures** | DirectStorage decompression, RDNA 2 `xg_xs` texture deswizzling, full shader pipeline | Planned | -| **M4 โ€” 3D Rendering, DXR/BVH & Input** | BVH4 rehydration โ†’ live D3DMetal 3.0 DXR rebuild, PC FidelityFX/MetalFX upscaling shim, full `GameInput` | Planned | -| **M5 โ€” Audio, Saves & Stability** | Software audio/DSP decoding (`AcpHal`/`xapu`/`chad`), `PersistentLocalStorage`, multi-hour soak stability | Planned | -| **M6 โ€” Cache, 16 GB Tuning & Polish** | Persistent PSO/shader disk cache, Lockhart 16 GB unified memory optimization, Metal System Trace tuning | Planned | - -See [docs/architecture/parallel-tracks.md](docs/architecture/parallel-tracks.md) and [docs/roadmap.md](docs/roadmap.md) for full details. - ---- - ## Quick Start ### Requirements