mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:50:44 +00:00
Rebases onto origin/main and retires the paused in-tree native-first workspace, legacy scripts, legacy CI, and native-only docs per ADR 0006 (preserving full history permanently at Git tag native-first-final). Addresses all maintainer review findings on PR #406: - Isolate CrossOver/Wine child process environment in bx-cli (env_clear + minimal allowlist + opt-in --inherit-env, with unit tests) - Replace naive objdump grep in scripts/build-shims.sh with strict PE Export Directory verification (exact names, ordinals, forwarders, 0 extra exports, 0 forbidden MinGW imports across all 16 DLLs / 102 exports) - Restore global * @MacosPorters/maintainers fallback in .github/CODEOWNERS alongside per-track rules - Restore independent-verification, claims/evidence-class, provenance-first, and contributor clean-room protections in AGENTS.md - Unify docs/roadmap.md, CONTRIBUTING.md, README.md, docs/README.md, THIRD_PARTY_NOTICES.md, and CHANGELOG.md around Milestones M0-M6 and ADR 0006 Signed-off-by: ates <ahmetrizaates@hotmail.com>
8.7 KiB
8.7 KiB
Wave 1 Parallel Contributor Backlog (M0 → M1)
All issues below have disjoint file scopes and can be claimed simultaneously by 6–10 contributors as soon as M0 lands on main. Each issue uses .github/ISSUE_TEMPLATE/track-handoff.yml.
Track A — Host Launcher, Runtime VEH & Win32 Bridge
[M1-A1] CrossOver 26.3 Bottle Provisioner & Trace Runner (bx-cli run)
- Scope:
launcher/crates/bx-cli/**,launcher/crates/bx-telemetry/** - Contract: Extend
bx-cli runto create/reuse an isolated CrossOver/Wine prefix, stage built DLLs frombuild-shims/bin/, configureROSETTA_ADVERTISE_AVX=1,WINEDLLOVERRIDES,BX_PROFILE, andBX_LOG_FILE, capture exit status, and automatically invokebx-telemetrysummary on exit. - Test: Run
tests/conformance/test_veh_clwb.exeandtest_shim_exports.exeviabx-cli runand verify exit code 0 + JSONL summary.
[M1-A2] Full clwb + Crash Register Dumper in bx_runtime_veh.dll
- Scope:
shims/runtime_veh/**,tests/conformance/test_veh_clwb/** - Contract: Add unit/conformance coverage for all x86-64
clwbaddressing modes ([reg],[reg+disp8],[reg+disp32],[r8..r15], SIB[base+idx*scale+disp], RIP-relative), plus an unhandled-exception filter logging crashing module RVA, RIP, RSP, and general-purpose registers toBX_LOG_FILE. - Test:
test_veh_clwb.exeexecutes all 6clwbModRM/SIB encodings under Rosetta 2 and asserts exact trap count.
[M1-A3] Win32 Bridge Conformance & Window Message Smoke Test
- Scope:
shims/win32_bridge/**,tests/conformance/test_win32_bridge/** - Contract: Verify all 6 DLLs (
api-ms-win-core-psm-appnotify-l1-1-0/1,ext-ms-win-rtcore-ntuser-{message,window}[-ansi]-l1-1-0) forward cleanly to Wineuser32.dlland register/unregister PSM notifications thread-safely. - Test: Synthetic
test_win32_bridge.execreates a hidden window viaext-ms-win-rtcore-ntuser-window-ansi-l1-1-0.dlland pumps messages viaPeekMessageA/TranslateMessage/DispatchMessageA.
Track B — Memory (xmem.dll) & Storage (XCRDAPI.dll)
[M1-B1] xmem.dll Core Allocator, __XMemAllocationHooks__ & Lockhart Working-Set Cap
- Scope:
shims/xmem/**,tests/conformance/test_xmem/** - Contract: Implement
XMemAlloc,XMemAllocDefault,XMemFree,XMemFreeDefault,XMemVirtualAlloc,XMemVirtualQuery,XMemTransferMemory,XMemGetWorkingSetStatistics,XMemIsToolsMemAvailable. Resolve optional host__XMemAllocationHooks__from the main executable viaGetProcAddress(GetModuleHandleA(NULL), "__XMemAllocationHooks__")and enforce the configured Lockhart/Anaconda working-set ceiling frombx_get_runtime_config(). - Test:
test_xmem.exeverifies aligned allocations, hook override dispatch,VirtualQuerymetadata, and working-set reporting.
[M1-B2] xmem.dll Physical & Scatter Page Mapping Engine
- Scope:
shims/xmem/**,tests/conformance/test_xmem/**(coordinate with M1-B1 viashims/xmem/physical_pages.cpp) - Contract: Implement
XMemAllocatePhysicalPages,XMemFreePhysicalPages,XMemMapPhysicalPages,XMemMapPhysicalPagesScatter, andbx_xmem_query_region(backing 64 KB / 2 MB console page arrays with Win32 file-mapping views orVirtualAlloc2placeholders so scattered physical pages alias cleanly to contiguous VAs). - Test:
test_xmem_physical.exeallocates physical pages, maps them into two distinct VAs (and scatter order), writes through VA1, and reads expected bytes through VA2.
[M1-B3] XCRDAPI.dll DirectStorage Factory & Async File Queue MVP
- Scope:
shims/xcrdapi/**,tests/conformance/test_xcrdapi/** - Contract: Implement
DStorageGetFactory,IDStorageFactoryX/X1/X2(OpenFile,CreateQueue,CreateStatusArray,CreateErrorRecord),IDStorageFileX, andIDStorageQueueXbacked by a Win32 async I/O worker pool supporting uncompressed file-to-memory and memory-to-memory requests + fence/event signaling. - Test:
test_xcrdapi.exeenqueues batched file reads, submits, waits on status/event, and validates CRC32 of read buffers.
Track C — Graphics (d3d12_xs.dll & xg_xs.dll)
[M1-C1] d3d12_xs.dll Device Creation & Auto-Logging COM Vtable Proxy
- Scope:
shims/d3d12_xs/**,tests/conformance/test_d3d12_xs/** - Contract: Implement
D3D12XboxCreateDevicewrapping Wined3d12.dll(D3D12CreateDeviceon D3DMetal 3.0) in a COM proxy implementingID3D12DevicethroughID3D12Device11,ID3D12CommandQueue,ID3D12CommandAllocator, andID3D12GraphicsCommandListthrough10. Every unimplemented Xbox-only vtable slot must callBX_VTABLE_STUB_LOG(iface, slot, method). WireCreateGraphicsPipelineState/CreateComputePipelineStateto inspect shader blobs viaabi/include/bx_shader_bridge.h. - Test:
test_d3d12_xs.execallsD3D12XboxCreateDevice, creates a command queue + allocator + list + root signature, and exits cleanly under CrossOver + D3DMetal 3.0.
[M1-C2] xg_xs.dll Texture Address Computer MVP
- Scope:
shims/xg_xs/**,tests/conformance/test_xg_xs/** - Contract: Implement
XGCreateTextureComputer,XGSuggestSwizzleMode, and a COMIXGTextureAddressComputer(GetResourceLayout,GetTexelElementOffsetBytes,CopyIntoSubresource,CopyFromSubresource) starting with linear-compatible layouts and structured unit tables for RDNA 2SW_64KB_S/D/Rtile math (expanded in M3). - Test:
test_xg_xs.exequeries 2D RGBA8 and BC1/BC7 mip-chain layouts and validates monotonic subresource offsets and round-trip copies.
Track D — Shader Pipeline & D3DMetal Isolation
[M1-D1] dxbc-accc C ABI DLL (bx_shader_bridge.dll) & Shader Telemetry
- Scope:
shader-transpiler/crates/dxbc-accc/** - Contract: Expose
bx_shader_inspect,bx_shader_prepare_for_d3dmetal, andbx_shader_free_buffermatchingabi/include/bx_shader_bridge.h, add anFSPXsection-table parser (section 0/1/6/7 header extraction), and log shader-kind histograms (DXIL vs. ACCC/FSPX) to prepare for the M2 Decision Gate. - Test:
cargo test -p dxbc-acccpasses on syntheticDXBC+DXIL,DXBC+ACCC(FSPX), and malformed blobs.
[M1-D2] Standalone utmapp/d3dmetal-native Evaluation & Harness Prototype
- Scope:
shader-transpiler/crates/d3dmetal-harness/**,docs/research/upstream-registry.md - Contract: Record
utmapp/d3dmetal-native(MIT) indocs/research/upstream-registry.mdand build an opt-in macOS test binary that links user-suppliedD3DMetal.frameworkviad3dmetal-nativeto compile and execute a synthetic SM 6.6 DXIL compute shader outside CrossOver/Wine. - Test: Documented reproducible local run against user-supplied
D3DMetal.frameworkwith exact buffer readback check.
Track E — Platform Runtime, Input & Audio/DSP
[M1-E1] xgameruntime.dll Offline GDK Runtime & XAsync / XTaskQueue Engine
- Scope:
shims/xgameruntime/**,tests/conformance/test_xgameruntime/** - Contract: Implement a real thread-pool
XTaskQueue+XAsynccompletion state machine backingXUserAddAsync,XStoreQueryGameLicenseAsync,XStoreAcquireLicenseForPackageAsync,XSystemGetDeviceType(Lockhart/Anaconda), andXPersistentLocalStoragemapped into the Wine bottle. - Test:
test_xgameruntime.execreates a task queue, runs async user + license + console ID queries, dispatches completion callbacks, and verifies results.
[M1-E2] AcpHal / xapu / chad Non-Blocking Audio Stubs & GameInput Ordinal 1 Wrapper
- Scope:
shims/audio/**,shims/gameinput/**,tests/conformance/test_audio_input/** - Contract: Ensure
AcpHalCreate,ApuCreateHeap/ApuAlloc,XApuConnect/EnqueueCommand/DequeueResult, andXDsp*return valid opaque handles and drain submitted commands cleanly without hanging audio worker threads; verifyGameInput.dllordinal 1 (GameInputCreate) returns a valid minimalIGameInputstub (or forwards to Wine'sgameinput.dll). - Test:
test_audio_input.exeexercises the full create → enqueue → drain → release lifecycle for all four DLLs.
Track F — Conformance, Integration & Telemetry
[M1-F1] End-to-End Synthetic Mini-Engine Fixture (tests/integration/)
- Scope:
tests/conformance/**,tests/integration/** - Contract: Build a single synthetic PE32+ executable that simultaneously links
xmem.dll,XCRDAPI.dll,d3d12_xs.dll,xg_xs.dll,xgameruntime.dll,AcpHal.dll,xapu.dll,chad.dll,GameInput.dll,psm-appnotify, andntuserforwarders, executes AVX2 +clwb, initializes every subsystem in startup order, and verifies zero unresolved symbols and clean shutdown. - Test: Passes end-to-end via
bx-cli run --exe build-shims/bin/integration_boot.exe.