Bring M1 status and exit-gate documents up to date

Show merged and open M1 issues in the README tracker and Wave 1 backlog, mark
M1 in development, and name each of the 13 exit-gate binaries with its
expected result. Fix the boot fixture's name and path. M1 is not marked
verified.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
This commit is contained in:
atharvranjan committed 2026-11-26 10:19:19 -06:00
1 parent bfa80dee8b
commit fb28940f4b
4 files changed
+67 -17

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ remains unsupported.
- Removed the "PR template" check (`.github/workflows/pr-template.yml`, `scripts/pr_template_check.py` and its tests) and its CI test step. Also removed `.github/PULL_REQUEST_TEMPLATE.md`. Pull request descriptions are no longer validated or pre-filled; CONTRIBUTING.md still asks for the same information and the claim-first rule still applies.
### Changed
- Brought the README tracker, roadmap and Wave 1 backlog up to date with M1, and named each M1 exit-gate binary with its expected result. The gate is not met and M1 is not marked verified (#447).
- Replaced the native-first development plan with a CrossOver-based hybrid roadmap (`docs/roadmap.md`: five provisional phases, only Phase 1 active; the earlier H0 to H7 breakdown is archived) and an accepted-direction ADR 0005. No hybrid component exists yet and no Xbox title is shown to run; this is planning and research scheduling only, and no phase is verified complete.
- Rewrote the engineering rules in `AGENTS.md` (`CLAUDE.md` is a symlink to it) to permit CrossOver, Wine-based infrastructure, Rosetta 2 and D3DMetal subject to licensing, while keeping the honesty, independent-verification, provenance and clean-room rules and adding dependency and reuse rules. Resolves #345.
- Native work is preserved and paused: tag `native-first-final` marks the last `main` commit before this change, `docs/research/native-roadmap.md`, and archived native-first plan and milestones under `docs/archive/`. GitHub backlog: all native issues except four with assigned contributors and open pull requests were closed as not planned and indexed in `docs/research/native-issue-archive.md`; future-phase issues were parked in the roadmap; only the Phase 1 milestone is open.
+13 -11
View File
@@ -9,13 +9,13 @@
![Platform: Apple Silicon](https://img.shields.io/badge/platform-Apple%20Silicon%20(ARM64)-1f6feb?logo=apple&logoColor=white)
![Graphics: D3DMetal 3.0](https://img.shields.io/badge/graphics-D3DMetal%203.0%20%2F%20Metal-8957e5)
![Stack: Rust + C++20 PE32+](https://img.shields.io/badge/stack-Rust%20%2B%20C%2B%2B20%20PE32%2B-dea584)
![Status: experimental](https://img.shields.io/badge/status-experimental%20(M0)-d29922)
![Status: experimental](https://img.shields.io/badge/status-experimental%20(M1)-d29922)
![License: GPL-3.0-or-later](https://img.shields.io/badge/license-GPL--3.0--or--later-2ea043)
</div>
> [!IMPORTANT]
> **Experimental status.** BetterXen is an active, open-source compatibility engineering project currently at **Milestone M0** (cross-compiled shim foundation and live CrossOver/Rosetta smoke tests verified on synthetic PE32+ workloads). **Commercial Xbox game execution is not yet supported.** CrossOver, Rosetta 2, and D3DMetal are externally installed dependencies and are never bundled or redistributed.
> **Experimental status.** BetterXen is an active, open-source compatibility engineering project currently at **Milestone M1** (in development). The M0 foundation is merged; only synthetic PE32+ workloads have been run. **Commercial Xbox game execution is not yet supported.** CrossOver, Rosetta 2, and D3DMetal are externally installed dependencies and are never bundled or redistributed.
BetterXen builds the missing Xbox Game OS layer around **CrossOver 26.3+**, **Rosetta 2**, and **D3DMetal 3.0** on Apple Silicon:
- **Native ARM64 macOS tooling** (`launcher/`, Rust) for host diagnostics, PE32+ static probing, CrossOver bottle orchestration, and structured trace aggregation.
@@ -52,16 +52,18 @@ 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) |
Snapshot of 2026-11-26. The [milestone page](https://github.com/MacosPorters/betterxen/milestone/17) is current.
`🟩` Merged & verified · `🟨` PR open / in review · `⬜` Open & ready to claim
| Track | Focus | Merged | Open | Live Issues |
| --- | --- | --- | --- | --- |
| **Track A** | `bx-cli` supervision, `clwb` VEH + crash dumper, Win32 bridge | #409, #410 | #408, #437 | [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 | #411, #412, #413 | #442 | [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 | #414, #415 | #443, #444 | [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 | #416, #417 | #445 | [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` | #418, #419 | #439 | [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`) | #420 | #446 | [View Track F](https://github.com/MacosPorters/betterxen/issues?q=is%3Aopen+label%3A%22track%3A+F%22) |
"Merged" means the issue's pull request is on `main`. It does not mean the result was independently verified, and some merged issues have follow-ups in the Open column.
### Milestone Roadmap (M0 → M6)
+24 -4
View File
@@ -1,6 +1,26 @@
# Wave 1 Parallel Contributor Backlog (M0 → M1)
All issues below have **disjoint file scopes** and can be claimed simultaneously by **6–10 contributors** as soon as M0 lands on `main`. Each issue uses `.github/ISSUE_TEMPLATE/track-handoff.yml`.
All issues below were written with **disjoint file scopes** so contributors could work in parallel after M0. Each issue uses `.github/ISSUE_TEMPLATE/track-handoff.yml`. The entries below record the original contracts, not what was delivered.
## Status as of 2026-11-26
| Entry | Issue | State | Follow-up |
| --- | --- | --- | --- |
| M1-A1 | #408 | open | |
| M1-A2 | #409 | merged | |
| M1-A3 | #410 | merged | #437 |
| M1-B1 | #411 | merged; hook dispatch not implemented | #442 |
| M1-B2 | #412 | merged | |
| M1-B3 | #413 | merged | |
| M1-C1 | #414 | merged; newer interfaces not proxied | #443, #444 |
| M1-C2 | #415 | merged | |
| M1-D1 | #416 | merged; not reachable from Windows guests, no histogram | #445 |
| M1-D2 | #417 | merged | |
| M1-E1 | #418 | merged | #439 (open) |
| M1-E2 | #419 | merged | |
| M1-F1 | #420 | merged; stages still pending | #437, #446 |
The [milestone page](https://github.com/MacosPorters/betterxen/milestone/17) is current. The exit gate is in the [roadmap](../roadmap.md#m1-exit-gate).
---
@@ -86,7 +106,7 @@ All issues below have **disjoint file scopes** and can be claimed simultaneously
## Track F — Conformance, Integration & Telemetry
### `[M1-F1]` End-to-End Synthetic Mini-Engine Fixture (`tests/integration/`)
- **Scope:** `tests/conformance/**`, `tests/integration/**`
### `[M1-F1]` End-to-End Synthetic Mini-Engine Fixture (`tests/conformance/test_integration_boot/`)
- **Scope:** `tests/conformance/**`
- **Contract:** Build a single synthetic PE32+ executable that simultaneously links `xmem.dll`, `XCRDAPI.dll`, `d3d12_xs.dll`, `xg_xs.dll`, `xgameruntime.dll`, `AcpHal.dll`, `xapu.dll`, `chad.dll`, `GameInput.dll`, `psm-appnotify`, and `ntuser` forwarders, executes AVX2 + `clwb`, initializes every subsystem in startup order, and verifies zero unresolved symbols and clean shutdown.
- **Test:** Passes end-to-end via `bx-cli run --exe build-shims/bin/integration_boot.exe`.
- **Test:** Passes end-to-end via `bx-cli run --shims build-shims/bin --exe build-shims/bin/test_integration_boot.exe`.
+29 -2
View File
@@ -36,8 +36,8 @@ Priorities, in order: practical compatibility, correctness, stability, observabi
| Milestone | Objective | Exit Gate | Status |
| --- | --- | --- | --- |
| **M0 — Repo, ABI & Cross-Build** | Establish 6-track directory layout (`abi/`, `launcher/`, `shims/`, `shader-transpiler/`, `tests/conformance/`), frozen `.def`/header contracts, env-isolated `bx-cli`, strict PE Export Directory verifier, and live CrossOver + Rosetta 2 smoke tests (`test_veh_clwb.exe`, `test_shim_exports.exe`) | ARM64 Rust checks green; 16/16 PE32+ DLLs pass strict export & zero-MinGW-dep verification; both synthetic EXEs pass live under CrossOver + Rosetta 2 | **In validation (PR #406)** |
| **M1 — Startup Shims to `D3D12XboxCreateDevice`** | Complete Wave 1 parallel issues across Tracks A–F: full `clwb` + crash register VEH, `xmem` core + physical/scatter page engine + Lockhart cap, `XCRDAPI` async file I/O MVP, `d3d12_xs` auto-logging COM proxy over Wine `d3d12.dll`, `xg_xs` linear-compatible layout MVP, `dxbc-accc` C ABI hook + `d3dmetal-native` evaluation, offline `xgameruntime`, non-blocking `AcpHal`/`xapu`/`chad` stubs, `GameInput` `@1`, and combined synthetic integration boot fixture | All 13 Wave 1 conformance binaries pass under CrossOver + Rosetta 2; combined `integration_boot.exe` initializes every subsystem cleanly | **Next (Wave 1 ready)** |
| **M0 — Repo, ABI & Cross-Build** | Establish 6-track directory layout (`abi/`, `launcher/`, `shims/`, `shader-transpiler/`, `tests/conformance/`), frozen `.def`/header contracts, env-isolated `bx-cli`, strict PE Export Directory verifier, and live CrossOver + Rosetta 2 smoke tests (`test_veh_clwb.exe`, `test_shim_exports.exe`) | ARM64 Rust checks green; 16/16 PE32+ DLLs pass strict export & zero-MinGW-dep verification; both synthetic EXEs pass live under CrossOver + Rosetta 2 | **In validation** (merged, #406) |
| **M1 — Startup Shims to `D3D12XboxCreateDevice`** | Complete Wave 1 parallel issues across Tracks A–F: full `clwb` + crash register VEH, `xmem` core + physical/scatter page engine + Lockhart cap, `XCRDAPI` async file I/O MVP, `d3d12_xs` auto-logging COM proxy over Wine `d3d12.dll`, `xg_xs` linear-compatible layout MVP, `dxbc-accc` C ABI hook + `d3dmetal-native` evaluation, offline `xgameruntime`, non-blocking `AcpHal`/`xapu`/`chad` stubs, `GameInput` `@1`, and combined synthetic integration boot fixture | All 13 Wave 1 conformance binaries meet their expected result under CrossOver + Rosetta 2; the combined `test_integration_boot.exe` initializes every subsystem cleanly ([M1 exit gate](#m1-exit-gate)) | **In development** |
| **M2 — First Rendered Frame & Shader Format Gate** | Implement `d3d12_xs` swapchain presentation (`PresentX` → `IDXGISwapChain3::Present`), placed resources over `xmem`, and `dxbc-accc` shader inspection to establish whether target runtime shader corpora use **DXIL (Branch D1)** or **console-compiled `ACCC`/`FSPX` RDNA 2 ISA (Branch D2)** | Synthetic D3D12 `PresentX` workload renders and verifies pixel readback through D3DMetal 3.0; M2 Gate ADR selects Branch D1 or Branch D2 | Planned |
| **M3 — Full Shaders, Streaming & Texture Correctness** | DirectStorage decompression, accurate RDNA 2 (`gfx1030`) `xg_xs` tile-addressing & deswizzling, full `d3d12_xs` command-list/barrier/GPUVA fidelity, and Branch D1 DXIL normalization or Branch D2 `ACCC`/`FSPX` → DXIL/MSL transpiler | Synthetic textured/swizzled, compute, multi-queue, and compressed DirectStorage conformance suites pass | Planned |
| **M4 — 3D Rendering, DXR/BVH4 & Upscaling** | Bridge `XboxBvhBuilder` / `ID3D12StateObject` ray tracing to D3DMetal 3.0 DXR (intercepting incompatible AMD BVH4 rehydration → live rebuild), provide PC FidelityFX / MetalFX upscaling shim, and wire full `GameInput` controller/KB/M input | Synthetic DXR + upscaled 3D scene and scripted `GameInput` conformance tests pass | Planned |
@@ -46,6 +46,33 @@ Priorities, in order: practical compatibility, correctness, stability, observabi
---
## M1 Exit Gate
Build with `scripts/build-shims.sh`, then run each binary under `build-shims/bin/` with
`bx-cli run --shims build-shims/bin --exe <binary>` (with `--bottle` or `--prefix`).
| Binary | Expected result |
| --- | --- |
| `test_audio_input.exe` | exit 0 |
| `test_d3d12_xs.exe` | exit 0 |
| `test_integration_boot.exe` | exit 0 with 0 failed and 0 pending stages |
| `test_shim_exports.exe` | exit 0 |
| `test_veh_clwb.exe` | exit 0 |
| `test_veh_unhandled.exe` | non-zero exit (it crashes on purpose) and one `unhandled_exception` record in the log |
| `test_win32_bridge.exe` | exit 0 |
| `test_xcrdapi.exe` | exit 0 |
| `test_xg_xs.exe` | exit 0 |
| `test_xgameruntime.exe` | exit 0, synthetic license active |
| `unentitled/test_xgameruntime.exe` | exit 0, synthetic license inactive |
| `test_xmem.exe` | exit 0 |
| `test_xmem_physical.exe` | exit 0 |
A boot stage reported as `pending` did not initialize, so it does not satisfy the gate even though
the program exits 0 without `--strict`. The gate is not met while any stage is pending (see #437
and #446) or until someone other than the implementer has reproduced the results.
---
## How Progress Is Reported
Milestone status is one of: `Planned`, `In development`, `In validation`, `Verified complete`, or `Blocked`. A milestone reaches `Verified complete` only after independent verification of its exit gate per [AGENTS.md](../AGENTS.md).