From a8386982c8eda9e866fe6136ce9a8d3f1db5a4e2 Mon Sep 17 00:00:00 2001 From: Arths17 Date: Wed, 25 Nov 2026 18:40:07 -0600 Subject: [PATCH] docs: propose the hybrid responsibility boundary Signed-off-by: Arths17 --- CHANGELOG.md | 3 ++ docs/README.md | 2 + .../0006-hybrid-responsibility-boundary.md | 49 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 docs/adr/0006-hybrid-responsibility-boundary.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 833c059..2c112e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ exact revision and known limitations. ## [Unreleased] +### Added +- Proposed a BetterXen/CrossOver responsibility boundary for #351, separating candidate tooling from accepted capabilities and listing the evidence and maintainer decision still required. No architecture acceptance or implementation change. + Guest execution uses original, purpose-built test programs. Commercial Xbox game execution remains unsupported. diff --git a/docs/README.md b/docs/README.md index 93088ee..9a2416d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -21,6 +21,8 @@ checkpoints retain their original evidence scope. ## Architecture and technical design +- [Proposed hybrid responsibility boundary](adr/0006-hybrid-responsibility-boundary.md) — Draft for #351; independent evidence review and maintainer acceptance remain required. + - [Interface contracts](interfaces.md) — Translated shader stages, guest services, native command submission, and synthetic textures. - [Fixture memory model](adr/0003-demo-memory-model.md) and [CPU boundary](adr/0004-cpu-boundary.md) — Buffer bindings, guest address translation, and dependency direction. diff --git a/docs/adr/0006-hybrid-responsibility-boundary.md b/docs/adr/0006-hybrid-responsibility-boundary.md new file mode 100644 index 0000000..2c479bc --- /dev/null +++ b/docs/adr/0006-hybrid-responsibility-boundary.md @@ -0,0 +1,49 @@ +# ADR 0006: BetterXen and CrossOver responsibilities + +Status: **Proposed; not accepted.** Addresses [#351](https://github.com/MacosPorters/betterxen/issues/351). This draft neither completes Phase 1 nor authorizes Phase 2. [ADR 0005](0005-crossover-hybrid-direction.md) remains the accepted strategic direction. + +## Context and evidence + +CrossOver is the externally installed compatibility foundation. BetterXen needs reproducible experiments around it before deciding what additional compatibility work is justified. The evidence below is candidate-specific; open PRs are not merged capabilities. + +- [Hybrid candidate #384 at e1b6a24](https://github.com/MacosPorters/betterxen/tree/e1b6a24a4f37360abb1f5c77bedbfd470cf1c720) supplies inspection, bounded workload execution, receipts, run records and offscreen interval analysis. Its original CPU and D3D11 fixtures exercise narrow Windows interfaces, not Xbox startup. +- [Interface review #350](https://github.com/MacosPorters/betterxen/issues/350#issuecomment-7177279618) records vendor-documented per-bottle graphics selection through the Mac UI. It found no supported automation setter in the reviewed documents. The candidate's backend environment override is an observed, version-specific interface. Parent environment inheritance can select DXVK while the candidate records no requested backend; that defect must be resolved before accepting default-backend comparisons. +- [Baseline #355](https://github.com/MacosPorters/betterxen/issues/355#issuecomment-7174389034) records local x86-64 CPU and offscreen D3D11 results on CrossOver 26.3 and rejection of the ARM64 Windows executables. Full independent baseline reproduction remains outstanding. Offscreen draw-and-wait intervals are not presented-frame times or game frame rates. +- [Independent build review #364](https://github.com/MacosPorters/betterxen/issues/364#issuecomment-7176752107) reproduced the eight fixture builds in fresh directories. Rust outputs required an additional linker flag to remove COFF timestamps. The external toolchain is universal, although its compiler ran as ARM64; its ARM64-only packaging criterion and bootstrap remain unresolved. +- [Licensing assessment #354](https://github.com/MacosPorters/betterxen/issues/354) and [registry review #363](https://github.com/MacosPorters/betterxen/issues/363) define separate component obligations and outstanding review. They do not grant permission to bundle proprietary components or clear individual files from unrelated runtimes. + +These are recorded observations and research inputs, not an independent acceptance of the components that produced them. The merged [workload protocol](../testing/hybrid-workloads.md) defines the baseline evidence required. + +## Proposed responsibility boundary + +| Responsibility | Proposed owner and boundary | +| --- | --- | +| Install, activate and update CrossOver | User and CodeWeavers tooling. BetterXen records the installed version and location; it does not bundle CrossOver or bypass activation. | +| Windows API compatibility and selected graphics translation | CrossOver and its selected upstream components. BetterXen does not infer Xbox API compatibility from Windows fixture results. | +| Bottle creation and graphics configuration | Prefer documented CrossOver UI and supported interfaces. Record manual configuration. Keep observed command-line behavior explicitly version-scoped; do not edit proprietary internals to invent a configuration API. | +| BetterXen host tooling | Native ARM64 inspection, launch supervision, diagnostics and evidence collection, with explicit failures and bounded execution. Preserve source and runtime version receipts. | +| Workload correctness | Original or authorized workloads with independently derived expectations, complete readback where specified, negative controls and separate unavailable results. Reuse established compilers rather than add a compiler for these tests. | +| Benchmarking | Analyze validated measurements with the exact capture boundary, configuration, samples and overhead recorded. Optimize only a demonstrated bottleneck. | +| Compatibility gaps | First reproduce a specific failure and assess existing upstream support. Prefer a focused upstream fix or documented integration change. A replacement runtime, translator or graphics backend requires a separate justified decision. | + +## Limits and excluded expansion + +The preserved native decoder, ARM64 translator, runtime, shader compiler and Metal backend remain paused. This proposal does not schedule native work, promise game execution, or choose a console launch ABI. + +[#394](https://github.com/MacosPorters/betterxen/pull/394) remains outside the accepted boundary pending the per-file provenance decision in [#399](https://github.com/MacosPorters/betterxen/issues/399). Passing synthetic tests does not resolve provenance. No policy exception, game-specific import or second compiler is authorized here. + +CrossOver, D3DMetal, Rosetta 2 and Apple tools remain externally supplied under their respective terms. Component licenses and compatibility require their own review; this ADR is not legal advice. + +## Conditions before acceptance + +1. Review the architecture findings in [#348](https://github.com/MacosPorters/betterxen/issues/348), interface findings in #350, licensing assessment in #354 and registry review in #363. Name unresolved vendor and license questions rather than treating them as cleared. +2. Resolve backend environment inheritance, evidence persistence ([#398](https://github.com/MacosPorters/betterxen/issues/398)) and bottle-stop correctness ([#388](https://github.com/MacosPorters/betterxen/pull/388)) on the actual integration candidate; preserve review and runtime evidence separately. +3. Complete the toolchain criteria in #364 and the workload/readback criteria in [#365](https://github.com/MacosPorters/betterxen/issues/365). Texture and compute authoring is owned by [#400](https://github.com/MacosPorters/betterxen/issues/400) and [#401](https://github.com/MacosPorters/betterxen/issues/401). +4. Obtain the second-contributor baseline reproduction required by #355. Capture methods and overhead under [#145](https://github.com/MacosPorters/betterxen/issues/145) must retain their actual scope. +5. An independent reviewer checks the cited evidence and a maintainer explicitly accepts the responsibility boundary. Only then update the roadmap with the justified next-phase scope and acceptance record. + +## Consequences and alternatives + +This boundary keeps current work focused on reliable experiments using established compatibility infrastructure. It also leaves dependence on vendor interfaces, licenses and Rosetta availability visible. Automation may remain manual where a supported interface is unavailable. + +Continuing native-first or importing another complete runtime would create a larger implementation and provenance burden without resolving the baseline gaps. Neither alternative is selected. A future proposal can reassess a specific missing capability when authorized evidence demonstrates the need.