Merge pull request #378 from MacosPorters/planning/hybrid-first-transition

Transition to a CrossOver-based hybrid direction with progressive planning; archive native work
This commit is contained in:
atharvranjan authored and GitHub committed 2026-11-25 14:32:48 -06:00
commit 77cec214c0
29 files changed
+1109 -202

No files matched your search

+3 -2
View File
@@ -7,8 +7,9 @@ body:
id: area
attributes:
label: Area
description: "cpu: translation, DBT, PE loading, guest startup, guest memory. gpu: RDNA2, shaders, Metal. runtime: Win32, CRT, C++ runtime, import generation, OS services, platform abstractions. shared: cross-subsystem interfaces. qa: verification, regression, security review."
description: "hybrid: CrossOver integration, configuration, diagnostics, benchmarks (active). The areas below are preserved native research unless hybrid work requires them. cpu: translation, DBT, PE loading, guest startup, guest memory. gpu: RDNA2, shaders, Metal. runtime: Win32, CRT, C++ runtime, import generation, OS services, platform abstractions. shared: cross-subsystem interfaces. qa: verification, regression, security review."
options:
- hybrid
- cpu
- gpu
- runtime
@@ -43,7 +44,7 @@ body:
id: files
attributes:
label: Files
description: Paths the task may edit, one per line: exact paths, directories ending in "/", or globs with * and **. Two claimed tasks never overlap.
description: 'Paths the task may edit, one per line: exact paths, directories ending in "/", or globs with * and **. Two claimed tasks never overlap.'
render: text
validations:
required: true
+30 -15
View File
@@ -1,42 +1,57 @@
name: Bug report
description: Report a reproducible defect in Xenora or XenoMetal.
description: A reproducible defect.
title: "bug: "
labels: [bug]
body:
- type: markdown
attributes:
value: |
Use synthetic or authorized inputs only. For vulnerabilities, follow SECURITY.md. Remove personal paths, credentials and private data from logs.
value: 'Active work is the CrossOver-based hybrid architecture (docs/roadmap.md). Use independently authored or authorized workloads only; never link leaked builds, confidential SDKs or private documentation. Claim by replying on the issue. For vulnerabilities follow SECURITY.md.'
- type: textarea
id: description
attributes:
label: Description
description: What went wrong? Identify the affected subsystem and expected behavior.
description: 'What went wrong and what you expected.'
validations:
required: true
- type: textarea
id: steps
attributes:
label: Reproduction steps
description: Include exact commands and a minimal, legally distributable input if applicable.
description: 'Exact commands and a minimal, legally distributable input.'
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: Commit, macOS, Apple GPU, RAM, Rust, Xcode and relevant tool versions. Include sanitized doctor output if available.
description: 'Commit, macOS, chip, memory, CrossOver and Rosetta 2 versions, graphics backend. Remove personal paths and credentials.'
validations:
required: true
- type: textarea
id: output
id: scope
attributes:
label: Actual output and diagnostics
description: Include expected versus actual results, validation-layer messages and relevant logs.
- type: checkboxes
id: confirmation
label: Scope and dependencies
description: 'Affected area; related issues.'
validations:
required: false
- type: textarea
id: acceptance
attributes:
label: Confirmation
options:
- label: I searched for existing reports and have not included sensitive or unauthorized material.
required: true
label: Acceptance criteria
description: 'When is this fixed?'
validations:
required: true
- type: textarea
id: validation
attributes:
label: Validation requirements
description: 'How to confirm the fix independently.'
validations:
required: true
- type: textarea
id: licensing
attributes:
label: Licensing and provenance
description: 'Only if third-party code or a dependency is involved.'
validations:
required: false
+50
View File
@@ -0,0 +1,50 @@
name: Documentation
description: Fix, add or restructure documentation.
title: "docs: "
labels: [documentation]
body:
- type: markdown
attributes:
value: 'Active work is the CrossOver-based hybrid architecture (docs/roadmap.md). Use independently authored or authorized workloads only; never link leaked builds, confidential SDKs or private documentation. Claim by replying on the issue.'
- type: textarea
id: problem
attributes:
label: Problem
description: 'What is unclear, wrong or missing.'
validations:
required: true
- type: textarea
id: context
attributes:
label: Technical context
description: 'Pages and sources involved.'
validations:
required: true
- type: textarea
id: scope
attributes:
label: Scope
description: 'Files to change; update docs/README.md if pages are added or moved.'
validations:
required: true
- type: textarea
id: dependencies
attributes:
label: Dependencies
description: 'None if none.'
validations:
required: true
- type: textarea
id: acceptance
attributes:
label: Acceptance criteria
description: 'Claims are scoped to their evidence; links work.'
validations:
required: true
- type: textarea
id: validation
attributes:
label: Validation requirements
description: 'scripts/audit/docs_hygiene.py and claims audit pass.'
validations:
required: true
-31
View File
@@ -1,31 +0,0 @@
name: Feature proposal
description: Propose a compiler, graphics, tooling or other project enhancement.
title: "feat: "
labels: [enhancement]
body:
- type: textarea
id: problem
attributes:
label: Problem or gap
description: Which limitation does this feature address?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed approach
description: Explain the intended behavior and affected components. Link relevant public specifications when available.
validations:
required: true
- type: textarea
id: criteria
attributes:
label: Acceptance criteria
description: What observable results and tests would demonstrate completion?
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives and trade-offs
description: Include limitations, dependency costs or impacts on native ARM64 and Metal if relevant.
-31
View File
@@ -1,31 +0,0 @@
name: Hardware verification report
description: Submit real hardware test results for Xenora.
title: "hardware: "
labels: [needs-verification]
body:
- type: textarea
id: environment
attributes:
label: Test environment
description: Commit, Apple chip/GPU, RAM, macOS, Xcode/Metal version, Rust version, validation settings. Do not include serial numbers or registry IDs.
validations:
required: true
- type: textarea
id: commands
attributes:
label: Commands and inputs
description: Include exact commands and synthetic or authorized fixture identifiers.
validations:
required: true
- type: textarea
id: results
attributes:
label: Results
description: Report actual output, pass/fail/skip counts, and limitations. Compilation alone does not prove execution.
validations:
required: true
- type: textarea
id: performance
attributes:
label: Performance data (optional)
description: Include repetitions, warm-up, timing method, validation state and variability if reporting measurements.
+57
View File
@@ -0,0 +1,57 @@
name: Hybrid engineering task
description: Integration, configuration, diagnostics or tooling around CrossOver.
title: "task: "
labels: [track: hybrid]
body:
- type: markdown
attributes:
value: 'Active work is the CrossOver-based hybrid architecture (docs/roadmap.md). Use independently authored or authorized workloads only; never link leaked builds, confidential SDKs or private documentation. Claim by replying on the issue.'
- type: textarea
id: problem
attributes:
label: Problem
description: 'What is missing or wrong, and why it matters for the hybrid architecture.'
validations:
required: true
- type: textarea
id: context
attributes:
label: Technical context
description: 'Versions (macOS, chip, CrossOver, Rosetta 2, graphics backend), related issues, upstream references.'
validations:
required: true
- type: textarea
id: scope
attributes:
label: Scope
description: 'What is in and out. Avoid duplicating what CrossOver already provides.'
validations:
required: true
- type: textarea
id: dependencies
attributes:
label: Dependencies
description: "Blocking issues or decisions; write 'none' if none."
validations:
required: true
- type: textarea
id: acceptance
attributes:
label: Acceptance criteria
description: 'Observable, checkable results.'
validations:
required: true
- type: textarea
id: validation
attributes:
label: Validation requirements
description: 'How an independent contributor verifies it; commands, workloads, evidence class.'
validations:
required: true
- type: textarea
id: licensing
attributes:
label: Licensing and provenance
description: "Licenses of any component involved, source and version, and whether anything would be bundled or copied. Write 'not applicable' if none."
validations:
required: true
+57
View File
@@ -0,0 +1,57 @@
name: Performance investigation
description: Measure or improve performance with evidence.
title: "perf: "
labels: [performance,track: hybrid]
body:
- type: markdown
attributes:
value: 'Active work is the CrossOver-based hybrid architecture (docs/roadmap.md). Use independently authored or authorized workloads only; never link leaked builds, confidential SDKs or private documentation. Claim by replying on the issue. Do not promise gains before measuring.'
- type: textarea
id: problem
attributes:
label: Problem and metric
description: 'Which metric (average FPS, 1% low, frame-time percentiles, CPU or GPU use, memory, startup, shader compile latency) and why.'
validations:
required: true
- type: textarea
id: context
attributes:
label: Technical context
description: 'Workload, hardware (reference: M4, 24 GB), software versions, settings.'
validations:
required: true
- type: textarea
id: scope
attributes:
label: Scope
description: 'Measurement only, or change as well.'
validations:
required: true
- type: textarea
id: dependencies
attributes:
label: Dependencies
description: 'Measurement protocol (#353) and baseline (#355).'
validations:
required: true
- type: textarea
id: acceptance
attributes:
label: Acceptance criteria
description: 'Measured before-and-after under equivalent conditions, with variance.'
validations:
required: true
- type: textarea
id: validation
attributes:
label: Validation requirements
description: 'Correctness and rendering equivalence verified before the result counts.'
validations:
required: true
- type: textarea
id: licensing
attributes:
label: Licensing and provenance
description: "Licenses of any component involved, source and version, and whether anything would be bundled or copied. Write 'not applicable' if none."
validations:
required: true
+37 -22
View File
@@ -1,42 +1,57 @@
name: Technical research
description: Record an ISA, Metal or publicly documented graphics research finding.
name: Upstream research or dependency evaluation
description: Assess a project, component or license from public sources.
title: "research: "
labels: [research]
labels: [research,track: hybrid]
body:
- type: markdown
attributes:
value: Use only public, authorized sources. Do not link to leaked SDKs, private documentation or unauthorized game content.
value: 'Active work is the CrossOver-based hybrid architecture (docs/roadmap.md). Use independently authored or authorized workloads only; never link leaked builds, confidential SDKs or private documentation. Claim by replying on the issue.'
- type: textarea
id: question
id: problem
attributes:
label: Research question or finding
label: Question
description: 'The decision this research informs.'
validations:
required: true
- type: textarea
id: sources
id: context
attributes:
label: Sources and applicability
description: URLs, specification sections or revision, exact architecture and license/provenance if relevant.
label: Technical context
description: 'What is already known; link docs/research/upstream-registry.md entries.'
validations:
required: true
- type: dropdown
id: evidence
- type: textarea
id: scope
attributes:
label: Evidence class (highest applicable)
options:
- A - Measured on named hardware
- B - Normative source for exact target
- C - Normative source for related target
- D - Non-normative official material
- E - Independent software behavior
- F - Uncorroborated community claim
- U - Unknown or assumption
label: Scope
description: 'Which versions or components; desk research or execution.'
validations:
required: true
- type: textarea
id: dependencies
attributes:
label: Dependencies
description: 'Other issues or decisions; execution may need a maintainer-approved environment.'
validations:
required: true
- type: textarea
id: acceptance
attributes:
label: Acceptance criteria
description: 'Each claim cites vendor or upstream documentation, or a recorded observation of a stated version; unknowns stay marked unknown.'
validations:
required: true
- type: textarea
id: validation
attributes:
label: Validation, limitations and proposed next steps
description: Distinguish Apple or desktop RDNA observations from Xbox behavior.
label: Validation requirements
description: 'Independent re-derivation and evidence class (A to U).'
validations:
required: true
- type: textarea
id: licensing
attributes:
label: Licensing and provenance
description: "Licenses of any component involved, source and version, and whether anything would be bundled or copied. Write 'not applicable' if none."
validations:
required: true
+57
View File
@@ -0,0 +1,57 @@
name: Testing and validation
description: Add or run a validation for a workload or behaviour.
title: "validate: "
labels: [needs-verification,track: hybrid]
body:
- type: markdown
attributes:
value: 'Active work is the CrossOver-based hybrid architecture (docs/roadmap.md). Use independently authored or authorized workloads only; never link leaked builds, confidential SDKs or private documentation. Claim by replying on the issue.'
- type: textarea
id: problem
attributes:
label: Problem
description: 'What is missing or wrong, and why it matters for the hybrid architecture.'
validations:
required: true
- type: textarea
id: context
attributes:
label: Technical context
description: 'Versions (macOS, chip, CrossOver, Rosetta 2, graphics backend), related issues, upstream references.'
validations:
required: true
- type: textarea
id: scope
attributes:
label: Scope
description: 'What is in and out. Avoid duplicating what CrossOver already provides.'
validations:
required: true
- type: textarea
id: dependencies
attributes:
label: Dependencies
description: "Blocking issues or decisions; write 'none' if none."
validations:
required: true
- type: textarea
id: acceptance
attributes:
label: Acceptance criteria
description: 'Observable, checkable results.'
validations:
required: true
- type: textarea
id: validation
attributes:
label: Validation requirements
description: 'How an independent contributor verifies it; commands, workloads, evidence class.'
validations:
required: true
- type: textarea
id: licensing
attributes:
label: Licensing and provenance
description: "Licenses of any component involved, source and version, and whether anything would be bundled or copied. Write 'not applicable' if none."
validations:
required: true
+29
View File
@@ -0,0 +1,29 @@
## Related issue
Closes #
## Summary
## Technical changes
## Tests performed
Commands, versions, pass/fail/skip counts and hardware. A skipped test is not a pass.
## Performance impact
Measured before and after under equivalent conditions, or "none expected" with reason.
## Compatibility impact
Workloads, macOS or CrossOver versions and hardware affected. Do not claim support that was not tested.
## Known limitations
## Third-party code attribution
Source repository, exact commit, license, modifications. "None" if none.
## Dependency and licensing considerations
New or changed dependencies, license compatibility with GPL-3.0-or-later, redistribution limits (proprietary components are never bundled). DCO: commits are signed off.
+38 -18
View File
@@ -1,40 +1,60 @@
# BetterXen engineering rules
### Native Apple Silicon
These rules apply to every contributor and coding agent. They were rewritten on the `planning/hybrid-first-transition` branch when BetterXen moved from native-first to CrossOver-based hybrid development. `CLAUDE.md` is a symlink to this file. The decision is recorded in `docs/adr/0005-crossover-hybrid-direction.md`; the plan is `docs/roadmap.md`.
Never introduce Rosetta 2, x86-64 host executables, MoltenVK, Vulkan runtime dependencies, Wine, CrossOver, Windows compatibility layers, OpenGL fallback rendering, or unnecessary graphics abstraction layers.
### Direction
- SPIR-V is permitted as a compiler intermediate representation. It does not justify a Vulkan runtime.
- All host executables and native dependencies must support ARM64. Verify with file, lipo -archs and otool -L.
- Never run Intel binaries through Rosetta, even temporarily. Never add a dependency that requires Rosetta to build or run. If a dependency cannot run natively, find an alternative or document the limitation.
- The guest architecture being decoded may be x86-64, but BetterXen itself runs natively on ARM64.
- BetterXen is hybrid-first Apple Silicon compatibility research. **CrossOver is the primary compatibility foundation and hybrid is the only active development direction.** CrossOver is an externally installed dependency unless its license explicitly permits another distribution model.
- BetterXen's own work is the layer around it: integration, configuration, environment management, diagnostics, reproducible testing, benchmarking and measured optimization. Reuse established infrastructure before writing an independent replacement; write one only for a demonstrated limitation.
- The independent native implementation (x86-64 decoder, ARM64 translator, runtime, gfx1030 shader compiler, Metal backend) is **preserved and paused**. Do not delete it, expand its roadmap, create speculative native issues or assign contributors to it by default. Native work is allowed only when hybrid development directly requires it, or after an explicit maintainer decision to resume (`docs/research/native-roadmap.md`). Keep its tests passing.
- This is the intended architecture, not a verified Xbox compatibility stack. Do not assume CrossOver, Rosetta 2 or D3DMetal provide Xbox runtime compatibility; verify the actual capabilities and integration boundaries of the installed versions.
### Planning
- Planning is progressive. Only the current phase has a milestone and open issues; the roadmap outlines later phases provisionally and `Parked ideas` holds future items. Do not create speculative issues, trackers or milestones for distant phases; promote an idea when its prerequisites are met.
- Every new issue states a specific problem, the evidence it is needed, a deliverable, upstream references, a reuse assessment, dependencies, acceptance criteria and a validation method. Do not create administrative issues to manage planning.
- Do not open native-only issues. If hybrid work needs a native component, file a focused hybrid issue.
### Dependencies and reuse
- Wine-based compatibility infrastructure, CrossOver, Rosetta 2 where supported and technically appropriate, and D3DMetal (subject to its license terms) are permitted. DXMT, DXVK, VKD3D-Proton, MoltenVK, FEX and similar projects may be evaluated and used where appropriate. Legitimate external dependencies and open-source implementations are encouraged.
- Before integrating or copying anything: verify the exact license of the component (the file for copied source, not just the repository), check compatibility with GPL-3.0-or-later and with every other selected component, preserve copyright notices, record the source repository and exact commit or version, document modifications, and add the entry to `docs/research/upstream-registry.md` and `docs/research/component-reuse-matrix.md`. If licensing is uncertain, do not use it until resolved. Never remove upstream notices.
- Do not bundle, modify or redistribute proprietary components (CrossOver binaries, D3DMetal, Rosetta 2, Apple tools) unless their license explicitly allows it. Do not assume a proprietary component can be incorporated into GPL-licensed source. Distinguish open-source parts from proprietary parts in every assessment.
- Do not bypass licensing or activation requirements of any dependency.
- Provenance first: exclude anything derived from leaked proprietary material or unauthorized software. A project's license being GPL does not clear material it was built from or for. Projects whose stated purpose depends on leaked or unauthorized builds, including VIctory, its forks and similar efforts, are discovery references at documentation level; adopt nothing from them without a per-file provenance and license review recorded in the registry. Game-specific, asset-specific and decryption-related code is never adopted.
### Native Apple Silicon host
- BetterXen's own host executables, libraries and tools must support ARM64 natively; verify with file, lipo -archs and otool -L. Do not add x86-64 host executables that BetterXen itself builds or ships.
- Rosetta 2 may be used where Apple supports it and CrossOver or another selected component relies on it for x86-64 guest code. Record versions and its support status; do not depend on it for BetterXen's own code.
- Support M1 through M5 and future generations through runtime capability detection. Do not assume all Apple GPUs share capabilities.
- Use aarch64-apple-darwin as the Rust target.
- Use aarch64-apple-darwin as the Rust target. Metal is the host graphics API. Do not add graphics abstraction layers beyond what a selected component or a measured need justifies.
- SPIR-V remains permitted as a compiler intermediate representation.
### Honesty and evidence
- Never report a test as passed unless it ran and passed. Never count a skipped test as GPU verification.
- Never invent benchmark results, hardware compatibility, API names, instruction encodings, hardware capabilities or implementation status.
- Never invent benchmark results, hardware compatibility, API names, instruction encodings, hardware capabilities, interface details, product capabilities or implementation status. Never promise a performance improvement before measuring it.
- Never claim a clean build unless the commands actually succeeded.
- Never present planned features as working. State clearly that game execution is not supported unless demonstrated.
- Never replace GPU tests with mocks and then claim GPU support.
- Unknown information is classified as unknown and becomes a documented research task.
- Every hardware claim carries an evidence class (section 9). Never present a lower-class claim as if it were a higher-class one.
- Unknown information is classified as unknown and becomes a documented research task. Facts about CrossOver, Rosetta 2, D3DMetal and other upstreams must cite vendor or upstream documentation, or a recorded observation of a stated version.
- Every hardware claim carries an evidence class (see docs/claims.toml). Never present a lower-class claim as if it were a higher-class one.
- Never claim "verified on Xbox hardware". BetterXen has no Xbox hardware access. Agreement with a spec-derived reference is not agreement with Xbox hardware, and docs must say so.
- Do not hide errors behind fallbacks. Do not translate unsupported instructions into silent no-ops. Do not weaken or delete tests to make them pass. Do not change mutation counting, tolerances or gate definitions to improve a score.
- A phase is complete only with the evidence its exit conditions name. Do not derive progress from commits, lines of code, closed issues or isolated passing fixtures.
### Independence of verification
- The agent that writes a component does not certify it. The two independent reviewers (section 5) re-derive expectations from primary sources and are not told the implementers' conclusions as ground truth.
- The agent that writes a component does not certify it. Independent reviewers re-derive expectations from primary sources and are not told the implementers' conclusions as ground truth.
- The same faulty code must never produce both the expected and the actual values in a test.
### Legal and clean-room
- Use only publicly accessible documentation and authorized materials. Never obtain or use leaked SDKs, confidential Xbox documentation, restricted console tools, firmware, encryption keys, or proprietary game binaries and shader collections. Do not attempt to bypass documentation access restrictions.
- Use only publicly accessible documentation, publicly licensed software and authorized materials. All validation uses independently authored or authorized workloads. Never obtain or use leaked executables or SDKs, confidential Xbox documentation, restricted console tools, firmware, encryption keys, unauthorized assets or source code, or proprietary game builds and shader collections. Do not attempt to bypass documentation access restrictions.
- Contributors who have seen leaked or confidential Xbox materials must not contribute. State this in CONTRIBUTING.md and require a DCO sign-off (Signed-off-by) on contributions.
- Include a plain statement in docs/legal.md: BetterXen does not circumvent console security or DRM, does not load encrypted or protected content, and is a research project built from public documentation. Add a note that this is not legal advice and that contributors should know their local laws, including anti-circumvention provisions such as DMCA section 1201.
- Before copying or adapting any upstream code: verify the exact license of that file (not just the repo), check GPL-3.0-or-later compatibility, preserve copyright notices, record source repository and exact commit, document modifications, include required attribution. Never remove upstream copyright notices. If licensing is uncertain, stop using that code until resolved.
- Keep BetterXen's emulator implementation original. Never copy, port, translate or adapt emulator source from PE-Vulkan project, KyTx, AnyPS5 or similar projects.
- docs/legal.md states: BetterXen does not circumvent console security or DRM, does not load encrypted or protected content, and is a research project built from public documentation. This is not legal advice; contributors should know their local laws, including anti-circumvention provisions such as DMCA section 1201.
- Keep BetterXen's own implementation original where it is original. Never copy, port, translate or adapt source from emulator projects built for leaked or unauthorized material (for example PE-Vulkan, KyTx, AnyPS5 and similar).
- Validate the technical compatibility and safety of user-provided files. Do not ask for ownership receipts, accounts or acquisition provenance as part of file loading. Contributor provenance and licensing obligations still apply.
- Never place restricted material in the repository or its Git history.
- Do not push, publish, or change remote visibility without explicit user authorization. Prepare locally and report readiness.
@@ -43,7 +63,7 @@ Never introduce Rosetta 2, x86-64 host executables, MoltenVK, Vulkan runtime dep
No AI slop (section 29).
Read docs/interfaces.md and docs/progress.md before implementation.
Read docs/roadmap.md, docs/interfaces.md and docs/progress.md before implementation.
## Claiming work before you start
@@ -84,7 +104,7 @@ A coding agent claims in the name of the person it works for and follows the sam
- Lint: `cargo clippy --workspace --all-targets -- -D warnings`
- Test: `cargo test --workspace`
- Verify the synthetic fixtures: `scripts/assemble-fixture.sh --check`
- Run native GPU correctness: `scripts/test-gpu.sh`
- Run native GPU correctness (preserved native research): `scripts/test-gpu.sh`
- Run the three RDNA-to-Metal fixtures: `scripts/demo.sh`
- Run independent CPU validation: `cargo test --locked -p xenora-semantic-review`
- Run the correctness-gated benchmark suite: `scripts/benchmark.sh` (idle machine, release, validation off)
@@ -101,4 +121,4 @@ Preserve the configured Git author and committer identity.
## Ownership
Xbox and claims owns public console research. ISA owns the decoder and oracle fixtures. Compiler owns the parser, IR and MSL. Metal owns the native GPU backend. Testing owns the independent reference and fixture validation. Infrastructure owns shared Cargo configuration, policies and the CPU boundary. R1 independently audits claims and release evidence. R2 independently validates semantic expectations and mutation results.
These are responsibility areas, not personal assignments; do not assign people without their agreement. Hybrid integration owns the CrossOver assessment, integration boundary, configuration, diagnostics and benchmarks. Xbox and claims owns public console research. ISA owns the decoder and oracle fixtures. Compiler owns the parser, IR and MSL. Metal owns the native GPU backend. Testing owns the independent reference and fixture validation. Infrastructure owns shared Cargo configuration, policies and the CPU boundary. R1 independently audits claims and release evidence. R2 independently validates semantic expectations and mutation results.
+6
View File
@@ -10,6 +10,8 @@ Guest execution uses original, purpose-built test programs. Commercial Xbox game
remains unsupported.
### Added
- Added the upstream research registry and component reuse matrix (`docs/research/`), a public-documentation review (evidence class D, nothing executed) of CrossOver, Wine, DXMT, DXVK, VKD3D-Proton, MoltenVK, FEX, VIctory, VIctory-macOS and PortWatch. VIctory-family projects are excluded from reuse on provenance grounds. The GitHub project board is not yet configured because the token lacks the `project` scope (#346).
- Added hybrid research records: `docs/research/hybrid-backlog-research-2026-11-25.md` (findings and registry candidates, from search summaries) and `docs/research/primary-source-verification-2026-11-25.md` (re-check against CodeWeavers, Apple, DXMT and Wine primary pages). It confirms CrossOver's backend list, finds no public documentation of `CX_GRAPHICS_BACKEND`, and records that two Apple notices on Rosetta's end disagree; D3DMetal's license text and CrossOver's Rosetta and ARM64 plans remain unverified. Eleven issues created from the research were reviewed the same day: #364 and #365 stay in Phase 1, the others are parked and recorded under "Parked ideas" in the roadmap. Rust 1.100.0 (already installed) is the required toolchain; the default `stable` was 1.94.1. Planning only; nothing was installed or run.
- Added File > Open Executable… with Command-O to the app (#252). It opens the focused window's read-only file importer, the same one as that window's button, and is disabled when no window can present it; each window keeps its own importer, so with several windows only the focused one shows the picker. The chosen file goes through the same inspection path as the button, drag and drop and Finder Open With; nothing is executed. A file-importer failure is now shown in red with the system's description instead of being ignored, a cancelled picker shows nothing, and the message clears on the next selection. `BetterXen --smoke-import-result`, run by `scripts/build-app.sh`, checks cancellation, a shown failure and its clearing; it fails on the previous importer handling. Checked locally on Apple Silicon in the running app (Command-O and the menu item open the picker, cancel shows no error, a second Command-O opens it again, with two windows only the focused one presents it, and with every window closed the menu item is disabled); not yet independently reviewed.
- Added `docs/research/texture-formats.md`, an inventory of the texture formats and layouts BetterXen handles (#260). For BC1–BC7, RGBA8 and Depth32Float it separates container recognition, CPU decoding, layout conversion, native Metal upload and readback, translated sampling, the host-side D3D12-shaped API (called from Rust, not wired to guest imports) and guest reachability through imported services, and links each cell's implementing files and tests and each format's exact public specification sections, including the packed BC footprints from #241. It cross-references #208 and #209 instead of opening duplicate tasks, lists console layouts, console descriptors and asset or audio containers as unknowns, and ranks three proposed follow-ups with fixture recipes and owners. Research only; no implementation changed.
- Rewrote the README around the six development phases and the first-launchable-application target (#311), with colour-coded Mermaid diagrams (system flow, milestone roadmap, CPU, runtime-service and shader-form charts built from the generated registries), badges, a repository overview, a contributing section and corrected texture-sampling wording. The older X1–X25 capability map is kept in a collapsible section. The diagrams were not render-tested locally.
@@ -20,6 +22,10 @@ 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
- 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.
- Replaced the issue templates with hybrid task, bug, research, performance, validation and documentation forms and added a pull request template. Fixed invalid YAML in the agent-task template. README, CONTRIBUTING and the docs index now describe the hybrid direction.
- Replaced our own references to a specific commercial game title (README non-affiliation line, research and integration notes, ignored diagnostics folder names) with generic "commercial title" wording. The ignored folder names are now `diagnostics/title-candidate-*` and `diagnostics/title-check`. Third-party repository names, URLs and code-span paths in research notes are unchanged so their provenance stays accurate. Our own prose references to the upstream project formerly named in the research notes now read "PE-Vulkan project". Added the PortWatch native-macOS research notes. No behavior change.
- TLS setup now copies templates from 64 KiB up to 1 MiB straight into the zeroed thread data block, after checking that every template byte is readable, instead of staging them in a second buffer (#111). The pointer array and data block layout, the TLS index write and the error for an unreadable template are unchanged, and nothing is mapped when the template cannot be read. On an Apple M2 Pro, median setup time for original synthetic templates over 31 interleaved samples fell by 21.7 % at 64 KiB, 19.0 % at 256 KiB and 14.2 % at 768 KiB. Smaller and larger templates keep the single staged read and showed no change beyond run-to-run variation.
- Removed the contributor avatar section from the README.
+5 -1
View File
@@ -1,6 +1,10 @@
# Contributing to BetterXen
BetterXen is an experimental Xbox Series X|S recompilation framework for Apple Silicon. Its graphics subsystem, XenoMetal, targets native Metal execution. Contributions should improve verified behavior rather than expand untested claims.
BetterXen is hybrid-first Apple Silicon compatibility research built around an externally installed CrossOver, with a preserved but paused independent native implementation. Contributions should improve verified behavior rather than expand untested claims.
## Which work is active
The only active development track is the CrossOver-based hybrid architecture in [docs/roadmap.md](docs/roadmap.md). Planning is progressive: only the current milestone (Phase 1) has open issues; ideas for later phases are parked in the roadmap. Native research is paused, its backlog is closed and indexed in [docs/research/native-issue-archive.md](docs/research/native-issue-archive.md), and the few native issues still open only have assigned contributors with open pull requests. Do not start native work; if hybrid development needs a native component, file a focused hybrid issue. Pick an open issue in the current milestone and check its dependencies first. The engineering rules in `AGENTS.md` permit CrossOver, Wine-based infrastructure, Rosetta 2 and D3DMetal (subject to licensing) and allow evaluating DXMT, DXVK, VKD3D-Proton and MoltenVK. CrossOver is proprietary: do not bundle or redistribute any of it, and record the exact versions you test. Before adopting or copying any upstream code, verify its license and provenance and add it to the [upstream registry](docs/research/upstream-registry.md); projects built around leaked or unauthorized game builds are not a source of code. Use the issue templates (hybrid task, bug, research, performance, validation, documentation) and fill in the licensing and provenance section.
## Getting started
+9 -68
View File
@@ -2,7 +2,7 @@
# BetterXen
**Experimental Xbox Series X|S emulation research, built natively for Apple Silicon.**
**Hybrid-first Apple Silicon compatibility research built around CrossOver, with preserved independent native ARM64 and Metal research (paused).**
[![Native Rust checks](https://github.com/MacosPorters/betterxen/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MacosPorters/betterxen/actions/workflows/ci.yml)
![Platform: Apple Silicon](https://img.shields.io/badge/platform-Apple%20Silicon%20(ARM64)-1f6feb?logo=apple&logoColor=white)
@@ -11,11 +11,14 @@
![Status: experimental](https://img.shields.io/badge/status-experimental-d29922)
![License: GPL-3.0-or-later](https://img.shields.io/badge/license-GPL--3.0--or--later-2ea043)
**No Wine. No CrossOver. No Rosetta. No Vulkan runtime.**
**The paused native implementation described below uses no Wine, CrossOver, Rosetta or Vulkan runtime. The active hybrid direction intends to use CrossOver and Rosetta 2, subject to research and licensing review.**
> [!IMPORTANT]
> **Current direction.** BetterXen's only active development track is a CrossOver-based hybrid architecture: CrossOver (installed externally) as the compatibility foundation, with BetterXen providing whatever integration, configuration, diagnostics, benchmarking and optimization research shows is missing. This is the *intended* architecture, **not a verified Xbox compatibility stack**: no Xbox title has been shown to run through it, and CrossOver is not assumed to provide Xbox runtime compatibility. Work is at the research stage (Phase 1). Planning is progressive: only the current phase has open issues. The independent native implementation described below is **preserved but paused indefinitely**. See the [roadmap](docs/roadmap.md), [ADR 0005](docs/adr/0005-crossover-hybrid-direction.md), the [upstream research registry](docs/research/upstream-registry.md) and the [deferred native roadmap](docs/research/native-roadmap.md). The rewritten engineering rules are in [AGENTS.md](AGENTS.md).
</div>
BetterXen is a community-maintained, open-source project written primarily in Rust. It builds and verifies a native, bounded execution environment on Apple Silicon: an independent x86-64 guest path, original PE32+ loading, AMD RDNA 2 shader translation, and a native Apple Metal graphics backend. The host runs as ARM64 code; the x86-64 code being emulated is guest data.
BetterXen is a community-maintained, open-source project written primarily in Rust. Its native research implementation (paused) builds and verifies a native, bounded execution environment on Apple Silicon: an independent x86-64 guest path, original PE32+ loading, AMD RDNA 2 shader translation, and a native Apple Metal graphics backend. The host runs as ARM64 code; the x86-64 code being emulated is guest data.
> [!IMPORTANT]
> **BetterXen is experimental.** Verified work is restricted to independently authored synthetic programs and shaders. Authentic Xbox executable loading, system-service compatibility and commercial game execution are **not supported**. Progress is measured by reproducible tests, not by estimated game compatibility percentages. See the [current limitations](#current-limitations).
@@ -54,72 +57,10 @@ Legend: 🟦 guest loading · 🟩 guest CPU and services · 🟪 shader transla
---
## Milestones
## Roadmap
BetterXen's work order is the six [development phases](docs/development-phases.md), which lead to one concrete target: the **first launchable application** (tracker [#311](https://github.com/MacosPorters/betterxen/issues/311)). That target is an original C program, built with native ARM64 tools, that runs through the ARM64 translator, controls its own translated shader pipeline, and shows its Metal frame in the native app window. It is **not** a commercial or authentic Xbox title, and no date or percentage is attached to it.
The active plan is the [roadmap](docs/roadmap.md): **Phase 1 — CrossOver Research, Feasibility and Baseline** is the only active phase, and later phases are provisional and will be defined from its findings. The current issues are in the [Phase 1 milestone](https://github.com/MacosPorters/betterxen/milestone/9). The native implementation's six phases and the X1 to X25 capability map are archived in [docs/archive/readme-native-milestones.md](docs/archive/readme-native-milestones.md) and the [native-first plan](docs/archive/development-phases-native-first.md). Native work is paused indefinitely and resumes only after an explicit maintainer decision.
```mermaid
%%{init: {'theme':'base','themeVariables':{'fontFamily':'system-ui, sans-serif','lineColor':'#6e7781'}}}%%
flowchart LR
P1["<b>Phase 1</b><br/>Trustworthy baseline"]:::wip --> P2["<b>Phase 2</b><br/>Hosted C application"]:::wip
P2 --> P3["<b>Phase 3</b><br/>Coherent threading"]:::wip
P3 --> P4["<b>Phase 4</b><br/>Resource updates<br/>to translated rendering"]:::wip
P4 --> P5["<b>Phase 5</b><br/>One integrated<br/>interactive application"]:::plan
P5 --> P6["<b>Phase 6</b><br/>Measured performance"]:::plan
P2 --> L(["<b>First launchable app</b><br/>issue 311"]):::goal
P4 --> L
classDef wip fill:#fff8c5,stroke:#9a6700,color:#4d2d00
classDef plan fill:#eaeef2,stroke:#8c959f,color:#24292f
classDef goal fill:#dafbe1,stroke:#1a7f37,color:#0f5323,stroke-width:3px
```
<sub>🟨 work under way · ⬜ not started · 🟩 the next original-workload target. Nothing here is independently accepted.</sub>
| Phase | Goal | State | What exists now |
| --- | --- | --- | --- |
| **1 · Baseline** | Contributors can tell what exists on `main`, what is pending review, and which checks ran | 🟡 In progress | CODEOWNERS review, a fast repository hygiene check, claim-before-work rules, generated status tables and claim audits |
| **2 · Hosted C application** | An original hosted C program starts, uses the runtime, reports results and exits with checked cleanup | 🟡 In progress | CRT startup, arguments, exit handlers, formatted output, file streams and the hosted-C fixture (A2) are integrated; a stdio follow-up is still open and the result is not independently accepted |
| **3 · Threaded behavior** | A worker-based application can block and resume without stalling other guest work | 🟡 In progress | Deterministic scheduler, guest thread contexts, guarded stacks and thread services. Guest `Sleep` still delays all guest threads (#304); worker TLS and callback lifecycle is a design draft (#312) |
| **4 · Resource updates to rendering** | A guest updates a texture and geometry, submits translated rendering and gets a checked frame | 🟡 In progress | Persistent resources, descriptor-table texture binding, translated vertex and pixel stages, blend, depth and indexed draws. Guest-selected pipelines and the typed graphics bridge are open (#314–#316) |
| **5 · Integrated interactive app** | Guest execution, rendering, input, audio, filesystem and lifecycle in one session | ⚪ Planned | Swift app with frame loop, input, audio and sandboxed filesystem fixtures exists, but those demonstrations are not guest-integration evidence |
| **6 · Measured performance** | Faster execution of workloads whose correctness is already checked | ⚪ Planned | Startup, DBT and TLS measurements recorded; bottlenecks are chosen from measurements, not assumed |
The launch milestone's proposed acceptance is **60 bounded frames containing two independently distinguishable guest-controlled states, then a clean close and one restart**. Sixty is a fixture criterion, not a measured frame rate. The work is tracked as issues [#313](https://github.com/MacosPorters/betterxen/issues/313)–[#323](https://github.com/MacosPorters/betterxen/issues/323).
<details>
<summary><b>Capability reference: the original X1–X25 map</b></summary>
The X1–X25 names are an older, broad capability map. Keep them as a reference; use the phases above for the next work order. X10–X25 are proposed engineering milestones, not completed implementations or a guaranteed sequence.
| Milestone | Implementation | Status |
| --- | --- | --- |
| X1 — Guest CPU | Bounded x86-64 instruction execution on ARM64 macOS | Verified |
| X2 — Executable loading | Loading original fixed-base PE32+ test executables | Verified |
| X3 — GPU compute | Guest-submitted Metal compute workloads and readback | Verified |
| X4 — Metal rendering | Guest-driven offscreen rendering using authored Metal shaders | Verified |
| X5 — Guest execution expansion | Additional bounded CPU execution and fixture coverage | Implemented |
| X6 — Guest control flow | Nested calls, returns, checked memory and synthetic PE execution | Verified |
| X7 — Imported services | Named imports, guest-to-host service dispatch and result validation | Verified |
| X8 — Translated compute | Original gfx1030 compute shaders executing on Metal, partial Wave32 handling and BC1 readback | Verified subset |
| X9 — Translated graphics | Persistent resource handles, translated vertex/pixel stages and offscreen Metal rendering | Verified subset |
| X10 — Texture sampling | One translated `image_sample_lz` pixel stage with point/clamp sampling of RGBA8 and BC1 2D textures bound through descriptor tables, locally verified on Apple M5 Pro; upload, readback and decode of BC compressed formats (see [Texture support](#texture-support)). Other image instructions and formats are not implemented | Implemented subset |
| X11 — Graphics pipeline | Bounded multi-draw passes into offscreen RGBA8 targets: translated vertex and pixel stages, indexed triangle draws, colour write masks and blend state | Implemented |
| X12 — Wave execution | Expand Wave32/Wave64 semantics, divergent control flow, cross-lane operations, LDS and barriers | Planned |
| X13 — Advanced shaders | Mesh, geometry and additional compute shader capabilities with verified Metal execution | Planned |
| X14 — CPU recompilation | Native ARM64 dynamic recompilation of supported x86-64 instructions in synthetic fixtures | Implemented subset |
| X15 — Executable compatibility | Static PE inspection reports sections, relocations, thread-local storage (TLS) callbacks, imports and entry-point instructions | Static probe implemented |
| X16 — Guest memory and threading | Virtual memory mapping, thread scheduling, synchronization primitives and atomic operations | Implemented subset |
| X17 — System services | Implement a tested subset of Xbox-compatible runtime APIs, memory services, filesystem access and application lifecycle | Implemented subset |
| X18 — Graphics API translation | Translate supported Xbox graphics commands, resource descriptors, command queues, barriers and fences into Metal operations | Planned |
| X19 — Advanced GPU features | Indirect rendering, asynchronous compute, additional texture formats and ray-tracing compatibility research | Planned |
| X20 — Integrated guest runtime | Connect CPU recompilation, executable loading, system services and graphics translation into one persistent runtime | Planned |
| X21 — Application compatibility | Execute increasingly complex independently authored applications through the complete guest CPU and GPU pipeline | Planned |
| X22 — First application boot | Establish a reproducible startup and error-reporting path for supported game-like applications | Planned |
| X23 — Initial game compatibility | Investigate startup and execution of legally supported game software, identifying missing runtime and graphics behavior | Long-term goal |
| X24 — Gameplay and performance | Expand rendering correctness, input, audio, memory management, shader caching and execution performance | Long-term goal |
| X25 — Running games | Achieve reproducible, stable execution of compatible games on native Apple Silicon macOS using Metal | Long-term goal |
</details>
All existing verification refers to independently authored synthetic programs and shaders. Commercial-game compatibility remains unverified.
@@ -490,7 +431,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md), [docs/legal.md](docs/legal.md) and the [
### Where the work is heading
See the [milestones](#milestones) for proposed milestones, and the [changelog](CHANGELOG.md) for the current unreleased additions, such as the native blend pass, indexed draws and the depth pass. The remaining research steps are the outstanding items in [current limitations](#current-limitations).
See the [roadmap](docs/roadmap.md) for the current phase and the [changelog](CHANGELOG.md) for unreleased additions. The paused native implementation's open research items are listed under [current limitations](#current-limitations).
---
+12 -3
View File
@@ -8,9 +8,16 @@ then read the [interface contracts](interfaces.md). Reproduce an
[independent validation suite](../tests/validation/README.md) before changing
either path. The [changelog](../CHANGELOG.md) records notable changes.
Use the [BetterXen development phases](development-phases.md) for current work
order, existing issue/PR dependencies and measurable completion criteria.
Historical phase checkpoints retain their original evidence scope.
Use the [roadmap](roadmap.md) for the active CrossOver-based hybrid plan, phases,
critical path and completion criteria; see [ADR 0005](adr/0005-crossover-hybrid-direction.md)
for the decision and [project board setup](planning/project-board.md). Native work is
paused: [deferred native roadmap](research/native-roadmap.md) and the archived
[native-first plan](archive/development-phases-native-first.md) with
[retired milestones](archive/native-first-milestones.json), the
[native issue archive](research/native-issue-archive.md) and the retired
[H0 to H7 breakdown](archive/hybrid-phases-h0-h7.md). Research inputs: the [upstream research registry](research/upstream-registry.md) and
[component reuse matrix](research/component-reuse-matrix.md). Historical phase
checkpoints retain their original evidence scope.
## Architecture and technical design
@@ -64,6 +71,8 @@ Historical phase checkpoints retain their original evidence scope.
- [Texture format inventory](research/texture-formats.md) — Formats and layouts by stage (decode, layout, native upload, sampling, guest), their public specifications, unknowns and ranked follow-ups.
- [PortWatch native macOS research](research/portwatch-native-macos.md) — Screening of public Xbox-on-Windows port projects for native macOS planning; discovery only.
- [Synthetic integration and upstream evidence](research/synthetic-integration.md) — Audited source snapshots and remaining commercial startup prerequisites.
- [Hybrid backlog research record](research/hybrid-backlog-research-2026-11-25.md) — Findings, registry candidates and the issues they produced (2026-11-25); not verified on hardware.
- [Primary-source verification](research/primary-source-verification-2026-11-25.md) — Which hybrid-research claims were confirmed, contradicted or left unverified against vendor documentation.
## Security, licensing, and contributions
@@ -0,0 +1,41 @@
# ADR 0005: CrossOver-based hybrid direction
Status: **Accepted (strategic direction).** Accepted by the maintainers' planning directive of 2026-11-25. The proposed technical architecture below is **not** accepted or verified; each integration still needs validation.
## Context
BetterXen was developed native-first: an independent x86-64 decoder, interpreter, ARM64 translator, runtime, shader compiler and Metal backend, verified only on synthetic programs and shaders. No Xbox title runs on it. The maintainers decided to focus all active engineering on a hybrid architecture and to pause native work.
## Accepted strategic direction
- CrossOver is the primary compatibility foundation, installed externally.
- Hybrid is the only active development direction. Native research is preserved (tag `native-first-final` marks the last `main` commit before this change; the code stays in the workspace) and paused; resuming needs an explicit maintainer decision.
- Reuse established infrastructure; build independent replacements only for demonstrated limitations.
- The engineering rules in `AGENTS.md` (and `CLAUDE.md`, a symlink) were rewritten accordingly, replacing the former prohibition on Wine, CrossOver, Rosetta and MoltenVK.
## Proposed technical architecture (not accepted)
BetterXen provides integration, configuration, environment management, diagnostics, reproducible testing, benchmarking and measured optimization around CrossOver. Within CrossOver, the intended layers are Wine-based runtime APIs, Rosetta 2 for x86-64 translation and D3DMetal or DXMT for graphics, on Apple Silicon (ARM64, Metal, unified memory). The exact responsibility boundary is decided in #351, at the end of Phase 1.
## Unverified integration assumptions
- That CrossOver, Rosetta 2, D3DMetal or DXMT run any authorized workload BetterXen needs. Assumed not until measured (#355).
- That CrossOver offers supported interfaces for bottle management, configuration, launching and diagnostics (#350).
- Rosetta 2's support lifetime and D3DMetal's license terms (#349, #354).
- That any of this provides Xbox runtime compatibility. It is assumed not to.
## Verified implementation capabilities
None for the hybrid architecture. Verified native-research capabilities (synthetic evidence only) are unchanged and listed in `docs/progress.md`.
## Planning consequence
Planning is progressive: Phase 1 (research, feasibility and baseline) is the only active phase; later phases are provisional and defined from its findings. Native work is paused indefinitely.
## Consequences
Positive: reuse of mature infrastructure. Negative: dependence on a proprietary vendor and on Rosetta 2 availability; limited ability to modify closed components; the former "No Wine, No CrossOver, No Rosetta" project identity is retired for active work. Anything derived from leaked or unauthorized material stays excluded, including projects built for such inputs (see the upstream registry).
## Alternatives considered
Continue native-first; maintain both tracks at 75/25; a generic Wine-based stack without CrossOver.
@@ -1,3 +1,5 @@
> **Archived 2026-11-25 (superseded). Not the active plan.** Native-first plan retained for history; the active roadmap is [../roadmap.md](../roadmap.md). Relative links below were written for `docs/` and may need `../`.
# BetterXen development phases
This is BetterXen's working development plan. Each phase ends with a reproducible
@@ -26,10 +28,10 @@ Historical results below remain evidence for their recorded candidates only.
| Native app | Swift app, Rust C interface, controller input and audio/virtual-filesystem fixtures | Existing fixtures do not establish one integrated threaded C++ 3D application. |
| Quality tools | CPU/runtime inventories, shader coverage reconciliation, task queue, PR checks and acceptance records | Some inventories and ledgers contain stale limitation text. A successful tool invocation does not prove every catalog entry is current. |
Sources: [CPU registry](cpu/instruction-registry.md),
[runtime registry](runtime/registry.md), [guest threads](runtime/threads.md),
[interfaces](interfaces.md), [shader coverage](shaders/semantic-coverage.md),
[Gate A](testing/gate-a.md), and [QA tooling](testing/infrastructure/README.md).
Sources: [CPU registry](../cpu/instruction-registry.md),
[runtime registry](../runtime/registry.md), [guest threads](../runtime/threads.md),
[interfaces](../interfaces.md), [shader coverage](../shaders/semantic-coverage.md),
[Gate A](../testing/gate-a.md), and [QA tooling](../testing/infrastructure/README.md).
The read-only shader reconciliation reported zero mismatches during this task;
that result is inventory consistency, not new GPU verification.
@@ -40,18 +42,18 @@ but their phase numbers are not the sequence for new BetterXen work.
| Existing record or name | Meaning | How to use it now |
| --- | --- | --- |
| [Phase 01 checkpoints and assurance](testing/phase01-assurance.md), [risk register](risk-register.md), [review log](testing/review-log.md) and [mutation record](testing/mutation.md) | Earlier bounded shader research and candidate-specific gates | Consult the original gate definitions and unresolved findings; do not relabel them as current acceptance. |
| [Phase 02 GPU/guest baseline](testing/phase-02-baseline.md) and [CPU feasibility](research/phase02-cpu-feasibility.md), [ecosystem](research/phase02-ecosystem.md), [collaboration](research/phase02-collaboration.md) research | Early graphics expansion and CPU feasibility work | Reuse documented public sources and evidence limits, checking them against current source. |
| [CPU/runtime campaign ledger](coordination/cpu-campaign-ledger.md) | Implementation batches and local evidence | Its older limitations are not a current feature inventory: scheduler, atomic and string work has since landed. |
| [Infrastructure Phase II/III tooling](testing/infrastructure/README.md) and [compatibility ledger](testing/infrastructure/phase3-compat-ledger.md) | A separate QA campaign | Tool code now includes compatibility-gap analysis and verification profiles beyond the ledger's early checkpoint. Coordinate with existing issue #219 rather than starting another QA framework. |
| [Gate A](testing/gate-a.md) | Compiled C execution, split into A1 and hosted-C A2 | A1 has a main-branch test. A2 is under review in PR #283; the document's “not started” description predates that PR. Neither is independently accepted by this plan. |
| [Phase 01 checkpoints and assurance](../testing/phase01-assurance.md), [risk register](../risk-register.md), [review log](../testing/review-log.md) and [mutation record](../testing/mutation.md) | Earlier bounded shader research and candidate-specific gates | Consult the original gate definitions and unresolved findings; do not relabel them as current acceptance. |
| [Phase 02 GPU/guest baseline](../testing/phase-02-baseline.md) and [CPU feasibility](../research/phase02-cpu-feasibility.md), [ecosystem](../research/phase02-ecosystem.md), [collaboration](../research/phase02-collaboration.md) research | Early graphics expansion and CPU feasibility work | Reuse documented public sources and evidence limits, checking them against current source. |
| [CPU/runtime campaign ledger](../coordination/cpu-campaign-ledger.md) | Implementation batches and local evidence | Its older limitations are not a current feature inventory: scheduler, atomic and string work has since landed. |
| [Infrastructure Phase II/III tooling](../testing/infrastructure/README.md) and [compatibility ledger](../testing/infrastructure/phase3-compat-ledger.md) | A separate QA campaign | Tool code now includes compatibility-gap analysis and verification profiles beyond the ledger's early checkpoint. Coordinate with existing issue #219 rather than starting another QA framework. |
| [Gate A](../testing/gate-a.md) | Compiled C execution, split into A1 and hosted-C A2 | A1 has a main-branch test. A2 is under review in PR #283; the document's “not started” description predates that PR. Neither is independently accepted by this plan. |
| Native app numbered gates in `crates/ffi` and `app` | Bounded session, graphics, audio and filesystem fixtures | Inspect their tests before proposing integration. Gate numbers are separate from shader acceptance gates. |
| README X1–X25 milestones | Broad capability map | Retain as a capability reference; use the phases below for the next work order. |
| Supplied Discord III, III-B, IV, V and VI excerpts | Broad runtime, graphics, application and performance objectives | Only excerpts were supplied. Their omitted requirements and completion status are unknown; they are not execution instructions. |
Bare issue numbers in historical documents may refer to the source repository.
All issue and PR links in the work sections below refer to **MacosPorters/betterxen**.
Use [migration records](migration.md) to resolve historical references.
Use [migration records](../migration.md) to resolve historical references.
## Phase 1 — Establish a trustworthy working baseline
+150
View File
@@ -0,0 +1,150 @@
# Detailed hybrid phases H0 to H7 (retired planning)
**Archived 2026-11-25; not the active plan.** These eight phases were defined before any research had been done. The active roadmap is [../roadmap.md](../roadmap.md): five provisional phases, with only Phase 1 active. The text below preserves the objectives, scope and exit conditions of the retired H2 to H7 milestones (and H0/H1) for reference when later phases are defined. Issue numbers in it are historical.
## Phases as originally written
### H0 — CrossOver Architecture Transition
**Status:** In development
**Objective:** Make CrossOver the single authoritative active compatibility foundation across the repository and GitHub planning surfaces.
**Scope:** README, architecture docs, ADR 0005, rewritten engineering rules, roadmap, upstream research registry, technical plans, labels, milestones, issue and PR templates, issue triage, project board, preservation of the native implementation.
**Dependencies:** None.
**Deliverables:** Updated README and docs; ADR 0005; docs/roadmap.md; deferred docs/research/native-roadmap.md; rebuilt issues and milestones; project board; preserved native code.
**Validation:** Repository link/terminology check; GitHub consistency check.
**Exit conditions:** Repository, documentation, issues, milestones and board consistently state the CrossOver-based direction. The project board requires a token with the project scope and is not yet configured.
**Known risks:** Project board cannot be configured without the GitHub project token scope (#346). The engineering rules conflict was resolved by rewriting AGENTS.md (#345).
### H1 — CrossOver Research and Baseline
**Status:** Not started
**Objective:** Establish what the installed CrossOver version actually provides and a reproducible baseline, without assuming it provides Xbox runtime compatibility.
**Scope:** CrossOver architecture, supported macOS versions, Apple Silicon support, relationship to upstream Wine, CPU translation mechanism, graphics backends (D3DMetal, DXMT and others), supported Direct3D versions, configuration interfaces, documented command-line interfaces, bottle management, diagnostics and profiling options, licensing and redistribution, supported integration mechanisms, long-term maintenance. Open-source and proprietary components distinguished.
**Dependencies:** Engineering rules rewritten (#345, done). CrossOver is an externally installed dependency until its license says otherwise; nothing is bundled.
**Deliverables:** CrossOver capability and integration-boundary report; licensing and dependency assessment; reproducible environment; baselines of CPU, GPU, memory and stability on authorized workloads.
**Validation:** Every claim cites vendor or upstream documentation, or a recorded observation on the installed version. Unknown stays unknown. Equivalent workloads, settings, hardware and software versions.
**Exit conditions:** Capabilities and integration boundaries are documented for the installed version; environment is reproducible by another contributor; baselines recorded; BetterXen vs CrossOver responsibilities proposed.
**Known risks:** CrossOver is proprietary: bundling, modifying or redistributing may be prohibited; integration interfaces may be undocumented; Xbox titles may not run at all.
### H2 — BetterXen Integration Foundation
**Status:** Not started
**Objective:** Build the BetterXen layer around CrossOver: integration boundaries, configuration, diagnostics, reproducible test workflows and host integration.
**Scope:** Environment and configuration management, diagnostics, test workflows, verified host integration, regression testing. Only what CrossOver does not already provide adequately.
**Dependencies:** H1.
**Deliverables:** Boundary document; configuration and environment management where justified; diagnostic infrastructure; reproducible test workflows; verified host integration; regression tests.
**Validation:** Independent contributor reproduces the workflows; no placeholder components.
**Exit conditions:** Integration foundation builds, tests and reproduces on a second setup.
**Known risks:** Reliance on undocumented or changing CrossOver behavior.
### H3 — Compatibility Validation
**Status:** Not started
**Objective:** Evaluate authorized workloads and document verified behavior and limitations.
**Scope:** Authorized workloads, documented limitations, runtime behavior, graphics correctness, input and interaction, reproducible failures, integrated validation criteria.
**Dependencies:** H2.
**Deliverables:** Validation criteria; per-workload results; reproducible failure reports; verified runtime, graphics and input results.
**Validation:** Independent verification of rendering and behavior. Startup or a screenshot alone is not proof.
**Exit conditions:** Selected workloads show verified integrated behavior under documented criteria; failures reproducible.
**Known risks:** Failures may originate in CrossOver or its components outside project control.
### H4 — Graphics and Performance Engineering
**Status:** Not started
**Objective:** Evaluate graphics backends and optimize only demonstrated bottlenecks.
**Scope:** Supported backends, CPU/GPU utilization, unified memory, frame-time consistency, synchronization, shader compilation and caching. Metrics: average FPS, 1% low, frame-time percentiles, CPU and GPU utilization, unified memory, memory pressure, translation overhead where measurable, shader compile latency, startup, thermals, long-duration stability. Reference machine: M4 Mac, 24 GB.
**Dependencies:** H3; measurement protocol.
**Deliverables:** Backend comparison; profiling reports; bottleneck list; before/after results; regression tests.
**Validation:** Equivalent workloads, rendering settings, hardware and versions; correctness and rendering equivalence verified.
**Exit conditions:** Improvements measurable, reproducible and without loss of correctness or stability. No improvement is promised before measurement.
**Known risks:** Many components are closed and not modifiable; single reference machine.
### H5 — Stability and Hardware Scaling
**Status:** Not started
**Objective:** Evaluate Apple Silicon configurations, memory pressure, thermals and long-duration stability.
**Scope:** Available Apple Silicon configurations, memory pressure, thermal behavior, long-duration tests, hardware documentation, regression coverage.
**Dependencies:** H3; hardware access.
**Deliverables:** Hardware compatibility documentation; memory-pressure and thermal reports; long-duration results; expanded regression coverage.
**Validation:** Each documented configuration backed by a test run on it.
**Exit conditions:** Tested configurations documented; untested hardware never claimed.
**Known risks:** Only one reference machine currently available.
### H6 — Hybrid Architecture Maturity
**Status:** Not started
**Objective:** Maintainable integration infrastructure and contributor workflows.
**Scope:** Contributor workflows, verified-capability documentation, reproducible performance results, complexity reduction, long-term dependency risk (CrossOver, Rosetta 2, D3DMetal).
**Dependencies:** H3 to H5 evidence.
**Deliverables:** Maintainable infrastructure; contributor documentation; verified capability list; reproducible results; dependency risk assessment.
**Validation:** Contributors other than the authors maintain the workflow.
**Exit conditions:** The architecture shows demonstrated value and the team can maintain it.
**Known risks:** Vendor decisions (CrossOver licensing, Rosetta lifetime) are outside project control.
### H7 — Future Native Reassessment (deferred)
**Status:** Not started
**Objective:** Deferred. Reassess independent native components only on an explicit maintainer decision or when one offers a demonstrated benefit to the active architecture.
**Scope:** See docs/research/native-roadmap.md.
**Dependencies:** Explicit maintainer decision.
**Deliverables:** Reassessment record.
**Validation:** Maintainer decision recorded in an ADR.
**Exit conditions:** A recorded decision to continue, resume specific native work, or archive components.
**Known risks:** Premature reinvention of mature infrastructure.
@@ -0,0 +1 @@
[{"closed_issues":15,"description":"G1–G15 for the bounded native ARM64 and Metal graphics foundation. Release acceptance requires all gates on the exact candidate.","html_url":"https://github.com/MacosPorters/betterxen/milestone/1","number":1,"open_issues":0,"state":"open","title":"Phase 01 - Native Graphics Foundation"},{"closed_issues":7,"description":"Develop independently authored interoperability tests and fixtures from public specifications. External emulator results may inform test selection. Xenora owns its Rust ARM64 runtime, decoder, typed IR, shader compiler and Metal backend. Emulator code, ports, decoder tables, internal metadata and platform-specific dependencies are outside scope.","html_url":"https://github.com/MacosPorters/betterxen/milestone/2","number":2,"open_issues":0,"state":"open","title":"Phase 02 - Ecosystem Integration"},{"closed_issues":8,"description":"Expand independently verified gfx1030 semantics, resource access, wave behavior and native offscreen drawing.\n\n### Deferred engineering\n- [#25](https://github.com/ranveersoni98/Xenora/issues/25) · Verify Wave64 pairing on native Metal. Exercise both halves, cross-half operations, asymmetric masks and barrier safety with 64-lane readback.\n- [#27](https://github.com/ranveersoni98/Xenora/issues/27) · Translate bounded vertex and fragment fixtures. Define stage IO and interpolation from public specifications; verify exact offscreen pixels.","html_url":"https://github.com/MacosPorters/betterxen/milestone/3","number":3,"open_issues":0,"state":"open","title":"Phase 03 - Graphics Maturation"},{"closed_issues":6,"description":"Measure correctness-gated CPU, translation and GPU behavior under reproducible host conditions. Track capability and failure evidence.\n\n### Deferred engineering\n- [#33](https://github.com/ranveersoni98/Xenora/issues/33) · Measure Metal pipeline reuse and cache identity. Separate cold and warm timing; test cache invalidation and verify shared output expectations.","html_url":"https://github.com/MacosPorters/betterxen/milestone/4","number":4,"open_issues":0,"state":"open","title":"Phase 04 - Performance and Compatibility"},{"closed_issues":7,"description":"Grow the bounded interpreter and independently demonstrate ARM64 recompilation, with precise state and fault behavior.\n\n### Deferred engineering\n- [#40](https://github.com/ranveersoni98/Xenora/issues/40) · Choose first measured recompilation target. Use interpreter profiles to choose one bounded basic block and document precise state and fault requirements.\n- [#41](https://github.com/ranveersoni98/Xenora/issues/41) · Execute one translated ARM64 guest basic block. Execute emitted ARM64 code natively, compare registers, flags, memory and traps with interpreter and independent vectors.\n- [#42](https://github.com/ranveersoni98/Xenora/issues/42) · Verify code cache and executable memory policy. Validate mapping permissions, publication, invalidation and dependency provenance on macOS.\n- [#43](https://github.com/ranveersoni98/Xenora/issues/43) · Measure ARM64 translation performance. Compare correctness-gated translated and interpreted inputs with matched native runs and resource records.","html_url":"https://github.com/MacosPorters/betterxen/milestone/5","number":5,"open_issues":0,"state":"open","title":"Phase 05 - CPU Recompilation"},{"closed_issues":6,"description":"Build isolated guest loading, memory, services and checked CPU-to-GPU commands using original inputs.\n\n### Deferred engineering\n- [#49](https://github.com/ranveersoni98/Xenora/issues/49) · Expand synthetic services and authorized runtime boundaries. Define explicit service ABI, faults and lifetimes with original inputs. Document evidence gaps for authentic Xbox platform contracts.\n\nFuture import behavior is tracked in [#55](https://github.com/ranveersoni98/Xenora/issues/55). Compatibility checks do not inspect user acquisition or ownership.","html_url":"https://github.com/MacosPorters/betterxen/milestone/6","number":6,"open_issues":0,"state":"open","title":"Phase 06 - Runtime Infrastructure"},{"closed_issues":5,"description":"Validate the integrated execution path and exact release candidate. Project-run title testing requires suitable inputs and independent evidence. The loader evaluates format and compatibility without checking where user files came from.","html_url":"https://github.com/MacosPorters/betterxen/milestone/7","number":7,"open_issues":1,"state":"open","title":"Phase 07 - Integrated Validation"}]
+70
View File
@@ -0,0 +1,70 @@
# Native-first README milestones (archived)
**Archived 2026-11-25; paused native research, not the active plan.** This section was the README's "Milestones" content on `main` when BetterXen moved to the CrossOver-based hybrid direction. Statuses describe the native implementation only, with synthetic evidence. The active plan is the [roadmap](../roadmap.md). Links below were written for the repository root README and may need adjusting.
## Native-first milestones
BetterXen's work order is the six [development phases](development-phases-native-first.md), which lead to one concrete target: the **first launchable application** (tracker [#311](https://github.com/MacosPorters/betterxen/issues/311)). That target is an original C program, built with native ARM64 tools, that runs through the ARM64 translator, controls its own translated shader pipeline, and shows its Metal frame in the native app window. It is **not** a commercial or authentic Xbox title, and no date or percentage is attached to it.
```mermaid
%%{init: {'theme':'base','themeVariables':{'fontFamily':'system-ui, sans-serif','lineColor':'#6e7781'}}}%%
flowchart LR
P1["<b>Phase 1</b><br/>Trustworthy baseline"]:::wip --> P2["<b>Phase 2</b><br/>Hosted C application"]:::wip
P2 --> P3["<b>Phase 3</b><br/>Coherent threading"]:::wip
P3 --> P4["<b>Phase 4</b><br/>Resource updates<br/>to translated rendering"]:::wip
P4 --> P5["<b>Phase 5</b><br/>One integrated<br/>interactive application"]:::plan
P5 --> P6["<b>Phase 6</b><br/>Measured performance"]:::plan
P2 --> L(["<b>First launchable app</b><br/>issue 311"]):::goal
P4 --> L
classDef wip fill:#fff8c5,stroke:#9a6700,color:#4d2d00
classDef plan fill:#eaeef2,stroke:#8c959f,color:#24292f
classDef goal fill:#dafbe1,stroke:#1a7f37,color:#0f5323,stroke-width:3px
```
<sub>🟨 work under way · ⬜ not started · 🟩 the next original-workload target. Nothing here is independently accepted.</sub>
| Phase | Goal | State | What exists now |
| --- | --- | --- | --- |
| **1 · Baseline** | Contributors can tell what exists on `main`, what is pending review, and which checks ran | 🟡 In progress | CODEOWNERS review, a fast repository hygiene check, claim-before-work rules, generated status tables and claim audits |
| **2 · Hosted C application** | An original hosted C program starts, uses the runtime, reports results and exits with checked cleanup | 🟡 In progress | CRT startup, arguments, exit handlers, formatted output, file streams and the hosted-C fixture (A2) are integrated; a stdio follow-up is still open and the result is not independently accepted |
| **3 · Threaded behavior** | A worker-based application can block and resume without stalling other guest work | 🟡 In progress | Deterministic scheduler, guest thread contexts, guarded stacks and thread services. Guest `Sleep` still delays all guest threads (#304); worker TLS and callback lifecycle is a design draft (#312) |
| **4 · Resource updates to rendering** | A guest updates a texture and geometry, submits translated rendering and gets a checked frame | 🟡 In progress | Persistent resources, descriptor-table texture binding, translated vertex and pixel stages, blend, depth and indexed draws. Guest-selected pipelines and the typed graphics bridge are open (#314–#316) |
| **5 · Integrated interactive app** | Guest execution, rendering, input, audio, filesystem and lifecycle in one session | ⚪ Planned | Swift app with frame loop, input, audio and sandboxed filesystem fixtures exists, but those demonstrations are not guest-integration evidence |
| **6 · Measured performance** | Faster execution of workloads whose correctness is already checked | ⚪ Planned | Startup, DBT and TLS measurements recorded; bottlenecks are chosen from measurements, not assumed |
The launch milestone's proposed acceptance is **60 bounded frames containing two independently distinguishable guest-controlled states, then a clean close and one restart**. Sixty is a fixture criterion, not a measured frame rate. The work is tracked as issues [#313](https://github.com/MacosPorters/betterxen/issues/313)–[#323](https://github.com/MacosPorters/betterxen/issues/323).
<details>
<summary><b>Capability reference: the original X1–X25 map</b></summary>
The X1–X25 names are an older, broad capability map. Keep them as a reference; use the phases above for the next work order. X10–X25 are proposed engineering milestones, not completed implementations or a guaranteed sequence.
| Milestone | Implementation | Status |
| --- | --- | --- |
| X1 — Guest CPU | Bounded x86-64 instruction execution on ARM64 macOS | Verified |
| X2 — Executable loading | Loading original fixed-base PE32+ test executables | Verified |
| X3 — GPU compute | Guest-submitted Metal compute workloads and readback | Verified |
| X4 — Metal rendering | Guest-driven offscreen rendering using authored Metal shaders | Verified |
| X5 — Guest execution expansion | Additional bounded CPU execution and fixture coverage | Implemented |
| X6 — Guest control flow | Nested calls, returns, checked memory and synthetic PE execution | Verified |
| X7 — Imported services | Named imports, guest-to-host service dispatch and result validation | Verified |
| X8 — Translated compute | Original gfx1030 compute shaders executing on Metal, partial Wave32 handling and BC1 readback | Verified subset |
| X9 — Translated graphics | Persistent resource handles, translated vertex/pixel stages and offscreen Metal rendering | Verified subset |
| X10 — Texture sampling | One translated `image_sample_lz` pixel stage with point/clamp sampling of RGBA8 and BC1 2D textures bound through descriptor tables, locally verified on Apple M5 Pro; upload, readback and decode of BC compressed formats (see [Texture support](#texture-support)). Other image instructions and formats are not implemented | Implemented subset |
| X11 — Graphics pipeline | Bounded multi-draw passes into offscreen RGBA8 targets: translated vertex and pixel stages, indexed triangle draws, colour write masks and blend state | Implemented |
| X12 — Wave execution | Expand Wave32/Wave64 semantics, divergent control flow, cross-lane operations, LDS and barriers | Planned |
| X13 — Advanced shaders | Mesh, geometry and additional compute shader capabilities with verified Metal execution | Planned |
| X14 — CPU recompilation | Native ARM64 dynamic recompilation of supported x86-64 instructions in synthetic fixtures | Implemented subset |
| X15 — Executable compatibility | Static PE inspection reports sections, relocations, thread-local storage (TLS) callbacks, imports and entry-point instructions | Static probe implemented |
| X16 — Guest memory and threading | Virtual memory mapping, thread scheduling, synchronization primitives and atomic operations | Implemented subset |
| X17 — System services | Implement a tested subset of Xbox-compatible runtime APIs, memory services, filesystem access and application lifecycle | Implemented subset |
| X18 — Graphics API translation | Translate supported Xbox graphics commands, resource descriptors, command queues, barriers and fences into Metal operations | Planned |
| X19 — Advanced GPU features | Indirect rendering, asynchronous compute, additional texture formats and ray-tracing compatibility research | Planned |
| X20 — Integrated guest runtime | Connect CPU recompilation, executable loading, system services and graphics translation into one persistent runtime | Planned |
| X21 — Application compatibility | Execute increasingly complex independently authored applications through the complete guest CPU and GPU pipeline | Planned |
| X22 — First application boot | Establish a reproducible startup and error-reporting path for supported game-like applications | Planned |
| X23 — Initial game compatibility | Investigate startup and execution of legally supported game software, identifying missing runtime and graphics behavior | Long-term goal |
| X24 — Gameplay and performance | Expand rendering correctness, input, audio, memory management, shader caching and execution performance | Long-term goal |
| X25 — Running games | Achieve reproducible, stable execution of compatible games on native Apple Silicon macOS using Metal | Long-term goal |
</details>
+11
View File
@@ -0,0 +1,11 @@
# Project board setup
Status: **not configured, and not an engineering blocker.** The token used so far lacks the GitHub `project` scope, and GitHub's API cannot create views. Tracked by [#346](https://github.com/MacosPorters/betterxen/issues/346).
One simple board for active work only:
1. `gh auth refresh -s project`, then create a project named "BetterXen Development".
2. Status (single select): Backlog, Ready, In Progress, In Review, Blocked, Done.
3. Fields: Priority (p1, p2, p3), Area (text), and the built-in Milestone, Assignees and Status. No other custom fields.
4. Add the open issues and pull requests (`gh project item-add`). Closed native issues stay out; they are indexed in [the native issue archive](../research/native-issue-archive.md).
5. Optional view in the web UI: a table filtered to the current milestone and sorted by Priority. No phase views and no native board.
+22
View File
@@ -0,0 +1,22 @@
# Component reuse matrix
Companion to the [upstream registry](upstream-registry.md); same evidence limits (class D, nothing run, not legal advice). "External" means installed or supplied by the user and invoked, never bundled or copied. GPL-3.0-or-later is BetterXen's license.
| Need | Candidate | Decision | Reason and condition |
| --- | --- | --- | --- |
| Windows runtime APIs | CrossOver (Wine-based) | **Adopt as external dependency** (strategic decision, ADR 0005) | Proprietary product; do not bundle or redistribute. Capabilities and interfaces unverified (#348, #350). |
| Windows runtime APIs | Upstream Wine | Reference; source may be consulted | LGPL 2.1. Copying source would need per-file review and a recorded pin. Not needed for the current plan. |
| x86-64 on ARM64 | Rosetta 2 | **Permitted where Apple supports it**; external | Apple component; support lifetime unknown (#349). BetterXen's own code stays ARM64. |
| x86-64 on ARM64 | FEX | **Not applicable now** | README targets ARM64 Linux. Re-check only if a macOS host path appears. |
| Direct3D 12 to Metal | D3DMetal | **Evaluate as external**, subject to license | Not in CodeWeavers' FOSS list; terms and availability to verify (#349, #354). Not redistributable until proven. |
| Direct3D 11/10 to Metal | DXMT | **Evaluate** as external binary or build | LGPL 2.1-or-later; usable as a separate process or library under LGPL terms; linking or copying needs legal review (#354). |
| Direct3D to Vulkan | DXVK | **Evaluate** only together with MoltenVK | zlib/libpng is permissive and GPL-compatible. Value on macOS unknown. |
| Direct3D 12 to Vulkan | VKD3D-Proton | **Evaluate**; blocked on a Vulkan 1.3 provider | Depends on MoltenVK feature coverage, unknown. |
| Vulkan on Metal | MoltenVK | **Evaluate** | Apache-2.0 (compatible with GPLv3). Subset of Vulkan; coverage vs consumers unknown. |
| Shader compiler / runtime | VIctory, VIctory-macOS | **Rejected for reuse** | Built for a specific commercial game's Xbox Series build whose provenance is not established as authorized. Ideas only. |
| Project discovery | PortWatch VI | Reference only | Editorial tracker; not engineering evidence; nothing imported. |
| x86-64 decode and ARM64 translation, runtime, gfx1030 compiler, Metal backend | BetterXen native implementation | **Preserved, paused** | Reuse only where hybrid needs it and it shows a demonstrated advantage; not forced into the architecture. |
| Test and diagnostics methodology | BetterXen existing audits, benchmark harness, claims registry | **Reuse** | Existing evidence classes, claims audit and benchmark gating apply to hybrid work (Phase 1 onward). |
| Configuration, diagnostics, benchmarking around CrossOver | BetterXen | **Build** (Phase 2, provisional) | Only after Phase 1 shows what CrossOver does not already provide (#351). |
Open items: license text for every selected component must be read from the exact release used; DXMT, DXVK and Wine contributor and file-level notices are not reviewed.
@@ -0,0 +1,41 @@
# Hybrid backlog research record (2026-11-25)
Evidence class D: public documentation and repository metadata, plus search summaries; see [primary-source-verification-2026-11-25.md](primary-source-verification-2026-11-25.md) for the re-check. Nothing was installed, built or run. Not legal advice. Candidate registry rows are listed here; merge them into [upstream-registry.md](upstream-registry.md) once that file's pending commit has landed.
## Findings that created issues
| Finding | Source | Consequence |
| --- | --- | --- |
| CrossOver 27 reportedly requires Apple silicon and macOS Sonoma+, drops 32-bit bottles, and an ARM64 build without Rosetta 2 is planned; Apple keeps Rosetta fully through macOS 27, a subset after | CodeWeavers blog 2026-06-11 and Apple WWDC 2025 (search summaries; primary pages not retrieved) | [#374](https://github.com/MacosPorters/betterxen/issues/374), comment on #349 |
| Bottle backend is reportedly set by `CX_GRAPHICS_BACKEND` (d3dmetal, dxmt, dxvk, wined3d) in `cxbottle.conf`; no official documentation found | Third-party projects | Unverified; #350 must confirm before [#366](https://github.com/MacosPorters/betterxen/issues/366) relies on it |
| Cross-building anything for Wine needs mingw-w64 or llvm-mingw | DXMT `docs/DEVELOPMENT.md` | [#364](https://github.com/MacosPorters/betterxen/issues/364) |
| Wine and vkd3d-proton ship Direct3D conformance tests that can be built as standalone PE programs | `wine-mirror/wine` `dlls/d3d11/tests`, `vkd3d-proton` `tests/` | [#369](https://github.com/MacosPorters/betterxen/issues/369) |
| DXMT offers Metal-coordinated frame pacing and MetalFX upscaling; DXMT is D3D11/10 only | DXMT `docs/CUSTOMIZATION.md`, README | [#370](https://github.com/MacosPorters/betterxen/issues/370) |
| DXMT compiles shaders at runtime with an LLVM-based compiler | DXMT `src/airconv` | [#371](https://github.com/MacosPorters/betterxen/issues/371) (hypothesis to test) |
| Metal HUD frame data is logged with `MTL_HUD_ENABLED`; logging variable name differs between sources; frame data may be redacted in the unified log | Apple tech talk, community tools | #145, [#372](https://github.com/MacosPorters/betterxen/issues/372) |
| D3DMetal license reportedly limits use to evaluation and restricts redistribution | Secondary sources | #354 must read Apple's License.pdf; never bundle |
## Registry candidates
| Project | Pin / state observed | License as reported | Classification | Issue |
| --- | --- | --- | --- | --- |
| llvm-mingw / mingw-w64 | not pinned yet | to read per release | External dependency | #364 |
| Wine conformance tests | `wine-mirror/wine`, pushed 2026-11-24 | LGPL-2.1-or-later | Run as external programs, not copied | #369 |
| vkd3d-proton tests | pushed 2026-11-25 | LGPL-2.1 | Requires feasibility validation (D3D12 path unconfirmed) | #369 |
| DXMT | v0.80 (2026-04-23) | LGPL-2.1-or-later | Requires feasibility validation; external | #370, #371 |
| Apple Game Porting Toolkit / D3DMetal | not retrieved | Apple license, reportedly restrictive | Requires licensing clarification; user-supplied only | #354 |
| Whisky | archived 2025-05-11 | GPL-3.0 | Technical reference only | #366 |
| Gcenx macOS Wine builds, Sikarugir | Sikarugir reports no license | unknown | Technical reference only; no reuse | none |
| MetalHUDLogger and similar community tools | not reviewed | unknown | Technical reference only | #145 |
| FEX, QEMU, LLVM, MoltenVK, DXVK, Xenia | see upstream registry | see registry | FEX: not applicable on macOS. Others: no change from existing registry | none |
| VIctory family, PortWatch VI | see upstream registry | GPL-3.0 (repos) | Rejected for reuse: the tracker describes efforts built around a leaked Xbox Series build of a commercial game; PortWatch is used for discovery only | none |
Not investigated in depth: Xenia internals and QEMU, because neither runs Windows x86-64 programs on macOS ARM64 in a way relevant to the CrossOver architecture; this is a judgement, not a finding.
## Issues created
Existing hybrid issues #344 to #355, #363, #145, #204, #257, #303 were left to the other planning session. New: #364 to #374, and phase trackers #375 (H3), #376 (H4), #377 (H5). Dependencies are recorded as GitHub blocked-by and sub-issue relationships.
## Conditional work deliberately not filed
D3D12 workloads (after #349 confirms a path), input-injection tests, a compatibility matrix generator (after #368), upstream contributions to DXMT or Wine (after #369 and #370 produce concrete findings), and release engineering (H6).
+183
View File
@@ -0,0 +1,183 @@
# Native issue archive
**Preserved history, not a backlog.** BetterXen's active direction is the CrossOver-based hybrid architecture ([roadmap](../roadmap.md)). The independent native implementation is paused indefinitely; this page replaces its GitHub issue backlog so the work can be found without occupying the active Issues tab. Native source code, tests, benchmarks, Git history and attribution are untouched. Resuming native work needs an explicit maintainer decision ([native roadmap](native-roadmap.md)).
Every issue below keeps its full text, comments and attribution on GitHub and can be reopened; closing used the reason "not planned". Issues imported from the earlier Xenora repository say so in their first lines, and their original author is recorded below. Excerpts are the first sentence of the issue's objective, not a summary of acceptance criteria.
## Active-work transitions
Four native issues stay open because a contributor is assigned and has an open pull request. They are the only open native-only issues and each carries a comment asking the contributor to say whether to continue as archived native research, re-scope, or withdraw:
| Issue | Assignee | Pull request |
| --- | --- | --- |
| [#247](https://github.com/MacosPorters/betterxen/issues/247) native app quick start | atesahmet0 | [#310](https://github.com/MacosPorters/betterxen/pull/310) |
| [#291](https://github.com/MacosPorters/betterxen/issues/291) executable writes inside a translated block | maridogolpeador | [#327](https://github.com/MacosPorters/betterxen/pull/327) |
| [#307](https://github.com/MacosPorters/betterxen/issues/307) CRT stdio follow-up | soggyramennoodle | [#263](https://github.com/MacosPorters/betterxen/pull/263), [#290](https://github.com/MacosPorters/betterxen/pull/290) |
| [#313](https://github.com/MacosPorters/betterxen/issues/313) original compiled C guest | soggyramennoodle | [#330](https://github.com/MacosPorters/betterxen/pull/330) |
Open pull requests for issues that were closed (#308, #312, #328, #329, #339, #340, #341, #342) were left untouched; each received a comment explaining the transition so maintainers and authors can decide whether to merge them as research or close them.
## Native pieces hybrid development might use
Nothing in the native backlog is a prerequisite for the hybrid phases. One possible reuse is already noted: the original compiled C guest fixture of #313/#330 could serve as one authorized test workload for hybrid baselines ([#364](https://github.com/MacosPorters/betterxen/issues/364)). If hybrid work needs any other native component, it should be filed as a focused hybrid issue.
## Findings preserved from discussions
- **Remill evaluation ([#324](https://github.com/MacosPorters/betterxen/issues/324)).** An isolated, native ARM64 evaluation pinned Remill at `66c488c9911fd9b368e4d0c9647d74239f8bba8b`. Five original AMD64 traces lifted and ran with 32 passing case/path checks. A second pass recorded eight floating-point mismatches (guest rounding, MXCSR sticky flags, denormals-are-zeros, an unmasked precision exception) and a loop that needed external termination; the decision was to retain the existing CPU path, and the failing gate was left failing. An adapter design was written. Published on branch `research/remill-arm64` (commit `e50268d8723a29a365a36c6b665db6d4e3733f6b`; `experiments/remill/`). Local test results, not CI; no independent acceptance.
- **VIctory shader-compiler feasibility ([#261](https://github.com/MacosPorters/betterxen/issues/261)).** Local experiments (`experiments/victory-native/`, uncommitted, on a local branch) built a pinned shader compiler natively, translated original gfx1030 fixtures to DXIL, converted them with Apple's Metal shader converter and checked native Metal readback (a 4x4 pixel probe and a 32-word buffer transform) on an M4, plus a review of an upstream Xenora snapshot (114 tests passed). Those materials depend on VIctory-family source whose input provenance the [upstream registry](upstream-registry.md) does not clear for reuse; they are not part of this branch and nothing from them is adopted.
- **PortWatch review and native plan ([#298](https://github.com/MacosPorters/betterxen/issues/298), [PR #308](https://github.com/MacosPorters/betterxen/pull/308)).** Produced [portwatch-native-macos.md](portwatch-native-macos.md) and a seven-phase native plan (open PR #308, which replaces the README X1 to X25 table). The native plan is superseded by the hybrid roadmap; the PortWatch screening facts remain useful.
- **Metal buffer pool ([#130](https://github.com/MacosPorters/betterxen/issues/130)).** A bounded completed-buffer pool imported from upstream Xenora commit `4f3d0ae1ca44ff5e01e569eab07f776af43d2f8e` (author Vedant Dadhich, GPL-3.0-or-later attribution retained) passed 58 native tests locally with a negative control; a pipeline-selection fixture was added under [#315](https://github.com/MacosPorters/betterxen/issues/315). Local branch `integration/xenora-metal-pool`, not pushed.
- **C++ unwind prerequisite ([#343](https://github.com/MacosPorters/betterxen/issues/343)).** An isolated `experiments/cpp-unwind` workspace adapting restricted prolog-restoration logic from upstream Xenora (Swastick Chowdhury, SPDX notice retained); local branch `integration/cpp-unwind`, not pushed.
Local branches and worktrees named above are not on GitHub; their owners decide whether to publish them.
## Index
### CPU correctness and translation
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#62](https://github.com/MacosPorters/betterxen/issues/62) [CPU] Verify RIP-relative effective-address computation | ranveersoni98 | 1 | - | closed, not planned | Audit the shared effective-address emitter for RIP-relative operands. Verify positive and negative displacements and instruction-end address |
| [#63](https://github.com/MacosPorters/betterxen/issues/63) [CPU] Correct legacy high-byte register semantics | ranveersoni98 | 1 | - | closed, not planned | Verify AH, CH, DH and BH handling without REX and SPL, BPL, SIL and DIL with REX. Reject unsupported combinations explicitly. |
| [#64](https://github.com/MacosPorters/betterxen/issues/64) [CPU] Implement bounded x86 instruction prefix decoding | ranveersoni98 | 1 | - | closed, not planned | Enforce architectural instruction-length limits and validate repeated or conflicting prefixes. Add truncated-input and boundary regression t |
| [#65](https://github.com/MacosPorters/betterxen/issues/65) [CPU] Verify guest flags across translated block boundaries | ranveersoni98 | 1 | - | closed, not planned | Verify architectural flags survive translated block transitions, helper calls and subsequent conditional branches. Use independent expected |
| [#66](https://github.com/MacosPorters/betterxen/issues/66) [CPU] Add parity flag and parity-dependent branch semantics | ranveersoni98 | 1 | - | closed, not planned | Implement a documented and tested parity-flag subset, including JP and JNP. Preserve existing CPU state layout contracts. |
| [#68](https://github.com/MacosPorters/betterxen/issues/68) [CPU] Correct LEA effective-address semantics | ranveersoni98 | 1 | - | closed, not planned | Verify LEA operand widths, SIB calculations, RIP-relative addressing and the distinction between effective-address computation and segment-r |
| [#113](https://github.com/MacosPorters/betterxen/issues/113) [CPU-NEXT] Add independently verified MOVSXD semantics | ranveersoni98 | 1 | - | closed, not planned | Verify signed 32-to-64 extension for register and memory operands, both signs, and fault-state preservation. |
| [#114](https://github.com/MacosPorters/betterxen/issues/114) [CPU-NEXT] Add 16-bit operand-size semantics for bounded integer instr | ranveersoni98 | 1 | - | closed, not planned | Test low-word updates, preservation of upper bits, immediate length, and unsupported prefix combinations; compare native and independent exp |
| [#115](https://github.com/MacosPorters/betterxen/issues/115) [CPU-NEXT] Implement CMP and TEST memory operand coverage | ranveersoni98 | 1 | - | closed, not planned | Verify 8/16/32/64-bit forms within the supported subset, taken and untaken branches, flags, no memory writes, and precise faults. |
| [#116](https://github.com/MacosPorters/betterxen/issues/116) [CPU-NEXT] Implement memory operand integer ALU subset | ranveersoni98 | 1 | - | closed, not planned | Add independently verified ADD/SUB/AND/OR/XOR memory forms; verify read-modify-write boundaries, flags, widths and no partial side effects o |
| [#118](https://github.com/MacosPorters/betterxen/issues/118) [CPU-NEXT] Implement integer multiply and divide semantics | ranveersoni98 | 1 | - | closed, not planned | Cover selected documented MUL/IMUL/DIV/IDIV forms, signedness, implicit registers, quotient overflow and divide-by-zero guest faults. |
| [#119](https://github.com/MacosPorters/betterxen/issues/119) [CPU-NEXT] Implement conditional moves and SETcc | ranveersoni98 | 1 | - | closed, not planned | Test supported conditions across signed/unsigned boundaries, aliasing, byte register writes and documented memory-fault behavior. |
| [#120](https://github.com/MacosPorters/betterxen/issues/120) [CPU-NEXT] Define and verify guest SIMD architectural state | ranveersoni98 | 1 | - | closed, not planned | Introduce a bounded, documented XMM state representation with layout assertions and correct save/preservation across helpers. No instruction |
| [#121](https://github.com/MacosPorters/betterxen/issues/121) [CPU-NEXT] Implement bounded SSE2 vector move and bitwise operations | ranveersoni98 | 1 | - | closed, not planned | Verify selected aligned/unaligned vector moves and packed AND/OR/XOR against original known answers, including aliasing and memory faults. |
| [#122](https://github.com/MacosPorters/betterxen/issues/122) [CPU-NEXT] Implement bounded SSE2 packed integer arithmetic | ranveersoni98 | 1 | - | closed, not planned | Verify selected packed adds/subtracts, comparisons and lane widths against independently derived vectors; no unsupported saturation behavior |
| [#123](https://github.com/MacosPorters/betterxen/issues/123) [CPU-NEXT] Implement verified scalar SSE floating-point subset | ranveersoni98 | 1 | - | closed, not planned | Define rounding and supported FP domain before implementing selected scalar operations. Test signed zero, finite boundary values and explici |
| [#124](https://github.com/MacosPorters/betterxen/issues/124) [CPU-NEXT] Define guest floating-point control and exception state | ranveersoni98 | 1 | - | closed, not planned | Verify documented MXCSR subset, reserved bits, reset state, preservation and unsupported-mode diagnostics; do not globally modify host FP mo |
| [#127](https://github.com/MacosPorters/betterxen/issues/127) [CPU-NEXT] Audit ARM64 assembler encoding coverage for new CPU operati | ranveersoni98 | 1 | - | closed, not planned | Compare representative legal encodings with native LLVM assembler results; reject invalid ranges and preserve existing independently derived |
| [#191](https://github.com/MacosPorters/betterxen/issues/191) [CPU] Model guest memory ordering and fence instructions | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#291](https://github.com/MacosPorters/betterxen/issues/291) Handle executable writes within an active translated block | Arths17 | 3 | #327 | open (active work) | PR #269 revalidates translated code at dispatch boundaries. A guest store that modifies a later instruction in the currently executing trans |
| [#300](https://github.com/MacosPorters/betterxen/issues/300) [CPU RESEARCH] Specify bounded AMD64 unwind before guest exception dis | Arths17 | 2 | #329 | closed, not planned | Guest faults currently terminate execution; the hosted-C A2 fixture imports __C_specific_handler but never calls it. That stub traps. Window |
| [#324](https://github.com/MacosPorters/betterxen/issues/324) [CPU RESEARCH] Evaluate Remill in an isolated native ARM64 experiment | Arths17 | 9 | - | closed, not planned | Evaluate Remill as an isolated native Apple Silicon CPU-backend experiment. Requested by the maintainer; do not replace the production DBT o |
| [#343](https://github.com/MacosPorters/betterxen/issues/343) [C++ INTEGRATION] Add isolated bounded unwind prerequisite | Arths17 | 3 | - | closed, not planned | User-authorized first C++ integration slice: a bounded, read-only AMD64 unwind prerequisite, adapted from the pinned native Xenora implement |
### DBT performance
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#80](https://github.com/MacosPorters/betterxen/issues/80) [CPU] Add native DBT performance regression benchmarks | ranveersoni98 | 1 | #341 | closed, not planned | Expand original CPU benchmarks to measure cold translation, cached execution, branch-heavy workloads and checked memory operations. Report r |
| [#82](https://github.com/MacosPorters/betterxen/issues/82) [PERF-CPU] Implement adaptive DBT basic-block sizing | ranveersoni98 | 1 | - | closed, not planned | Benchmark alternatives to the fixed 16-instruction block limit. Preserve instruction budgets, fault accounting and deterministic execution. |
| [#84](https://github.com/MacosPorters/betterxen/issues/84) [PERF-CPU] Implement guest-to-host register allocation | ranveersoni98 | 1 | - | closed, not planned | Investigate keeping frequently accessed guest registers in ARM64 registers. Implement correct spilling, helper-call preservation and archite |
| [#85](https://github.com/MacosPorters/betterxen/issues/85) [PERF-CPU] Eliminate redundant guest register loads and stores | ranveersoni98 | 1 | - | closed, not planned | Track register values within translated blocks and eliminate redundant CPU-state accesses without changing observable guest behavior. |
| [#86](https://github.com/MacosPorters/betterxen/issues/86) [PERF-CPU] Implement conservative DBT dead-store elimination | ranveersoni98 | 1 | - | closed, not planned | Eliminate overwritten register assignments where safe. Preserve state at faults, service calls and block exits. |
| [#87](https://github.com/MacosPorters/betterxen/issues/87) [PERF-CPU] Implement lightweight leaf-block generation | ranveersoni98 | 1 | - | closed, not planned | Avoid unnecessary stack-frame operations in translated blocks that do not call host helpers. Verify ARM64 ABI compliance. |
| [#90](https://github.com/MacosPorters/betterxen/issues/90) [PERF-CPU] Investigate safe direct basic-block linking | ranveersoni98 | 1 | - | closed, not planned | Reduce dispatcher overhead through validated block linking. Preserve cache invalidation, instruction limits and executable-memory protection |
| [#91](https://github.com/MacosPorters/betterxen/issues/91) [PERF-CPU] Implement hot-block execution profiling | ranveersoni98 | 1 | - | closed, not planned | Measure guest block execution frequencies and identify expensive frequently executed blocks. Keep instrumentation optional and bounded. |
| [#92](https://github.com/MacosPorters/betterxen/issues/92) [PERF-CPU] Investigate tiered native translation | ranveersoni98 | 1 | - | closed, not planned | Design a lightweight first-tier translator and optional optimized translation for measured hot blocks. Implement only after profiling and co |
| [#93](https://github.com/MacosPorters/betterxen/issues/93) [PERF-CPU] Implement fast DBT dispatch lookup cache | ranveersoni98 | 1 | - | closed, not planned | Benchmark a small front cache ahead of existing HashMap lookups. Preserve complete cache identity and invalidation. |
| [#94](https://github.com/MacosPorters/betterxen/issues/94) [PERF-CPU] Reduce budget-limited translation duplication | ranveersoni98 | 1 | - | closed, not planned | Measure duplicate translations in limited_block_cache. Safely reuse compatible blocks only where instruction accounting remains exact. |
| [#95](https://github.com/MacosPorters/betterxen/issues/95) [PERF-CPU] Implement bounded JIT cache reclamation | ranveersoni98 | 1 | - | closed, not planned | Design safe reclamation for exhausted code caches. Ensure no live translated pointer references reclaimed code. |
| [#96](https://github.com/MacosPorters/betterxen/issues/96) [PERF-CPU] Measure and optimize JIT code publication | ranveersoni98 | 1 | - | closed, not planned | Measure code-copy and instruction-cache synchronization costs. Investigate bounded batching while retaining all macOS JIT protections. |
| [#97](https://github.com/MacosPorters/betterxen/issues/97) [PERF-CPU] Reuse DBT fault-guard scratch storage | ranveersoni98 | 1 | - | closed, not planned | Measure allocation overhead from per-block fault_guards vectors. Reuse bounded scratch storage without retaining stale patch locations. |
| [#98](https://github.com/MacosPorters/betterxen/issues/98) [PERF-CPU] Replace linear guest memory lookup with indexed regions | ranveersoni98 | 1 | - | closed, not planned | Compare sorted-region binary search with the current linear region scan. Preserve permissions, overflow checks and exact fault behavior. |
| [#99](https://github.com/MacosPorters/betterxen/issues/99) [PERF-CPU] Implement checked guest memory locality cache | ranveersoni98 | 1 | - | closed, not planned | Cache recently accessed guest region identities. Invalidate on mapping changes and revalidate permissions and access bounds. |
| [#100](https://github.com/MacosPorters/betterxen/issues/100) [PERF-CPU] Optimize guest instruction-byte fetch | ranveersoni98 | 1 | - | closed, not planned | Reduce repeated region lookups during sequential instruction decoding using bounded, execute-permission-checked fetch windows. |
| [#102](https://github.com/MacosPorters/betterxen/issues/102) [PERF-CPU] Optimize mapped-region insertion and removal | ranveersoni98 | 1 | - | closed, not planned | Benchmark mapping operations across realistic synthetic region counts. Improve lookup and maintenance costs while preserving overlap rejecti |
| [#103](https://github.com/MacosPorters/betterxen/issues/103) [PERF-CPU] Measure guest memory allocation and copying costs | ranveersoni98 | 1 | - | closed, not planned | Identify avoidable allocations and copies in original memory workloads. Preserve zero initialization and guest isolation. |
| [#104](https://github.com/MacosPorters/betterxen/issues/104) [PERF-CPU] Optimize repeated PE RVA resolution | ranveersoni98 | 1 | - | closed, not planned | Benchmark section lookup and introduce a validated indexed representation where beneficial. Depend on checked PE range validation. |
| [#106](https://github.com/MacosPorters/betterxen/issues/106) [PERF-CPU] Profile PE loading and startup stages | ranveersoni98 | 1 | - | closed, not planned | Measure parsing, mapping, relocation, import binding, TLS setup and entry execution separately. Use original fixtures only. |
| [#111](https://github.com/MacosPorters/betterxen/issues/111) [PERF-CPU] Expand DBT performance instrumentation | ranveersoni98 | 1 | - | closed, not planned | Track translation time, dispatch time, guest-memory helper calls, cache-hit ratios, emitted bytes per guest instruction and code-cache utili |
| [#169](https://github.com/MacosPorters/betterxen/issues/169) [CPU] Measure native code expansion by guest instruction family | ranveersoni98 | 1 | #342 | closed, not planned | criteria |
### GPU, shader and Metal
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#129](https://github.com/MacosPorters/betterxen/issues/129) [GPU-NEXT] Benchmark Metal render pipeline reuse | ranveersoni98 | 1 | - | closed, not planned | Measure repeated render setup separately from GPU time; verify complete pipeline identity, output pixels and cache lifetime. |
| [#130](https://github.com/MacosPorters/betterxen/issues/130) [GPU-NEXT] Reduce verified Metal buffer allocation churn | ranveersoni98 | 4 | - | closed, not planned | Profile allocation count and latency in repeated original compute/render fixtures; implement bounded reuse with initialization and completio |
| [#132](https://github.com/MacosPorters/betterxen/issues/132) [GPU-NEXT] Measure and reduce synchronous GPU readback overhead | ranveersoni98 | 1 | - | closed, not planned | Separate submission, completion and readback timings. Add a bounded opt-in asynchronous original-fixture path only if justified; verify outp |
| [#133](https://github.com/MacosPorters/betterxen/issues/133) [GPU-NEXT] Benchmark multi-command Metal submission batching | ranveersoni98 | 1 | - | closed, not planned | Compare individual versus batched independent original commands; verify barriers, ordering, bounded queue depth and matching outputs. |
| [#135](https://github.com/MacosPorters/betterxen/issues/135) [GPU-NEXT] Separate shader translation validation from reusable compil | ranveersoni98 | 1 | - | closed, not planned | Measure repeated translation of identical original inputs; define complete validated artifact identity including architecture and semantic o |
| [#136](https://github.com/MacosPorters/betterxen/issues/136) [GPU-NEXT] Measure shader IR allocation and MSL emission costs | ranveersoni98 | 1 | - | closed, not planned | Profile decode, lift, analysis and emission separately on original workloads; reduce demonstrated temporary allocation costs without changin |
| [#139](https://github.com/MacosPorters/betterxen/issues/139) [GPU-NEXT] Benchmark bounded BC1 linearization and upload paths | ranveersoni98 | 1 | - | closed, not planned | Measure untile, staging and upload costs on original texture patterns across sizes, mips and layers; verify pixel equality and malformed-inp |
| [#141](https://github.com/MacosPorters/betterxen/issues/141) [GPU-NEXT] Benchmark partial mip updates and upload coalescing | ranveersoni98 | 1 | - | closed, not planned | Compare whole and selected-mip updates; verify dimensions, row pitch, unchanged neighboring mips and completion semantics. |
| [#142](https://github.com/MacosPorters/betterxen/issues/142) [GPU-NEXT] Measure shader and graphics resource budget scaling | ranveersoni98 | 1 | - | closed, not planned | Characterize existing 4096-scale fixture limits and resource use. If justified, add configurable bounded synthetic workload tiers with check |
| [#179](https://github.com/MacosPorters/betterxen/issues/179) [GPU] Implement runtime-dependent uniform shader branches | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#180](https://github.com/MacosPorters/betterxen/issues/180) [GPU] Add bounded shader loop semantics and termination checks | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#181](https://github.com/MacosPorters/betterxen/issues/181) [GPU] Implement typed scalar buffer reads with checked resource ranges | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#182](https://github.com/MacosPorters/betterxen/issues/182) [GPU] Add vector multiply-add and explicit floating-point rounding con | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#205](https://github.com/MacosPorters/betterxen/issues/205) [GPU] Build a metadata-driven RDNA2 semantic expansion pipeline | ranveersoni98 | 1 | - | closed, not planned | Xenora currently identifies approximately 1,460 RDNA2 instruction forms but semantically decodes only 25. |
| [#208](https://github.com/MacosPorters/betterxen/issues/208) [GPU] Decode BC6H two-region modes (CPU) | elforeign | 1 | - | closed, not planned | criteria |
| [#209](https://github.com/MacosPorters/betterxen/issues/209) [GPU] Native Metal upload and readback of BC6H and BC7 | elforeign | 1 | - | closed, not planned | criteria |
| [#224](https://github.com/MacosPorters/betterxen/issues/224) [GPU] Guest graphics fences with Metal shared events | elforeign | 1 | - | closed, not planned | ## Goal Give the guest graphics runtime (`crates/loader/src/graphics.rs`) a fence object with the publicly documented D3D12 contract: a que |
| [#225](https://github.com/MacosPorters/betterxen/issues/225) [QA] Define and run acceptance for the 86 locally verified gfx1030 for | elforeign | 1 | - | closed, not planned | ## Area QA / GPU ## Problem `docs/status.toml` at `eb85731` lists 104 gfx1030 forms. Only 18 count as accepted (`gpu = "fixture verified"`) |
| [#258](https://github.com/MacosPorters/betterxen/issues/258) [PERF] Evaluate bounded Metal cache prewarming and persistence after s | Arths17 | 1 | - | closed, not planned | Xenora already has a [bounded context-local compute cache](https://github.com/ranveersoni98/Xenora/blob/3b47c21bb008dcb38be704d540776f7cd046 |
| [#302](https://github.com/MacosPorters/betterxen/issues/302) [GPU RESEARCH] Define explicit shader entry and resource bindings beyo | Arths17 | 1 | #340 | closed, not planned | graphics.rs already translates image_sample_lz and #226 added guest texture/sampler descriptor tables. The remaining gap is not “add texture |
### Integration workloads and shared accounting
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#143](https://github.com/MacosPorters/betterxen/issues/143) [INTEGRATION-NEXT] Add original CPU-to-GPU mixed workload benchmark | ranveersoni98 | 1 | - | closed, not planned | Create a small original synthetic workload that executes verified CPU arithmetic, checked buffer updates and native rendering; validate know |
| [#146](https://github.com/MacosPorters/betterxen/issues/146) [INTEGRATION-NEXT] Add deterministic synthetic transform workload | ranveersoni98 | 1 | - | closed, not planned | Use independently authored integer and supported finite FP transforms with known expected outputs; compare supported CPU and GPU implementat |
| [#147](https://github.com/MacosPorters/betterxen/issues/147) [INTEGRATION-NEXT] Add original texture-update and draw workload | ranveersoni98 | 1 | - | closed, not planned | Build an original multi-frame texture update/draw case with known texels and pixels, bounded resources and explicit native verification. |
| [#148](https://github.com/MacosPorters/betterxen/issues/148) [INTEGRATION-NEXT] Verify CPU and GPU shared resource ownership under | ranveersoni98 | 1 | - | closed, not planned | Use synthetic resources to verify permitted transitions, stale-handle rejection, completion-aware cleanup and deterministic failure without |
| [#149](https://github.com/MacosPorters/betterxen/issues/149) [INTEGRATION-NEXT] Add long-running bounded original workload soak tes | ranveersoni98 | 1 | - | closed, not planned | Run a fixed number of validated synthetic iterations; report peak memory, cache growth, handles and deterministic outputs. Enforce time/reso |
| [#150](https://github.com/MacosPorters/betterxen/issues/150) [INTEGRATION-NEXT] Add replayable original workload input corpus | ranveersoni98 | 1 | - | closed, not planned | Define versioned independently authored fixture inputs, deterministic seeds and expected outcomes. Replay only original data; verify limits |
| [#159](https://github.com/MacosPorters/betterxen/issues/159) [SHARED-NEXT] Define shared CPU/GPU frame workload and timing interfac | ranveersoni98 | 1 | #328 | closed, not planned | Agree on bounded original workload inputs, frame completion, metrics units, resource lifetime and deterministic failure contracts before any |
| [#160](https://github.com/MacosPorters/betterxen/issues/160) [SHARED-NEXT] Define bounded native GPU workload resource budget contr | ranveersoni98 | 1 | - | closed, not planned | Document limits for buffers, textures, queued work, compilation and staging; define explicit resource-exhaustion behavior and compatibility |
| [#199](https://github.com/MacosPorters/betterxen/issues/199) [SHARED] Define unified CPU JIT and GPU allocation accounting | ranveersoni98 | 1 | - | closed, not planned | criteria |
### Runtime and loader
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#195](https://github.com/MacosPorters/betterxen/issues/195) [RUNTIME] Add virtual memory reserve commit decommit state tests | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#198](https://github.com/MacosPorters/betterxen/issues/198) [RUNTIME] Add CRT overlapping memory move and bounded string edge case | ranveersoni98 | 1 | - | closed, not planned | criteria |
| [#211](https://github.com/MacosPorters/betterxen/issues/211) feat: Add a read-only dependency census for PE packages | elforeign | 1 | - | closed, not planned | The static probe takes one PE file at a time. With an EXE and companion DLLs, it takes a separate manual pass to tell which symbols the pack |
| [#212](https://github.com/MacosPorters/betterxen/issues/212) [SHARED] Decide whether to relax the CLI runner's exact-bytes trust ga | Swastickc | 1 | - | closed, not planned | ## Question for the maintainer Should the CLI runner's exact-bytes trust gate be relaxed? A contributor asked for this error to be removed: |
| [#227](https://github.com/MacosPorters/betterxen/issues/227) Audio: native PCM mixer and CoreAudio output (location and Gate 6 brid | elforeign | 1 | - | closed, not planned | ### Area audio ### Summary I have a standalone prototype of a native PCM mixer with opt-in CoreAudio output for Apple Silicon: a bounded co |
| [#228](https://github.com/MacosPorters/betterxen/issues/228) [RUNTIME] Deterministic guest thread scheduler | jelly013 | 1 | - | closed, not planned | guest threads do not exist yet: CreateThread is absent and, as synch.rs states, a call that would block another guest thread stops the gues |
| [#301](https://github.com/MacosPorters/betterxen/issues/301) [LOADER] Specify and test an original two-DLL startup graph | Arths17 | 1 | - | closed, not planned | run_synthetic_startup accepts one image, and services/modules.rs exposes built-in service modules. Those are not general guest DLL mapping, |
| [#304](https://github.com/MacosPorters/betterxen/issues/304) [RUNTIME] Make guest Sleep yield without blocking other scheduled thre | Arths17 | 1 | - | closed, not planned | docs/runtime/threads.md explicitly says Sleep delays every guest thread. A deterministic single-host-thread scheduler is already implemented |
| [#305](https://github.com/MacosPorters/betterxen/issues/305) [RUNTIME RESEARCH] Specify static TLS and callback lifecycle for sched | Arths17 | 1 | #312 | closed, not planned | the scheduler already gives each worker a TEB, stack, dynamic TLS/FLS values and cleanup, but docs/runtime/threads.md explicitly excludes PE |
| [#307](https://github.com/MacosPorters/betterxen/issues/307) [RUNTIME] CRT stdio follow-up: fread/fseek/ftell, fgetc/ungetc and hos | soggyramennoodle | 1 | #263, #290 | open (active work) | PR #290 took its own CRT stdio module (`crt_stdio.rs`) out in `e1f7176`, because `main` gained its own `fopen`/`fclose`/`fwrite`/`__acrt_iob |
| [#322](https://github.com/MacosPorters/betterxen/issues/322) [RUNTIME] Replace the VirtualQuery trap for a documented guest-memory | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness Ready for memory-query contract and failing guest tests. Production metadata changes coordinate #195 and memory.rs |
| [#323](https://github.com/MacosPorters/betterxen/issues/323) [RUNTIME] Implement a bounded data-page VirtualProtect subset with tra | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness Ready for protection contract/failing-test design. Implementation follows the agreed memory metadata model in #322/ |
| [#331](https://github.com/MacosPorters/betterxen/issues/331) Keep host-mounted file opens nonblocking | soggyramennoodle | 1 | - | closed, not planned | Follow-up from the review of #290. Harden regular-file opens so a host-side file type change cannot leave a BetterXen host thread waiting in |
| [#332](https://github.com/MacosPorters/betterxen/issues/332) Bound the cost of lookups in large host-mounted directories | soggyramennoodle | 1 | - | closed, not planned | Follow-up from the review of #290. Host-backed drive lookup currently enumerates an entire directory and refuses directories exceeding 4,096 |
| [#333](https://github.com/MacosPorters/betterxen/issues/333) Runtime compatibility follow-ups from PR #290 | soggyramennoodle | 1 | - | closed, not planned | Track the remaining nonblocking review items from #290. - Invalidate aligned-allocation tracking in shared guest heap free paths and test ow |
| [#336](https://github.com/MacosPorters/betterxen/issues/336) [RUNTIME] SetFilePointerEx should fail a negative distance from FILE_B | Arths17 | 1 | #339 | closed, not planned | Found while auditing #290. This behaviour already exists on `main` (`crates/loader/src/services/files.rs`), so it is not part of that PR. Th |
### Compiled launch milestone and native app
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#247](https://github.com/MacosPorters/betterxen/issues/247) [DOCS] Add a native app quick start ending in a synthetic frame | Arths17 | 2 | #310 | open (active work) | The [README build section](https://github.com/ranveersoni98/Xenora/blob/3b47c21bb008dcb38be704d540776f7cd046681e/README.md#building-xenora) |
| [#249](https://github.com/MacosPorters/betterxen/issues/249) [APP] Avoid unchanged-frame image copies and reduce paused polling | Arths17 | 1 | - | closed, not planned | [`FrameLoopModel.startPolling`](https://github.com/ranveersoni98/Xenora/blob/3b47c21bb008dcb38be704d540776f7cd046681e/app/Sources/Xenora/mai |
| [#250](https://github.com/MacosPorters/betterxen/issues/250) [APP] Surface session command failures and centralize loop lifecycle | Arths17 | 1 | - | closed, not planned | [`FrameLoopModel`](https://github.com/ranveersoni98/Xenora/blob/3b47c21bb008dcb38be704d540776f7cd046681e/app/Sources/Xenora/main.swift#L441) |
| [#253](https://github.com/MacosPorters/betterxen/issues/253) [APP] Audit inspector and fixture controls with keyboard and VoiceOver | Arths17 | 1 | - | closed, not planned | The comparison found native controls and frame accessibility labels, but VoiceOver, keyboard navigation, text scaling and dark-mode behavior |
| [#254](https://github.com/MacosPorters/betterxen/issues/254) [DIAGNOSTICS] Share a versioned static compatibility report across CLI | Arths17 | 1 | - | closed, not planned | Xenora already exposes metadata, loader validation, imports, relocations, TLS and a bounded first-unsupported-instruction finding through it |
| [#256](https://github.com/MacosPorters/betterxen/issues/256) [INTEGRATION] Prove a multi-module synthetic startup through a checked | Arths17 | 1 | - | closed, not planned | Existing trusted startup and app fixtures establish bounded pieces. The comparison proposes one original integration scenario connecting exe |
| [#259](https://github.com/MacosPorters/betterxen/issues/259) [RELEASE] Prepare versioned, signed and notarized contributor previews | Arths17 | 1 | - | closed, not planned | The [app build script](https://github.com/ranveersoni98/Xenora/blob/3b47c21bb008dcb38be704d540776f7cd046681e/scripts/build-app.sh) hardcodes |
| [#311](https://github.com/MacosPorters/betterxen/issues/311) [LAUNCH TRACKER] First compiled guest application through native ARM64 | Arths17 | 2 | - | closed, not planned | / --- / / Build and admit / Source/tool/file-license identity, native host tools, exact admitted profile; unsupported input refused. / / En |
| [#313](https://github.com/MacosPorters/betterxen/issues/313) [LAUNCH] Build an original compiled C guest for the launch milestone | Arths17 | 3 | #330 | open (active work) | ## Outcome and readiness Ready for fixture specification and native build-recipe work. Runtime execution waits for the agreed frame/service |
| [#314](https://github.com/MacosPorters/betterxen/issues/314) [GPU] Add bounded creation and explicit release for guest graphics obj | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness Ready for a narrow lifetime/budget design and failing tests. Agree budget values through #160 and coordinate graphi |
| [#315](https://github.com/MacosPorters/betterxen/issues/315) [GPU] Let a bounded guest pipeline select original translated vertex a | Arths17 | 4 | - | closed, not planned | ## Outcome and readiness Design/fixture work can start. Production changes follow #159 contract agreement and #314; serialize graphics.rs ed |
| [#316](https://github.com/MacosPorters/betterxen/issues/316) [RUNTIME/GPU] Expose the minimal typed graphics command bridge to comp | Arths17 | 2 | - | closed, not planned | ## Outcome and readiness ABI review and original failing guest tests can start. Implementation waits for #159 plus #315/#314 and coordinatio |
| [#317](https://github.com/MacosPorters/betterxen/issues/317) [SESSION] Run the compiled launch fixture through a bounded built-in w | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness Profile design can begin. Worker execution integration is blocked on #313/#316, the required #212 maintainer admiss |
| [#318](https://github.com/MacosPorters/betterxen/issues/318) [SESSION] Bound stop and failure recovery when the compiled guest does | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness Design and hostile-original-fixture specifications can start; implementation follows #317 and coordination with its |
| [#319](https://github.com/MacosPorters/betterxen/issues/319) [INPUT] Verify compiled guest input snapshots change guest state and r | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness Original C test/expected-state design can start after the fixture/header contract is agreed. End-to-end execution w |
| [#320](https://github.com/MacosPorters/betterxen/issues/320) [APP] Present actual compiled-guest frames in a native launch session | Arths17 | 1 | - | closed, not planned | ## Outcome and readiness UI acceptance specification can start. Swift implementation waits for #317/#318, #250 lifecycle agreement and overl |
| [#321](https://github.com/MacosPorters/betterxen/issues/321) [QA] Independently gate first compiled launch from source build throug | Arths17 | 1 | #328 | closed, not planned | ## Outcome and readiness Ready for acceptance-protocol/independent expected-value work. The executable harness runs only after #313/#316/#31 |
### Roadmap and ecosystem research
| Issue | Original author | Comments | Pull requests | After this change | Objective excerpt |
| --- | --- | --- | --- | --- | --- |
| [#261](https://github.com/MacosPorters/betterxen/issues/261) [ROADMAP] Native workflow and runtime integration improvements from th | Arths17 | 9 | - | closed, not planned | Turn the supplied Victory for macOS teardown and integration map into actionable Xenora improvements, preserving original implementation, na |
| [#298](https://github.com/MacosPorters/betterxen/issues/298) [RESEARCH] Review PortWatch projects and revise the native macOS execu | Arths17 | 7 | #308 | closed, not planned | / --- / --- / / CPU / Guest x86-64 runs on a matching x86-64 CPU; several projects require AVX2 / Decode/execute or translate each supporte |
| [#306](https://github.com/MacosPorters/betterxen/issues/306) [RESEARCH] Track public evidence for console launch and graphics ABI b | Arths17 | 1 | - | closed, not planned | BetterXen's tested contracts are synthetic PE32+/gfx1030 contracts. They do not establish the Xbox launch environment, shader entry state, d |
#158 (native optimization evidence audit) was also closed as obsolete and belongs with DBT performance. The seven earlier "[Deferred native research]" umbrella issues were replaced by one closed index issue.
+27
View File
@@ -0,0 +1,27 @@
# Native research roadmap
**Deferred — not part of the active development roadmap, and paused indefinitely.** The active direction is the [CrossOver-based hybrid roadmap](../roadmap.md). Native work resumes only after an explicit maintainer decision, with no date. Native tasks needed by hybrid work are filed as focused hybrid issues instead.
## Existing implementation (preserved in the workspace)
Rust crates under `crates/` and `app/`, tests under `tests/`, fixtures, fuzz targets and benchmarks. The last `main` commit before the hybrid transition is tagged `native-first-final`. Contributor history is untouched.
## Verified achievements (synthetic evidence only)
Per [docs/progress.md](../progress.md) and the [status registry](../status.toml): translated gfx1030 shaders executing on native Metal on Apple M5 for synthetic fixtures, bounded x86-64 guest execution, an ARM64 dynamic binary translator for supported instruction subsets, a deterministic scheduler running guest threads serially on one host thread. No Xbox title runs. These are the original evidence classes, not new verification.
## Known limitations
See the archived [native-first plan](../archive/development-phases-native-first.md) and [README current limitations](../../README.md#current-limitations): serial guest threading, partial runtime services, partial RDNA2 coverage, unknown console launch ABI.
## Previously planned work
The native-first phases 1 to 6 (trustworthy baseline, hosted C application, threaded behavior, translated rendering, integrated interactive application, measured bottlenecks) and the X1 to X25 capability map, kept in the archive. The issue backlog was closed as not planned and is indexed, with preserved findings, in the [native issue archive](native-issue-archive.md).
## Potential future architecture
Independent CPU translation and Metal components that could replace or complement CrossOver, Rosetta 2 or D3DMetal where a demonstrated limitation or availability risk justifies it.
## Conditions for resuming (maintainer decision, not automatic)
Hybrid reaches verified maturity; reliable baselines exist; a native component solves a demonstrated hybrid limitation; a dependency imposes an unavoidable constraint or becomes unavailable; or resources allow it without slowing hybrid work.
+3 -1
View File
@@ -1,3 +1,5 @@
> **Superseded in part (2026-11-25).** This review recommended against Rosetta, Wine and CrossOver under the native-first plan. BetterXen's direction is now the CrossOver-based hybrid architecture ([roadmap](../roadmap.md), [ADR 0005](../adr/0005-crossover-hybrid-direction.md)); the screening facts below remain useful, the native-first recommendations do not. See the [upstream registry](upstream-registry.md) for the current provenance decision on VIctory-family projects.
# PortWatch review and a native macOS execution plan
Reviewed November 24, 2026 (America/Chicago). This is a public-documentation and
@@ -199,7 +201,7 @@ texture inventory respectively. Runtime PRs #263/#290 overlap substantially;
their author/maintainer must resolve them before new runtime edits. These
references are destination-repository numbers, not imported source numbers.
The replacement [development phases](../development-phases.md) define the sole
The replacement [development phases](../archive/development-phases-native-first.md) define the sole
active work order, from compiled guest boot through modular workers, a
guest-controlled Metal scene, an interactive application, a compatibility
corpus, sustained native execution and conditional Xbox experiments.
@@ -0,0 +1,26 @@
# Primary-source verification (2026-11-25)
Re-checks claims first taken from search summaries in [hybrid-backlog-research-2026-11-25.md](hybrid-backlog-research-2026-11-25.md). Evidence class D (public documentation read; nothing installed or run). Not legal advice. #363 still has to re-derive these independently.
| Claim | Result | Primary source read |
| --- | --- | --- |
| CrossOver offers the backends Auto, D3DMetal, DXMT, DXVK and Wine | **Confirmed.** Auto uses CodeWeavers' per-game database and wined3d if none is given; D3DMetal covers DirectX 11 and 12; DXMT is Metal-based Direct3D 11; DXVK is Vulkan-based Direct3D 10 and 11; DLSS via MetalFX applies to D3DMetal and DXMT only | support.codeweavers.com "Advanced Settings in CrossOver Mac 26" (modified 2026-02-10). That page is for CrossOver 26 and does not name MoltenVK |
| `CX_GRAPHICS_BACKEND` in `cxbottle.conf` is a supported interface | **Not confirmed.** Neither CodeWeavers page read mentions it or `cxbottle`, `cxstart` or `cxrun`. It appears only in third-party projects. Treat as undocumented; #350 decides | Same page and support.codeweavers.com "Advanced CrossOver Mac Configuration" |
| Documented configuration surfaces | The second page documents `defaults` keys in `~/Library/Preferences/com.codeweavers.CrossOver.plist` (BottleDir, ManagedBottleDirs) and bottle hooks run with `CX_ROOT`, `CX_BOTTLE` and `WINEPREFIX` set | Same |
| CrossOver needs Rosetta 2; ARM64 build without it planned; CrossOver 27 requirements | **Unverified.** The CodeWeavers blog returned HTTP 403 to automated fetches, and the documentation pages above do not cover it. Read it in a browser for #348 | CodeWeavers blog (blocked) |
| Rosetta after macOS 27 | **Sources conflict.** Apple developer news of 2026-09-01 says macOS 27 is the final release supporting Rosetta, with continued support for older unmaintained games that rely on Intel-based frameworks. News of 2026-09-09 says macOS 26 is the final release supporting Intel Macs and Rosetta, and 27 is Apple silicon only. Record both until Apple clarifies | developer.apple.com/news (ids w5ngl9k2, k1mtkt1k) |
| D3DMetal license | **Not located.** The `apple/game-porting-toolkit` repository is Apache-2.0 and never mentions D3DMetal; D3DMetal ships in the separate Game Porting Toolkit download whose license was not read. Secondary sources describe evaluation-only use and restricted redistribution. Stays user-supplied and unbundled | github.com/apple/game-porting-toolkit, LICENSE |
| DXMT license and scope | **Confirmed.** LGPL-2.1-or-later (copyright 2023-2026 Feifan He for CodeWeavers). README: Direct3D 11 and 10 on Metal using Wine. Wiki: macOS 14 or later, Apple silicon supported, Intel GPUs experimental and planned for removal once macOS 28 is released, Wine 8+ required, DXMT needs symbols from `winemac.so`. Cross builds need LLVM 15 and a mingw cross-compiler. Latest release v0.80 (2026-04-23) | github.com/3Shain/dxmt (LICENSE, README, wiki, docs/DEVELOPMENT.md) |
| Wine conformance tests exist as standalone Windows programs | **Confirmed in tree.** `dlls/d3d11/tests/Makefile.in` defines a `d3d11.dll` test target from `d3d11.c`. The Wine conformance-test documentation page loaded (HTTP 200) but its requirements were not read; build and run requirements remain unverified | wine-mirror/wine |
## Dependencies observed
DXMT lists Meson 1.3+, LLVM 15, Xcode 16+ with the Metal toolchain and a Windows cross-compiler as build requirements. The Rust workspace requires `rustc` 1.100 (`rust-version` in `Cargo.toml`).
## Rust toolchain
The default `stable` on the reference machine was rustc 1.94.1, which cannot build the workspace. rustc 1.100.0 is the current official stable (channel manifest dated 2026-11-12, release 2026-11-09) and was already installed as toolchain `1.100.0-aarch64-apple-darwin`, so nothing was installed. Run `rustup run 1.100.0 cargo ...` or update `stable`. With it, `cargo test --locked -p xenora-loader --test generated_runtime_integration --test runtime_x15` passed (3 and 35 tests, 1 ignored). These native tests are not needed for hybrid development; the full workspace suite was not run.
## Not verified
CrossOver's CPU-translation internals and ARM64 plans, CrossOver 27 requirements, D3DMetal license text, `cxbottle`/`cxstart` command-line syntax, Wine conformance-test requirements, and whether D3D12 is usable under any backend on the installed version. These belong to #348, #350 and #354.
+36
View File
@@ -0,0 +1,36 @@
# Upstream research registry
Reviewed 2026-11-25. Every entry is **evidence class D** (non-normative official or project material) in the sense used by the issue templates and [claims.toml](../claims.toml): a review of public documentation and repository metadata. Nothing here was installed, built or run, so none of it is a statement that a project works for BetterXen's goals. Licenses are what the repository's own license file or GitHub's license detection reported; they still need the per-file check in the [reuse matrix](component-reuse-matrix.md) and are not legal advice. Pins are the default-branch head observed with `git ls-remote` on the review date. Independent re-derivation of this table is tracked in issue #363.
| Project | Source | Pin (head) | License as reported | Role for BetterXen | Findings |
| --- | --- | --- | --- | --- | --- |
| CrossOver (CodeWeavers) | [source page](https://www.codeweavers.com/crossover/source) | CrossOver 26.3.0 source listed | Proprietary product; page lists GPL/LGPL and other FOSS components it uses | Primary compatibility foundation (external install) | The page offers FOSS source for CrossOver 26.3.0 and lists Wine, Vkd3d, DXVK, MoltenVK, FAudio, SDL, LLVM, GMP and others. It says users should prefer each project's own home page. D3DMetal and Rosetta 2 are not in that list. What else is proprietary, the supported integration interfaces and redistribution terms are **unknown** (#348, #350, #354). |
| Wine | [wine-mirror/wine](https://github.com/wine-mirror/wine) | `a79470449d03` | LGPL 2.1 (repository LICENSE and COPYING.LIB); GitHub reports NOASSERTION | Runtime APIs, via CrossOver | Upstream of CrossOver's runtime. CrossOver's exact delta from upstream is not reviewed. |
| DXMT | [3Shain/dxmt](https://github.com/3Shain/dxmt) | `faa73e4a0686` | LGPL, version 2.1 or any later version (LICENSE text); copyright notice "for CodeWeavers" | Direct3D 11/10 to Metal under Wine; candidate backend | README: Metal-based D3D11/D3D10 layer for macOS using Wine. Status is on the project wiki (not reviewed). D3D12 is not claimed. |
| DXVK | [doitsujin/dxvk](https://github.com/doitsujin/dxvk) | `57b2a7c1e87b` | zlib/libpng (LICENSE; GitHub: Zlib) | Direct3D to Vulkan; candidate backend only with MoltenVK | Listed among CrossOver's FOSS components. Whether it is used for any macOS path is unknown. |
| VKD3D-Proton | [HansKristian-Work/vkd3d-proton](https://github.com/HansKristian-Work/vkd3d-proton) | `71cae091b065` | LGPL 2.1 (GitHub) | Direct3D 12 to Vulkan; candidate for evaluation | README requires Vulkan 1.3 and modern extensions. Whether MoltenVK exposes what it needs is **unknown**. CrossOver's page lists "Vkd3d" from source.winehq.org, which is the Wine vkd3d, not necessarily this fork. |
| MoltenVK | [KhronosGroup/MoltenVK](https://github.com/KhronosGroup/MoltenVK) | `5189f8de86ec` | Apache-2.0 | Vulkan on Metal; candidate under DXVK/VKD3D-Proton | A Vulkan Portability layer, a subset of Vulkan. Listed among CrossOver's FOSS components. Last push observed 2026-10-13. |
| FEX | [FEX-Emu/FEX](https://github.com/FEX-Emu/FEX) | `3ee25399232a` | MIT (GitHub) | x86/x86-64 emulation reference | README describes ARM64 **Linux**; tested distributions listed are Linux. No macOS host support is stated. Not a macOS option on this evidence; useful as design reference. |
| VIctory | [Marvisak/VIctory](https://github.com/Marvisak/VIctory) | `13f91caee25f` | GPL-3.0 (GitHub); a prior local review found per-file notices (see `experiments/victory-native/licenses.md`, local, untracked) | Discovery reference only | Described as an attempt at running one commercial game on PC. Its inputs are an Xbox Series build of that game. PortWatch describes the efforts it tracks as targeting a "leaked Xbox Series build". |
| VIctory-macOS | [pragyaangaur/VIctory-macOS](https://github.com/pragyaangaur/VIctory-macOS) | `485b230ef596` | GPL-3.0 (GitHub) | Discovery reference only | A macOS port of VIctory using Rosetta, CrossOver Wine and D3DMetal per its README (also noted in [portwatch-native-macos.md](portwatch-native-macos.md)). Same input concern. Its test and "works" claims are self-reported and not verified here. The repository has no parent fork, so the "canonical upstream" is VIctory. |
| PortWatch VI | [portwatch-vi.xyz](https://portwatch-vi.xyz/), [4lwayz/portwatch-vi](https://github.com/4lwayz/portwatch-vi) | `ed00263cc0c9` | NOASSERTION | Project discovery reference | A tracker of community efforts; progress figures are editorial, with self-reported claims labelled. Not engineering evidence; flagged and ignored queues are not endorsed. |
## Additional candidates found by search (not reviewed)
Found by GitHub search on 2026-11-25. Only repository metadata was read; none was evaluated, installed or run, and none is a recommendation. Licenses are what GitHub reported.
| Project | Source | Pin (head) | License as reported | Why listed |
| --- | --- | --- | --- | --- |
| llvm-mingw | [mstorsjo/llvm-mingw](https://github.com/mstorsjo/llvm-mingw) | `903f4cf7faa2` | GitHub: other (read LICENSE before use) | Cross-compiler candidate for building original Windows test programs (#364). README says its compilers come in x86_64 and aarch64 builds, built on Ubuntu; availability and behaviour on a macOS host are **unknown**. |
| Sikarugir | [Sikarugir-App/Sikarugir](https://github.com/Sikarugir-App/Sikarugir) | `5446b7d18072` | not reported | Wine-wrapper project (successor to Wineskin per its README, macOS 14.6+): a reference for bottle and wrapper management. |
| macOS Wine builds | [Gcenx/macOS_Wine_builds](https://github.com/Gcenx/macOS_Wine_builds) | `72f8915f2d01` | not reported | Community Wine builds for macOS: possible Wine reference builds. Provenance of the binaries is unreviewed. |
| Mythic | [MythicApp/Mythic](https://github.com/MythicApp/Mythic) | `754223978e61` | GPL-3.0 | Open-source macOS launcher that runs Windows games through Wine: an architecture reference for configuration and launching. |
| Playdock | [Jasonilization/Playdock](https://github.com/Jasonilization/Playdock) | `f58b8ef7fb70` | MIT | Describes itself as a free alternative to CrossOver; unreviewed. |
## Not yet researched
Apple's Game Porting Toolkit documentation and license (D3DMetal's actual terms), Rosetta 2's support lifetime, CrossOver's documented command-line interfaces and bottle management, and other established projects. These are issues #349, #350 and #354; nothing is claimed about them here.
## Provenance decision
VIctory-family projects are not adopted. Their GPL grants apply to their own source; they do not establish that the material they were built for is authorized. The registry records them for architecture ideas visible in public documentation (cache identity, upload visibility, test structure). No code, shader corpus, asset or tooling from them enters BetterXen without a recorded per-file review, and anything game-specific or decryption-related is excluded.
+96
View File
@@ -0,0 +1,96 @@
# BetterXen roadmap
**This is the single authoritative active roadmap.** GitHub Issues hold the current phase's tasks, the open milestone names the current phase, and this file explains strategy, phase order, parked work and completion criteria. If another document disagrees, this one governs, except [ADR 0005](adr/0005-crossover-hybrid-direction.md) for the decision itself.
## Direction
BetterXen's active direction is a **CrossOver-based hybrid architecture for Apple Silicon**. CrossOver is the intended compatibility foundation and is an **externally installed dependency**, never bundled or redistributed. BetterXen's own work is the layer around it: integration, configuration, diagnostics, reproducible testing, benchmarking and measured optimization. The independent native implementation (x86-64 decoder, ARM64 translator, runtime, gfx1030 shader compiler, Metal backend) is **preserved but paused**; see the [native roadmap](research/native-roadmap.md) and the [native issue archive](research/native-issue-archive.md).
This is the intended architecture, **not a verified Xbox compatibility stack**. Nothing in this repository demonstrates that CrossOver, Rosetta 2 or D3DMetal run any Xbox title, and CrossOver is not assumed to provide Xbox runtime compatibility. All workloads must be independently authored, publicly licensed or otherwise authorized.
```
BetterXen: integration, configuration, diagnostics, benchmarking, optimization
|
CrossOver (external): Wine-based runtime APIs | Rosetta 2 CPU translation | D3DMetal / DXMT graphics
|
Apple Silicon: ARM64, Metal, unified memory
```
Priorities, in order: practical compatibility, functional integrated execution, rendering correctness, stability, performance, Apple Silicon-specific optimization, long-term independence. Reuse before reinvention; measure before optimizing; evidence before claims.
## Rolling planning
Only the current phase has a GitHub milestone and detailed issues. Later phases are described below and become milestones and issues only when the evidence from the current phase makes their requirements clear. Work that was specified early but depends on unverified assumptions is listed under [Parked ideas](#parked-ideas) with its closed issue, so it can be reopened rather than rewritten. Phase numbers are provisional. The earlier eight-phase plan (H0 to H7) is archived in [archive/hybrid-phases-h0-h7.md](archive/hybrid-phases-h0-h7.md).
## Engineering rules
[AGENTS.md](../AGENTS.md) (`CLAUDE.md` is a symlink to it) was rewritten to permit CrossOver, Wine-based infrastructure, Rosetta 2 and D3DMetal subject to licensing; ADR 0005 records the decision. The honesty, verification, provenance and clean-room rules are unchanged. Both are on the local branch `planning/hybrid-first-transition` and await maintainer review; nothing has been pushed.
## How progress is reported
Phase status is one of: Not started, Researching, In development, Blocked, In validation, Verified complete, Retired. A phase is Verified complete only with the evidence its completion criteria name. Progress is not derived from commits, lines of code, closed issues, instruction counts or passing isolated fixtures. No phase is currently Verified complete.
## Phase 1 — CrossOver Research, Feasibility and Baseline (active)
**Status:** Researching. **Milestone:** `Phase 1 - CrossOver Research, Feasibility and Baseline`.
**Objective:** Establish what the installed CrossOver version actually provides, which interfaces are supported, what may be reused or redistributed, and a reproducible baseline on authorized workloads.
**Completion criteria** (all required, each with recorded evidence):
1. CrossOver architecture, platform support, CPU translation and graphics backends documented from primary sources, with unknowns listed ([#348](https://github.com/MacosPorters/betterxen/issues/348)).
2. Supported integration interfaces separated from undocumented behavior ([#350](https://github.com/MacosPorters/betterxen/issues/350)).
3. Licensing and redistribution boundaries documented ([#354](https://github.com/MacosPorters/betterxen/issues/354)); the registry independently re-derived ([#363](https://github.com/MacosPorters/betterxen/issues/363)).
4. A reproducible way to build original Windows test programs ([#364](https://github.com/MacosPorters/betterxen/issues/364)) and original graphics workloads with self-verifying output ([#365](https://github.com/MacosPorters/betterxen/issues/365)).
5. Workload set, measurement protocol and host receipt defined ([#353](https://github.com/MacosPorters/betterxen/issues/353)) and a frame-time capture method ([#145](https://github.com/MacosPorters/betterxen/issues/145)).
6. A reproducible CrossOver environment and a recorded baseline of CPU, GPU, memory and stability, reproduced by a second contributor ([#355](https://github.com/MacosPorters/betterxen/issues/355)).
7. BetterXen's responsibilities versus CrossOver's recorded in an ADR a maintainer accepts ([#351](https://github.com/MacosPorters/betterxen/issues/351)).
**Open issues:** #145, #348, #350, #351, #353, #354, #355, #363, #364, #365, plus #346 (project board, needs the GitHub `project` token scope; does not block engineering).
**Known risks:** CrossOver is proprietary, so bundling or modifying may be prohibited; integration interfaces may be undocumented (see below); Xbox titles may not run at all.
### Critical path
1. Desk research needs nothing installed and can start now: #348, #350, #354, #364 (build only), #353.
2. #363 re-derives the registry independently of its author.
3. #365 needs #364 and #353.
4. #355 needs #364, #353 and the interface findings of #350.
5. #351 needs #348, #350, #354 and #355.
Hard dependencies are recorded as GitHub blocked-by relationships; everything else is preferred order.
### Verified and unverified (2026-11-25)
Details and sources are in [primary-source-verification-2026-11-25.md](research/primary-source-verification-2026-11-25.md). In short: CodeWeavers' public documentation names the backends Auto, D3DMetal, DXMT, DXVK and Wine, but **`CX_GRAPHICS_BACKEND` and `cxbottle.conf` are not documented there and must not be treated as a supported interface** until #350 resolves it. Apple's two September 2026 developer news items about Rosetta disagree with each other. D3DMetal's license text was not located; it stays user-supplied and unbundled.
## Provisional later phases (no milestone yet)
| Phase | Purpose | Starts when |
| --- | --- | --- |
| 2. Integration foundation | Only the tooling Phase 1 shows is missing: environment inspection, workload runner and run records, output-path policy | Phase 1 criteria 2 and 6 are met |
| 3. Compatibility validation | Run authorized workloads and upstream conformance tests, record reproducible failures | A runner exists and a baseline is recorded |
| 4. Graphics and performance | Backend comparison and measured bottleneck work; no improvement promised before measurement | Phase 3 shows what to measure |
| 5. Stability and maturity | Soak, memory pressure, thermals, version matrices, dependency maintenance, upstream contributions | Phase 4 results exist |
Independent native reassessment is separate and deferred: it needs an explicit maintainer decision.
## Parked ideas
Specified in detail on 2026-11-25, then closed as premature for Phase 1 with the text preserved. Reopen when the stated prerequisite is met. Parking is not rejection.
| Issue | Subject | Reopen when |
| --- | --- | --- |
| [#366](https://github.com/MacosPorters/betterxen/issues/366) | Read-only CrossOver inspection command | The #353 receipt script proves insufficient |
| [#367](https://github.com/MacosPorters/betterxen/issues/367) (absorbs #368) | Workload runner and run records | Phase 1 finds #350 supports scripted launches (Phase 2) |
| [#257](https://github.com/MacosPorters/betterxen/issues/257) | Output-path policy for exports and caches | A tool that writes exports exists (Phase 2) |
| [#369](https://github.com/MacosPorters/betterxen/issues/369) | Upstream Wine conformance subset in a bottle | Runner and baseline exist (Phase 3) |
| [#370](https://github.com/MacosPorters/betterxen/issues/370) | Backend comparison on equal workloads | Baseline and workloads exist (Phase 4) |
| [#371](https://github.com/MacosPorters/betterxen/issues/371), [#372](https://github.com/MacosPorters/betterxen/issues/372) | Shader-compile latency; Metal System Trace recipe | Baseline names a bottleneck (Phase 4) |
| [#373](https://github.com/MacosPorters/betterxen/issues/373), [#204](https://github.com/MacosPorters/betterxen/issues/204) | Soak and thermal drift; memory-pressure benchmark | Workloads and baseline exist (Phase 5) |
| [#374](https://github.com/MacosPorters/betterxen/issues/374) | Re-baseline on a Rosetta-free CrossOver build | Such a build ships (Phase 5); facts folded into #348 |
| #173, #174, #219 | Contributor-workflow administration | A concrete need appears |
## Native work
About 110 native issues were consolidated. All are closed with their text, comments and attribution intact except four with an assignee and an open pull request (#247, #291, #307, #313), which stay open until their authors decide. See the [native issue archive](research/native-issue-archive.md). Source code, tests, benchmarks and history are untouched.