# Changelog
Notable changes are grouped using [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
Experimental interfaces may change. Authorized releases should identify their
exact revision and known limitations.
## [Unreleased]
- Added a bounded `SAFEARRAY` implementation to guest `oleaut32.dll` (#2949). Descriptors and element buffers live on the existing private OLE Automation heap and are tracked by descriptor address, so the 25 new typed entries (`SafeArrayCreate`, `SafeArrayCreateEx`, `SafeArrayCreateVector`, `SafeArrayCreateVectorEx`, `SafeArrayAllocDescriptor`, `SafeArrayAllocDescriptorEx`, `SafeArrayAllocData`, `SafeArrayDestroy`, `SafeArrayDestroyDescriptor`, `SafeArrayDestroyData`, `SafeArrayLock`, `SafeArrayUnlock`, `SafeArrayAccessData`, `SafeArrayUnaccessData`, `SafeArrayGetDim`, `SafeArrayGetElemsize`, `SafeArrayGetVartype`, `SafeArrayGetLBound`, `SafeArrayGetUBound`, `SafeArrayPtrOfIndex`, `SafeArrayGetElement`, `SafeArrayPutElement`, `SafeArrayCopy`, `SafeArrayCopyData` and `SafeArrayRedim`) only release memory Xenora created. The Win64 descriptor is 24 plus 8 per dimension bytes with `pvData` at `0x10` and `rgsabound` at `0x18`; Microsoft's two documented orders are combined exactly, so `rgsabound[0]` is the left-most dimension while `rgIndices[0]` is the right-most and therefore contiguous, one-based `SafeArrayGetLBound`/`SafeArrayGetUBound` address `rgsabound[nDim - 1]`, and `SafeArrayRedim` changes only the right-most bound, preserving a prefix of every contiguous run and releasing truncated cells. `VT_BSTR` and `VT_VARIANT` elements are deep-owned: `SafeArrayPutElement` duplicates the caller's payload, `SafeArrayGetElement` returns a fresh string or a copied variant, `SafeArrayCopy` and `SafeArrayCopyData` copy deeply, and every destructor clears owned cells before the buffer. `VariantClear`, `VariantCopy` and `VariantCopyInd` now handle `VT_ARRAY` including the `VT_BYREF | VT_ARRAY` dereference, while an array descriptor Xenora did not create still returns `DISP_E_BADVARTYPE` rather than being interpreted. Locks are honoured only where Microsoft documents them (destruction and redimension return `DISP_E_ARRAYISLOCKED`), and the scalar element set, `VT_RECORD`/interface/decimal refusals, zero-element refusals and the 4096 descriptor, 16 dimension and 16 MiB limits are explicit results. An original freestanding PE32+ x86-64 witness with 118 numbered checks reads the descriptor fields directly and passed locally on the x86-64 interpreter and the ARM64 dynamic binary translator at scheduler quanta 1 and 64, alongside six registry-level tests; the existing COM extension fixture's negative assertion that `oleaut32.dll` lacked `SafeArrayCreateVector` was flipped to the new truth. No Windows or Xbox comparison, no commercial-title compatibility and no independent acceptance is claimed.
- Added partial guest `dwrite.dll` and `d2d1.dll` COM adapters over the new clean-room `xenora-render2d` engine (#2929). The crate is dependency-free `#![forbid(unsafe_code)]` Rust written from the public OpenType specification (ISO/IEC 14496-22) and the public Direct2D/DirectWrite documentation: sfnt tables `head`/`maxp`/`hhea`/`hmtx`/`name`/`cmap` formats 4 and 12/`loca` short and long/`glyf` simple and composite glyphs with affine transforms/`kern` format 0, quadratic Bezier flattening, an analytic scanline coverage rasterizer with ordered 4x4 subsampling, exact stroke thickening (caps, joins, dashes), solid and multi-stop linear gradient brushes in premultiplied space, affine transforms, axis-aligned clips, bitmap blits and a text layout engine with advances, kerning, word wrapping, alignment and hit testing. Parity with an independent Python oracle covers fill rules, gradients and glyph metrics, and deterministic fuzzing of corrupted fonts and degenerate geometries completes the crate evidence; the oracle caught a real scanline folding defect before the witness ever ran. `fixtures/fonts/xenora-synth.ttf` is an original deterministic TrueType font generated by a clean-room Python script (`--check` reproducible) covering printable ASCII plus one composite accented glyph; no host or system font bytes enter the repository. `DWriteCreateFactory` and `D2D1CreateFactory` are typed services.txt entries; `IDWriteFactory` enumerates the session font collection, reads font files strictly inside the synthetic VFS (traversal refused, corrupt data `DWRITE_E_FILEFORMAT`, absent files `DWRITE_E_FILENOTFOUND`) and creates faces, formats and layouts whose `GetMetrics`, `GetLineMetrics`, `HitTestPoint` and `HitTestTextPosition` come from real layout. `ID2D1Factory` builds rectangle, rounded-rectangle, ellipse and path geometries (with line and cubic-Bezier sink recording), stroke styles and DXGI surface render targets; the render target implements the `BeginDraw`/`EndDraw` state machine with deferred wrong-state errors, `Clear`, transforms, axis-aligned clips, brushes, bitmaps, line/rectangle/geometry drawing and filling, and `DrawTextLayout` through the DirectWrite object model. `EndDraw` flushes the exact premultiplied frame into the canonical swapchain back buffer through an additive graphics-crate bridge (`crates/loader/src/services/dxgi.rs` itself unchanged), so `IDXGISwapChain::Present` composes the pixels Direct2D produced. An original freestanding PE32+ witness loads the font from `C:`, verifies wrapped-text metrics and hit testing, fills and strokes a cubic-bezier path, draws the text layout, presents one frame and exercises the negative paths; the harness matches the presented framebuffer region by region (clear color, gradient direction, rasterized glyph pixels) on the x86-64 interpreter, the ARM64 dynamic binary translator, and native Metal on Apple M1 Max with API and shader validation enabled. ClearType, shaping/fallback, CFF, elliptic arcs, radial/bitmap brushes, WIC/GDI interop, typography and text analysis remain out of scope with documented `E_NOTIMPL`; CPU rasterization only; independent acceptance is pending.
- Added a bounded original DXBC shader-bytecode reader and SM5 execution profile (#2940). The new `xenora-dxbc` crate checks retail DXBC digests and container bounds, decodes reflection records, signatures and SM4/SM5 tokens, produces deterministic disassembly, validates and interprets a local SM5 compute and raster subset, and generates native MSL for the existing Metal test backend. `d3dcompiler_47.dll` provides guest blobs, D3D11/D3D12 reflection, public signature/root-signature part extraction, supported shader stripping and disassembly, and explicit HLSL compilation refusals. Original deterministic DXBC and PE32+ fixtures accompany the changes. Eight compute words and two 8-by-8 RGBA8 raster outputs matched hand-derived values and the CPU interpreter on Apple M1 Max with Metal API and shader validation, and the original reflection guest passed under both CPU engines at scheduler quanta 1 and 64. Full shader execution, compiler-specific metadata and removal of opaque test parts remain limited or unsupported. Independent acceptance is pending.
- Expanded the synthetic Win32 threadpool beyond standalone work objects (`#2927`). Pool handles, strict `TP_CALLBACK_ENVIRON_V3` memory validation, cleanup groups with close-members draining/cancellation, cleanup destructor callbacks and member-object release, simple submissions, timer/wait extension forms with documented pending-callback recall results, transient callback instances, object-level disassociation accounting with cleanup-group association retained until callback return, and return finalizers for events, mutexes, semaphores, critical sections and runtime-loaded libraries are now modelled with bounded process-local state. The exported kernel32 object surface is declared in `services.txt` and emitted through the typed runtime-service table, while the callback scheduler remains handwritten. Ready callbacks also advance cooperatively when a guest reaches or resumes a service wait/yield boundary, so `SetEventWhenCallbackReturns` followed by `WaitForSingleObject` completes without an explicit threadpool drain; timer and finite wait deadlines participate in idle wakeups. An original PE32+ witness covers the positive and negative surface on the ARM64 DBT at quanta 1 and 64 and on the x86-64 interpreter. This remains a cooperative partial model: no host worker threads, parallel callbacks, preemption or Windows scheduling fidelity, and no Windows comparison or independent acceptance is claimed.
- Added explicit session-local X.509 trust, signed-message and PE32+ Authenticode verification, and a bounded Schannel TLS 1.2 guest surface (#2931). The new pure-Rust `xenora-tls` crate implements bounded DER, RSA PKCS#1/PSS verification, P-256 ECDSA/ECDHE, explicit trust paths and ECDHE-RSA/ECDHE-ECDSA AES-128-GCM client/server channels. Guest `crypt32.dll` exposes certificate-chain structures and BASE, SSL and Authenticode policies, name lookup and signed-message verification. `wintrust.dll` verifies the supported offline FILE/BLOB profiles and signed PE digests. `secur32.dll` and the registered Schannel/SSPI aliases expose credentials, handshake and encrypted stream buffers, peer certificate queries and shutdown. The synthetic PKI and PE fixture are reproducible, and 19 native core tests plus the original guest witness passed on the ARM64 DBT at quanta 1 and 64 and on the x86-64 interpreter. No host trust import, external transport, network revocation, protected content or Windows/Xbox comparison is provided. The asymmetric arithmetic is variable-time and intended for local research. Independent acceptance is pending.
- Fixed the stale loader test `guest_sampler_descriptor_checks_fields_pointer_and_heap` (`#2937`), which failed on `main` after translated mip sampling (`#2914`) made point/linear filters, LOD bias and a nonzero MinLOD legal in `XenoraCreateSamplerFromDesc`. It now accepts those and checks that anisotropic, comparison, reduction, undefined-bit and out-of-range descriptors are still refused. A new test checks that the authored legacy textured draw refuses a linear, biased or MinLOD sampler instead of point-sampling it. No runtime behaviour changes; the CPU tests pass locally on Apple Silicon and independent acceptance is pending.
- Added asynchronous WinHTTP sessions to the loopback transport (`#2923`). `WinHttpOpen` accepts `WINHTTP_FLAG_ASYNC`, derived connection, request and WebSocket handles inherit the mode, and `WinHttpSetStatusCallback` now accepts the completion flags. HTTP send, write, receive, query and read and WebSocket send, receive, shutdown and close report through the guest callback, transport failures arrive as `REQUEST_ERROR` with `WINHTTP_ASYNC_RESULT` data, and closing a handle cancels its undelivered completions before `HANDLE_CLOSING`. `WinHttpCheckPlatform` is now resolved. Xenora has no worker threads: a transfer runs on the calling guest thread and calls made inside a completion callback are delivered after it returns. An original PE32+ witness passed locally under the ARM64 DBT and the x86-64 interpreter against a loopback server. TLS, external hosts, progress notifications, Windows and Xbox comparison remain unsupported or unverified, and independent acceptance is pending.
- Added the documented Win32 shell path surface to the synthetic guest runtime (`#2930`). `shlwapi.dll` now exports 49 ANSI and wide path string helpers: `PathCombine`, `PathAppend`, `PathCanonicalize`, `PathAddBackslash`, `PathRemoveBackslash`, `PathRemoveFileSpec`, `PathStripPath`, `PathRemoveExtension`, `PathFindFileName`, `PathFindExtension`, `PathRenameExtension`, `PathIsRelative`, `PathIsRoot`, the virtual-filesystem `PathFileExists` and `PathIsDirectory`, and the `StrCmpIC`, `StrCmpNIC`, `StrStr`, `StrStrI`, `StrChr`, `StrChrI`, `StrPBrk`, `StrToInt`, `StrToIntEx` and `StrToInt64Ex` string helpers, with `MAX_PATH` (260), drive/UNC/rooted/extended prefix and `.`/`..` canonicalization rules. `kernel32.dll` now exports 15 `PathCch` entries also reachable through `kernelbase.dll` and `api-ms-win-core-path-l1-1-0.dll`, with the documented `S_OK`/`S_FALSE`/`E_INVALIDARG`/`E_POINTER`/`PATHCCH_E_FILENAME_TOO_LONG` results and `PATHCCH_ALLOW_LONG_PATHS` behaviour. `shell32.dll` now exports `SHGetKnownFolderPath`, `SHGetFolderPathA/W`, `SHCreateDirectoryExA/W` and `CommandLineToArgvW`; known folders come from a fixed public table and `KF_FLAG_CREATE`/`CSIDL_FLAG_CREATE` create them only in the synthetic profile, never on the host. A registry-level suite and an original freestanding PE32+ x86-64 witness cover the combining, trimming, find, rename, existence, argv, known-folder, directory-creation and `PathCch` buffer cases plus the negative unknown-identifier, null-output and over-long-name paths; the witness passed locally on the ARM64 dynamic binary translator and the x86-64 interpreter. Case folding is ASCII-only, `PathIsDirectoryEmpty` is absent, flags beyond the four documented `PathCch` flags are ignored, and no Windows or Xbox comparison, host directory access, real package mount or commercial-title compatibility is claimed. Independent acceptance remains pending.
- Fixed a loader panic in `GetAddrInfoW`: a `hints` pointer at the top of the guest address space overflowed a host addition and now raises the memory fault (`#2916`). The seeded runtime robustness replay reached it after `BCryptDeriveKeyPBKDF2` shifted its call sequences; a regression test covers the pointer, and it passes locally on Apple Silicon.
- Added AES-ECB, AES-CBC and AES-CFB to the CNG service layer, and `BCryptDeriveKeyPBKDF2` (`#2916`). `bcrypt.dll` now accepts `ChainingModeECB`, `ChainingModeCBC` and `ChainingModeCFB` on AES providers and keys; `BCryptEncrypt`/`BCryptDecrypt` implement unpadded calls, PKCS#7 `BCRYPT_BLOCK_PADDING` in ECB and CBC, size queries, in-place `pbIV` chaining and CFB8 or CFB128 selected by `MessageBlockLength`. PBKDF2 derives keys over HMAC-SHA1, SHA256, SHA384 or SHA512 with bounded inputs and a 2^24 iteration-block limit per call. Guests that previously received `STATUS_NOT_SUPPORTED` for these chaining modes now get working keys, and a new `AES` key defaults to CBC. Expected values are the NIST SP 800-38A and RFC 6070/7914 answers, plus LibreSSL and Python `hashlib` values where those publish none; an original PE32+ witness passed locally on the ARM64 DBT and the interpreter. CFB block padding, HMAC-MD5 PBKDF2 and wiping of cipher round keys are not provided, failure statuses and IV bytes are not compared with Windows, and independent acceptance is pending.
- Extended the guest DirectStorage COM adapter with public GDeflate decompression, GPU resource destinations and queue fence signaling (`#2905`). `DSTORAGE_COMPRESSION_FORMAT_GDEFLATE` (`0x1`) now decodes through the existing clean-room tiled decoder in `xenora-streaming` for memory and synthetic-VFS file sources, with strict bounds validation and corrupt/truncated streams failing the request with `E_DSTORAGE_DECOMPRESSION_ERROR` in the status array and error record. `DSTORAGE_REQUEST_DESTINATION_BUFFER`, `TEXTURE_REGION` and `MULTIPLE_SUBRESOURCES` deposit the decoded bytes into live `xenora_graphics.dll` resources before the request completes, so later translated draws observe them: buffer destinations validate `Offset + Size` against the live buffer extent, texture regions validate the subresource index, region bounds and BC1 4x4 block alignment, and multiple-subresources fills verify the exact total byte count of the targeted mip chain; unknown, destroyed or type-incompatible handles are refused at enqueue with `E_INVALIDARG`, never a panic. The `Resource` pointer-sized fields carry the opaque `xenora_graphics.dll` handle value directly, a documented Xenora contract rather than a fake `ID3D12Resource` COM wrapper. `IDStorageQueue::EnqueueSignal(fence, value)` validates the opaque fence handle at enqueue, orders the signal FIFO behind the preceding requests at `Submit` and signals the `GraphicsContext` fence so `XenoraGetFenceCompletedValue` and `XenoraWaitForFence` observe it immediately; cancellation retains signal markers. An original freestanding PE32+ witness streams GDeflate vertices/indices into a buffer destination, one mip through a texture region and the remaining chain through multiple subresources, waits on the event and the signaled fence, then consumes the streamed buffer and texture in one translated RDNA2 indexed draw and checks every rendered pixel exactly, plus negative cases (corrupt GDeflate, buffer overflow, out-of-bounds region and subresource, invalid handles); it passes locally on the ARM64 DBT and the x86-64 interpreter against the software reference and on native Apple Silicon Metal with API and shader validation enabled. Zstandard, the `TILES` destination, GPU-private (non guest-backed) destinations, GPU decode batches and commercial-title compatibility remain unsupported; independent acceptance remains pending.
- Added a partial guest `dxgi.dll` COM adapter for synthetic USER32 windows and `xenora_graphics.dll` direct queues (#2908). Guest programs can create two- or three-buffer flip swapchains, draw into live `GetBuffer` surface aliases, explicitly present full frames at a cooperative synthetic cadence, wait for logical latency credits, inspect synthetic presentation statistics and resize after releasing references. The reference backend retains a bounded image history; the native Metal adapter uploads and blits the rendered RGBA8 bytes through `MetalPresenter` headless rings and checks texture readback. The graphics trace reports explicit frame counts and dimensions. The original six-image witness passed on the interpreter and ARM64 dynamic binary translator with the software reference, and on the translator with native Metal on Apple M1 Max using API and shader validation. All pixels matched independently calculated expectations (class A local synthetic evidence). Fullscreen, physical display timing, Direct3D resource interfaces, authentic Xbox behavior and game execution remain unsupported; independent acceptance is pending.
- Bound `DelayLoadFailureHook` so a stock-shaped MSVC `/DELAYLOAD` image starts and its failed delay load raises the documented exception (`#2903`). `kernel32.dll` now exports the hook, aliased from `kernelbase.dll`, `api-ms-win-core-delayload-l1-1-0.dll` and `api-ms-win-core-delayload-l1-1-1.dll` (the desktop modules Microsoft's export list names); it never returns and raises `VcppException(ERROR_SEVERITY_ERROR, ERROR_MOD_NOT_FOUND)` (`0xC06D007E`) with a 72-byte `DelayLoadInfo` in `ExceptionInformation[0]`. The record carries the two names the hook received, `fImportByName` and `ERROR_MOD_NOT_FOUND`, and leaves the descriptor, thunk, module base and resolved procedure zero because the documented hook signature carries none of them; it occupies the exception record's unused parameter slots, so it stays valid for the whole handler search and unwind with no guest allocation. `ERROR_PROC_NOT_FOUND` remains the helper's own raise, as documented. An original freestanding fixture linked with `/delayload` statically imports the hook from the API set, forwards its failing thunk to `ResolveDelayLoadedAPI`, and either accepts the raise in a `__try`/`__except` filter that validates the code, the single information slot and every documented record field or leaves it unhandled so the guest ends with `0xC06D007E`; both run through the CLI. The fixture passes the imported hook as `ResolveDelayLoadedAPI`'s documented system failure hook, as `delayimp.lib` does, and an exception raised inside that service callback now resumes the walk at the resolver's guest return address, so the guest's `__except` scope handles it instead of the process ending unhandled. The Microsoft `delayimp.lib` helper itself, delay unload, the notify notifications and any Windows or Xbox comparison remain unverified, and independent acceptance is pending.
- Fixed the preexisting V4 acceptance failure on `main` (`#2900`). `app_unsupported.exe` imported `xenora_graphics.dll!XenoraSetGraphicsRootConstantBufferView` as its deliberately unprovided call, but `583e69de1` registered that export, so the image bound and ran instead of being refused while its imports were bound, and the static-report gap list no longer matched. The witness now imports `xenora_graphics.dll!XenoraDefinitelyUnsupportedGraphicsCall`, a synthetic name no service provides or will provide, so the package is refused in `FailurePhase::Imports` again and the expected static gaps name that call. A real API would only postpone the same breakage until that API is implemented, so the witness uses a name outside every service surface. `fixtures/pe/acceptance-lifecycle/build.sh` now runs its import-library step through the same linker dispatch as its images, so the repository's `find-win64-linker.sh` fallback (`rust-lld`) can rebuild the fixture; `app.exe`, `app_readfile.exe` and `engine.dll` stay byte-identical and `--check` passes. `cargo test -p xenora-acceptance --test v4_lifecycle` passes locally on Apple Silicon; hosted ARM64 CI remains the confirmation.
- Added a guest COM adapter for the bounded `xenora-streaming` DirectStorage model (`#2882`). `dstorage.dll` now exports `DStorageGetFactory` and `DStorageSetConfiguration`, aliased from `dstoragecore.dll`, and the loader assembles original vtables for the public `IDStorageFactory`, `IDStorageFile`, `IDStorageQueue`/`IDStorageQueue1` and `IDStorageStatusArray` memory-destination subset. Requests complete deterministically at `Submit` through the existing CPU decoders; decoded bytes are copied into guest memory, status entries and `DSTORAGE_ERROR_RECORD` are filled, real guest event objects are signaled, tagged cancellation and queue close are honored, and `OpenFile` resolves only through the synthetic guest VFS with no host path and no traversal escape. An original freestanding PE32+ witness passes locally on both the ARM64 DBT and the x86-64 interpreter for memory and file sources, uncompressed/zlib/raw-LZ4 transfers, status/event completion, cancellation, corrupt-stream and full-queue errors, file information and a released-object call. ZLIB and LZ4 are Xenora application-defined custom-format slots, not Windows built-ins. GPU/texture destinations, GDeflate/Zstandard, `EnqueueSignal` fences, the authentic Xbox `IDStorage*X` ABI (whose `xcrdapi.dll!DStorageGetFactory` remains an explicit `E_NOTIMPL` stub), real title assets and commercial-title compatibility remain unsupported; independent acceptance is pending.
- Implemented bounded overlapped Winsock loopback I/O and socket completion-port integration (#2619). `WSASocketA/W` accepts `WSA_FLAG_OVERLAPPED`; overlapped `WSARecv`, `WSASend`, `WSARecvFrom` and `WSASendTo` complete synchronously when loopback data or stream-window space is available and otherwise use bounded per-socket/global pending tables with `WSA_IO_PENDING`, completion-port slot reservation, `OVERLAPPED.Internal`/`InternalHigh` publication and `hEvent` signaling. `CreateIoCompletionPort` now associates overlapped sockets, failed operation packets remain distinguishable, `GetQueuedCompletionStatus` writes a null overlapped pointer on timeout and the batch API uses the documented Win64 `OVERLAPPED_ENTRY` layout. `WSAGetOverlappedResult` supports nonblocking and scheduler-backed waiting queries; `CancelIo`, `CancelIoEx` and `closesocket` complete operations with `WSA_OPERATION_ABORTED`, with `CancelIo` limited to the issuing guest thread and `CancelIoEx` process-local across threads. Completion routines remain explicit `WSAEOPNOTSUPP` refusals because Xenora has no APC dispatcher.
- Added the Microsoft extension-function path for loopback sockets: `WSAIoctl(SIO_GET_EXTENSION_FUNCTION_POINTER)` resolves `AcceptEx`, `ConnectEx` and `GetAcceptExSockaddrs` to guest-callable service trampolines; `ConnectEx` enforces the pre-bound stream requirement and performs deterministic loopback connection plus optional initial send; `AcceptEx` adopts an unbound caller-created accept socket, writes receive/address blocks and waits for first data when requested; and `SO_UPDATE_ACCEPT_CONTEXT`/`SO_UPDATE_CONNECT_CONTEXT` validate the already installed loopback connection state. Two original freestanding PE32+ witnesses exercise synchronous and pending overlapped stream and datagram round trips, flow-control send completion, IOCP single/batch completion metadata, event signaling, scheduler-backed `fWait`, extension lookup, first-data accept, update-context options, incomplete-result errors, cancellation and negative GUID/input cases through the production import registry at scheduler quanta 1 and 64 under the cooperative ARM64 DBT and x86-64 interpreter paths, and under the experimental two-worker native parallel DBT scheduler. The implementation remains strictly process-local loopback with no host sockets, external routing, IPv6, blocking sockets or APC completion routines. Local Apple Silicon verification only; Windows comparison, Xbox execution and independent acceptance are not claimed.
- Extended the synthetic headless USER32 window model with Unicode and window state (`#2872`). `RegisterClassExW`, `UnregisterClassW`, `CreateWindowExW`, `DefWindowProcW`, `DispatchMessageW` and `PostMessageW` join the existing ANSI lifecycle; class names accept UTF-16 or an atom, wide strings are validated strictly (unpaired surrogates are refused), and class names compare ASCII case-insensitively. Windows now carry `GWLP_USERDATA`, a changeable executable `GWLP_WNDPROC`, style/extended style and up to 256 zeroed `cbWndExtra` bytes through `SetWindowLongPtrA/W` and `GetWindowLongPtrA/W` (with the 32-bit forms), while `CREATESTRUCTA/W` still passes the caller's `lpCreateParams` during `WM_NCCREATE`/`WM_CREATE` for the conventional C++ `this` pattern. `GetClientRect`, `GetWindowRect`, `AdjustWindowRect(Ex)`, `MoveWindow` and `SetWindowPos` maintain a synthetic rectangle and emit `WM_MOVE`/`WM_SIZE`; `GetSystemMetrics`, `GetDpiForWindow`, `MonitorFromWindow` and `GetMonitorInfoA/W` expose fixed 96-DPI, 1920x1080 metrics. `GetMessageA/W` blocks cooperatively and answers `0` for `PostQuitMessage` with the exit code in `wParam`, while `SendMessageA/W` invokes the same-thread procedure and returns its `LRESULT` (cross-thread blocking calls are refused with `ERROR_NOT_SUPPORTED`). `SetTimer`/`KillTimer` use the deterministic guest clock, coalesce one `WM_TIMER` per timer, and `DispatchMessageA/W` invokes a validated `TIMERPROC`. An original x86-64 PE witness checks the C++ create pattern, class atoms, private data, subclassing, geometry and monitor queries, the timer-driven quit loop and the documented negative cases under both the ARM64 DBT and the x86-64 interpreter; the local Apple Silicon suite passes. Windows comparison and independent acceptance remain pending.
- Added a partial local guest `XUser` and persistent `XGameSave` runtime surface (`#2865`). `xenora-loader` now depends on the existing `xenora-profile` and `xenora-save` crates and binds the documented local-user handle, gamertag, provider, container, atomic-update, enumeration, blob-read, delete and quota entry points from `xgameruntime.dll`. `ServicesState::set_save_root` selects the bounded host root before the first save object. An original freestanding x86-64 witness compiled natively with Clang/LLD writes two blobs, a fresh guest instance over the same root reads them back byte-for-byte, exercises enumeration callbacks and negative paths, and passes locally through the ARM64 DBT startup path; all `xenora-save` tests also pass. This is offline local storage only: no Xbox Live authentication, network/cloud synchronization, UI, real XUID, connected-storage ABI, console container format or commercial-title compatibility is claimed. Display names persist atomically in version-2 snapshots, version-1 snapshots remain readable, and the CLI accepts `--save-root` for cross-process persistence. The compiled witnesses pass locally through both the ARM64 DBT and x86-64 interpreter entry paths. Offline async operations keep the existing helper's bounded 256-operation process-table and payload-size metadata limitations; independent acceptance remains pending.
- Added the bounded GameInput v0 guest input path. `gameinput.dll`/`xenora_gameinput_v0.dll` now expose COM-shaped `IGameInput`, `IGameInputReading`, `IGameInputDevice` and `IGameInputDispatcher` objects backed by the deterministic host input model: exact public gamepad/key/mouse layouts, current/next/previous/temporal readings, synthetic device metadata, app-local-id lookup, reference-counted object lifetimes and scheduler-reentrant reading/device callbacks with stop/unregister semantics. XInput slots mirror gamepads into the same model, while the session input publish path mirrors raw keyboard and accumulated mouse state. An original freestanding PE32+ fixture verifies readings, device metadata, connection enumeration, callbacks and negative results under both the interpreter and ARM64 DBT, alongside focused direct-service tests for invalid references, disconnected devices, truncated key buffers, raw/haptic boundaries, rumble forwarding, reference release and the 64-callback capacity bound, plus session-router keyboard/mouse mirror evidence. Physical HID interception outside the application input path, keyboard-layout translation, raw HID reports, haptics, force-feedback effects, aggregate devices and commercial-title behavior remain unsupported.
- Added verified structured run-time backward loops for gfx1030 compute shaders (`#188`). Reducible uniform SGPR-countdown `while`/do-while loops and divergent Wave32 VGPR-countdown loops controlled by EXEC now lower to structured MSL with mutable per-lane iteration state, including strictly nested run-time if/else regions using the recognized saveexec mask-inversion idiom. The compiler and both CPU references reject overlapping or irreducible backward control flow, no-progress/unprovable loop counters, scalar arithmetic on run-time masks outside the recognized forms, barriers in potentially divergent loops and unsupported memory/control combinations; the one-million-instruction CPU fuel remains only a backstop. Fifteen guide-derived validation cases passed on both CPU interpreters and on native Apple M1 Max Metal with API and shader validation enabled; independent acceptance remains pending.
- Implemented bounded Microsoft FH4 catch selection and dispatch for compressed x64 tables. The loader decodes validated FuncInfo4 try/handler/unwind/IP maps, matches scalar and simple non-virtual class catches, constructs trivial or copy-constructor by-value catch objects, runs target-aware cleanup chains, follows continuation metadata, supports nested operandless rethrow with shared exception-object lifetime, and terminates deterministically at an FH4 noexcept boundary. Original compiled hierarchy, copy-constructor, normal-control and noexcept witnesses run through both the hosted DBT startup path and the interpreter scheduler; corrupted FuncInfo4 RVAs, illegal unwind transitions and inverted try intervals produce deterministic `InvalidUnwind` results in both engines. Virtual bases, separated/BBT FH4 forms, throwing copy constructors, catch clauses inside noexcept frames, consolidated unwinds and asynchronous SEH remain explicit boundaries. Local verification only; independent acceptance and hardware comparison are pending.
- Added an experimental opt-in native parallel guest-execution path. `Scheduler::run_parallel`, parallel synthetic startup entry points and `xenora run --parallel-workers <1..=64>` dispatch independent guest threads to bounded native workers while leaving the deterministic cooperative scheduler as the unchanged default. Each worker owns an independent DBT engine/JIT arena; checked guest-memory accesses, atomics, translation probes and host services use a conservative process-wide serialization boundary, so register-only translated work can overlap but no throughput improvement is claimed. Worker engines disable native direct linking and indirect-target prediction so every block boundary revalidates guest source bytes under that boundary. The fixed-total multicore workload passes with one, two, four and eight native workers; the lock-free, MPMC, Peterson/futex and atomic-wait witnesses have parallel-mode coverage; and the CLI has an end-to-end two-worker lock-free-ring witness. Local release medians on one Apple M1 Max (macOS 27.2.1, 10 logical cores, startup included, five samples) were 21.74, 21.87, 22.12 and 23.04 ms cooperatively versus 21.49, 36.29, 66.27 and 65.26 ms with one, two, four and eight native workers respectively: the conservative memory/translation boundary is currently a slowdown for this memory-writing workload, not a speedup. Realtime in-block executable-page mutation retirement, audio-idle integration, package startup, priority/affinity modeling and production validation remain pending; this is not production multicore support or Xbox evidence.
- Added a bounded translated-RDNA2 guest graphics pipeline path. `xenora_graphics.dll` can now create a graphics pipeline state from gfx1030 vertex/pixel shader binaries compiled at creation time, bind one 256-byte-aligned root `b0` constant buffer, bind and clear a `D32_FLOAT` depth target, select depth test/write state, and execute one complete indexed multi-triangle scene in a single backend pass so depth ordering is preserved across triangles. Render targets and textures in the guest command path are bounded at 512 by 512 texels. The new loader integration test invokes the production `xenora_graphics.dll` service handlers through the standard import registry, runs the MVP/texture/depth fixture on the deterministic software reference and native Metal at 512 by 512, and checks all 262,144 color texels and 262,144 depth words against independently derived analytic values; the production CLI Metal adapter is also compared with the software reference and an analytic result. Shader compilation, misaligned CBV, invalid depth extent and repeated translated draws fail explicitly. Native Metal production wiring uses the same complete indexed-scene primitive previously validated on Apple Silicon. Scissor composition in the translated path, stencil, multiple translated draws in one command list, upload/readback heaps, arbitrary descriptor-table CBVs and game execution remain unsupported; independent acceptance and Xbox hardware verification are not claimed.
- Fixed destruction of native Metal compute contexts so cached Objective-C pipelines, libraries, shared buffers and binary archives are released while an autorelease pool exists. Repeated create/use/destroy cycles no longer accumulate driver-backed allocations; the V7 Metal soak passes locally under API and shader validation.
- Implemented the Windows delay-load resolver exports (`#2871`). `kernel32.dll` now binds `ResolveDelayLoadedAPI` and `ResolveDelayLoadsFromDll`, also reachable through `kernelbase.dll` and `api-ms-win-core-delayload-l1-1-1.dll`; the l1-1-0 contract lists `DelayLoadFailureHook` and neither resolve function, so Xenora deliberately does not register them there. The six-argument resolver reads `ThunkAddress` and the reserved `Flags` from the caller's Win64 stack slots, binds host services, API-set aliases, guest forwarders and freshly loaded provisioned modules through the same catalog as `GetProcAddress`, and writes the resolved address into the delayed import address table. Load and procedure failures call the caller's `dliFailLoadLib` or `dliFailGetProc` hook with a heap-allocated 72-byte `DELAYLOAD_INFO`, fall through to the caller's system failure routine, and otherwise return zero with the slot unchanged; Xenora installs no raising failure stub and refuses host-service data cells. `ResolveDelayLoadsFromDll` binds every delayed import of one DLL and answers `STATUS_DLL_NOT_FOUND` or `STATUS_PROCEDURE_NOT_FOUND` without partial writes when an export is missing, though a guest write fault can still stop after the earlier slots were written. The service generator now accepts combined `callback module_service` entries. Original tests drive both exports against `fixtures/pe/delay-imports.exe` for named services, a host service DLL outside `kernel32`, an API-set alias, a `GetProcAddress` forwarder to a handle-less host service DLL (the shared resolution path), the generated six-argument adapter with stack arguments 5 and 6, two-entry batches, both failure notifications, the system routine, a hook-supplied module, an ordinal failure, a fresh load of the compiler-linked `fixtures/pe/delay-runtime/xenora_delay.dll` driven through its initializer callback (the test answers `DllMain`; the CLI delay-runtime fixture executes the same provider's `DllMain` through `LoadLibraryA`), a batch fresh load, a refusing initializer reported as a load failure for both entries, a batch missing-export path that leaves every slot unchanged, and a short optional header refused instead of panicking the host. At that revision a stock MSVC `/DELAYLOAD` image still could not start: it also imports `DelayLoadFailureHook` from `api-ms-win-core-delayload-l1-1-0.dll`, which was not bound and did not raise its `VcppException` (bound by `#2903`); the `__delayLoadHelper2` wrapper, unloading, the notify notifications and any Windows or Xbox comparison therefore remain unverified, and independent acceptance is pending.
- Bound the five Microsoft STL x64 atomic-wait satellite exports from `msvcp140_atomic_wait.dll` (`#1412`, `#1299`). `__std_atomic_wait_direct`, `__std_atomic_notify_one_direct` and `__std_atomic_notify_all_direct` forward to the existing scheduler-backed Win32 address waits, while `__std_execution_wait_on_uchar` parks in the same queue with a by-value byte comparand and `__std_execution_wake_by_address_all` wakes it. Both API families share one queue, so either can wake the other, and the indirect comparator protocol and the remaining satellite exports stay unbound. An original freestanding C guest, built natively with Clang and LLD, mixes both families at scheduler quanta 1, 64 and 1024 and checks exact clock and handle totals; the local suite passes on Apple Silicon. Independent acceptance is pending.
- Added a bounded sustained memory-pressure and recovery benchmark (`#212`). `benchmarks/benches/memory_pressure.rs` warms up, samples a baseline process physical footprint, then runs two identical bounded cycles of 128 MiB of guest regions plus 64 MiB of unified-memory Metal buffers with every payload written and re-derived before sampling. It reports per-phase min/median/peak footprints, per-cycle allocation times and the cycle-two delta, which shows whether released memory was recycled instead of compounding; dropping allocations alone is reported with the explicit caveat that macOS may keep freed pages resident. The benchmark never deliberately exhausts memory and aborts on the first allocation failure. Cargo.lock gains one workspace dependency edge and no new package. Local run on Apple Silicon: cycle 2 delta +0.0 MiB; this is a host observation, not a formal benchmark result or an Xbox/hardware claim.
- Microsoft x64 `basic_ostream(_Uninitialized, bool)` constructors are bound for `char`, `wchar_t` and `unsigned short`, and the `unsigned short` specialization joins the shared stream lifetime with its own decorated symbols and two-byte fill member. The non-adding form runs only the empty virtual `basic_ios`/`ios_base` default construction for a standalone stream, so state, format flags, precision, locale, fill, buffer and tie all stay zero; it preserves an inherited base that a derived constructor already built; the `_Addit` standard-stream branch remains an explicit refusal. Five new loader tests and the original compiled PE32+ fixture passed locally on Apple Silicon through normal startup. Windows and Xbox execution and independent acceptance remain unverified (#2000).
- Implemented bounded host media primitives for original cinematic input (#2792): canonical PCM16 WAV validation and exact 100-nanosecond block positions, local H.264 MOV/MP4 compressed-sample reading, hardware-required synchronous VideoToolbox decode, IOSurface/dimension/timestamp validation, and frame-exact synchronization of six original 30 Hz frames against a 48 kHz PCM master clock on Apple M1 Max. This initial host middleware evidence covered the standalone WAV and H.264 fixtures; subsequent entries record the expanded native decoder and guest Media Foundation path.
- Wrapped Winsock sockets in the CRT descriptor table (#1498). `_open_osfhandle` accepts a live socket handle and returns a descriptor whose `_read`, `_write`, `_close`, `_dup` and `_dup2` route to the existing loopback stream queues; `_get_osfhandle` answers the socket again, and the endpoint is destroyed only when its last descriptor closes, so a duplication outlives the descriptor it came from. A descriptor read with nothing queued reports `EAGAIN` because this machine never blocks a guest turn, a zero-count read returns zero and leaves a queued datagram for the next read as the UCRT does, and a datagram truncated by a short descriptor read consumes the message and reports `EMSGSIZE`, as `recv` does. Replacing a target descriptor through `_dup2` destroys the endpoint that target alone owned, so its peer sees the orderly end, and `fclose` of a standard stream that `_dup2` pointed at a socket performs the same final close. Eight original integration tests drive the production registry through translated guest code: both transfer directions, duplication with exactly-once close, `_dup2` replacement and close ordering, closing a socket-wrapping standard stream, a zero-count datagram read, an explicit `closesocket` invalidating an open descriptor, an unknown handle, and the empty read. A socket descriptor is deliberately not carried into a spawned child, whose Winsock table is its own and cannot represent the duplicated handle. The `WSASocketW` UDP witnesses whose width correction is already present on main now run instead of being ignored. Local Apple Silicon verification only; no Windows comparison, no busybox applet round trip, and no independent acceptance claim.
- Added original compiled and direct-service coverage for the process-wide Microsoft locale facet identifier counter (#1966). A freestanding Microsoft x64 caller imports the writable 32-bit `_Id_cnt` object and `locale::id::operator size_t()`, then checks that both name one counter, that a repeated call answers the stored id, and that a preassigned id consumes nothing. Direct tests add exhaustion refusal without mutating either cell, an unreadable id pointer, and two fresh applications in one host process that each start at zero. The shared per-process counter was already implemented in `fb1f9bfae`; this change adds no runtime behaviour. Local Apple Silicon verification only; no Windows or Xbox execution is claimed.
- Fixed a crashing `GetIfEntry` address overflow when a caller passes a row pointer close to the 64-bit address limit (`#2813`). The loopback row index is now read through checked address arithmetic and reports the memory fault instead of panicking the host; the deterministic random-service robustness suite, which reaches this handler now that the registry covers more services, passes locally.
- Added a bounded AES-GCM path to the CNG service layer (`#2813`). A new `AES` provider accepts the documented `ChainingModeGCM` value through `BCryptSetProperty`; `BCryptGenerateSymmetricKey` creates 16-, 24- or 32-byte keys with a published 512-byte key-object length, and `BCryptEncrypt`/`BCryptDecrypt` implement the one-shot documented `BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO` form with a 12-byte nonce, bounded authenticated data and a 16-byte tag. A null output answers the required size, malformed inputs fail with explicit statuses, a tag mismatch fails with `STATUS_AUTH_TAG_MISMATCH` before writing plaintext, and `BCryptDestroyKey` scrubs the secret and caller object memory. Ciphertext and tag expectations come from the published NIST GCM specification test cases for AES-128, AES-192 and AES-256, including empty-plaintext and authenticated-data cases; the new PE-bound suite passed locally on Apple Silicon. CBC/ECB/CFB, chained GCM calls and asymmetric CNG remain unsupported, and independent acceptance is pending.
- Added `RegEnumKeyExW` and `RegEnumKeyExA` to the session guest registry (`#2813`). Enumeration reports direct subkeys in deterministic name order with the documented `lpcbName` in/out size contract, `ERROR_MORE_DATA` for a short name or class buffer, `ERROR_NO_MORE_ITEMS` past the last subkey, `KEY_ENUMERATE_SUB_KEYS` access enforcement, a null-reserved check, an empty class, and the epoch as the synthetic last-write time; the narrow form refuses non-ASCII stored names instead of inventing an ANSI code page. A new PE-bound suite covers direct-subkey enumeration from named and predefined roots, size contracts, access and class validation and the narrow form; it passed locally on Apple Silicon. Independent acceptance is pending.
- Completed the CPU BC6H two-subset decoder in `xenora_texture` (`#236`). All ten two-subset modes (Microsoft modes 1 to 10) now decode alongside the four single-subset modes, using the per-mode endpoint bit layouts, 32-pattern partition table, two-bit anchor indices, transform inversion and unquantization from the public Khronos Data Format specification, for both signed and unsigned data; reserved modes still return zero. Expectations come from hand-worked arithmetic and from a known-answer file of 160 new vectors generated by a separate clean-room Python reference decoder written from the same specification. The local suite passes on Apple Silicon; independent acceptance is pending.
- Added a bounded CPU benchmark for BC1 linearization (`#143`). The `bc1_linearize_bench` example first re-derives the documented 2x2-block tile layout independently and checks a deterministic 2048x2048-texel payload plus an odd 20x12-texel footprint, verifies `decode_bc1` against hand-worked Direct3D palette arithmetic, and only then times seven fixed `linearize` and decode samples after two warm-ups, printing medians, minima and maxima with explicit sample counts. The numbers are host observations, not formal benchmark results and not GPU measurements; native Metal upload-path benchmarking stays out of this change.
- Added a bounded native Metal batch path to the DirectStorage-style streaming host model (`#2775`). Priority-selected consecutive requests are decoded in one synchronous compute dispatch into zero-copy shared memory with per-request error isolation, 64-request and 16 MiB aggregate budgets, atomic pre-admission backpressure, FIFO marker boundaries and logical in-flight cancellation that suppresses completion without claiming GPU work can be recalled. Native Apple M1 Max tests cover multi-megabyte bit equality against original plaintext and independently computed CPU decoder output. LZ4 frames, GDeflate, GPU-private/texture destinations, COM or guest registration and commercial-title compatibility remain unsupported.
- `xenora-package-vfs` adds an isolated writable user overlay (`UserOverlayVfs`) above the existing read-only package mounts (`#2806`). The overlay is a complete shadow tree resolved per complete path: overlay files win over package files, absent overlay entries fall back to the package layer, writes are confined to the overlay through a synchronized temporary file and an atomic rename (one overlay entry per virtual path across letter case), and deletes remove the overlay copy and shadow both layers with whiteout markers until a new write lifts them. Marker and temporary namespace names are refused as virtual path components; symlinks are rejected at construction and on use; overlay trees are bounded by 64 MiB per file, 4096 files and 256 MiB total. Eleven focused integration tests cover precedence, letter case, whiteouts, adversarial paths, external markers, symlink injection and close expiry. All `xenora-package-vfs` tests passed locally on Apple Silicon; independent acceptance remains pending.
- `xenora-save` adds session-scoped providers (`#2806`). `open_session` binds one validated session key (1 to 60 bytes of ASCII letters, digits, `_`, `-`) to an isolated container namespace and an independent quota below a shared host root, `list_sessions` reports existing keys deterministically and fails closed on unexpected entries, and `delete_session` removes one whole namespace, reporting a missing session explicitly. Symlinked session storage is refused. Four focused tests cover namespace and quota isolation, persistence across session reopening, validation before any host path is built, namespace removal and symlink refusal. All `xenora-save` tests passed locally on Apple Silicon; independent acceptance remains pending.
- `xenora-profile` adds a persistent local guest profile (`GuestProfileStore`, `#2806`). One dedicated host directory holds a bounded display name (default `Guest`) and up to 256 typed settings and preferences (boolean, `u32`, `u64`, `i64`, UTF-8 text and opaque bytes; 64 KiB per variable-size value). An explicit `save` serializes the original integrity-checked `XNPROF01` format through a synchronized temporary file and an atomic rename, so a failed save leaves the stored profile intact; corrupt stored data fails closed and stale temporary files are cleaned on open. Symlinked storage is refused. Five focused tests cover round-trip persistence, bounds, corruption, atomic replacement and symlinks. All `xenora-profile` tests passed locally on Apple Silicon; independent acceptance remains pending.
- Implemented the advanced Win32 virtual memory and section-mapping runtime contracts (`#2502`): `VirtualAlloc`, `VirtualAlloc2`, `VirtualFree`, `VirtualProtect` and `VirtualQuery` now support large sparse virtual reservations, sub-range commit and `MEM_DECOMMIT`, `MEM_FREE` queries, `MEM_EXTENDED_PARAMETER` address-requirement placement (`LowestStartingAddress`, inclusive `HighestEndingAddress` and power-of-two alignment), and one-shot `PAGE_GUARD` consumption across both the ARM64 DBT and x86-64 interpreter. Anonymous and sparse synthetic `C:` file-backed `CreateFileMappingA`/`W` sections and `MapViewOfFile`/`Ex` views now map directly into `GuestMemory` as coherent shared, read-only, placed or page-local copy-on-write views preserving offsets above 4 GiB sparsely. All 9 active tests in `runtime_advanced_memory_contract` and its ignored >4 GiB sparse witness passed locally; executable protections in `VirtualAlloc`/`VirtualProtect` and hardware SEH exception dispatch on guard traps remain unsupported boundaries.
- Added bounded pixel depth exports `EXP MRTZ` to the translated gfx1030 graphics pipeline. The decoder and compiler accept uncompressed VM-marked depth exports with depth in the X component, require DONE only on the final color-or-depth export in program order, and generate a Metal `[[depth(any)]]` pixel output. The new fixture passed native Apple Silicon Metal validation with exact red color and Depth32Float readback. Stencil, sample-mask, compressed exports and Xbox hardware verification remain unsupported.
- Added Metal render-pipeline binding reflection validation to the bounded graphics-pass and translated textured-render primitives. Pipeline creation now requests binding metadata and rejects a pass before encoding when a used vertex or fragment constant-buffer slot is unbound, when the shader uses a non-buffer binding the graphics-pass primitive cannot supply, when a translated textured shader samples without a bound texture/sampler, or when either stage uses a resource outside the fixed positions/colors and texture/sampler-zero contract. Native Apple Silicon validation covers the missing-binding rejections, exact multi-target/depth constant-buffer readback, the existing offscreen positive path and translated image sampling. Reflection validation of arbitrary guest root-signature layouts and color attachment counts remains unsupported.
- Added a live standalone RTS0 root-signature creation path for guest graphics and generalized its bounded descriptor-table runtime. `xenora_graphics.dll!XenoraCreateRootSignatureRts0` reads an aligned, bounded RTS0 payload from guest memory, decodes it through the shared root-signature codec, rejects malformed trailing or gapped bytes, and admits root signatures whose pixel-visible `t0` SRV and `s0` sampler bindings are unambiguous. Tables may use multi-descriptor SRV/sampler ranges with explicit or `APPEND` offsets and additional unused non-pixel tables; execution validates that each whole declared table fits the bound 64-descriptor heap and resolves register zero through the declared offset. Cross-device descriptor heaps, views and root signatures are rejected. Root constants, root descriptors, CBV/UAV ranges, static samplers, nonzero root flags and descriptor-range flags remain explicit errors. Loader tests cover RTS0 creation validation, appended-range resolution, heap-capacity rejection, cross-device rejection and end-to-end textured execution; Metal reflection now validates the fixed translated texture/sampler binding contract, but arbitrary guest root-signature reflection is not yet implemented.
### Added
- Added guest Win64 process environment and native runtime services (#2936). Main and worker TEBs publish process/thread IDs and a process-owned PEB with the rebased image, loader lists, process heap and normalized parameters; dynamic DLL references and thread notifications update the same records. New NTDLL process, thread, system, virtual-memory, RTL string/version/status and loader services reuse the guest runtime and memory allocator, with version 10.0.19045 shared with `GetVersionEx`. Original multi-image PE32+ and parent/child witnesses passed locally at quanta 1 and 64 on the ARM64 DBT and interpreter, with preferred and rebased package placement. The selected desktop layout and service subsets remain synthetic; Windows/Xbox comparison and independent acceptance are pending.
- Added a bounded guest Media Foundation source reader over native `xenora-media` (#2373). The `mfplat.dll` surface provides startup reference counting, memory buffers, samples and read-only VFS byte streams. Public `mfreadwrite.dll` factories provide source-reader objects and methods. The synchronous factory decodes original unprotected local H.264 and AAC/PCM into a bounded cache, supports RGB32/ARGB32 and PCM16/FP32 negotiation, native/current format attributes, timestamps, duration, stream selection, flush and rational seek. Original AAC, PCM and reordered H.264 fixtures verify arithmetic color expectations, exact mono PCM and edited presentation timestamps. All 34 native media tests passed locally; an original PE32+ witness passed on the x86-64 interpreter and ARM64 DBT and delivered decoded audio through WASAPI and video through headless native Metal via DXGI on Apple M1 Max with validation (class A local evidence). All nine focused CPU regression tests and all four GPU-feature witness tests passed, including package-VFS access and exact presented-pixel and captured-PCM parity between the software reference and native Metal. Independent acceptance is pending. No real-time, Windows, Xbox or commercial-title compatibility claim.
- Added a bounded Windows Imaging Component (WIC) guest runtime and original CPU image decoding crate. The `windowscodecs.dll` subset supports public COM factory activation, single-frame PNG, baseline JPEG, BMP/DIB and 2D DDS decoding from guest-memory streams or synthetic VFS files, seven pixel formats, nearest-neighbor and bilinear scaling, rectangular pixel copies and reference-counted bitmap locks. The PNG decoder reuses `xenora-streaming`'s native macOS system zlib wrapper and DDS reuses `xenora-texture` block decoders. Original image vectors exercise decoding, and a freestanding PE32+ guest witness passed locally on the x86-64 interpreter and ARM64 DBT at quanta 1 and 64, checking all four formats via filename and memory-stream inputs and every pixel in four 8-by-8 frames presented through the software draw and DXGI path (Class A synthetic evidence). Progressive JPEG, arbitrary color transforms, image encoding, arbitrary codec plug-ins, Windows comparison, Xbox hardware, native GPU imaging and game execution remain unsupported. Independent acceptance is pending.
- Added a bounded multipass extension to synthetic translated gfx1030 guest graphics. Depth-only draws, terminal fragment discard, comparison sampling, vertex explicit-level texture reads, layered/cube views, BC2/3/4/5/7 textures, R32_FLOAT targets and configurable rasterization support a synthetic shadow scene. Resource barriers admit previous color and depth attachments as stage-specific SRVs and the native adapter retains bounded Metal surfaces across synchronous submissions. The existing pure BC algorithms now live in the dependency-free `xenora-block-codec` crate with unchanged texture exports, preserving the graphics dependency audit and independent fixture expectations. The original 8×8 PE witness passed on both reference CPU engines and native Metal with API and shader validation on Apple M1 Max, matching all 1,856 analytic report bytes and confirming three sampled surface reuses and one attachment reuse. Game execution, Xbox hardware verification and independent acceptance remain unestablished.
- Extended the synthetic translated RDNA2 guest graphics path with indexed instancing, declared float4 input offsets, absolute instance IDs, up to four paired texture/sampler slots, RGBA8/BC1 SRV mip chains and point/linear addressing and LOD controls (#2914). Explicit-gradient samples, base-level gather and resource queries run through the independent CPU reference and native Metal. A bounded 20-byte indexed command signature resolves a live argument/count buffer at execution, rejecting invalid ranges, states, handles and counts while rolling back failed batches. The original 8×3 PE passes on the interpreter and ARM64 DBT reference paths and on native Metal with validation, including MRT, depth, stencil, zero counts and nonfinite shader rejection. Native compressed BC1 is retained for exact endpoint/transparent palettes; other palettes are canonically decoded to RGBA8 before native upload to avoid the observed Apple interpolation discrepancy. The 1,696-byte report matches the reference exactly after backend ID normalization, with one UNORM8 LSB permitted by the gate only for filtered RGB. No implicit derivative generation, arbitrary D3D12/Xbox shaders or game execution is established. Maintainer acceptance remains pending.
- Added session-scoped named guest IPC, job objects and child lifecycle handling (#2915, #1471). Same-image child re-execution uses separate guest address spaces and deterministic session turns. Named events, mutexes, semaphores and sparse shared sections can be opened by another member of the session; local named pipes and anonymous pipe cleanup track endpoint references across child exit. Job assignment, active-process and logical mapped-byte limits, synthetic instruction accounting, explicit termination and kill-on-last-close extend the guest runtime. Scheduled CRT `P_NOWAIT` spawning allows producer and consumer children to run before `_cwait`. The original PE32+ witness passed locally on both CPU engines at quanta 1 and 64, including `EPIPE`, termination, memory cap, peak and allocation-retry checks. Independent acceptance remains pending. Arbitrary executable launch, Windows comparison, Xbox and game execution remain unsupported.
- Implemented bounded Win32 vectored exception and continue handler chains (`#2897`). `AddVectoredExceptionHandler`, `RemoveVectoredExceptionHandler`, `AddVectoredContinueHandler`, `RemoveVectoredContinueHandler` and the documented ntdll `Rtl*` entry points now preserve insertion order, support handle removal during dispatch without holding a host lock across guest code, run vectored exception handlers before frame-based SEH, invoke continue handlers before continuation, and resume through the mutated x64 `CONTEXT` under both the ARM64 DBT and the x86-64 interpreter. Guard-page traps now dispatch `STATUS_GUARD_PAGE_VIOLATION` after one-shot disarm and before the faulting access retires, with exact access-kind/address parameters; an original compiled PE32+ witness covers ordering, removal, context patching, divide-by-zero, access violation, breakpoint, illegal instruction, guard execute/read/write re-arm/query, nested handler dispatch and vectored-before-SEH interaction locally. `VirtualAlloc`/`VirtualProtect` now admit `PAGE_EXECUTE`, `PAGE_EXECUTE_READ` and `PAGE_EXECUTE_READWRITE` because cached DBT translations are validated against current execute permission before reuse. Debuggers, Windows Error Reporting, `PAGE_EXECUTE_WRITECOPY` and Windows/Xbox comparison remain outside the claim.
- Added bounded multi-group gfx1030 compute dispatch through the normal synthetic guest graphics services (#2898). Guest pipelines bind one CBV, four SRV and four UAV dword views on existing graphics objects. The verified compiler and independent CPU reference execute whole 32–256-thread groups with a uniform runtime countdown, group-private LDS, barriers and wrapping integer atomics. Native Metal dispatches three-dimensional groups and rejects checked range faults without publishing staged UAV outputs. An original PE recorded two dispatches across eight 64-thread groups and matched all 1,033 UAV words bit for bit on the interpreter, ARM64 DBT reference and native Metal paths. Three focused native Metal tests passed on one Apple M1 Max with API and shader validation. Game execution remains unsupported, Xbox compatibility is unverified and maintainer acceptance is pending.
- Extended guest WASAPI beyond polled rendering (#2899). Event-driven streams now need `SetEventHandle` and have their event set by the scheduled 10 ms audio period, so a guest audio thread can block on `WaitForSingleObject`; `IAudioClock` reports a byte position that follows the frames the device took and freezes on `Stop`; and `IAudioCaptureClient` records either a loopback of the final shared mix or a synthetic capture device which is silent by default and never opens the host microphone. An original PE32+ program passes locally under the interpreter and the ARM64 translator with a deterministic clock. No native device run, no Windows or Xbox comparison and no independent acceptance; exclusive mode, endpoint enumeration and other stream flags remain unimplemented.
- Added a bounded guest `dbghelp.dll` diagnostics subset (#2907). Per-process service instances own symbol sessions and options, expose metadata and named exports from loaded PE images, enumerate modules through reentrant guest callbacks, share the MSVC demangler, and walk AMD64 `.pdata` frames through the checked guest unwind engine. `MiniDumpWriteDump` atomically replaces a writable synthetic `C:` file with a bounded public-format dump of the current guest thread, modules, stack and optional exception context. An original Clang/LLD PE32+ EXE/DLL witness passed locally on Apple M1 Max through the interpreter, ARM64 DBT and explicit-package DBT path, including cross-module unwind, exact export displacement, byte-level dump readback and negative calls. PDB/DWARF, custom stack-walk callbacks, full/multi-thread dumps, Windows/Xbox comparison and game execution remain unsupported; independent maintainer acceptance is pending.
- Added synthetic guest triangle ray tracing to `xenora_graphics.dll` (#2888): six exports query support, create persistent BLAS/TLAS handles, trace batches, rebuild a TLAS while retaining its BLAS objects, and destroy structures in lifetime order. The deterministic CPU BVH and native Metal adapter enforce geometry, transform, memory and handle limits and explicitly refuse native ray tracing on unsupported devices. An original freestanding PE builds two indexed meshes, traces primary and shadow rays, moves an instance, and exercises invalid inputs. Its 40 hit records and 16 RGBA8 pixels matched independent expectations on the interpreter, ARM64 DBT reference and ARM64 DBT Metal paths on one Apple M1 Max with Metal API and shader validation. This is class A local synthetic evidence. Game execution remains unsupported. DXR and Xbox compatibility remain unverified, and maintainer acceptance is pending.
- Added an opt-in guest package drive `P:` (#2869). `xenora run --package-mount
` serves a host directory to the guest through `xenora-package-vfs` and never writes it; `--overlay-dir ` adds a separate copy-on-write overlay that receives every change and keeps it between runs. The Win32 file, attribute, search, directory, delete and move services and the C runtime's streams and descriptors follow the drive. Without a mount nothing changes, and path services that do not implement the drive refuse its names instead of acting on `C:`. `xenora-package-vfs` gained merged metadata, directory listing and directory creation. An original x86-64 PE program covers reads, copy-on-write across sessions, whiteout deletes and moves, traversal, reserved-name, link, sharing and bound refusals and the C runtime on the interpreter and the ARM64 translator; those tests passed locally on Apple Silicon. Independent acceptance is pending, as is the human host-filesystem security review. There is no authentic package format and no Windows or Xbox comparison.
- Added a bounded Win32 fiber implementation for guest code: conversion of threads to fibers and back, explicit fiber creation with guarded process-local stacks, cooperative `SwitchToFiber` context preservation in the ARM64 DBT and x86-64 interpreter, public `NT_TIB` stack/fiber metadata updates, per-fiber FLS isolation and destructor dispatch, fiber API-set aliases, and deletion of inactive or currently running fibers through their documented lifecycles. An original freestanding PE32+ witness covers a three-fiber ring, nonvolatile integer and conditional floating-point state, deep recursion, FLS callbacks, SEH inside a fiber and independent fibers on guest worker threads; it passes locally in cooperative DBT at quanta 1 and 64, the interpreter, and two experimental opt-in parallel-DBT configurations. Incremental fiber-stack commit, preemptive fiber scheduling, APCs, Windows comparison, Xbox execution and independent acceptance remain outside the claim.
- Fixed the V4 acceptance unsupported-import control so it imports a deliberately absent graphics symbol again; the previously used root constant-buffer view service is now implemented on main, which made the negative control executable instead of refused. The control source and deterministic PE image were updated together.
- Extended `xenora_graphics.dll` with a synthetic translated pipeline descriptor, one to four RGBA8 attachments, independent color load/clear, blend and channel masks, D32_FLOAT/S8 resources and tightly packed depth-then-stencil readback, per-face stencil comparisons and operations, scissor, and independent vertex and pixel b0–b3 constant buffers (#2889). Translated indexed draws preserve attachment contents between draws, and the CLI connects the extended native Metal backend. An original two-pass PE32+ guest passed through both the ARM64 DBT and x86-64 interpreter on the software reference and native Metal (Apple M1 Max, Metal API and shader validation enabled), with exact four 4×3 RGBA8 images, twelve D32 depth words and twelve stencil bytes compared against analytically derived expectations. Invalid descriptors and rejected draws preserve the completed frame and attachments. All ten combined guest tests passed, including rejected geometry write states and cross-device queues. Independent acceptance is pending. Xbox hardware and game execution remain unsupported.
- Extended the translated indexed graphics host APIs with one to four independent RGBA8 color attachments, per-target blend equations and channel masks, loaded or cleared attachment images, float depth and eight-bit stencil, bounded scissor rectangles, and separate vertex/fragment b0–b3 constant buffers. The linked compiler reports color count, depth export, sampling and per-stage byte extents. Original LLVM-assembled fixtures and CPU/Metal known-answer tests cover depth export, stencil, blending, and observable effects from every vertex constant buffer on Apple M1 Max. Independent project acceptance is pending (#2889).
- Added XAudio2 voice and send filters and a built-in effect chain (#2866). Source and submix voices created with `XAUDIO2_VOICE_USEFILTER`, and sends created with `XAUDIO2_SEND_USEFILTER`, now filter audio with the published state variable recurrence; the two one-pole types use a Xenora recurrence because Microsoft publishes none. `xaudio2_9.dll!CreateAudioVolumeMeter` and `CreateAudioReverb` create an original peak/RMS meter and an original delay-network reverb that `SetEffectChain`, voice creation, `EnableEffect`, `DisableEffect`, `GetEffectState` and `Set`/`GetEffectParameters` accept; the ten voice methods that reported `E_NOTIMPL` or did nothing now work, and XAPOs implemented by a guest stay refused with `E_NOTIMPL`. Filter responses are checked against the transfer function of the published recurrence, and an original PE32+ program renders sixteen bit-identical quanta under the interpreter and the ARM64 translator. Local Apple Silicon CPU verification only: the reverb is not the Windows reverb, no Windows or Xbox audio was compared, `xaudio2_8.dll`, capture and XMA decoding remain unsupported, and independent acceptance is pending.
- Added a native Metal ray tracing foundation to `xenora-metal` (#2868). `NativeCompute::supports_raytracing` probes the device at runtime, and `xenora_metal::raytracing` refuses unsupported devices with a typed error, validates triangle, instance and ray input before creating any Metal resource, builds primitive (optionally compacted) and instance acceleration structures, and traces ray batches with a compute intersector. Eight native tests against a separately written CPU Möller–Trumbore reference passed on one Apple M1 Max with Metal API and shader validation, and are part of `scripts/test-gpu.sh`. At that stage the foundation exposed a host interface for authored geometry. Dedicated ray tracing hardware, other GPUs, performance and Xbox execution remained unverified. Independent acceptance is pending.
- Added a bounded local `crypt32.dll` subset for guests (#2877). `CryptBinaryToStringA/W` and `CryptStringToBinaryA/W` implement the documented base64, headered base64, hex, hex-ASCII/address and raw-hex formats with exact Windows two-pass size probing and `ERROR_MORE_DATA`/`ERROR_INVALID_DATA` failure contracts; the hex-dump column layout is Xenora's documented canonical form because Microsoft Learn does not publish one. `CryptProtectData`/`CryptUnprotectData` implement authenticated AES-256-GCM protection scoped to the emulated process session through a versioned Xenora envelope with optional entropy mixing, description restitution and process-heap outputs the guest releases with `LocalFree`; corrupted or wrongly keyed envelopes fail authentication. `CryptProtectMemory`/`CryptUnprotectMemory` obfuscate exact multiples of the 16-byte block size in place and reject other lengths with `ERROR_INVALID_USER_BUFFER`. `CertOpenStore` opens bounded memory certificate stores (system provider names are empty local memory stores, never macOS or Windows system roots), with DER SEQUENCE shape validation, insertion-order enumeration that consumes the previous context as documented, `CERT_FIND_ANY`/`CERT_FIND_SHA1_HASH` lookup, reference-counted contexts and the exact `CERT_CLOSE_STORE_CHECK_FLAG`/`CRYPT_E_PENDING_CLOSE` close contract. Original freestanding x86-64 PE witnesses pass every check under both the ARM64 DBT and the interpreter. This is not Windows DPAPI credential storage: protection is local to the process session, uses no macOS keychain and protects nothing across sessions or machines, and no X.509 chain validation, revocation checking or trust decision exists.
- Added partial `kernel32.dll!HeapWalk` for the existing guest-memory heap model (#2670). It enumerates distinct live fixed blocks owned by the selected private or process heap in address order, writes the 40-byte Win64 busy entry with the exact tracked size, and reports `ERROR_NO_MORE_ITEMS` on exhaustion without modifying the entry. Local ARM64 tests cover interleaved cursors, ownership, allocation lifecycle, shared-base markers and failed output validation. Native heap arena/free entries, locking and low-fragmentation heap policy remain pending.
- Enabled both compiled `WSASocketW` UDP loopback regression cases in the ordinary loader suite (#2673). The merged Win64 DWORD width correction (#2662) lets the original guest create UDP sockets, deliver both datagrams and close its resources at scheduler quanta 1 and 64. The separate overlapped socket IOCP witnesses remain opt-in pending production completion support.
- The translated triangle, depth, indexed and blend fixture passes now reuse cached render pipelines keyed by source, entry names, bindings, attachment formats and blend state, and the synthetic frame backend uses `BindingTable` so that a draw re-encodes only the descriptor slots that changed (`MetalFrameBackend::binding_stats`). Metal tests under API and shader validation compare cached pixels with hand-derived values and the software reference and count the skipped slots; independent acceptance is pending (#2435).
- Bound the UCRT wide tokenizers `wcstok` and `wcstok_s` with the modern three-argument Win64 ABI (`crates/loader/src/services/crt_wcstok.rs`). Tokenization rewrites only the delimiter that ends the returned token, keeps the scan position in the caller's context so two strings interleave and the delimiter set may change between calls, and treats non-ASCII delimiters as UTF-16 units. `wcstok_s` dispatches the process invalid-parameter handler before `EINVAL` for a null context, a null delimiter set, or a null string whose context already holds null; an inaccessible string, delimiter set or context faults before the input is rewritten. The legacy `_wcstok` name is not an export: the UCRT header defines it as an inline that calls `wcstok(string, delimiter, 0)`, so a null-context `wcstok` keeps a CRT-instance position instead. Nine guest-import tests cover sequences, interleaved contexts, varying and non-ASCII delimiter sets, tokens at the last mapped unit, the documented error table and fault atomicity. Both are manual code registrations, so the live runtime inventory gained the two keys. Local Apple Silicon evidence only: no compiled EXE/DLL fixture, no Windows execution and no independent acceptance.
- Strengthened the original three-image Microsoft EH3 scalar witness so the executable inspects and mutates the integer caught **by value** after a provider-DLL throw. This closes the remaining cross-image by-value evidence gap; scalar rethrow, nested lifetime, class metadata boundary, malformed table and non-C++ control evidence was already present on main (#1549).
- Added original compiler-driven VCRUNTIME pure-virtual witnesses covering compiler-emitted `_purecall` dispatch, the default terminal path, handler replacement and clearing, termination with status 3 after a returning handler, and preservation of an explicit callback-initiated exit status 42 (#1435).
- Added original relocated EXE/DLL witnesses for the VCRUNTIME exception-message record services. They cover independent owned copies, borrowed messages, empty records, repeated destruction of cleared storage, invalid null/self storage controls, guest-heap release through a use-after-destroy control, and service use from both sides of the module boundary at two package placements (#1739).
- Added binding-aware pipeline and library caches to the native Metal backend. Cache keys combine a clean-room 64-bit FNV-1a/SplitMix64 hash of shader identity with compile specialization, `MTL_SHADER_VALIDATION` mode and active buffer/texture/sampler layout; render keys also cover attachment formats and depth format, while descriptor values are excluded, and every lookup also compares the exact source and entry names. `BindingTable` tracks per-slot dirty bits and a layout generation so an unrelated slot mutation invalidates only its own bit. Bounded eight-entry library, 16-entry compute-pipeline and 16-entry render-pipeline caches use LRU eviction, and `PipelineCacheStats` exposes hit/miss counts. Unit tests prove deterministic key changes and zero spurious misses for unrelated slots; Metal-validation regression tests repeated passes. In two runs of the `pipeline_cache` benchmark on an Apple M1 Max, warm compute runs took a median 0.22 ms against 0.29 to 0.30 ms for a first run in a fresh context, and warm 64 by 64 graphics passes 0.27 to 0.31 ms against 0.79 to 0.83 ms; a saved binary archive showed no measurable benefit, and first-time compiles depend on the system shader cache. `BindingTable` is not yet used by the renderers. Local observation only; independent acceptance pending (#2435).
- Added an original PE32+ 3D scene fixture for the synthetic frame pipeline (`fixtures/pe/frame-scene.c`): three animated frames of a shadow pass with indexed, instanced cubes, a shadowed mipmapped ground updated through an upload buffer, and a 1280 by 720 composite, submitted asynchronously and collected with a fence. An independent ray caster checks every decided pixel on the software reference and native Metal, and the two backends are compared pixel by pixel with a documented edge tolerance. Recorded as `guest-frame-pipeline` in the status registry; independent acceptance is pending (#2648).
- The synthetic guest frame pipeline submits command lists asynchronously: `XenoraFrameExecuteAsync` signals a timeline fence when a submission is collected, `XenoraFrameWaitFence` blocks with a bounded timeout, queue signals stay ordered behind pending work, and nothing a pending submission uses can be destroyed. The native backend orders its command buffers on one Metal shared-event timeline through detachable `MetalTimeline` tickets. A `frame_multipass` benchmark times multi-pass frames only after they match the software reference (#2648).
- Added a second original RTL unwind ABI guest bound through the exact `api-ms-win-core-rtlsupport-l1-1-0.dll` module. It statically imports `RtlCaptureContext`, `RtlLookupFunctionEntry` and `RtlVirtualUnwind` there and passes context capture, function lookup and one-frame virtual unwind after relocation at two image bases, while the existing Kernel32-bound witness and its bytes are preserved (#1706).
- Added the five MSVCP STL threadpool work exports (`__std_create_threadpool_work`, `__std_submit_threadpool_work`, `__std_bulk_submit_threadpool_work`, `__std_wait_for_threadpool_work_callbacks` and `__std_close_threadpool_work`) as exact bindings over the existing Win32 work-object state and callback dispatcher. Bulk submission counts are stored as counted queue entries rather than host allocation proportional to the count, with overflow checked before queued work changes. An original compiled witness using both STL and Win32 imports covers callback arguments, invocation count, callback resubmission, cancellation, overflow preservation and close; callbacks still run only while a guest waits under the existing Partial scheduler model (#1780).
- Guests can create multi-level 2D textures on the guest command path with `XenoraCreateTexture2DFromDesc` (the Win64 `D3D12_RESOURCE_DESC`, RGBA8 or BC1, up to eight levels) and views of a chosen mip range with `XenoraCreateShaderResourceViewFromDesc`; the single-level calls are unchanged. A compiled guest drew levels 0, 1 and 2 of an RGBA8 chain and level 1 of a BC1 chain with hand-derived pixels on the software reference and native Metal on an Apple M1 Max; independent acceptance is pending (#2564).
- The synthetic guest frame pipeline renders to render-target and depth-stencil views (`R8G8B8A8`, `B8G8R8A8`, `R16G16B16A16_FLOAT`, `D32_FLOAT`, and `D24_UNORM_S8_UINT` kept as float depth on Apple GPUs) up to 1920 by 1080, with depth and a bounded stencil state, face culling, multi-pass render-to-texture and depth sampled in a later pass, real instanced draws with a per-instance stream and Direct3D `SV_InstanceID` semantics, and a shadowed program (#2648).
- The synthetic guest frame pipeline samples textures: mip chains uploaded level by level or a rectangle at a time from upload buffers, shader resource views over a mip range, `D3D12_SAMPLER_DESC` samplers with point or linear filtering, wrap, mirror, clamp, border and mirror-once addressing and level-of-detail limits, and a textured program with explicit or implicit levels. `xenora-texture` gains a linear filter that `MetalSampler` maps to Metal. Thirty sampler combinations matched the software reference on an Apple M1 Max (point cases exactly, filtered cases within one 1/255 step) with Metal API and shader validation; independent acceptance is pending (#2648).
- Added a guest texture update workload on the existing command path: one guest-backed RGBA8 texture and view reused across three draws with new texels each time, two refused submissions that leave the target unchanged, and recovery, with literal expected pixels in software and on Apple Silicon Metal (#151).
- Extend the bounded non-D16 MTBUF typed-buffer path with packed 16-bit XY, 8-bit XYZW and 16-bit XYZW UNORM and SNORM loads and stores. The synthetic conversion model defines binary32 rounding, NaN handling and signed endpoints, which remain unverified on AMD or Xbox hardware. Correct record-index arithmetic to scale in widened integers before the all-or-nothing bounds check, and use the actual packed memory footprint in static write proofs. Separate raw-input and raw-output fixtures observe conversion and complete-record bounds independently. All 56 local synthetic Metal cases passed with API and shader validation on Apple M1 Max. Independent acceptance remains pending.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including EUI-48 dash-notation conversion and loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection and legacy adapter-index queries and documented unicast-row initialization and an honestly empty ARP neighbor table, strict IPv4/IPv6 Winsock InetPton/InetNtop conversion in both widths and legacy classful inet_addr numeric forms and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including EUI-48 dash-notation conversion and loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection and legacy adapter-index queries and documented unicast-row initialization, strict IPv4/IPv6 Winsock InetPton/InetNtop conversion in both widths and legacy classful inet_addr numeric forms and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including EUI-48 dash-notation conversion and loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection and legacy adapter-index queries, strict IPv4/IPv6 Winsock InetPton/InetNtop conversion in both widths and legacy classful inet_addr numeric forms and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection and legacy adapter-index queries, strict IPv4/IPv6 Winsock InetPton/InetNtop conversion in both widths and legacy classful inet_addr numeric forms and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection, strict IPv4/IPv6 Winsock InetPton/InetNtop conversion in both widths and legacy classful inet_addr numeric forms and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection, strict IPv4/IPv6 Winsock InetPton/InetNtop conversion in both widths and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion, loopback-only best-interface selection and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion, documented IPv6 prefix terminators and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers, IPv4 prefix-mask conversion and a one-row MIB-II interface table and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries.
- Added signed 12-bit immediate offsets to every supported gfx1030 scratch private-memory form. The decoder, compiler, both CPU references and documentation now implement the public `[vaddr] + offset12s` address component while SADDR remains null. Positive and negative immediates are covered by an LLVM-assembled fixture; negative effective offsets preserve the whole-access zero/ignore boundary rule under Xenora's explicitly bounded non-wrapping address contract. Native Apple M1 Max Metal validation passed. SGPR offsets, D16, LDS-return and cache-control variants remain unsupported.
- Added bounded gfx1030 scratch byte and short memory forms. `SCRATCH_LOAD_UBYTE`, `_SBYTE`, `_USHORT` and `_SSHORT` plus `SCRATCH_STORE_BYTE` and `_SHORT` use the same null-SADDR, zero-offset private-memory contract as the dword forms. Loads implement documented little-endian zero/sign extension into the destination dword, stores write only the source low byte or halfword, and misaligned/boundary cases keep the whole-access zero/ignore rule. CPU reference, independent-reference, LLVM encoding and native Apple M1 Max Metal validation passed for the assembled fixture. D16, SGPR-offset, nonzero-immediate, LDS-return and cache-control forms remain unsupported; Xbox scratch initialization and hardware layout are not claimed.
- Added bounded gfx1030 scratch private-memory dword operations. `SCRATCH_LOAD_DWORD`, `_DWORDX2`, `_DWORDX3` and `_DWORDX4` plus matching stores decode from null-SADDR, zero-offset, non-LDS encodings; compile to per-thread Metal byte memory; and execute in both CPU references. The 64-byte-per-work-item contract implements byte-addressed misaligned accesses, deterministic whole-access out-of-range zero/ignore behavior, and conservative load/store wait separation. A native Apple M1 Max fixture passed Metal validation for dword, dwordx2, dwordx3 and dwordx4 round-trips. Byte, short, D16, SGPR-offset, nonzero-immediate, LDS-return and Xbox scratch initialization remain unsupported.
- Added bounded multi-render-target pixel exports `EXP MRT0` through `EXP MRT3` to the translated gfx1030 graphics pipeline. The decoder now carries the DONE flag separately for uncompressed VM-marked color exports, the compiler requires contiguous targets and DONE only on the final pixel export in program order, and generated Metal writes contiguous `[[color(0)]]` through `[[color(3)]]` fields. `NativeCompute::render_rgba8_mrt` enables one through four RGBA8 attachments and returns exact per-target readbacks. A three-target fixture passed Apple M1 Max Metal validation with independent red, green and blue outputs. Compressed exports, MRT4-7, depth/mask exports, non-RGBA8 translated targets, sparse target sets and reflection-based target-count validation remain unsupported. Production compute CPU references do not model graphics-stage exports; independent acceptance and Xbox hardware verification are not claimed.
- Expanded the bounded translated gfx1030 graphics pipeline from one vertex varying to independent PARAM0-7 exports and matching attr0-7 `v_interp_p1_f32`/`v_interp_p2_f32` pairs. The decoder accepts uncompressed PARAM0-7 exports, the compiler links exactly the exported/interpolated slots and emits eight independent Metal user varyings, and a two-varying fixture passed Apple M1 Max validation with perspective-correct distinct channel results. Compressed exports, more than eight varyings, other export targets and non-center-perspective interpolation modes remain unsupported. Independent acceptance and Xbox hardware verification are not claimed.
- Add bounded gfx1030 `IMAGE_SAMPLE_D` explicit-derivative sampling. The decoder, shader compiler, both CPU references, LLVM fixture validation and native Apple M1 Max Metal readback implement the six-register `(dudx,dvdx,dudy,dvdy,u,v)` tuple for non-NSA 2D RGBA8 unorm textures. Because public RDNA 2 material does not define exact derivative LOD arithmetic, Xenora explicitly limits the contract to finite derivatives whose maximum scaled footprint is a positive exact power of two, with sub-texel powers clamped to mip zero; fractional, zero, non-finite and out-of-range levels fault. This is validated Metal behavior for Xenora's contract, not a general AMD or Xbox hardware LOD claim.
- Acceptance evidence for the checked-in Wave32 VOPC fixtures: `tests/acceptance/tests/v9_vopc_fixtures.rs` replays all five fixtures (`vector-compare`, `vector-compare-ft`, `vector-compare-16`, `vector-compare-64`, `vector-compare-f32`) against hand-derived compare masks taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The 60 implemented VOPC instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2613).
- Add an optional raw-versus-applied scaling comparison to the MetalFX Temporal Fixture window. It uses one rendered frame and one native Metal pass, displays input and actual output dimensions, preserves opaque clear margins, and keeps generated-frame interpolation separate. Eleven focused Swift tests passed locally on Apple M1 Max, including both native MetalFX Spatial and Temporal comparisons and exact offscreen readback controls. Independent acceptance is pending. Guest temporal scaling remains unsupported (#2639).
- Add a local JSON diagnostic export to Program Run. The export captures observed exit status, fixed supervisor stage information, run timing and output-truncation indicators. File names, paths, arguments, raw output and free-form messages are excluded. The app now requires the validated adjacent startup and runtime reports to agree on the outcome and evidence states before showing the runtime report. Local native Swift regression passed, including a real bundled CLI failure export with the original delay-import PE fixture. Independent acceptance is pending (#2624).
- Add a bounded local audio-track source and native AVAudioEngine output for the app media path. The decoder exposes validated timestamped PCM chunks and exact seek trim; the output tracks native sample position, queue depth, pause, drain and underruns. Seven new Swift tests passed locally on Apple M1 Max, including two explicitly enabled native audio output tests using silent authored PCM. The component is available for future synchronized video integration. Guest audio and media playback behavior are unchanged (#2618).
- Acceptance evidence for the checked-in data-share wide-copy and narrow-read fixtures: `tests/acceptance/tests/v9_ds_wide_fixtures.rs` replays the three wide copies (`ds-wide-b64/b96/b128`) and six narrow reads (`ds-read-u8/i8/u16/i16` copies, `u8-base`, `i16-odd-base`) against hand-derived outcomes taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The ten covered DS instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2629).
- Acceptance evidence for the checked-in `vop3-compare` fixture: `tests/acceptance/tests/v9_vop3_compare_fixtures.rs` replays the twenty-eight integer compare `_e64` encoding variants (eight i32, eight u32, six i16, six u16) against a hand-derived wave-mask fold taken from the fixture listing and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The twelve not-previously-verified instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2622).
- Acceptance evidence for the checked-in Wave32 data-share atomic fixtures: `tests/acceptance/tests/v9_ds_atomic_fixtures.rs` replays 23 reduction and return-copy fixtures (and/or/xor, sub/rsub, inc/dec, signed and unsigned min/max, write-exchange) against hand-derived LDS atomic outcomes taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The 23 covered DS instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2617).
- Add the Native Media Player window for local unprotected H.264 video. The app uses runtime-confirmed hardware decode, directly samples IOSurface-backed BGRA or explicitly configured NV12 in Metal, preserves aspect ratio, and provides bounded timestamp pacing, pause, seek, restart and close with visible frame-submission and late-drop counts. All 12 new Swift tests passed locally on Apple M1 Max with Metal validation. Independent acceptance is pending. Audio synchronization, reordered video and game playback remain outside this slice (#2612).
- Acceptance evidence for the checked-in `vop3-compare64`, `vop3-compare-f32` and `vop3-compare-const` fixtures: `tests/acceptance/tests/v9_vop3_compare_more_fixtures.rs` replays the twelve 64-bit integer, fourteen float (with source modifiers and NaN ordered/unordered coverage) and six constant compare `_e64` encoding variants against hand-derived wave-mask outcomes taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The fourteen not-previously-verified instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2625).
- Acceptance evidence for the checked-in `vop3-int-ternary`, `vop3-integer` and `vop3-mul32` fixtures: `tests/acceptance/tests/v9_vop3_arithmetic_fixtures.rs` replays the seventeen three-input integer forms, the seventeen per-lane integer encoding variants and the three full-width multiplies against hand-derived chained arithmetic outcomes taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder; the oracle reproduces the guide's arithmetic-shift extraction for signed bit-field extracts and the five-bit byte-alignment shift with its zero result past the concatenation width. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The fifteen not-previously-verified instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2632).
- Acceptance evidence for the checked-in `vop3-unary-integer` and `vop3-float-arithmetic` fixtures: `tests/acceptance/tests/v9_vop3_unary_float_fixtures.rs` replays the five unary bit-manipulation forms (complement, bit-reverse, unsigned and signed find-first-high, find-first-low with their zero-input `u32::MAX` cases) and the six binary32 arithmetic `_e64` forms inside the pinned finite domain — including the halved-EXEC `v_max` where even lanes keep the pre-mask register value — against hand-derived outcomes taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The eleven covered instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2647).
- Added `texture_tiling` and `metal_contract` fuzz targets plus committed seed corpora. `texture_tiling` exercises RDNA 2 256B/4KB/64KB tiling descriptors, BC1-BC7 block layouts, tiled/linear round trips and out-of-range subresource queries with clamped dimensions and capped allocations. `metal_contract` fuzzes the new pure `GraphicsPass::validate_contract` and `validate_msl_source` surfaces without creating any Metal object. Local 601-second campaigns on an Apple M1 Max ran 639,612 inputs through `texture_tiling` and 25,621,385 through `metal_contract` with no crashes. Hazard, residency, cache-key and MetalFX targets remain follow-ups until those modules exist on `main` (#2439).
- Added a comparative memory-path and tiled BC detiling benchmark (`memory_compare`) and a bounded raw `NativeBuffer` helper. It verifies every payload and asserts byte equality between GPU `detile_tiled_bc` and the independent CPU `linearize_cpu` reference for 512 by 512 BC1 and BC7 in 4 KiB and 64 KiB swizzles before timing. In two runs on a lightly loaded Apple M1 Max, rounds of 16 allocations of 64 KiB took median 0.098 ms with `HeapArena`, 0.111 to 0.113 ms with `UmaSharedBuffer` and 0.248 to 0.249 ms with raw buffers; one-shot GPU detiling (0.35 to 0.44 ms) was slower than the CPU (0.12 to 0.15 ms). Local observation only (#2438).
- Acceptance evidence for the checked-in stride-64 data-share fixtures and `vop3-unary-conversion`: `tests/acceptance/tests/v9_ds_st64_cvt_fixtures.rs` replays the read/write stride-64 copies (offsets in units of 64 dwords) and read-alias fixture plus the six binary32 conversion forms against hand-derived outcomes taken from the fixture listings and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The eight covered instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2656).
- Acceptance evidence for the checked-in `vop3-carry` fixture: `tests/acceptance/tests/v9_vop3_carry_fixtures.rs` replays the explicit-mask carry chain (`v_cndmask_b32`, `v_add_co_ci_u32`, `v_sub_co_ci_u32` and `v_subrev_co_ci_u32` in their `_e64` encodings) against a hand-derived per-lane carry/borrow outcome taken from the fixture listing and the public RDNA 2 ISA definitions, never from the reference interpreter, the compiler or the decoder. The headless CPU case passes on the reference interpreter and the ignored Metal case passes on a local Apple M1 Max with `MTL_DEBUG_LAYER=1` and `MTL_SHADER_VALIDATION=1`. The four covered instruction rows move to fixture-verified CPU and GPU status in `docs/status.toml`; independent acceptance review remains pending (#2650).
- Added a synthetic guest frame pipeline to `xenora_graphics.dll` (`XenoraFrame*` exports, [documented here](docs/runtime/guest-frame.md)): upload, default and readback buffers with guest mapping and byte budgets, 256-byte-aligned constant buffer views read per draw by authored vertex and pixel programs, render-target textures up to 1920 by 1080, explicit resource states, and command lists that are validated as a whole before anything executes. A new `xenora-frame` crate holds the frame description and an independent software rasteriser; `xenora-metal` implements it natively. Local Apple M1 Max runs with Metal API and shader validation matched the reference within one 1/255 step for interpolated colours and exactly for flat colours and coverage. This is not the Direct3D 12 ABI and runs no console shader; independent acceptance is pending (#2648).
- Added the first bounded non-D16 RDNA 2 typed-buffer (`MTBUF`) batch: `tbuffer_load_format_x/xy/xyzw` and `tbuffer_store_format_x/xy/xyzw` for component-count-matched 32-bit `UINT`, `SINT` and `FLOAT` formats under a tightly packed structured-buffer synthetic ABI. The decoder, shader compiler, two CPU references, independent validation and assembled LLVM fixtures cover all nine format/width combinations, including all-or-nothing partial-record bounds. Normalized 8/16-bit formats, XYZ, D16, nonzero offsets, cache-control bits and general resource strides remain explicitly rejected.
- Added an original scheduled PE32+ Winsock guest (#2614) covering TCP echo, nonblocking `WSAEWOULDBLOCK`, orderly EOF, UDP datagram boundaries and source addresses, and explicit resource cleanup. Both scheduler quanta 1 and 64 passed locally on ARM64. Separate opt-in witnesses reproduce the current UDP `WSASocketW` zero-flag refusal (`WSAEOPNOTSUPP`) and missing overlapped socket creation. The latter also defines pending receive, event signaling and single/batch completion-port checks for future production integration. The four opt-in runs currently fail; no new runtime API or external networking support is claimed.
- Extended helper-free ARM64 basic-block register caching to twelve hot guest general-purpose registers and all sixteen legacy XMM lower halves. Repeated operands can stay resident across destination changes, selected read-only operands load once, and only dirty destinations spill at the end of each admitted run. Unassigned GPRs use ordinary state accesses, and legacy vector writes preserve upper YMM state. The portable translator cache identity advances to v10. Added scalar and packed four-accumulator benchmarks. Independent acceptance is pending.
- Added bounded CMP flag spill elimination across verified conditional branch links. A non-faulting native full-writer successor consumes no old flags, so the translator can omit all six CMP flag stores. Every failed link and every successor that needs those flags reconstructs the original comparison before architectural state becomes visible. The native benchmark adds an alternating two-successor loop and reports complete CMP writebacks elided. The portable translator cache identity advances to v9. Independent acceptance is pending.
- The CPU DBT benchmark adds an independently authored frame-loop workload with 60 frames of 32 exact vector and integer updates through indirect calls. Fully checked runs report average CPU time and dispatcher returns per synthetic frame.
- Extended ARM64 integer register forwarding to contiguous native runs that alternate between two guest destinations. Both complete values stay in caller-saved registers until the run ends. Adjacent conditional branches can reuse supported native arithmetic or logic conditions after the guest flags and paired registers are materialized. Parity and conditions without an equivalent ARM64 predicate still read guest flags. The portable translator cache identity advances to v8. Independent acceptance is pending.
- The ARM64 dynamic binary translator now has guarded native scalar and 128-bit packed SSE/SSE2 arithmetic, square root, minimum/maximum, comparison and binary32/binary64 conversion paths and signed integer-to-float conversions (CVTSI2SS/SD and CVTDQ2PS/PD). With masked nearest-even MXCSR, default host FP control and normal or signed-zero operands, it uses native ARM64 FP instructions and records precision while preserving host FP status and inactive XMM/YMM bits. Other controls, exceptional inputs and arithmetic exceptions use the existing checked shared semantics. Runtime fallback counters still count every shared-semantics execution. Independent project acceptance is pending. Guest game execution remains unsupported.
- Added guarded native ARM64 nonalternating FMA3 for 128-bit scalar and packed register operands. It uses a single rounding operation, preserves inactive scalar destination lanes and clears upper YMM state. The independent exact-fraction fixture recorded 585 native and 15,475 shared executions, with 96 zero-fallback alias cases across 48 eligible mnemonics. Memory, wide and alternating-sign forms retain shared semantics. Independent project acceptance is pending.
- Added native ARM64 lowering for the decoded legacy and 128-bit VEX AES-NI and PCLMULQDQ instruction forms on hosts reporting the necessary AES or polynomial-multiply extension. Checked guest memory access and destination aliasing retain their existing semantics, and VEX writes clear the upper YMM half. Local native ARM64 tests checked LLVM emitter words, legacy and VEX known answers, zero instruction fallbacks, checked memory faults and the compiled synthetic crypto guest. Independent acceptance is pending.
- Added an opt-in monomorphic indirect-site cache for translated near returns, indirect jumps and indirect calls. The dispatcher trains one replaceable data-only link per site. The checked architectural target and existing source verification, epoch, instruction-budget and cache-lifetime guards constrain each prediction. Independent acceptance is pending.
- Added an opt-in 64-entry direct-mapped RIP hash lookup after indirect-site or return-stack prediction misses. Each candidate must match the full architectural target, verified source epoch and remaining guest budget. Collisions overwrite one bounded slot and the dispatcher remains the fallback. Independent project acceptance is pending.
- Added an opt-in 32-entry return-address prediction stack for native CALL/RET, with the indirect-site cache as its fallback. It remembers call-site continuations only inside one execution or slice, confirms the checked architectural RET destination, and drops outstanding predictions on overflow, mismatch, epoch changes or JIT recycling. Independent acceptance is pending.
- The correctness-gated CPU benchmark adds original PE32+ floating-point, AES/PCLMUL and indirect CALL/RET loops. Each interpreter, cold DBT and warm DBT sample checks exact retirement and the relevant scalar/vector outputs. The timing and fallback metrics can compare these workloads across translator revisions. An opt-in prediction mode can also be compared with ordinary linking in alternating samples.
- Added native ARM64 byte-table, lane-broadcast and half-selection lowering for bounded SSE and VEX shuffle, immediate blend, zero and vector-lane transfer forms. Legacy XMM writes preserve upper YMM state, VEX writes follow their decoded length, and checked memory transfers precede destination updates. Independent project acceptance is pending.
- Added measured performance telemetry to the Guest Presentation window. Bounded samples record verified guest cadence, transport display latency, command-buffer GPU time, process memory and CPU-time deltas, graphics allocation sizes, input/output dimensions, scaling path and thermal state. Metrics the runtime cannot measure are explicitly reported unavailable rather than fabricated. The history can be exported as JSON or CSV, and structured Instruments signposts now cover session startup, frame receipt, command encoding, MetalFX execution, GPU completion and drawable presentation.
- The MetalFX Temporal Fixture window can turn on MetalFX frame interpolation on macOS 26 or later, with each scaling choice. Refreshes alternate between a generated frame and the rendered frame held back after it, so the scene advances only on rendered frames, at half the refresh rate, with one extra refresh of latency. The status bar counts rendered, generated and presented frames separately, reports the GPU time of rendered and generated frames apart, and reports the latency of rendered frames to the screen. Each enlarged frame is copied into an output-resolution history, because scalers overwrite their own output. On one M1 Max, generated frames came closer to a reference at the midpoint than either rendered frame, at full and reduced render sizes and after temporal scaling. The MetalFX denoiser is documented but not used: it needs albedo, normal, roughness and hit-distance inputs that no Xenora renderer produces. Guest frames still cannot be interpolated. See [MetalFX frame interpolation](docs/app/frame-interpolation.md).
- The macOS app can run MetalFX temporal upscaling on Xenora's own animated test scene (File > Open MetalFX Temporal Fixture). The scene is rendered at a reduced resolution with jitter and supplies real depth and motion vectors computed from its own motion. A versioned input contract refuses frames with missing depth or motion vectors, wrong sizes or formats, out-of-range jitter or unsupported scale ratios before MetalFX is called. MetalFX history is reset on the first frame, a new session, size changes, recreated render targets, camera cuts and scaling mode changes. Measurement showed that MetalFX takes the opposite of the renderer's jitter, so Xenora negates it. On a local Apple M1 Max with Metal validation, 29 new tests passed with none skipped. Scaling 128 × 128 to 256 × 256, temporal output after 32 frames differed from a supersampled reference by a mean of 0.049 against 0.114 for bilinear; genuine motion vectors gave 0.099 under a panning camera against 0.221 with zero vectors. The Guest Presentation window still cannot use temporal scaling, because guest frames carry color only. Independent acceptance is pending (#2448).
- Improved the Guest Presentation session window lifecycle. Restart now cancels and reaps the previous authored-session process before starting a replacement with a fresh session identity, preventing overlapping guests and stale transport statistics. The window adds explicit aspect-preserving or labelled stretch presentation, an optional measured-performance overlay, session information, and PNG screenshots encoded from exact unscaled guest frame bytes rather than host-composited window contents. This applies only to executables implementing the authored PE session protocol; arbitrary game execution is not claimed.
- Add bounded, deterministic session diagnostics to `crates/xtre`. `SessionDiagnostics` counts begun and presented frames, keeps a 120-sample ring of frame-render and input-to-present intervals with nearest-rank min/median/p95/max summaries, tracks the current and peak memory watermark, retains only the first failure, and projects all of it to compact JSON for the host application. Host-observed timing only; no GPU or Xbox performance claim. Tests cover percentile ranking, the sample bound, watermark retention, first-failure stability and JSON escaping (#2598).
- Add Wave32 `ds_add_f32` and `ds_add_rtn_f32` to the synthetic Local Data
Share model. Integer Metal arithmetic preserves binary32 subnormals and
rounds halfway results to even. The returning form publishes the original
LDS word at the LGKM wait. Both CPU references and native Metal readback
on an Apple M1 Max matched the fixtures. Independent acceptance is pending.
- Add Wave32 `ds_cmpst_f32` and `ds_cmpst_rtn_f32` in the synthetic Local
Data Share model. Ordered binary32 equality controls the replacement, and
the returning form supplies the previous word after the LGKM wait. The
fixtures passed both CPU references and native Metal readback on an Apple
M1 Max. Independent acceptance is pending.
- Add eight Wave32 Local Data Share (LDS) D16 transfers. Reads of bytes and
halfwords preserve the other half of the destination register and publish the
complete word at the LGKM wait. Two stores source the high half of the data
register. Synthetic fixtures passed both CPU references and native Metal
readback on an Apple M1 Max. Independent acceptance is pending.
- Add Wave32 `ds_swizzle_b32` with bitmask, quad, FFT and zero-preservation-mask
rotation controls. Synthetic fixtures passed both CPU references and
native Metal readback on an Apple M1 Max. Independent acceptance is pending.
- Add Wave32 `ds_permute_b32` and `ds_bpermute_b32` for wave-local scatter
and gather with a static execution mask. Synthetic fixtures passed both
CPU references and native Metal readback on an Apple M1 Max. Independent
acceptance is pending.
- Add Wave32 Local Data Share dword reads and writes addressed by M0 and
the lane ID. Xenora checks register initialization, alignment and the full
address span. Synthetic fixtures passed both CPU references and native
Metal readback on an Apple M1 Max. Independent acceptance is pending.
- Added the native macOS application library and details view. The main window can add authorized local executables or bounded scan folders, persist security-scoped file references, scan metadata asynchronously, search/sort/filter grid and list presentations, mark favorites, identify exact SHA-256 duplicates, store bounded user artwork, notes and per-application arguments/backend settings, and preserve availability states for missing or external files. Details expose the evidence ladder without inflating it: static parsing is the only static level, while higher levels require validated runtime-observed session stages. Interactive execution is not inferred. This is library organization and evidence bookkeeping, not a claim that arbitrary games execute.
- Promote the four checked-in VOP3A binary32 rounding forms (`v_trunc_f32_e64`, `v_ceil_f32_e64`, `v_rndne_f32_e64`, `v_floor_f32_e64`) from local readback to `fixture verified`. A new headless acceptance case drives the fixture with a directed table of signed zeros, half-integer ties, integers, subnormals, normals and infinities (NaN is an unsupported operand variant the interpreters refuse) and replays IEEE truncate, ceiling, round-to-nearest-even and floor including the signed-zero results. It reproduces the image on the production reference and on a native Metal device with API and shader validation enabled. `docs/shaders/semantic-coverage.md` adds 4 Metal-verified and reference-verified forms (VOP3 21 to 25); the Metal case is wired into `scripts/test-gpu.sh` (#2583).
- Promote the nine checked-in VOP1 conversion forms (`v_cvt_u32_f32_e32`, `v_cvt_i32_f32_e32`, `v_cvt_off_f32_i4_e32`, `v_cvt_f32_i32_e32`, `v_cvt_f32_u32_e32` and `v_cvt_f32_ubyte0`-`3_e32`) from local readback to `fixture verified`. The fixtures cover truncation toward zero with saturation and the NaN-to-zero rule, the signed 4-bit offset table, integer-to-float round-to-nearest-even, the per-byte conversions and the byte-3 partial-EXEC replacement. A new headless acceptance case replays those documented rules, reproduces both images on the production reference, and reproduces them on a native Metal device with API and shader validation enabled. `docs/shaders/semantic-coverage.md` adds 9 Metal-verified and reference-verified forms (VOP1 1 to 10); the Metal case is wired into `scripts/test-gpu.sh` (#2578).
- Promote the twenty implemented VOP3P integer forms from local readback to `fixture verified`. `fixtures/rdna2/vop3p-integer.s` folds the fourteen packed 16-bit forms (wrapping add/subtract, low-half multiply, signed and unsigned min/max, the per-half four-bit shifts and both MAD forms) and `vop3p-dot.s` folds the six dot products (signed and unsigned 16-, 8- and 4-bit lanes plus the accumulator). A new headless acceptance case replays the documented per-half and per-element semantics, reproduces both images on the production reference, and reproduces them on a native Metal device with API and shader validation enabled. `docs/shaders/semantic-coverage.md` adds 20 Metal-verified and reference-verified forms (VOP3P 0 to 20); the Metal case is wired into `scripts/test-gpu.sh` (#2574).
- Add Wave32 Local Data Share reads and writes of two separately addressed
64-bit words. Both offset scales and equal-offset behavior passed synthetic
tests against the CPU references and native Metal readback on an Apple M1
Max. Independent acceptance is pending.
- Add Wave32 Local Data Share reads and writes of 64, 96 and 128 bits. The
compiler checks the complete memory span and returns consecutive registers
together at the LGKM wait. Three synthetic shaders matched both CPU
references and native Metal readback on an Apple M1 Max. Independent
acceptance is pending.
- Add four Wave32 Local Data Share dword-pair forms. Strided reads and writes
use two independently scaled offsets, and returning exchanges report both
previous words from distinct addresses. Six synthetic shaders matched both
CPU references and native Metal readback on an Apple M1 Max. Independent
acceptance is pending.
- Add five Wave32 Local Data Share dword forms for masked OR, compare and store,
and exchange. Synthetic shaders matched both CPU references and native Metal
readback on an Apple M1 Max, including a return register that aliases the
replacement source. Independent acceptance is pending.
- Add eight Wave32 Local Data Share dword atomics for subtraction, reverse
subtraction, and bounded increment and decrement, with and without a register
return. The synthetic shaders matched both CPU references and native Metal
readback on an Apple M1 Max. Independent acceptance is pending.
- Add eight Wave32 Local Data Share dword atomics for signed and unsigned
minimum and maximum, with and without a register return. Contended
reductions and disjoint returning shaders matched both CPU references and
native Metal readback on an Apple M1 Max. Independent acceptance is pending.
- Add the six Wave32 Local Data Share dword atomics for AND, OR and XOR
with and without a register return. Contended reductions and disjoint
returning forms matched both CPU references and native Metal readback on
an Apple M1 Max. Independent acceptance is pending.
- Add bounded Wave32 `ds_write_b8` and `ds_write_b16` to update disjoint
bytes within Local Data Share. Metal uses relaxed atomic word updates, and
the CPU references reject overlapping store bytes in one instruction.
Two packed-write shaders matched both CPU references and native Metal
readback on an Apple M1 Max. Independent acceptance is pending.
- Add four gfx1030 Local Data Share reads for signed and unsigned 8-bit and
16-bit values in Wave32 shaders. Xenora checks alignment and bounds before
emitting a relaxed atomic Metal word load and extends the extracted result
to a 32-bit register. Six synthetic shaders matched both CPU references
and native readback on an Apple M1 Max. Independent acceptance is pending.
- Guest programs can bind point samplers from a checked `D3D12_SAMPLER_DESC`, including wrap and the three supported border colours. The older scalar-argument sampler retains its historical addressing codes (#2540).
- Guest 2D point samplers can mirror U and V independently or mirror each axis once before clamping. Both existing guest clamp codes remain unchanged; W remains clamp-only (#2529).
- Guest programs can bind single-level BC1 textures for sampling through the graphics services. The shader resource view must match the texture format; render targets remain RGBA8. An original guest exports identical BC1-derived framebuffer bytes through the reference and native Metal CLI backends (#2507).
- Promote the six checked-in MUBUF multi-word and atomic forms (`buffer_load_dwordx2`/`_x4`, `buffer_store_dwordx2`/`_x4`, `buffer_atomic_add`, `buffer_atomic_cmpswap`), the remaining 17 SOPC forms, 20 VOP3 integer/multiply forms, the six DS forms and the three SMEM forms from local readback to `fixture verified`. New headless acceptance cases derive the expected words by hand from each fixture's assembly and the synthetic buffer or data-share ABI, the compare results stated in the assembly, or an exact replay of the fixture's integer dataflow, reproduce them on the production reference interpreter, and reproduce them on a native Metal device with API and shader validation enabled. `docs/shaders/semantic-coverage.md` adds 52 Metal-verified and reference-verified forms (MUBUF 2 to 8, SOPC 1 to 18, VOP3 1 to 21, DS 0 to 6, SMEM 0 to 3); all five Metal cases are wired into `scripts/test-gpu.sh` (#2511, #2514, #2518, #2521, #2522).
- Add an original host-only GameInput-style input model (`xenora-gameinput`, #2519). Deterministic synthetic keyboard, mouse and gamepad devices publish bounded microsecond-timestamped snapshots with current/next/previous/temporal lookup, atomic callback backpressure and explicit lifecycle expiry. Local tests cover malformed input, bounded history, four-thread publication and 10,000 device/reading churn cycles. COM, guest registration, physical HID capture and XInput remain unsupported.
- The Guest Presentation window now reports how many frames it showed and its display latency: the median and 95th percentile over the last 120 frames, measured from the window receiving a frame to the system reporting it on screen. A note under the statistics says when frames were replaced by newer ones before being drawn, when a malformed frame was rejected and why, and when the system never showed a drawable. Counts restart with each session, and the statistics refresh at most four times a second. The latency excludes guest rendering and pipe transfer. No latency figures are published yet. On a local Apple M1 Max, 14 new CPU and native Metal tests passed with API and GPU validation, none skipped. In `scripts/build-app.sh --test`, 185 app tests passed and 6 opt-in tests were skipped. Independent acceptance is pending (#2448).
- Added a bounded Wave32 `IMAGE_GATHER4` path for non-NSA 2D RGBA8 textures. Decoder, compiler, both CPU interpreters and native Metal support the `(u, v)` address tuple, exactly-one-bit DMASK channel selection and four fixed destination positions at mip zero. Because public AMD documentation does not state the four-texel result order, Xenora explicitly defines and documents the Metal-compatible `(-,+), (+,+), (+,-), (-,-)` ordering as its translation contract rather than claiming AMD hardware verification. The assembled fixture passed compiler/CPU/independent comparison, LLVM encoding coverage and Apple M1 Max Metal validation across every position and R/G/B/A selection. Other formats and dimensions, multi-bit DMASK, explicit-LOD gather variants, NSA, packed forms and cache modifiers remain unsupported. Independent acceptance and Xbox hardware verification are not claimed.
- Added a bounded Wave32 `IMAGE_SAMPLE_B` path for non-NSA 2D RGBA8 textures. Decoder, compiler, both CPU interpreters and native Metal support the `(bias, u, v)` address tuple when coordinates are statically wave-uniform, making the derivative LOD zero in Xenora's explicit compute contract; the integral in-range bias is lowered as the Metal sample level. The assembled bias-one fixture passed compiler/CPU/independent comparison, LLVM three-way encoding coverage and Apple M1 Max Metal validation. General implicit derivative LOD computation, non-uniform coordinates, fractional bias and other formats or dimensions remain unsupported. Independent acceptance and Xbox hardware verification are not claimed.
- Add integer-only x87 register arithmetic (FADD, FSUB, FMUL and FDIV) and narrowing floating-point and signed-integer store models, with exact extended-format rounding, range responses and independent known-answer tests. Guest instruction dispatch and deferred exception delivery remain pending (#2412, #2421).
- Add isolated exact binary80 FSQRT and FRNDINT semantics to the x87 arithmetic model. Square root honors register precision and rounding control; integral rounding uses rounding control only. Guest opcode dispatch and feature admission remain separate (#2590).
- Centralize the guest CPUID baseline in a capability model that also derives hypothetical XCR0, XGETBV and processor-feature results. Guest CPUID values remain unchanged; the production system-information service and XGETBV instruction still require coordinated integration (#2425).
- Add isolated x87 FXAM examination for all seven documented operand classes, raw sign including empty registers, and exact x87 condition bits without generated operand exceptions. Guest dispatch remains pending (#2607).
- Extend the correctness-gated guest DBT benchmark with explicit native branch-publication and alternating indirect/native modes, additive JSON mode and publication counters, and comparison of equivalent original guest workloads. The experimental mode remains opt-in.
- The correctness-gated CPU benchmark adds original synthetic PE32+ floating-point, AES/PCLMUL, indirect CALL/RET and 60-frame CPU loops. Interpreter, cold DBT and warm DBT samples check exact retirement and architectural outcomes. Frame-loop reports include average CPU time and dispatcher returns per synthetic frame, with matching frame dimensions required for comparison.
- Add an isolated exact binary80 x87 comparison model for ordered and quiet comparisons, including denormal and invalid-operand exception priority and status/integer flag encodings. It follows the documented AMD denormal policy for integer-flag comparisons; guest decoding and exception delivery remain pending (#2560).
- Added draft production import-table acceptance witnesses for the outstanding advanced Win32 memory lifecycle (#2502). They exercise reserve-only memory, partial commitment, guard consumption, VirtualAlloc2 address requirements, shared and placed views, mapped protection, and synthetic file reopen with 64-bit offsets. The combined-allocation/protection control passes on the reviewed base; the eight remaining ordinary witnesses and the separately executed large sparse-file witness expose missing production behavior. Runtime integration is pending.
- Add isolated x87 FBLD and FBSTP packed decimal conversions with exact eighteen-digit layout, signed zero, RC rounding, range and exception handling, and explicit refusal of undefined malformed digits. Guest memory, stack and opcode dispatch remain pending (#2604).
- Native fragment draws can sample a live heap-backed RGBA8 texture directly. The draw binds the owning heap’s residency set and rejects a texture or sampler from a different device; no texture re-upload is needed between draws (#2427).
- Add independent known-answer coverage for the MUBUF multi-word and atomic subset in the semantic-review package. `buffer_load_dwordx2`, `buffer_load_dwordx4`, `buffer_store_dwordx2`, `buffer_store_dwordx4`, `buffer_atomic_add` and `buffer_atomic_cmpswap` now have 18 hand-derived cases covering returning and non-returning atomics, compare-equal and compare-unequal swaps, wrapping lane patterns, dropped out-of-image components and out-of-range lanes. The expectations come only from the AMD RDNA 2 ISA guide and the documented synthetic buffer ABI, and each case runs on the compiler, the reference interpreter and the independent semantic-review interpreter. Excluded encodings and incomplete EXEC are refused by all three. CPU-only local evidence; no native Metal run and no Windows or Xbox execution claim (#2478).
- The ARM64 DBT now lowers VEX vector moves (`VMOVAPS`, `VMOVUPS`, `VMOVDQA`, `VMOVDQU`: loads, stores and register moves) and the VEX forms of the 44 lane-wise integer operations that already had an exact NEON rule (`VPADD*`, `VPSUB*`, `VPMULLD`/`VPMULLW`, `VPAND`/`VPANDN`/`VPOR`/`VPXOR`, `VPCMPEQ*`/`VPCMPGT*`, `VPMIN*`/`VPMAX*`, `VPAVGB`/`VPAVGW`) to NEON instead of the shared semantics, at 128 bits (bits 255:128 of the destination cleared) and 256 bits (one NEON operation per 128-bit half). A 32-byte memory operand is one checked access through the block context, read before any register is written, so alignment, non-canonical and permission faults match the interpreter. Shifts, broadcasts, shuffles, inserts/extracts, floating-point and FMA forms still use the shared semantics; no CPUID feature changes. Local verification only (Apple M1 Max): `x86_avx.rs` now requires zero interpreter fallbacks exactly for the native forms (156 fixture forms) against the independent byte-array reference, and a new 256-bit integer loop test runs with zero fallbacks. On a synthetic 256-bit `VPADDD`/`VPMULLD`/`VPXOR` loop of 11,013 guest instructions the warm DBT median fell from 334.7 µs to 25.8 µs, with 2 instead of 6,004 instructions per run on the shared semantics; the four `dbt_bench` workloads are unchanged within noise.
- The Guest Presentation window has an optional Upscaling menu. It can enlarge guest frames with Apple's MetalFX spatial scaler instead of bilinear filtering. The setting is off by default and presentation-only: the guest still renders at the resolution it chose. The window shows which path ran, the reason for any bilinear fallback, and the measured GPU time of each presentation. MetalFX temporal scaling is offered only as a fallback to spatial, because the session supplies no depth or motion vectors. A new capability probe records Apple GPU families, Metal 3 and 4, and MetalFX spatial, temporal, interpolation and denoising support from Apple's own queries. The setting is stored as versioned JSON that never overwrites settings from a newer schema. On a local Apple M1 Max, 48 new CPU and native Metal tests passed with API and GPU validation, none skipped. In `scripts/build-app.sh --test`, 171 app tests passed and 6 opt-in tests were skipped. Preliminary GPU timings from a busy machine are in `docs/app/metalfx-presentation.md`. Independent acceptance is pending (#2448).
- Added bounded Wave32 `IMAGE_GET_RESINFO` for non-NSA 2D RGBA8 resource descriptors. Decoder, compiler, both CPU interpreters and native Metal now support the integer mip query with strict T# validation, DMASK 0xf and the public destination order width, height, depth, mip count. Xenora explicitly returns four zero values for an out-of-range mip because the public RDNA 2 material does not define that case. The assembled fixture passed compiler/CPU/independent comparison and Apple M1 Max Metal validation for every destination component. Partial DMASK, non-RGBA8 formats, arrays, cubes, 3D resources, NSA, packed forms and cache modifiers remain unsupported. Independent acceptance and Xbox hardware verification are not claimed.
- Added bounded Wave32 typed 2D image stores `IMAGE_STORE` and `IMAGE_STORE_MIP` for linear RGBA8 unorm textures. Decoder, compiler, both CPU interpreters and the native Metal backend support non-NSA integer addressing, strict T# validation, DMASK 1-15 source packing and AMD's documented whole-element zero-fill of unselected channels. Xenora defines the otherwise undocumented conversion and refusal contract: finite inputs clamp, scale by 255 and round to nearest-even, while non-finite data and out-of-range coordinates or mips are refused. Completed stores require the typed-store wait before dependent reads; Metal uses read/write textures, a texture-memory barrier, runtime fault reporting and mip readback. Three assembled fixtures passed compiler/CPU/independent comparison and Apple M1 Max Metal validation, including partial-DMASK zero fill and an out-of-range fault. Simultaneous same-texel stores, non-RGBA8 formats, arrays, cubes, 3D resources, NSA, packed forms and cache modifiers remain unsupported. Independent acceptance and Xbox hardware verification are not claimed.
- Added bounded Wave32 typed 2D image reads `IMAGE_LOAD` and `IMAGE_LOAD_MIP` for linear RGBA8 unorm textures. Decoder, compiler, both CPU interpreters and the native Metal backend enforce non-NSA integer addressing, strict T# validation, DMASK channel order and an explicit zero result for out-of-range coordinates or mip levels. The two assembled fixtures passed CPU reference/independent-reference comparison and native Apple M1 Max Metal readback with API and shader validation. Stores, non-RGBA8 formats, arrays, cubes, 3D resources, NSA, packed/subword forms and cache modifiers remain unsupported. Independent acceptance and Xbox hardware verification are not claimed.
- Add a bounded DirectStorage-style host streaming model in `xenora-streaming`: prioritized memory/file queues, automatic half-capacity submission, cancellation tags, fence/event/status markers, first-failure records, aligned compressed file reads, and independent zlib/DEFLATE/LZ4 payload decoding. Add a safe clean-room LZ4 frame decoder with linked/independent blocks and checksum validation, reference `lz4` vectors, exhaustive small-frame truncation and byte-mutation corruption checks, systematic zlib truncation/mutation validation, raw-DEFLATE structural negative tests, a deterministic malformed-frame corpus, multi-megabyte checks and 10,000-cycle queue/request plus compressed-codec churn tests. This is host middleware only: no COM surface, Xbox `IDStorage*X` ABI, GPU destination, GDeflate or guest registration is claimed (#2430).
- Added a bounded clean-room CPU decoder for public tiled GDeflate streams in `xenora-streaming`. The original scalar implementation validates tile tables and exact output sizes, handles 32-lane scheduling, stored/static/dynamic Huffman blocks and DEFLATE64 extensions, and is checked against independently authored plaintext compressed by the public reference compressor. Positive, exhaustive-prefix truncation, deterministic corruption, 10,000-cycle repeated decode, multi-block, multi-tile, long-distance DEFLATE64 and 4 MiB exact-output tests pass locally; guest registration, GPU decompression and DirectStorage integration remain outside this slice (#2432).
- Added bounded host save containers (`xenora-save`, #2442). The original safe-Rust provider/container/blob model validates publicly documented XGameSave container names, defers enumeration until first commit, applies multi-blob writes and deletes atomically through snapshot replacement integrity-checked across header fields and payloads, enforces 16 MiB blob/update payload bounds and a default 256 MiB provider quota, and fails closed on corrupt snapshots. Fourteen local Apple Silicon integration tests cover persistence, quota rollback, exhaustive small-snapshot bit corruption and truncation, lifecycle expiry, deletion, concurrent access and 10,000-cycle handle churn. Guest `XGameSave` registration, Xbox Live identity, cloud synchronization and authentic console formats remain unsupported.
- Added deterministic host local user profiles (`xenora-profile`, #2445). The original safe-Rust fixture model validates bounded synthetic users, assigns session-local IDs, exposes modern/classic gamertag components with exact UTF-8 buffer behavior, reports fixture locale/region metadata, supports duplicate-handle comparison and expiry, and fails explicitly for Xbox Live authentication, UI, tokens and privilege elevation. Nine local Apple Silicon integration tests cover validation, lifecycle, buffer errors, bounded handles, concurrency and 10,000-cycle handle churn. Guest `XUser` registration, real account identity and network services remain unsupported.
- Added a bounded read-only package virtualization layer (`xenora-package-vfs`, #2450). The original safe-Rust mount table maps case-insensitive Windows-style drive paths onto canonical host package directories, rejects traversal, host absolute paths and symlinks, bounds files to 64 MiB, handles to 256 and concurrent read reservations to 128 MiB, and expires handles with the VFS. Nine local Apple Silicon integration tests cover multi-mount reads, casing, malformed paths, oversized sparse files, lifecycle, concurrency, deterministic adversarial path inputs and 10,000-cycle open/close churn. Guest file-service registration, writable storage and authentic Xbox package formats remain unsupported.
- Add an original host-only `xenora-media` audio/video synchronization core. It uses exact integer conversion from a bounded audio sample clock, validates timestamped video frames in a bounded queue, and makes deterministic hold, present, drop, pause, seek, end-of-stream and loop decisions. The safe-Rust crate has no guest Media Foundation ABI, decoder, container parser or AVFoundation integration; local tests cover malformed timestamps, a deterministic adversarial timestamp corpus, zero-duration streams, starvation-bounded concurrency and 10,000 frame-decision cycles (#2452).
- Add a CPU-only C-ABI boundary suite for the native session interface (`crates/ffi/tests/abi_boundary.rs`): null output and input pointers, ABI-version mismatch, unknown, double-destroyed and replaced-generation handles, zero and oversized frame-loop counts, status capacity below the fixture frame, recorded-frame and journal buffer validation, malformed XInput wire shapes and battery evidence, vibration slot bounds, and 256 create/destroy generations. The suite deliberately never starts a frame loop, so it needs no GPU. Also unit-test the diagnostics JSON escaping contract (`FirstFailure`/`json_string`) for quotes, backslashes, control characters and non-ASCII text. Local CPU evidence; no GPU, Windows or Xbox execution claim (#2482).
- Promote the 17 checked-in SOP2 scalar-ALU forms (`s_add_u32`, `s_addc_u32`, `s_sub_u32`, `s_subb_u32`, the signed add/subtract, the eight bitwise forms and the three shifts) from local readback to `fixture verified`. `fixtures/rdna2/scalar-alu.s` chains a carry and a borrow, two signed overflows and an SCC branch; `scalar-logic.s` covers ANDN2/ORN2/NAND/NOR/XNOR and the shifts. `docs/shaders/scalar-alu.md` derives both expected images by hand (`input ^ 0x0000000e` and `input ^ 0x887f00f8`). A new headless acceptance case recomputes those masks, reproduces them on the production reference, and reproduces them on a native Metal device with API and shader validation enabled. `docs/shaders/semantic-coverage.md` moves from 96 to 113 Metal-verified and reference-verified forms; the sixth Metal case is wired into `scripts/test-gpu.sh` (#2566).
- Promote the sixteen 16-bit-immediate SOPK forms and the eleven registry-declared SOP1 unary forms from local readback to `fixture verified`. `fixtures/rdna2/scalar-immediate.s` derives its expected image by hand (`input ^ 0x40008275`) over the twelve compare forms, ADDK, MULK and CMOVK; `scalar-unary.s` derives `input ^ 0x0f0080f5` over complement, bit reverse, both bit counts, both find-first searches, both find-last forms, both sign extensions and absolute value. A new headless acceptance case recomputes both masks, reproduces them on the production reference and on a native Metal device with API and shader validation enabled; the seventh Metal case is wired into `scripts/test-gpu.sh` (#2569).
- Recover the local named-pipe subset: `CreateNamedPipeA` now creates one inbound or outbound server instance instead of reporting every call unsupported, and `WaitNamedPipeW` and `SetNamedPipeHandleState` move from stub to bounded implementations. Names are indexed only in the local `\\.\pipe\` namespace; one server instance per name is modeled, while duplex access, additional instances and client collection parameters return documented errors rather than a false handle. The three services and the existing `CreatePipe`/`PeekNamedPipe` entries now also resolve through `api-ms-win-core-namedpipe-l1-1-0.dll`. Tests: runtime_pipes::named_pipe_server_instance_and_modes.
- Recover the graphics and input boundary: `D3D12ConfigureVirtualMemoryX`, `D3D12XboxCreateDevice`, versioned root-signature serialization, seven `XboxBvhBuilder` methods including batched build/rehydrate, `XGCreateTextureComputer` and the GameInput v0 ordinal-1 factory. Device objects, the common root-signature blob subset, the CPU BVH reference builder, linear texture-computer layout and an empty GameInput device set are bounded; GPU execution, console BVH hardware, tiled resource layouts and real input devices remain unsupported. Tests: module units and runtime_file_types wave19/20/32/34/40/42/45.
- Recover the audio/APU subsystem: nine `AcpHal.dll` memory and SHAPE-context imports, five `chad.dll` DSP commands and five `xapu.dll` tagged-queue imports, plus the synthetic audio fixture. HEAP and SHAPE ownership, tagged FIFO queues and DSP stream limits are bounded; real APU hardware, audio decode and console DSP execution remain unsupported. Tests: services::apu_memory/chad_dsp/xapu_queue/audio_hal_fixture units and runtime_file_types wave26/39/41/43/44.
- Recover the Bink2Scarlett playback surface: 23 native imports covering the container/cursor model, packet bridge, frame buffers, guest file callbacks, volume/seek/pause controls, allocator callbacks and the multi-worker lifecycle. The implementation parses synthetic Bink containers and serves compressed packets only; it does not decode video or audio. Honest bounds: native `HBINK` layouts, real media decoding, GPU presentation and console-specific worker affinity remain unsupported. Tests: services::bink_* unit tests and runtime_file_types wave28/35/36/37/38/46/47.
- Recover the seven MSVC standard-library throw imports (`_Throw_C_error` and six `_X...` helpers) plus `_Throw_Cpp_error`, backed by a private exception arena that supports guest reference catches and `what()` dispatch through EH3. Recover bounded `__RTtypeid`, `__RTCastToVoid` and non-virtual `__RTDynamicCast` for public non-ambiguous inheritance, including secondary-base adjustment. New compiler-linked fixtures exercise the throw helpers at `-O2` and the three RTTI helpers at `-O0` and `-O2` on the native ARM64 DBT. By-value standard-exception catches, guest copy/destructor calls, nested class throws, virtual bases, private or ambiguous paths, and `bad_cast`/`bad_typeid` construction remain unsupported. Local synthetic evidence only; no Windows or Xbox execution claim.
- Restore bounded DirectStorage factory identity and reference counting; console-specific factory interfaces remain unsupported.
- Restore action-free MSVC FH4 frame handling, bounded FidelityFX loader queries, and a linear XG layout suggestion. Frames requiring actions and unavailable effect providers remain unsupported.
- Restore the default non-returning MSVC terminate path.
- Restore bounded Media Foundation attribute objects and synthetic PCM source-reader services; unsupported methods report not implemented.
- Restore bounded Media Foundation lite startup accounting and system-time reporting.
- Restore MSVC random-device, bounded error mapping, and wide-stream flush bindings.
- Restore bounded MSVC stream prefix, read, sentry, and seek/tell callback services.
- Restore bounded offline libHttpClient request objects and asynchronous network-unreachable completion.
- Added the public libHttpClient GDK `HCMock*` fixture-response surface (#2631). Eleven partial registrations own bounded mock handles, optional byte-exact method, URL and body filters, response status/body/headers/network fields, ordered matching and repeat-last behavior, and complete through the existing XAsync queue. Only explicit cleartext HTTP loopback fixture targets can match. External, TLS and unmatched requests keep the existing network-unreachable result. Mock callback registration remains explicitly unsupported, and final close requires prior removal or clearing. Six new integration tests and all 100 existing runtime file-type tests passed locally on ARM64. The runtime inventory records 58 partial libHttpClient services, including the 11 additions. Independent source review completed; live network and Xbox hardware behavior remain unverified.
- Restore bounded MSVC exception data, idle exception queries, and single-inheritance runtime type checks.
- Restore bounded MSVC locale category and ownership operations, locale ID data, and codecvt virtual dispatch; facet construction remains unsupported.
- Add a historical runtime inventory audit that requires explicit explanations for missing resolution keys.
- Restore the synthetic linear texture-layout fixture and its four service registrations for guest tests.
- Restore bounded narrow and wide MSVC file-stream opening, wide formatted I/O and scanning, and 64-bit wide file status with their runtime bindings.
- Expand the typed Windows platform runtime with real HSTRING ownership, lifecycle, substring and replacement operations, bounded guest-callable COM stream/marshal/agile objects with one-shot in-process unmarshaling and the inter-thread marshal stream helper and marshal size upper bound using shared marshal consumption and release-invalidation of consumed marshal records, explicit WinRT Buffer activation, restricted-error objects, CNG MD5/SHA hashing, RFC 2104 HMAC and independent hash-state duplication and one-shot hashing, controlled loopback networking and IP Helper serialization including loopback unicast adapter addresses and reverse LUID/GUID/name/alias interface conversion and RFC 2553 index/name helpers and IPv4 prefix-mask conversion and extended IPv4 port formatting, legacy and ANSI IPv4 conversion plus ANSI IPv6 conversion and RFC 5952 IPv6 scope/port formatting, process-local ETW registration/activity IDs and validated binary and string event writes, UUID generation, and OLE Automation BSTR/binary-BSTR/scalar-VARIANT ownership and by-reference variant copying, plus reference-counted Xenora-owned interface variants and bounded scalar variant conversion and second-resolution OLE date conversion and MS-DOS packed date/time conversion. The registered Buffer class exposes the documented parameterized `IBufferFactory::Create` path while zero-argument activation explicitly reports `E_NOTIMPL` because the real class has no default constructor. Factory and buffer objects use distinct interface views with shared COM lifetimes, and buffers implement `IBufferByteAccess` over real backing memory. Independent synthetic integration tests exercise positive, negative, lifetime and cleanup behavior; cross-apartment/wire marshaling, symbolic networking, ETW sessions and arbitrary class activation remain explicit unsupported boundaries. Opt-in WinRT and Automation fixtures now use private import namespaces so their synthetic objects and lifetimes remain isolated from standard services.
- Add an original compiler-linked C++ PE32+ executable and two provisioned DLLs as an integrated loader witness. The TLS-bearing root is loaded by a worker, refuses one attach before retry, resolves delayed named and ordinal exports on first use, tests independent old/new thread storage and notifications, and repeats DLL and data-view release/reload before normal process shutdown. The same guest-observable checks pass on the native ARM64 DBT and interpreted scheduler at quanta 1, 7, 64 and 1024. Local Apple Silicon synthetic evidence; no Windows or Xbox execution claim (#2410).
- Normal synthetic guest process shutdown notifies initialized runtime-loaded DLLs in reverse completion order, including pinned modules and shared providers, before releasing their images, TLS storage and references. Abrupt self-termination releases runtime ownership without detach notifications. The completed Win32 process-shutdown path refuses new owning module loads, signals its caller and preserves the first explicit exit status. Independent source review accepted the bounded Win32 path; callbacks that fault can leave shutdown incomplete (#2384).
- Scheduled provisioned runtime DLLs receive thread attach before a newly created worker's entry and thread detach on normal return or ExitThread, including workers that preceded the load. TerminateThread and DLL unload do not send per-thread detach. TLS callbacks and DllMain use each worker's own thread context. Unsupported concurrent and reentrant loader transitions are rejected. The source-built PE fixture passes on both scheduler backends at four quanta in local Apple Silicon testing. Independent acceptance and Windows or Xbox execution remain unverified (#2381).
- `LoadLibraryExA/W` now uses the ordinary provisioned DLL lifecycle for zero flags, supports synthetic application and system search locations, and maps immutable data-file or image-resource snapshots independently without executing or registering their code. `FreeLibrary` releases each non-executable mapping separately and unsupported flags produce explicit errors. Independent source review accepted the bounded behavior (#2406).
- Reserve a static TLS pointer array for every scheduled worker, including workers created before any DLL has been loaded. Runtime-loaded PE DLLs initialize independent static TLS storage for every current worker and the main thread before process attach, including suspended workers. Unloading, refused initialization and thread termination release the corresponding runtime TLS storage. The source-built C++ fixture exercises worker-initiated loading, isolation, refusal and repeated reloads at several scheduler quanta on Apple Silicon. Thread attach and detach notifications and independent acceptance are pending (#2369, #2370).
- Runtime module loading shares already-resident provisioned dependencies across independent acyclic load roots. Import binding uses the provider's existing address, and each consumer owns its direct dependency references until its own detach completes. Failed initialization releases the fresh images and their acquired references while retaining providers still used by another root. An original C++ fixture checks identity, attach/detach counts, both release orders, forwarded imports, transition refusal and reload. Circular batches retain root-owned lifetime and reject resident sharing. Independent acceptance remains pending (#2079).
- Added an original LLVM-linked PE32+ delay-import witness for named and ordinal exports through the existing provisioned-module runtime. The guest-owned helper checks first-use loading and import address table caching, with unused and missing dependency controls and a missing-export control. The synthetic fixture runs under scheduled DBT and interpreter execution at three quanta. Stock Microsoft helper compatibility, Windows and Xbox execution, and independent acceptance remain unverified (#2368).
- The cooperative guest scheduler exposes an interpreter entry point using the same import registry, thread lifecycle, wait handling and scheduler reports as the ARM64 dynamic binary translator. Interpreted turns have exact instruction budgets and require no native translation cache (#2375).
- Extend the dependency-chain fixture with guest-observed unload ordering and exact-once release. The original load checksum remains required, and both module handles must disappear after the root cascade. A second consumer verifies that a separately referenced dependency stays callable after root release and unloads after its own final release (#2066).
- Generate the module-query, procedure-address and `LoadLibraryExA/W` services from the typed runtime catalog. The adapters retain each import registry’s module catalog and dynamic service trampolines, preserving module-reference behavior, existing API-set aliases and independent registry instances. The callback-based `LoadLibraryA/W` and `FreeLibrary` retain guest attach and detach handling. The QA inventory identifies module-service entries separately from callback tasks.
- Shared Metal placement textures can read back a selected RGBA8 mip as tightly packed rows. The existing level-zero call is preserved; readback refuses a foreign arena before staging allocation (#2422). Eight targeted heap-resource tests passed locally on Apple M1 Max with Metal API and shader validation, including mip ownership and staging accounting. Independent acceptance remains pending.
- Microsoft x64 EH3 supports scalar rethrows through direct and helper calls with one active catch, preserving reference identity, mutations and deterministic cleanup ordering on the original compiler-linked witnesses. Canonical heap ownership transfers between catches and retires when the catch ends (#2064).
- Added seven original compiled PE32+ witnesses for ordinary and 64-bit file I/O, sector-aligned unbuffered reads, recursive directory traversal, high-resolution counter and condition-variable timing, waitable timers, and the multimedia clock (#2357). The ordinary-file, recursive-directory and condition-variable controls exited zero through the native Xenora CLI on upstream `869338b8e` and again on the local integration with `e8ba545b2`. The >4 GiB write and unbuffered open reached guest diagnostics 23 and 45. The waitable timer and multimedia clock refused the unresolved imports `CreateWaitableTimerW` and `timeGetTime` before entry.
- Added independent host-side archive streaming (`xenora-streaming`, #2343). Original synthetic chunk archives support stored bytes, zlib, raw DEFLATE and raw LZ4 with exact lengths, strict framing and a 64 MiB decoded limit. Eleven CPU tests cover multi-megabyte archives, malformed streams and concurrent decoding. An optional staging path decodes directly into an existing `UmaSharedBuffer`, using at most one chunk of scratch for a terminal compressed block and exposing the buffer only on complete success. The separately optional native Metal I/O path loads Apple-compressed zlib and LZ4 files in batches into shared buffers with event completion. Independent Metal compute codecs also decode the original framed zlib, raw DEFLATE and LZ4 chunks directly on the GPU, with a 16 MiB aggregate limit, a 256 KiB decoded chunk limit and bounded DEFLATE block work. On the local Apple M1 Max, all 28 default CPU tests and 44 tests with `gpu-tests` passed. The latter suite exercised actual Metal compute decoding, UMA staging, native I/O, malformed-input refusal and concurrent callers with Metal API and GPU validation. Guest DirectStorage and authentic Xbox archive formats remain outside this component.
- Added bounded host archive file and submitted-batch scheduling (`xenora-streaming`, #2343). Explicitly opened regular files support checked 64-bit positioned reads. A single scheduler owner processes priority-ordered queues with FIFO completions, ordered fence/event markers, first-failure records and real condition-variable wait timeouts. Original sparse-file tests read and decode a mixed 4 MiB archive beyond 4 GiB through CPU, native Metal Compute and UMA, with an independent waiting thread. Local tests also verify release of retained file and marker references on completion or factory drop. Guest file/queue bindings still require coordinated runtime integration.
- Bounded native compressed Metal I/O to sixteen active requests, retaining the admission slot and private source file until the completion callback releases them. Completion now wakes a condition-variable waiter with the original ten-second deadline instead of polling command status. Earlier local native controls reproduced LZ4 low-priority timeouts with both batched and single-command Metal loads while normal-priority LZ4 completed. On the local integration with `e8ba545b2`, the unchanged strict low-priority test passed the full feature suite and five additional isolated runs with API and GPU validation. Cancellation still requests native completion, and the earlier intermittent failure remains a known limitation.
- Added an original freestanding C++20 Microsoft x64 FrameHandler4 hierarchy witness (#2351). The pinned public experimental Clang producer built natively for ARM64 emits real PE32+ FH4 metadata with nine function records using FH4, fourteen unwind states, four try blocks, typed reference and catch-all handling. An independent bounded inspector checks the emitted compact tables and exact handler import. The native C++ language-level normal and nested-rethrow traces passed, and the normal PE control returned zero through Xenora on `dd3004b77` and again on the local integration with `e8ba545b2`. The independently generated metadata report again verified nine FH4 records, fourteen unwind rows and four try rows. The hierarchy PE is blocked at the unresolved `vcruntime140.dll!__RTDynamicCast` import before entry. Runtime exception execution remains unverified.
- Connect x87 stack loads, raw extended stores and control/status transfers to checked guest memory. Waiting versus no-wait and deferred exception outcomes, exact transfer widths and fault-atomic stores are tested, including FLDCW's newly unmasked summary and busy bits. Guest instruction dispatch and capability promotion remain pending (#2539).
- Extend the isolated x87 state model with exact binary32/binary64 and signed integer loads, physical stack/tag transitions, 80-bit stores, and masked or unmasked stack and operand exception tests. Guest opcode execution and broader floating-point arithmetic remain pending (#2398).
- Extend the isolated x87 stack model with raw ST(i) register load/store/pop/exchange, FFREE, TOP rotation and sign operations. Independent physical-state tests cover stack faults, aliasing, pending exceptions and tags. Guest opcode dispatch remains pending (#2602).
- Add structured Wave32 execution-mask divergence for gfx1030. `s_and_saveexec_b32`, `s_or_saveexec_b32` and `s_xor_saveexec_b32` combine a lane-derived comparison mask with EXEC, and `s_mov_b32 exec_lo, sD` restores saved masks. The compiler predicates bounded integer writes per lane, gates recomputed compare and carry masks, supports forward run-time EXEC branches, and statically unrolls bounded scalar countdown loops with a lifting budget. Input-dependent backward branches and backward else targets remain controlled refusals even when the actual execution mask is empty, as do runtime-mask memory access and wave-mask recomputation of mutable memory. The known-answer cases cover empty, full and partial masks, carry results, saved run-time mask restore, bounded loops and the new assembled `s_cbranch_execnz` fixture. Local Apple M1 Max readback passed 29 programs with API and shader validation. Independent acceptance is pending (#2254).
- Connect the extended-state codec to checked guest memory for legacy FXSAVE/FXRSTOR and standard XRSTOR, including selected-component reads, preserved software bytes and fault-atomic restore. Twelve integration tests and one software sparse-memory test pass locally; guest instruction dispatch and XSAVE scatter write remain pending (#2523).
- Execute FXSAVE/FXSAVE64 and FXRSTOR/FXRSTOR64 in the interpreter and ARM64 DBT using the checked state-image transfers and live per-thread x87/SIMD state. FNINIT clears the x87 environment and retains register payloads. CPU capability bits remain withheld pending acceptance; XSAVE-family dispatch remains separate (#2570).
- Add an isolated x87/MMX and standard FXSAVE/FXRSTOR/XSAVE/XRSTOR state-image model with physical register aliasing, independent layout and component-mask tests, and transactional invalid-input handling. The guest CPU dispatch and capability bits remain unchanged pending coordinated integration and acceptance (#2383).
- Add the 44 baseline MMX packed-integer compute semantics using the existing vector primitives, with exact 64-bit pack/unpack layout and physical x87/MMX alias transitions. Independent tests cover all operations and memory-width metadata. Guest decoder, moves and capability reporting remain pending (#2553).
- Extend the isolated MMX packed integer model with all 28 SSE, SSE2 and SSSE3 register/m64 compute forms, including explicit feature association, MMX-width horizontal and byte shuffles, PSHUFW and PALIGNR. Guest decoding and feature admission remain pending (#2587).
- Add three original compiler-emitted SSE2, AVX and AVX2 guest fixtures and exact dual-engine checks, including masked memory and cross-lane permutations. Document the independent AVX2 candidate review, its verified merged corrections, and remaining operand/address/fault gaps. New tests verify XMM/YMM and MXCSR state across engine handoffs and scheduled threads, inventory valid refused instructions, and compare runtime feature discovery with executed guest CPUID/XGETBV. Feature advertising is unchanged pending independent acceptance (#124, #2377).
- Add bounded FLAT/GLOBAL dword and dwordx4 compute memory forms with separate input and output apertures, static alignment and lane-disjoint bounds checks, and a synthetic copy fixture.
- `kernel32.dll` now generates the copy and temporary-name services from the typed runtime-service catalog: `CopyFileW`, `CopyFileA` and `GetTempFileNameA`. The contracts are unchanged: the copy honors the fail-if-exists flag through the shared drive helper, and the temporary name materializes the empty file it reserves with the lowercased three-byte prefix, the guest-or-allocated unique number and the documented refusal ordering. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- The kernel32 yield service `SwitchToThread` now generates from the typed runtime-service catalog alongside the rest of the thread query family, with `crates/loader/tests/runtime_thread_queries.rs` witnessing the one-thread case (`#2142`).
- Add an isolated native worker dispatch policy with bounded guest admission, priority and FIFO selection, logical affinity, one running lease per guest, wake-safe blocking, deadlines and cancellation. Native ARM64 worker tests exercise the policy. Production guest scheduling remains cooperative (#2379).
- The kernel32 file-mapping and virtual-query services `CreateFileMappingA/W`, `MapViewOfFile/Ex`, `FlushViewOfFile`, `UnmapViewOfFile` and `VirtualQueryEx` now generate from the typed runtime-service catalog while preserving `PAGE_WRITECOPY`/`FILE_MAP_COPY` view semantics (`#2141`).
- Prepared an isolated sparse guest virtual-memory metadata candidate (#2386). It tracks address reservations, committed page ranges, data protections, guard markers, address requirements for the VirtualAlloc2 placement subset and commitment limits without allocating guest backing bytes. Synthetic tests cover large reservations, query boundaries, first-fit reuse, decommit and release, failure atomicity and serialized host callers. Fourteen correctness tests and separate native macOS process-footprint probes passed locally. Production Win32 service integration and native Windows comparison remain pending.
- Extended the isolated sparse reservation metadata candidate with write-watch tracking (#2636). A watched reservation records sorted unique dirty guest page addresses after checked writable committed-range notifications, supports ranged query/reset and atomic read-and-reset, and forgets affected dirty pages on decommit and release. Ten new candidate tests and fourteen existing reservation tests passed locally on ARM64; both existing footprint probes also ran successfully. Large uncommitted reservations retain no per-page dirty storage. Insufficient-capacity and decommit history are documented candidate policies. The production `GetWriteWatch`/`ResetWriteWatch` imports and guest-write integration remain pending.
- The kernel32 error-reporting tail `UnhandledExceptionFilter` now generates from the typed runtime-service catalog alongside `WerRegisterFile`, preserving the fail-safe zero of a machine with no host unhandled-filter or error-reporting integration (`#2140`).
- The kernel32 cross-process services `CreateRemoteThread`, `ReadDirectoryChangesW` and `CreateNamedPipeA` now generate from the typed runtime-service catalog as honestly unsupported stubs (`#2139`).
- The kernel32 message formatting services `FormatMessageW` and `FormatMessageA` now generate from the typed runtime-service catalog (`#2137`).
- The kernel32 environment services `ExpandEnvironmentStringsW/A`, `GetEnvironmentStringsW`, `GetEnvironmentStrings`, `GetEnvironmentStringsA`, `FreeEnvironmentStringsW/A` and `SetEnvironmentVariableW/A` now generate from the typed runtime-service catalog (`#2135`).
- The kernel32 toolhelp snapshot services `CreateToolhelp32Snapshot`, `Process32FirstW`, `Process32NextW`, `Process32First` and `Process32Next` now generate from the typed runtime-service catalog (`#2133`).
- `bcrypt.dll` now generates the CNG random-generation surface from the typed runtime-service catalog: `BCryptOpenAlgorithmProvider`, `BCryptGenRandom` and `BCryptCloseAlgorithmProvider` (`#2110`).
- `kernel32.dll` now generates `FlushProcessWriteBuffers` from the typed runtime-service catalog with all nine documented processthreads API-set forwarders and the `kernelbase.dll` implementation-module forwarder, adding `kernelbase.dll` to `kernel32.dll` compatibility modules (#2107).
- `kernel32.dll` now generates `Sleep` and `SleepEx` from the typed runtime-service catalog with their documented synchronization API-set forwarders (`#2104`).
- Moved the remaining single-precision CRT math primitives — `_fdsign`, `_fdtest`, `_dtest`, `atanf`, `cbrtf`, `erff`, `exp2f`, `log10f`, `log2f`, `sinhf`, `acosf` and `asinf` — from handwritten registrations into the typed runtime-service catalog (`#2189`).
- Moved the CRT pseudo-random pair `rand`/`srand` of both CRT libraries and the legacy `_umask` creation mask into the typed runtime-service catalog (`#2186`). Each library's generator state now lives in `ServicesState`, keeping seeds independent per CRT instance and per thread.
- `ucrtbase.dll` now generates the working-directory forms `_getcwd` and `_chdir` from the typed runtime-service catalog with their legacy `msvcrt.dll` aliases, and `msvcrt.dll` gains the console key inputs `_getch` and `_getche` as catalog services, with a new integration witness in `crates/loader/tests/crt_conio.rs` (#2083).
- `ucrtbase.dll` now generates the three errno accessors from the typed runtime-service catalog: `_errno`, `_set_errno` and `_get_errno`, each resolving through the runtime API set and the legacy `msvcrt.dll` spelling (#2078).
- `ucrtbase.dll` now generates the twelve integer parse services from the typed runtime-service catalog: `strtol`, `strtoul`, `wcstol`, `wcstoul`, `strtoll`, `strtoull`, `wcstoll`, `wcstoull` and the legacy underscore spellings `_strtoi64`, `_strtoui64`, `_wcstoi64`, `_wcstoui64`, each resolving through the convert API set and the legacy `msvcrt.dll` spelling (#2074).
- The MSVCP ios lifecycle surface moved into the typed runtime-service catalog as seventeen partial-status entries: the ios_base and basic_ios constructor/destructor pairs, the stream buffer binding and replacement operations, and the istream/iostream constructor-destructor pairs in narrow and wide spellings (#2031).
- The MSVCP atomic-wait deadline arithmetic (`__std_atomic_wait_get_deadline` and `__std_atomic_wait_get_remaining_timeout`) moved into the typed runtime-service catalog as partial-status entries, the uptime conversion and saturating clamp moving verbatim — the first catalog surface for the msvcp140_atomic_wait module (#2022).
- `kernel32.dll` now generates the singly-linked-list surface from the typed runtime-service catalog: `InitializeSListHead`, `QueryDepthSList` and the three interlocked operations with their interlocked API-set forwarders (#2103).
- The four one-time initialization services (`InitOnceInitialize`, `InitOnceBeginInitialize`, `InitOnceComplete`, `InitOnceExecuteOnce`) moved from hand-written registration into the typed runtime-service catalog with `InitOnceExecuteOnce` entering guest initializers via generated callback-task dispatch (#1988).
- The five condition-variable services (`InitializeConditionVariable`, `WakeConditionVariable`, `WakeAllConditionVariable`, `SleepConditionVariableCS`, `SleepConditionVariableSRW`) moved from hand-written registration into the typed runtime-service catalog as canonical `kernel32.dll` entries with generated `api-ms-win-core-synch-l1-2-0.dll` aliases (#1979).
- The spawned-child collection services `_cwait` and `waitpid` moved into the typed runtime-service catalog, with new end-to-end coverage: the guest spawn fixture now exercises `_P_NOWAIT` plus `_cwait` collection exactly once, and a direct dispatch test proves the POSIX argument order of `waitpid` binds the same machine state (#1972).
- The process-exit and initializer-table services (`_cexit`, `exit`, `_initterm`, `_initterm_e`) along with `FlsFree` and the search/sort callbacks (`qsort`, `qsort_s`, `bsearch`, `bsearch_s`) are generated in the typed runtime-service catalog (#1991).
- `V_CVT_FLR_I32_F32` and `V_CVT_RPI_I32_F32` now have VOP1 and VOP3
implementations. FLR rounds down and RPI rounds to nearest with ties toward
positive infinity before the bounded saturating i32 conversion. The CPU and
native Metal regression cases include half ties and large exact inputs. The
local suite passed 153 cases in each CPU reference and 153 native Metal
cases in 120 programs on Apple M1 Max (class A readback). Independent
acceptance remains pending (#2344).
- Guest audio pipeline (#2342): deferred XAudio2 operation sets, submix routing and per-channel gains, checked PCM16/PCM24/float32 and Microsoft ADPCM with terminal-block silence padding, a guest-memory-backed resampler and mixer, scheduled voice callbacks, and shared-mode WASAPI rendering. The loader exposes deterministic headless PCM capture and opt-in native CoreAudio output through a bounded lock-free ring. Same-rate routing avoids redundant PCM allocations and callback lookup uses live voice generations. Native device liveness, thread-owned WASAPI packets, wide shared-mix precision and asynchronous device disposal are bounded and covered by regression tests. XMA decoding, effects, spatial audio and console execution remain unsupported. Local synthetic verification and native output evidence are documented in `docs/runtime/xaudio2.md`. Independent acceptance is pending.
- `RtlVirtualUnwind` now fills the optional x64 `KNONVOLATILE_CONTEXT_POINTERS` slots for nonvolatile integer and XMM registers actually restored during virtual unwinding, including prolog, chained metadata and recognized epilog pops. Slots for registers not restored remain caller-owned; machine-frame unwinding does not invent nonvolatile pointers (#2312).
- The ARM64 dynamic binary translator now lowers VEX ANDN directly for 32/64-bit register and checked memory sources, preserving operand order, aliasing, width masking and CF/OF/ZF/SF behavior; focused native/interpreter tests require zero fallbacks (#2314).
- The ARM64 dynamic binary translator now lowers BMI1 BLSI, BLSMSK and BLSR directly for 32- and 64-bit register and checked memory sources, preserving the VEX.vvvv destination, exact width behavior and each operation's distinct CF/ZF/SF/OF rules. Focused native/interpreter tests require zero fallbacks; CPUID reporting is unchanged (#2316).
- The ARM64 dynamic binary translator now lowers BEXTR and BZHI directly for 32/64-bit register and checked memory sources with fixed branchless ARM64 extraction and masking. The lowering preserves control-byte boundary behavior, aliasing and each operation's distinct flags; focused native/interpreter tests require zero fallbacks and CPUID reporting is unchanged (#2318).
- The ARM64 dynamic binary translator now lowers SSE4.2 CRC32 directly through AArch64 CRC32C instructions when runtime feature detection reports host support. Byte, word, dword and qword sources preserve x86 little-endian consumption, initial-CRC truncation, destination widths and fault-before-commit behavior; hosts without the extension keep the interpreter fallback (#2320).
- The ARM64 dynamic binary translator now lowers legacy SSE4.1 PTEST directly for XMM register and checked memory operands. The scalar two-qword lowering preserves the unchanged destination, computes ZF from `destination AND source` and CF from `(NOT destination) AND source`, clears OF/SF/AF/PF, and commits no flags when the memory source faults. VEX and 256-bit forms remain outside this lowering; CPUID reporting is unchanged (#2353).
- The ARM64 dynamic binary translator now lowers register-destination CMPXCHG directly for byte through qword widths. The lowering preserves exact comparison flags, high-byte access, partial-register rules, operand aliasing and the rule that equality does not write the accumulator; memory destinations and locked forms deliberately remain on the shared semantics pending a sound atomic guest-memory backing (#2324).
- Microsoft x64 EH3 now supports distinct synchronous scalar exceptions nested inside active catches. Xenora distinguishes each catch invocation frame from the parent object frame used by compiler funclets, selects the innermost active scalar exception for operandless `throw;`, and releases canonical scalar storage both when a nested handler returns normally and when an escaping exception abandons a catch. Original compiled witnesses cover same-function and cross-function nesting, innermost rethrow selection, same-object nested rethrow returning to a live outer handler, and heap-object release. Nested non-scalar objects, inconsistent scalar destructor metadata, recursive funclet ambiguity and consolidation remain explicit refusals (#2070).
- An original freestanding streaming-archive guest now exercises multi-megabyte chunked I/O end to end: explicit-offset overlapped writes and reads, FIFO completion packets, a paging-backed shared memory view, four cooperative guest threads decompressing disjoint chunks, and independently derived RFC 9923 64-bit FNV-1a checksum validation at scheduler quanta 1 and 64. The reader validates the archive header before using its chunk lengths and checks for extra completion packets after each transfer batch. Both quanta passed locally on Apple Silicon, along with the file, completion-port, mapping and thread regressions. The current overlapped service completes transfers immediately before queueing packets, so this is API/completion integration evidence rather than deferred device-I/O or host-parallel proof (#2331).
### Security
- Hardened the `xenora-package-vfs` overlay before guest programs could write through it (#2869). An overlay that is, lies inside or contains a package directory is refused before anything is created; a trailing separator no longer admits a symlinked root; the overlay's marker and temporary names are refused in any letter case; and deleting a file only the overlay holds no longer leaves a whiteout behind. Four tests that failed on the previous code now pass locally.
- Restricted WinHTTP's existing cleartext HTTP/1.1 transport to explicit IPv4/IPv6 loopback literals and exact case-insensitive `localhost` (#2620). Initial sends and followed redirects use typed loopback socket addresses without DNS. Nonlocal destinations and direct TLS requests return `ERROR_WINHTTP_CANNOT_CONNECT`; unsupported or malformed redirect targets fail explicitly, and disabled redirects still expose the original response. IPv4-mapped IPv6 and trailing-dot aliases are refused. Resolution timeout options remain queryable but require no resolver. All 60 focused WinHTTP tests passed locally on ARM64, including real local IPv4 and IPv6 responders; independent source review completed.
### Fixed
- `SetFilePointer` without a high pointer now takes a signed distance, so a negative seek moves back instead of about 4 GiB forward, and fails when the new position does not fit in 32 bits (#2878). Size queries, end-relative seeks, `SetEndOfFile` and transfers on a directory, the `NUL` device, a link opened as itself or a removed file no longer panic the host, and the C runtime's `remove`, `_unlink`, `_wunlink` and `rename` answer `EACCES` for a file a kernel handle holds. Original x86-64 witnesses cover both CPU engines locally; not compared with Windows, and independent acceptance is pending.
- The native app gate (`scripts/build-app.sh --test`) runs its Swift tests one at a time. Session and artwork tests failed intermittently because their 4 s and 5 s waits expired while other tests held the shared main actor, which also delivers the results they wait for. On an Apple M1 Max shared with other builds, 3 of 3 parallel runs failed and 6 of 6 serial runs passed under the same load; after the change the full gate and five more serial runs passed at load averages of 59 to 91. Each passing run had 299 tests passed and 8 skipped. Serial test runs took 24 to 43 s, against 5 s for one passing parallel run. No test, assertion or timeout changed. The separate hang that stops the hosted app job at its 20-minute limit is not addressed, and hosted results are confirmed only by CI (`#2880`).
- The CPU coverage scanner no longer copies the rest of a Rust source file at every character it reads. Its repository report is unchanged and took 0.7 s instead of 109 s on a loaded Apple M1 Max, which brings the local QA suite from 220 s to 19 s. The hosted ARM64 CPU job's time limit rises from 15 to 45 minutes: none of the 78 jobs sampled on 2026-12-05 had succeeded, and 28 were stopped during the Rust tests (`#2879`). No test or audit was removed; whether a full hosted run completes within the new limit is confirmed only by CI.
- `GetIfEntry` and the IPv4 `sockaddr` decoder reject guest pointers whose field offsets would wrap the host address space. A row near `u64::MAX` previously panicked on `row + 512` instead of reporting the documented memory fault; the adapter index, port and address fields are now reached through checked additions. One new loader regression test and the existing `runtime_network_infra` suite pass locally on Apple Silicon.
- `MoveFileExA/W` decides every refusal before it changes the drive, so a failed replacement preserves the destination's bytes, times and attributes. A missing source now returns `ERROR_FILE_NOT_FOUND` with the destination intact instead of deleting it first; an open source or destination, an existing directory target and a read-only destination return their documented errors and also change nothing. `MOVEFILE_REPLACE_EXISTING` still replaces a file target, carries the source's metadata across a successful rename, and a same-name call leaves the entry unchanged. Nine original guest-level tests cover the refusals, the successful replacement and the `api-ms-win-core-file-l2-1-0.dll` plus ANSI spellings on the ARM64 DBT. Local Apple Silicon verification only; no Windows execution or independent acceptance claim (#1477).
- `GetDateFormatEx` now takes its documented reserved `lpCalendar` argument and requires it to be null, and both date and time formatting follow the published picture grammar for the modelled en-US Gregorian locale: the weekday is computed from the date (an incorrect `wDayOfWeek` is corrected, not trusted), `ddd`/`dddd` and `MMM`/`MMMM` render the en-US names, `y` and `yyy` behave as `yy` and `yyyy`, over-long repetitions clamp to the documented widths, non-picture characters are copied literally, and `TIME_NOMINUTESORSECONDS` is supported. A null `lpDate`/`lpTime` uses the injected guest clock. Invalid flags report `ERROR_INVALID_FLAGS`, a negative `cchDate` is `ERROR_INVALID_PARAMETER`, and a null buffer with a nonzero capacity is `ERROR_INSUFFICIENT_BUFFER`. Era pictures and alternate-calendar, right-to-left, year-month and month-day requests are refused explicitly because their locale data is not modelled. The date/time readers now reach every guest field through checked host additions, so a near-maximum pointer faults instead of overflowing the host address space. Three new targeted tests and a rewritten existing case pass locally on Apple Silicon, seven tests in the file; independent acceptance and Windows or Xbox comparison remain unverified (#1446).
- `GetIfEntry` and the IPv4 `sockaddr` decoder reject guest pointers whose field offsets would wrap the host address space. A row near `u64::MAX` previously panicked on `row + 512` instead of reporting the documented memory fault; the adapter index, port and address fields are now reached through checked additions. One new loader regression test and the existing `runtime_network_infra` suite pass locally on Apple Silicon.
- Microsoft x64 EH3 search now orders every active properly nested try range from innermost to enclosing range before applying each range's compiler clause order, rejects overlapping ranges that are neither disjoint nor nested, and preserves deterministic inner-first ordering for exact empty nested scopes. An original three-image C++ package exercises an inner typed match after a mismatch, fallback through nested mismatches to an outer typed catch and an outer ellipsis, plus destructor survival and cleanup order at two package placements and two scheduler quanta (#1709).
- `pthread_once` no longer publishes its completion word before the initializer returns. Xenora now tracks the owning guest thread while the callback runs, blocks competing callers through the scheduler, wakes them only after publication, refuses recursive initialization explicitly, and releases once ownership if the owner thread disappears before publication. Original hosted MinGW-w64 GCC 16.2.0 guests for direct `pthread_once` and `std::call_once`, compiled independently at -O1 and -O2 with the installed GNU shared unwinder packaged for the C++ variants, pass at scheduler quanta 64 and 1024 with `before-release=0, runs=1, contender=0, published=42` (#1459).
- The app tests compile again with the macOS 26 SDK that CI uses. The GPU capability test named `MTLGPUFamily.apple11`, which exists only in newer SDKs, so the "Native app build and smoke" job failed to build its tests on every pull request after #2460. The test now spells out that family's raw value from Apple's header. Locally, the old and new lists were type-checked against the macOS 26.5 and 27.2 SDKs: the old list fails on 26.5 with the CI error, and the new one compiles on both. The 6 capability tests passed on an Apple M1 Max with none skipped.
- The Guest Presentation window no longer overwrites a frame texture that submitted GPU work may still be reading. Before this fix, if a frame arrived before the GPU ran the command buffer for the previous one, that command buffer could draw the newer frame's pixels. Frames are now uploaded into a ring of three textures. A texture is reused only after every command buffer that samples it has finished, and when none is free the window draws the previous frame again without blocking. Frames whose size or byte count is malformed are rejected before any copy. A native Metal test reproduces the old behavior with a single texture and passes with the ring. Local Apple M1 Max evidence only.
- Resident Metal compute dispatches exactly the requested number of words. Short grids and partial final groups no longer write past their logical output, even when the backing buffer is larger (#2555).
- Placement heap resource handles identify their owning arena. A handle from another arena can no longer select a live local buffer with the same allocation number. Released handles are still rejected without storing a permanent record for every dropped resource (#2549).
- Restore the workspace formatting and clippy gates on the current `main` after the Rust 1.100 toolchain upgrade. Run `rustfmt` over the drifted files and apply the compiler-suggested `needless_borrow`, `collapsible_if`, `manual_div_ceil`, `chunks_exact_to_as_chunks`, `is_multiple_of` and `useless_vec` corrections. Keep the `process_queue` getter available to the queue tests only, exempt three unwinder/callback helpers whose parameters mirror their ABI shapes from `too_many_arguments`, and restore the missing `#[test]` attributes on three dormant AVX translation tests (they pass once activated). No production behaviour, API or test-expectation change (#2465).
- Correct the AVX2 registry for 256-bit VMOVNTDQA aligned loads and the fixed 128-bit VINSERTI128 memory source. Six new dual-engine known-answer tests cover widths, lane selection and fault behavior. Existing negative expectations and workspace validation remain pending (#2500).
- Explicit paging-file mapping flushes now reconcile only the checked byte span, with zero length extending to the logical view end (#2496). Disjoint snapshot flushes preserve previously reconciled bytes outside each span; private copies stay isolated. A local 16 MiB mapping probe on Apple M1 Max observed the incremental physical footprint of a one-byte flush fall from 16 MiB to 16 KiB. Full-view unmap/spawn reconciliation remains the existing snapshot approximation.
- Restore the registered EXE TLS cleanup callback before normal CRT exit handlers.
- Decode the 67H address-size override on ordinary VEX memory operands, including wrapped 32-bit base/index and EIP-relative addresses with FS/GS handling. Nine new dual-engine tests and the existing CPU regressions passed. VSIB gather, implicit VMASKMOVDQU and reserved nonmemory prefix use remain explicit refusals; feature bits are unchanged (#2509).
- Restore MSVC ios_base cleanup and wide stream state bindings to existing handlers.
- Restore runtime-support API-set aliases for context capture, function lookup, and virtual unwind.
- Correct the legacy MASKMOVDQU 67H address-size override to use zero-extended EDI instead of full RDI. Three independent dual-engine memory tests and the existing SIMD/AVX/address-size regressions passed. VEX admission and implicit segment overrides remain pending (#2543).
- A runtime DLL that refuses process attachment receives the documented process-detach notification before unload. The failure status remains `ERROR_DLL_INIT_FAILED` after unwind callbacks.
- Temporary heap readback buffers no longer claim a synthetic guest address. A caller may use that address without breaking texture readback; temporary placements still consume the heap’s byte and resource limits (#2423).
- Heap-backed RGBA8 textures now reserve guest addresses for every declared mip level, not just level zero. An overlapping buffer or an address range that wraps in a smaller mip is refused without changing heap accounting; Metal placement padding does not claim guest addresses (#2417).
- The decoder and both reference interpreters for the eleven Wave32 scalar unary integer operations reject VCC_LO and VCC_HI sources at the instruction offset, even when initialized. This restores their documented decoder subset without changing the VCC-based SAVEEXEC path (#2404, #2407).
- Restore the wide MSVC ostream insertion registrations left outside the typed catalog, remove redundant registrations and stale imports from migrated services, and restore missing test annotations and exact LLVM oracle coverage, recognize both LLVM assembly comment styles in fixture metadata, include the checked-in RGB565 fixture in reproducibility checks, teach the QA inventory to read callback-task declarations, update the x86 mask/table tests to cover the admitted encodings, and repair formatting and generated semantic coverage reports affected by parallel catalog merges (#2346).
- `XAsyncGetStatus` with `wait=TRUE` now blocks only the calling guest thread. A waiting query returns `GuestBlocked` and the scheduler retries it when `XAsyncComplete` signals, allowing another guest thread to complete the operation. The synthetic two-thread fixture exercises this path at three scheduler quanta (#2156).
- The `vop3-f16` compute fixture now keeps all 13 operation results live through its final store and folds them with wrapping 32-bit addition. Independent expected-value tests cover both CPU references and native Metal readback over a bounded binary16 input range (#2229).
- Classify `WerRegisterFile` as a partial runtime service: the synthetic guest receives `S_OK` and the registration is forgotten because Xenora provides no host Windows Error Reporting integration. The conformance fixture checks both documented file kinds and the API-set alias. Remove stale CRT spawn comments and an unused local (#2247).
- Correct the fractional XAudio2 PE fixture builder’s path to the native Win64 cross-linker so `--check` verifies its committed guest bytes.
- Restore the 31 handwritten service module registrations accidentally dropped during prior catalog merges (`threads`, `static_cxx`, `msvc_stl`, `crt_float`, `crt_fpenv`, `synch`, `sysinfo`, `console`, `graphics`, `crt_callbacks`, `environment`, `errors`, `registry`, `file_mapping`, `user32`, `xinput`, `advapi`, `crt_legacy`, `heap`, `cxx`, `winsock`, `winhttp`, `task_fixture`, `gdk_queue`, `xasync`, `process`, `threadpool`, and related C++ runtime hooks), remove the stale duplicate registrations remaining in `msvc_stl.rs`, `console.rs`, `sysinfo.rs`, and `files.rs`, declare `XTaskQueueCreate` and `MoveFileExW`'s `api-ms-win-core-file-l2-1-0.dll` alias in `services.txt`, expand the `runtime_services` synthetic PE section limits for the restored registry, and refresh `docs/runtime/inventory.*` and `docs/runtime/services.md`.
- Repair the independent shader validation after the corruption merged in #2171: restore the crushed VOP3P match arms and decoder block, the SOPC bit-test/wide-compare decode arms, the VOP3A decode coverage (multiply, carry and conditional-select forms), the missing `vector_integer` multiply opcodes and the dropped enum derives, and read the compiler error by reference in the rejection harnesses. The validation suite compiles again and every CPU test passes.
### Fixed
- Restore the handwritten file-service registrations the runtime lost in the catalog migration and remove the handwritten duplicates of catalog-migrated symbols across `files.rs` and `advapi.rs`, so the registry no longer panics on duplicate imports (`CreateDirectoryW`, `OpenProcessToken` and siblings) while non-migrated file services such as `_fullpath` resolve again. Complete the semaphore/security catalog surface: extract the semaphore implementations into typed service functions and add the missing `handlers` wrappers (`create_semaphore_*`, `open_semaphore_*`, `release_semaphore`, `get_security_info`) the generated runtime table references, and drop the orphaned `register_security_query` call.
### Fixed
- The runtime catalog generation validates again: the kernel32 heap API sets (`api-ms-win-core-heap-l1-1-0` and the obsolete heap set) are registered as kernel32 compatibility targets, and the generated runtime table is regenerated to match the current catalog.
- Repaired the 2026-12-01 merge-batch corruption in `xenora-shader` (#2275): the valid pre-batch base carried no SOPC bit-test or 64-bit compare lowering because the merge resolution had dropped it, and the vop3p golden files were born corrupt in their originating branch. The reconstruction restores the `ScalarBitTest` and `ScalarTest64Eq` IR operations with their lowering, emission and mapping arms from the surviving fragments, regenerates the goldens against the intact `.ir` pins, and passes the full compiler suite (94/94) including the SOPC fixture battery.
### Added
- Overlapped synthetic-file handles can now be permanently associated with a completion port. Explicit-offset read and write transfers complete immediately where possible without moving the synchronous file position, queue FIFO IOCP packets with the documented key and overlapped pointer, and keep pending operations, event signaling, `GetOverlappedResult`, pipes and non-file endpoints as explicit refusals (#2303).
- Added native Metal regression coverage for software-masked binary32 sums and binary16 minimum and maximum (#654). The tests query the pipeline SIMD width and check full and alternating masks against exact CPU expectations. A segmented sum checks two separate logical groups within each physical SIMD group.
- The translated graphics stages now accept the VOP3 `_e64` unary encodings
(`v_cvt_f32_i32/u32/ubyte*`, `v_trunc/ceil/rndne/floor_f32` and the bitwise
scans) through the existing unary expression and helper path. A new pixel
fixture computes ceil(0.25) = 1.0 and rndne(0.25) = 0.0 with `V_CEIL_F32`
and `V_RNDNE_F32` `_e64` and expects 255/0/255/255 pixels (#2334). The native
timeline test harness also constructs its errors through their public fields,
restoring compilation of the shared native GPU test target.
- The VOP3 `_e64` encodings of six binary16 conversions and seven binary16
rounding, fract and frexp operations now reuse the VOP1 kernels through the
bounded VGPR-only unary path in the compiler and both CPU references. The
translated graphics stages admit these encodings, and new compute and pixel
fixtures exercise the conversion and rounding paths. Local CPU suites and
native Metal readback passed on Apple M1 Max (204 conversion and 285
rounding cases, class A readback). The 17 added forms pass the focused
LLVM three-way fixture comparison. Independent acceptance remains pending
(#2336).
- Added reproducible ARM64 Metal precision probes for safe and fast binary32
division and reciprocals, plus direct and expanded power, with deterministic
synthetic inputs and error reports in units in the last place. The
reciprocal corpus includes both limits for normal results. Local Apple M1 Max
readback completed all six 4,096-case probes with Metal validation (#660).
- Repaired the 2026-12-01 merge-batch corruption in `xenora-metal::compute` (#2273): interleaved conflict resolutions had shredded the zero-copy UMA buffer methods and the visibility the intact `timeline` and `texture_detile` consumers need, so the crate no longer compiled. The reconstruction restores the valid pre-batch base, re-applies the surviving UMA fragments with the signatures pinned by the intact GPU test, and passes the real-hardware `uma_nocopy` suite.
### Added
- Microsoft x64 EH3 now handles a bounded ordinary class exception object caught by const reference: simple non-inherited class metadata is accepted, the catch binds the original exception object, and its destructor runs after the catch funclet before execution continues. Catch-by-value, copy constructors, inherited/virtual-base shapes, rethrow and nested C++ exceptions remain explicit refusals (#2072).
- Microsoft x64 EH3 now handles the same bounded simple class object caught by value when its metadata records trivial copying: the object bytes are copied into the catch frame before unwinding, the compiler catch funclet destroys that copy, and the original exception object is destroyed exactly once after the handler returns. Copy-constructor metadata remains an explicit refusal (#2298).
- Paging-file-backed mappings now keep exact `FILE_MAP_COPY` view writes private across flush and unmap instead of writing them through to the shared backing. `PAGE_WRITECOPY` objects refuse write-access views in this model, and the snapshot approximation plus offset/placed-view refusals remain explicit (#2280).
- Bounded manual I/O completion ports now implement `CreateIoCompletionPort` for unassociated ports, FIFO `PostQueuedCompletionStatus` packets, and `GetQueuedCompletionStatus` output validation, timeouts and scheduler-backed blocking. File-handle association and overlapped file completion remain explicit refusals (#2285). `GetQueuedCompletionStatusEx` now retrieves a bounded batch of queued manual packets FIFO with exact `OVERLAPPED_ENTRY` output validation; alertable blocking remains an explicit refusal because Xenora has no APC mechanism (#2328).
- The ARM64 dynamic binary translator now lowers scalar BMI2 SHLX, SHRX, SARX and RORX directly instead of calling the interpreter for every VEX instruction. The lowering covers decoded 32- and 64-bit register and checked memory sources, preserves operand-width count masks, zero-extension and destination/source aliasing, and is pinned by native/interpreter differential tests that require zero interpreter fallbacks (#2293).
- `RtlCaptureStackBackTrace` now advances through frames covered by PE32+ `.pdata` unwind metadata with the virtual-unwind engine, while preserving the leaf return-chain fallback for frames without unwind entries (#2322).
- The ARM64 dynamic binary translator now lowers scalar BMI2 MULX directly. The lowering covers decoded 32- and 64-bit register and checked memory sources, implicit RDX multiplication, unsigned low/high product splitting, 32-bit zero-extension, memory-fault-before-write behavior and the high-half-wins destination alias rule, with zero-fallback native/interpreter differential tests (#2300).
- The ARM64 dynamic binary translator now lowers scalar BMI2 PDEP and PEXT directly with bounded data-dependent bit loops over the runtime mask. The lowering covers 32- and 64-bit register and checked memory masks, width masking, destination aliasing and exact no-flag behavior, with native/interpreter differential tests requiring zero interpreter fallbacks; CPUID reporting remains unchanged (#2305).
- The ARM64 dynamic binary translator now lowers TZCNT and LZCNT directly for 16-, 32- and 64-bit register and checked memory sources, preserving exact width clamping, partial destination writes, memory-fault atomicity and CF/ZF behavior. Native/interpreter differential tests require zero interpreter fallbacks; CPUID reporting is unchanged (#2307).
- The ARM64 dynamic binary translator now lowers POPCNT directly for 16-, 32- and 64-bit register and checked memory sources with a fixed ARM64 SWAR reduction, preserving exact width masking, partial destination writes, memory-fault atomicity and the POPCNT flag result. Native/interpreter differential tests require zero interpreter fallbacks; CPUID reporting is unchanged (#2310).
- Guest CPUID leaf 7 now reports BMI2 in addition to BMI1. Every defined BMI2 form already executes and is covered by the merged BMI guest and dual-engine fixtures; AVX2, FMA, F16C and SSE4.x remain unreported because their prerequisite or complete-family boundaries are still explicit. The independent CPUID fixture oracle also checks the documented leaf-7 bits (#2337).
- The decoder now accepts ENDBR64 (`F3 0F 1E FA`) and ENDBR32 (`F3 0F 1E FB`) as no-operations in both CPU engines. The forms restrict the ModRM byte to `FA` or `FB`; existing prefix handling applies, and CET indirect-branch tracking and feature reporting remain unsupported (#2340).
### Fixed
- Repaired the 2026-12-01 merge-batch corruption in `xenora-isa` and `xenora-decoder` (#2265): interleaved conflict resolutions had duplicated or shadowed validator statements, eaten enum derives, shredded import blocks and unclosed decode blocks, so neither crate compiled. The semantic validator is regenerated consistent (284 forms), and both crates compile and pass their test suites again. The binary16 MSL helper corruption in `xenora-shader` is documented in the issue for the f16 PR owners.
### Added
- An original freestanding message-passing litmus guest now stress-tests ordinary payload accesses ordered by locked publication and acknowledgement flags across four threads and 64 rounds at scheduler quanta 1, 64 and 1024. The evidence is limited to Xenora's deterministic one-host-thread interleaving model and is not host-parallel x86 TSO certification (#2278).
- Add an original native-built C++ PE32+ workload distributing 65,536 items across 1, 2, 4 and 8 guest workers. It checks each worker and aggregate sum, thread identities, finite event handoffs, joins and handle cleanup; a correctness-gated optional timing test measures the existing cooperative scheduler. Native parallel performance is unmeasured (#2380).
- An original freestanding single-producer/single-consumer ring-buffer litmus guest now stress-tests ordinary payload accesses ordered by locked head and tail publications across 1,024 messages at scheduler quanta 1, 64 and 1024. The evidence is limited to Xenora's deterministic one-host-thread interleaving model and is not host-parallel x86 TSO certification (#2289).
- An original freestanding bounded multi-producer/multi-consumer ring-buffer litmus guest now stress-tests ordinary payload accesses ordered by per-cell sequence publication and locked position claims across 1,024 messages at scheduler quanta 1, 64 and 1024. The evidence is limited to Xenora's deterministic one-host-thread interleaving model and is not host-parallel x86 TSO certification (#2291).
- A freestanding AES-NI/PCLMULQDQ acceptance guest now executes exact AES round, final-round, inverse, inverse-final, inverse-mix and key-generation vectors plus representative carry-less qword-selector products through normal loader startup and the ARM64 DBT. CPUID reporting and independent acceptance are unchanged (#2272).
- A freestanding BMI acceptance guest now executes exact 32- and 64-bit vectors for ANDN, BEXTR, BZHI, BLSI, BLSMSK, BLSR, TZCNT, LZCNT, MULX, PDEP, PEXT, RORX, SARX, SHLX and SHRX through normal loader startup and the ARM64 DBT. CPUID reporting and independent acceptance are unchanged (#2255).
- `RtlVirtualUnwind` now has hand-derived regression coverage for near/far XMM saves and primary-before-chained unwind ordering, isolating two x64 metadata shapes that the compiled exception fixtures do not cover directly (#2264).
- A freestanding compiled guest now exercises CRC32 byte/word/dword/qword forms, PCMPGTQ and representative SSE4.2 string compare index forms through normal loader startup and the ARM64 DBT. CPUID reporting and independent acceptance remain unchanged (#2261).
- A freestanding compiled guest now exercises exact 128-bit FMA3 addition/subtraction/sign variants and both F16C conversion directions through normal loader startup and the ARM64 DBT. CPUID reporting and independent acceptance remain unchanged (#2258).
- Bounded RDNA 2 2D texture swizzle addressing and linear detiling in `xenora-texture::tiling` (#2154): `SwizzleMode` (`Linear`, `Micro256BS`, `Block4KBS`, `Block64KBS`, `Block64KBZ`), `ElementLayout` (`1`/`2`/`4`/`8`/`16` bytes, including BC formats), `TiledSurfaceLayout`, `detile_to_linear`, and `tile_from_linear`, with explicit refusal of non-zero `pipe_bank_xor`, zero/overflowing layouts, out-of-bounds element access, and mismatched byte lengths.
- Bounded RDNA 2 tiled BC mip-chain/array composition and Metal compute detiling (#2180): `TiledBcTextureLayout` covers independently tiled BC1-BC7 subresources, while `NativeCompute::detile_tiled_bc` copies logical 8/16-byte blocks on the GPU without tile-padding leakage and `upload_tiled_bc` populates matching native compressed mip chains and texture arrays. The bounds, synthetic layout model and non-zero-copy upload path are documented in `docs/interfaces.md`.
- A freestanding locked-read-modify-write guest fixture now stresses byte/word/dword/qword increments, locked OR/AND/XOR bit state, XCHG spin-lock exclusion and CMPXCHG retries through four contending scheduler threads at multiple deterministic quanta. The evidence remains limited to Xenora's one-host-thread interleaving model (#2253).
- A freestanding XADD guest fixture now stresses byte/word/dword/qword locked fetch-add operations with variable addends and exact returned-value totals through four contending scheduler threads at multiple deterministic quanta. The evidence remains limited to Xenora's one-host-thread interleaving model (#2268).
- Add an isolated checked shared-memory boundary for future native guest workers. One mutex orders guest accesses and interpreter steps, including locked integer read-modify-write operations. Native ARM64 contention tests cover exact atomic results, the conservative ordering contract, access faults and poisoned-state refusal. Production scheduler and DBT integration remain pending (#2378).
- Bounded Apple Silicon UMA zero-copy buffers in `xenora-metal::uma` (#2163): `UmaSharedBuffer`, `APPLE_VM_PAGE_SIZE` (`16 KiB`), `MAX_UMA_BUFFER_BYTES` (`64 MiB`), `NativeCompute::allocate_uma_buffer`, `NativeCompute::allocate_uma_exact_pages`, and synchronous `NativeCompute::dispatch_uma_words` backed by `newBufferWithBytesNoCopy:length:options:deallocator:`.
- Added regression coverage of every pair of bit positions in the two Wave32 full-width VOP3 multiplication operands, including destination aliases, partial execution masks and a partial final wave. Both CPU interpreters and local Metal readback passed all 12,348 new lane checks (#2100).
- Added 7,884 Wave32 multiplication lane checks with two runtime operands, destination aliases and partial execution masks. Both CPU interpreters and local Metal readback passed (#2100).
- Added Wave32 VOP3A full-width 32-bit multiplication (`v_mul_lo_u32`, `v_mul_hi_u32`, `v_mul_hi_i32`) across `xenora-isa`, `xenora-decoder`, `xenora-shader`, `xenora-ref`, the independent CPU interpreter, LLVM three-way checks, and native Metal validation (#2100).
- Bounded `MTLBinaryArchive` persistent compute pipeline cache in `xenora-metal::archive` (#2158): `PipelineBinaryArchive` and `NativeCompute` archive methods (`create_binary_archive`, `open_binary_archive`, `attach_binary_archive`, `save_binary_archive`, `detach_binary_archive`, `binary_archive_stats`) with leaf symlink/regular-file/64 MiB checks, atomic temp-file + rename persistence, and `MTL_SHADER_VALIDATION` mode matching.
- Added 840 lane checks for Wave32 bitfield insertion with all one-bit and one-clear-bit selectors, aliased destinations and partial execution masks. Both CPU interpreters and local Metal readback passed (#1897).
- Added 568 lane checks for the two Wave32 shift-add forms. They cover all 32 shift amounts, ignored high bits and a partial final wave. Both CPU interpreters and local Metal readback passed (#1897).
- Added regression coverage for all 32 bit offsets and 32 encoded widths of signed and unsigned 32-bit Wave32 bitfield extraction. Both CPU interpreters and local Metal readback passed all 8,192 new lane results (#1897).
- Added all 256 input byte values to the regression matrix for each of the four Wave32 `_e64` unsigned-byte conversions with a varying `v255` source. The cases include aliased destinations and partial execution masks. Both CPU interpreters and local Metal readback passed all 4,096 new lane checks (#1885).
- Added 16 Wave32 memory regression cases for 7-word and 35-word dispatches, covering byte and halfword extension and preservation of untouched output bytes. Both CPU interpreters and local Metal readback passed with API and shader validation enabled (#1898).
- Added a Wave32 VOP3 regression shader that reads the results of two unsigned halfword comparisons from separate scalar registers (#1872). Both CPU interpreters and local Metal readback passed, including a partial final wave on Apple M1 Max with validation enabled.
- Added Wave32 VOP3 regression shaders for dependent integer instructions under changing EXEC masks and consecutive binary32 comparisons with separate scalar masks. Both additions passed the CPU interpreters and local Apple M1 Max Metal readback with API and shader validation enabled (#1892, #1862).
- Added a Wave32 VOP3SDST regression shader that propagates carry between two additions under partial EXEC (#1866). The new case passed both CPU interpreters and a local Apple M1 Max Metal readback with API and shader validation enabled.
- Wave32 RDNA2 shader coverage expanded by 92 encoding-validated forms: 86 VOP3/VOP3SDST integer, floating-point compare, unary, conversion, rounding, ternary, explicit-mask carry and wide/constant compare encodings, plus six narrowed sub-dword MUBUF load/store encodings. Decoder, compiler lowering, production and independent reference execution enforce the documented narrowed operand domains, including explicit VCC shapes, 64-bit source pairs, byte-granular sub-dword memory behavior and inactive-lane destination preservation. Local validation covers the form-specific CPU matrices and native Apple Metal readback with API and shader validation enabled; malformed operands, modifiers, truncations and out-of-scope memory shapes remain controlled refusals. Independent acceptance, Xbox hardware verification and game compatibility are not claimed.
- Added native Metal framebuffer checks for all 15 texture component masks
with packed outputs that overlap coordinates at v255, including dependent
samples on a 2×2 texture that detect stale X or Y coordinates (#2151).
- Wave32 pixel shaders can select a 2D texture mip level per fragment with `image_sample_l`. On a local Apple M1 Max, one synthetic draw sampled three distinct RGBA8 mip levels and preserved sparse channel packing. The native GPU gate now runs the packed-mask and explicit-mip pixel tests, including their device-only cases. On a resident texture, updating one mip changed only the fragment sampling that level. This does not add guest mipmapped resource creation (#2400).
- Wave32 pixel shaders can sample any nonempty subset of RGBA with `image_sample_lz`. The compiler emits one Metal sample per instruction and packs selected channels into consecutive registers. Disassembly also handles valid results ending at v255 without overflowing (#2151).
- Native render coverage now pins the translated graphics maximum paths:
`translated_vop3_max_pixel_shader` computes max2 = 0.5 through `V_MAX_F16`
`_e64` and max3 = 1.0 through `V_MAX3_F16`, checking 128 and 255 pixels. All
28 translated graphics tests pass on the local Apple M1 Max with API and
shader validation (#2244).
- The translated graphics stages now accept `V_PACK_B32_F16` (785) in both
vertex and pixel stages through a pack-specific mask/shift emit. A new pixel
fixture packs f16(0.25) and f16(0.5) and exports both halves (64 and 128);
all 27 translated graphics tests pass on the local Apple M1 Max with API and
shader validation (#2243).
- `V_MED3_F16` (855) now works end to end: the median of three binary16 values
is computed as the maximum of the two non-maximum values through the exact
min/max kernels, with a dedicated MSL helper. The compute and translated
graphics paths both accept it; a new pixel fixture computes
med3(0.25, 1.0, 0.5) = 0.5 and checks 128/128/128/255 pixels. The f16 suite is
220 CPU cases per interpreter and 220 native Metal cases in 164 programs; the
three-way comparison is 1,985 comparisons across 282 forms (#2242).
- The translated graphics stages now accept the three-source `V_MIN3_F16`
(849) and `V_MAX3_F16` (852) in both vertex and pixel stages, chaining the
exact binary16 minimum/maximum helpers. A new pixel fixture computes
min(0.25, 1.0, 0.5) with `V_MIN3_F16` and checks 64/64/64/255 pixels; all 25
translated graphics tests pass on the local Apple M1 Max with API and shader
validation (#2241).
- The three-source `V_MIN3_F16` (849) and `V_MAX3_F16` (852) forms now work end
to end: nested exact binary16 minimum/maximum with the guide signed-zero
rules and a zero-extended result. The graphics stages keep refusing them
explicitly. The fixture, three-way comparison (1,983 comparisons across 281
forms) and f16 suite (212 CPU cases per interpreter, 212 native Metal cases
in 156 programs) cover them. Independent acceptance remains pending (#2240).
- The translated graphics stages now accept `V_LDEXP_F16` (315) in both
vertex and pixel stages, routing it through the shared binary16 expression
and emitting the dedicated ldexp helper block only when the operation is
present. The pixel helper block now starts before the output declaration so
Metal accepts its floating-point pragmas. A new pixel fixture scales an
interpolated 0.25 by `2^1` and checks 128/128/128/255 pixels; all 24
validation (#2239).
- `V_LDEXP_F16` (315) now works end to end: SRC0 scales by `2^S1` with SRC1's
low half read as a signed 16-bit exponent, normalising exactly, overflowing
to infinity and rounding to nearest-even only on subnormal underflow. The
fixture, three-way comparison (1,979 comparisons across 279 forms) and f16
suite (196 CPU cases per interpreter, 196 native Metal cases in 140
programs) cover it. Independent acceptance remains pending (#2238).
- The translated graphics stages now accept the three-source `V_FMA_F16` (843)
in both vertex and pixel stages, reusing the existing fused binary16 node and
helper inclusion. A new pixel fixture computes 0.25 * 0.5 + 0.5 with the
three-source encoding and checks 159/159/159/255 pixels; all 23 translated
graphics tests pass on the local Apple M1 Max with API and shader validation.
Independent acceptance remains pending (#2236).
- `V_PACK_B32_F16` (785) now works end to end: a VOP3 bitwise pack of the two
source low halves into one dword with default modifier fields, without any
conversion or rounding. The f16 suite is 184 CPU cases per interpreter and
184 native Metal cases in 128 programs; the three-way comparison is 1,976
comparisons across 278 forms. Independent acceptance remains pending
(#2237).
- The VOP3 `V_MAX_F16` (313) and `V_MIN_F16` (314) encodings now work end to
end with default modifier fields, completing the two-source VOP3 binary16
arithmetic set. The f16 suite is 176 CPU cases per interpreter and 176 native
Metal cases in 120 programs; the three-way comparison is 1,974 comparisons
across 277 forms. Independent acceptance remains pending (#2235).
- The three-source `V_FMA_F16` VOP3 form (843) now works end to end: SRC0 and
SRC1 multiply with SRC2 as the addend on the low binary16 halves, round once
with denormals allowed and zero-extend the result. The fixture, three-way
comparison (1,970 comparisons across 275 forms) and f16 suite (160 CPU cases
per interpreter, 160 native Metal cases in 120 programs) cover it.
Independent acceptance remains pending (#2234).
- The translated graphics stages now accept the VOP3 `_e64` binary16
arithmetic encodings (add, subtract, reversed subtract, multiply and the
fused accumulate) in both vertex and pixel stages, reusing the compute
lowering, dword SSA slots and MSL helper inclusion. A new pixel fixture
computes 0.25 * 0.5 + 0.5 with `V_FMAC_F16` `_e64` and checks
159/159/159/255 pixels; all 22 translated graphics tests pass on the local
Apple M1 Max with API and shader validation. Independent acceptance remains
pending (#2233).
- `V_FMAC_F16` in its VOP3 `_e64` encoding (310) now works end to end: the old
destination is read as the fused addend, multiplied by the narrowed SRC0 and
SRC1 halves with one round-to-nearest-even step, and the result is
zero-extended. The fixture, three-way comparison (1,966 comparisons across
274 forms) and f16 suite (152 CPU cases per interpreter, 152 native Metal
cases in 112 programs) cover it. Independent acceptance remains pending
(#2232).
- The VOP3 `_e64` encodings of `V_ADD_F16` (306), `V_SUB_F16` (307),
`V_SUBREV_F16` (308) and `V_MUL_F16` (309) now work end to end with default
modifier fields and the narrowed VOP3 source domain, lowering through the
same exact binary16 kernels and zero-extending the result. The reversed form's
sources are swapped once in the decoder so the lifting keeps a single operand
order while the assembly keeps the encoded order. A new fixture and three-way
comparison cover the encodings (1,963 comparisons across 273 forms); the f16
suite grows to 144 CPU cases per interpreter and 144 native Metal cases in
112 programs. Independent acceptance remains pending (#2231).
- The translated graphics stages now accept non-default `OP_SEL`,
`OP_SEL_HI`, `CLAMP` and per-half NEG/NEG_HI fields for the packed binary16
and packed integer forms (the dot products keep the default-field rule).
The decoded fields flow through the compute expression builders and helper
arguments; a new pixel render test selects the high halves of two binary16
constants, computes 1.0 * 0.5 = 0.5 and checks 128/128/128/255 pixels. All 21
validation. Independent acceptance remains pending (#2230).
- `V_CVT_PKRTZ_F16_F32` now works end to end on Wave32: both binary32 sources
convert to packed binary16 with round-toward-zero regardless of the hardware
mode, creating binary16 subnormals, truncating the 65520 midpoint to 65504
and overflowing values at or above 65536 to infinity. Both CPU references
keep independent integer kernels; the new suite runs 21 CPU cases per
interpreter with 20 controlled rejections and the NaN refusals, and 21 native
Metal programs on an Apple M1 Max. The fixture and three-way comparison grow
to 1,950 comparisons across 269 forms. Independent acceptance remains
pending (#2228).
- `V_FMAC_F16` now works end to end on Wave32: the old destination value is
read as the fused addend, multiplied by S0 and S1's low binary16 halves and
rounded once. The translated vertex and pixel stages also accept the VOP2
binary16 arithmetic forms including the fused accumulate form; a new native
render test rounds 0.25 to binary16, computes 0.25 * 0.5 + 0.5 with
`V_FMAC_F16` and checks 159/159/159/255 pixels. The f16 suite grows to 112
CPU cases per interpreter and 112 native Metal programs, and the fixture and
three-way comparison grow to 1,940 comparisons across 268 forms. Independent
acceptance remains pending (#2227).
- Move the XInput controller-state services to the runtime catalog. The named
state, vibration, capabilities, enable, keystroke, battery and audio-device
boundaries across the four XInput library surfaces are generated entries,
with the per-module export matrix expressed as per-module entries sharing
handlers; the undocumented ordinal-100 form stays handwritten. Eleven new
direct-invocation integration witnesses pin the connection gating, packet
numbering, enable-neutrality, guide-bit hiding, vibration sequencing,
capabilities shape, charge-evidence bands and no-headset results.
- MOVBE big-endian memory loads and stores are implemented in both x86-64 execution engines at 16, 32 and 64 bits, including CPUID leaf 1 ECX bit 22 reporting, unprefixed 0F38 decoder-map support and native ARM64 byte-reverse lowering in the DBT; hardware comparison remains absent (#2210).
### Changed
- Consecutive native register-only integer arithmetic and logic writes to the same guest register now retain the result between instructions, avoiding intermediate guest-state memory loads and stores. The result is materialized before partial-register operations, helpers, memory accesses and block exits. Consecutive legacy XMM register-only lane-binary operations with exact native NEON rules also retain the destination, including aliased source operands. Legacy XMM writes preserve the corresponding upper YMM half. The portable ARM64 translation cache identity advances to v4. Independent acceptance and workload speed measurements are pending.
- The macOS app now keeps its long-lived state in one `AppModel` owned by the app delegate, instead of `shared` singletons and properties of the `App` value. Its models use Swift Observation instead of `ObservableObject`, and the properties that notify views are the same as before. Each section of the main window now observes only its own model, so a frame-loop, fixture or HUD update no longer redraws the whole window. The runtime check now runs once per launch, where it used to create a runtime session whenever SwiftUI recreated the main view. The app target builds without compiler warnings: two deprecated C-string conversions were replaced, and two self-checks no longer change a local variable captured by a sendable closure. `docs/app/architecture.md` records the app's structure, its C and helper-process boundaries, main-thread costs, and what is left for the versioned runtime contract. On a local Apple M1 Max, 10 new tests passed with none skipped. In `scripts/build-app.sh --test`, 195 app tests passed and 6 opt-in tests were skipped. Independent acceptance is pending (#2448).
- Paging-file-backed mappings now reserve backing capacity fallibly, defer initialization of untouched bytes, enforce a machine-wide section budget derived from host RAM, and reconcile views without a full-size temporary copy (#2411). `MapViewOfFile` and `MapViewOfFileEx` also accept 64 KiB-aligned nonzero offsets for private `FILE_MAP_COPY` snapshots. Five new guest-service tests and five backing unit tests passed locally, along with the five existing mapping tests. A 16 MiB native synthetic mapping probe on Apple M1 Max observed a roughly 16 MiB smaller physical-footprint increase at mapping and flush. Shared offset views, placed views, true per-page copy-on-write and persistent files remain outside this production slice.
- Move seven winpthreads key and default-mutex services into the typed runtime catalog, preserving per-thread key values, bounded key allocation and the existing mutex ownership rules.
- Move eight registry services into the typed runtime catalog, retaining the process-local synthetic registry, DWORD-only value storage and existing registry API-set aliases.
- Move the four ANSI and wide console cell-transfer services into the typed runtime catalog, retaining the shared clipping rules, four-byte cell layout and console API-set aliases.
- Move twelve kernel32 volume enumeration, volume information, mount-name and legacy disk-space services into the typed runtime catalog, preserving the bounded synthetic drive and existing API-set aliases.
- Moved the startup-information and command-line services (`GetStartupInfoA/W`, `GetCommandLineA/W`, `_get_narrow_winmain_command_line`, `_get_wide_winmain_command_line`) into the runtime catalog, extending the validated kernel32 API-set list with the documented processthreads l1-1-3 through l1-1-7, kernel32-legacy and downlevel versions the handwritten registry already aliased.
- Moved the XTaskQueue handle-lifecycle services (`XTaskQueueCreate`, `XTaskQueueDuplicateHandle`, `XTaskQueueCloseHandle`, `XTaskQueueGetPort`, `XTaskQueueCreateComposite` and the current-process queue pair) into the runtime catalog, with a new witness pinning the process-queue slot; the submission, termination and dispatch services stay handwritten because they reach the thread machinery and task-wait contracts.
- The kernel32 `DeviceIoControl` service now generates from the runtime catalog alongside the other file services, preserving the documented contract exactly: device drivers need devices the machine does not have, so every control code fails honestly except the one the file system itself answers — `FSCTL_GET_REPARSE_POINT` on a reparse-opened handle serializes the symlink exactly as the `IO_REPARSE_TAG_SYMLINK` buffer of Windows lays it out, the entire readlink chain of a mingw guest. Verified locally against the synthetic fixtures of `runtime_file_types`.
- The kernel32 process-query services `OpenProcess`, `ReadProcessMemory`, `IsWow64Process` and `GetProcessTimes` now generate from the runtime catalog alongside the other process services, preserving the documented contracts exactly: opening the one process or a spawned child behind a fresh handle, the exact bounded copy of the guest memory itself, the zero answer of a machine that is x64 throughout, and the clock's now for creation, kernel and user with no exit time while the process lives. Verified locally against the synthetic fixtures of `runtime_snapshot`.
- The kernel32 thread-query services `GetProcessIdOfThread`, `GetCurrentThreadStackLimits`, `GetThreadGroupAffinity` and `SetThreadGroupAffinity` now generate from the runtime catalog alongside the other thread services, preserving the documented contracts exactly: the one owning process behind the query rights, the calling thread's stack bounds read from its own TEB, and the one processor group whose mask validates exactly — a restriction to fewer processors refused rather than ignored, since it has no meaning when guest threads take turns on one host thread. The `api-ms-win-core-processtopology-l1-1-0` aliases move with them, and the API set joins the validated list. Verified locally against the synthetic fixtures of `guest_thread_process_id`, `guest_thread_group_affinity` and `process_lifecycle`.
- The kernel32 file-position and pipe-peek services `SetFilePointer`, `SetFilePointerEx`, `SetEndOfFile` and `PeekNamedPipe` now generate from the runtime catalog alongside the other file services, preserving the documented contracts exactly: the split signed distance and high-word round trip of `SetFilePointer`, the full signed distance and position copy-out of `SetFilePointerEx`, position-sized truncation and zero-filled growth within the drive budget of `SetEndOfFile`, and the take-nothing peek of `PeekNamedPipe` whose empty pipe answers broken in the synchronous process world. Verified locally against the synthetic fixtures of `crt_files`, `runtime_x15` and `runtime_pipes`.
- The kernel32 console screen-buffer services `CreateConsoleScreenBuffer`, `GetConsoleScreenBufferInfo`, `SetConsoleCursorPosition`, `SetConsoleTextAttribute`, `SetConsoleScreenBufferSize`, `SetConsoleActiveScreenBuffer`, `FillConsoleOutputCharacterA/W` and `FillConsoleOutputAttribute` now generate from the runtime catalog alongside the other console services, preserving the documented contracts exactly: fresh grids of the default shape, the exact info pack, cursor and attribute writes inside the grid, zero-dimension rejection on resize, and fills that walk the grid staying inside it while answering the cells filled. The `api-ms-win-core-console-l2-1-0` aliases move with them, and the API set joins the validated list. Verified locally against the synthetic fixtures of `runtime_console_buffer` and `guest_console_ansi_cell`.
- The kernel32 console input and codepage services `GetNumberOfConsoleInputEvents`, `PeekConsoleInputA/W`, `ReadConsoleInputA/W`, `SetConsoleCP`, `SetConsoleOutputCP`, `SetConsoleCtrlHandler` and `GenerateConsoleCtrlEvent` now generate from the runtime catalog, preserving the honest contracts of a machine with no keyboard: the input buffer stays empty so counting and peeking it are exact, reading it fails with `ERROR_NOT_SUPPORTED` rather than deadlocking the one executor, the code pages accept only UTF-8 coherently with the capture, control handlers validate without ever firing, and generating a control event is honestly unsupported. The always-failing reads classify as stubs in the coverage inventory, the honest label for a service that never succeeds. Verified locally against the synthetic fixtures of `runtime_console_input`.
- Moved the CRT memory-scan, environment and entropy services of statically linked guests (`memchr`, `strchr`, `getenv`, `_putenv`, `getenv_s`, `rand_s`) into the runtime catalog, including their API-set and msvcrt aliases; the in-file witnesses now exercise the standard registration path, and `rand_s` gained a guest-level entropy witness.
- The XNetworking connectivity-hint and statistics queries of `xgameruntime.dll` now generate from the runtime catalog, preserving the bounded machine's answers exactly: an initialized loopback facility with no connectivity level, unknown cost and the IANA software-loopback interface type — never Internet evidence — honestly zeroed statistics counters, the exact machine-limit configuration zero, and the fixed loopback preferred UDP multiplayer port. The in-module unit coverage moved to the synthetic fixtures of `runtime_xnetworking`, written before the move.
- The kernel32 error-mode and debug services `SetErrorMode`, `IsDebuggerPresent` and `OutputDebugStringA/W` now generate from the runtime catalog alongside the other error services, preserving the documented contracts exactly: the error mode exchanging and remembering faithfully so programs that propagate it behave coherently, the false answer of a machine no debugger is ever attached to, and debug output going nowhere exactly as the documentation says it does without one — the text still probed so a bad pointer faults the way it would with a debugger attached. The debug trio carries the implemented status it honestly earns. Verified locally against the synthetic fixtures of `runtime_errors`.
- The pointer encoding pair `EncodePointer` and `DecodePointer` now generates from the runtime catalog, preserving the contract exactly: a deterministic synthetic cookie derived from the guest process id, exactly invertible inside one process without claiming Windows cookie compatibility. Verified locally against the synthetic fixtures of `runtime_services`.
- Both widths of `CreateFile` now generate from the typed runtime catalog and share their existing bounded drive-open logic, including sharing, link resolution, dispositions and the immediate IOCP-compatible overlapped flag (#2175).
- Five synthetic manual task fixture entry points now generate from the typed runtime catalog, preserving queue submission, cancellation, work dispatch and completion-record semantics (#2192). The all-service PE test now groups consecutive imports of each library into one descriptor, retaining import order and the production descriptor limit as the catalog grows.
- `ReadFile` and `WriteFile` now generate from the typed runtime catalog using their existing shared transfer implementation. Synchronous file, pipe, standard-input and NUL behavior and bounded offset-based immediate IOCP completions are preserved (#2166).
- The CRT `_fullpath` service now generates from the typed runtime catalog. The existing bounded synthetic path resolution, heap-copy and errno behavior is covered by a focused guest fixture (#2161).
- The three CRT search functions `_findfirst64i32`, `_findnext64i32` and `_findclose` now generate from the typed runtime catalog. They preserve the existing synthetic drive snapshot and errno behavior, with a focused CRT record-layout and enumeration fixture (#2159).
- Six kernel32 file-enumeration services now generate from the typed runtime catalog, preserving the synthetic drive's snapshot, wildcard matching and bounded information-level and filter behavior. The Ex variants have focused selector and output tests (#2152).
- The four kernel32 hard-link and symbolic-link creation services now generate from the typed runtime catalog. Links remain confined to the synthetic drive, with the existing name resolution, shared file contents and reparse-text behavior. The runtime link fixtures cover both supported forms (#2149).
- The kernel32 file information and compressed-size queries now generate from the typed runtime catalog. `GetFileInformationByHandle` also places the synthetic volume serial and link count in their documented separate fields; the file index remains unmodeled. No compression is modeled (#2144).
- The kernel32 path resolution services `GetFullPathNameW` and `GetFullPathNameA` now generate from the runtime catalog alongside the other file services, preserving the documented contracts exactly: a relative input resolves against the working directory of the synthetic drive and answers the `c:\` form in either width, the drive canonicalizes lowercase with dot segments folded the way it does everywhere, and the buffer-too-small answer counts the terminator as the pages document. The synthetic `runtime_fullpath` fixtures cover the bounded resolution and buffer sizing behavior. The optional file-part output remains unused.
- The x86 MFENCE, LFENCE and SFENCE forms now lower in the ARM64 DBT to one conservative inner-shareable data memory barrier each instead of using interpreter fallbacks. Guest state is unchanged under the current single-host-thread scheduler; this is preparation for future concurrent execution, not multi-thread TSO validation (#2183).
- Moved the UCRT probe string and conversion services — `atoll`, `strtof`,
`_wcsicoll`, `strcpy_s`, `strcat_s`, `strncpy_s`, `strtok_s`, `wcscat_s` and
`wcsncpy` — from handwritten registrations into the typed runtime-service
catalog, with new direct-invocation witness coverage written first. The
dead `strtok` static fallback is gone: the registration always passed the
caller-owned context the CRT documents. Guest-visible behavior is unchanged.
- Moved the legacy CRT search, stream-array, clock and identity services —
`wcsrchr`, `__iob_func`, both `_time64` forms, `_mkgmtime64`, `_tzset`
and `_getpid` — from handwritten registrations into the typed
runtime-service catalog. Guest-visible behavior is unchanged; the secure
time conversions stay handwritten because they are callback tasks, as do
`rand`/`srand` and `_umask` with their captured state.
- Moved the process-local platform fixture services — the lifecycle pair,
settings, capabilities, the bounded save slots and the profile selection
with its change queue, fifteen services — from handwritten registrations
into the typed runtime-service catalog. Guest-visible behavior is unchanged.
- Documented repository-local noreply email setup and checks for public commit identities and DCO sign-offs. Existing history requires separate cleanup; configuration and `.mailmap` do not remove stored addresses (#2061).
- `docs/interfaces.md` now documents the verified loader-reentrancy
behavior: nested `LoadLibrary`/`FreeLibrary` from inside TLS callbacks
and `DllMain` complete in correct Windows nesting order — the earlier
blanket "loader-lock reentrancy unsupported" claim was wrong about
merged behavior.
- `docs/interfaces.md` now describes the implemented bounded
`CreateProcessA/W` re-execution contract instead of the obsolete blanket
refusal: deferred child execution, redirected standard handles,
`CREATE_UNICODE_ENVIRONMENT`, the 32,768-byte environment-block cap and
null-block inheritance (#1823).
### Added
- `advapi32.dll` now generates `GetSecurityInfo` from the typed runtime-service catalog, completing the library's handwritten registration surface: the owner and group answers allocate the fixed machine SID from the process heap exactly as documented, the ACL and full-descriptor shapes keep their honest refusal, and the service keeps answering the error code itself rather than zero on failure. **New witness coverage written first**: `advapi_security_info.rs` pins the invalid-parameter, refusal and allocation contracts the compiled guests never exercised. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the semaphore surface from the typed runtime-service catalog: both `CreateSemaphore` forms, both extended forms with their documented API-set forwarders including the ANSI set, both `OpenSemaphore` forms and `ReleaseSemaphore`. The process-scoped named-semaphore identity now rides on a weak self-reference the one registration path populates, so the cataloged creations keep the exact sharing semantics: a name colliding with a live semaphore shares its count and records `ERROR_ALREADY_EXISTS`, a spawned child does not find the parent's names. The documented validation and `ERROR_TOO_MANY_POSTS` contracts are unchanged. The compiled sharing, extended-counts and open-by-name guests pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- Added `NativeCompute::render_graphics_pass`, a bounded native Metal render
primitive for the upcoming guest constant-buffer/multi-target ABI: trusted
MSL can use stage-visible constant buffers, one through four simultaneous
RGBA8 or RGBA16Float targets, optional stored Depth32Float and up to 16
triangle draws at dimensions up to 1920×1080. Exact target-byte and depth
readback is verified locally on Apple Silicon with Metal validation. The
guest ABI, descriptor model, upload/readback ring and PE fixture are not yet
exposed or claimed (#2179).
- A flat `DrawInstanced` draws a triangle list: it starts at the start
vertex, reads one `float4` position per vertex at the bound vertex buffer
view's stride, and draws every complete triangle in order, discarding a
trailing partial triangle. A flat draw with fewer than three vertices still
draws nothing and is not counted. Flat draws require a vertex buffer on the
command list and queue device with a stride of at least 16 bytes. They
check that every complete vertex fits in the resource, is readable and
contains a finite position before drawing any triangle. Synthetic
pixel tests and late non-finite rejection passed locally on the software
reference and native Apple Silicon Metal with validation enabled; other
rejection tests passed locally on the software path (#2101).
- A flat (untextured) draw accepts any instance count. The bounded flat
pipeline has no per-instance inputs or instance-dependent shader behavior,
so each positive count draws the same image as one instance and is counted
once. The host command API also accepts any start instance. A flat draw
refuses a resource bound simultaneously as its vertex buffer and target,
preserving the vertex input. Zero instances draw nothing. Textured and
indexed draws retain their instance limits.
Synthetic pixel and range/rejection tests passed locally, including
native Apple Silicon Metal with validation enabled, and the guest service
round trip passed for instance counts 1, 3 and the largest `u32` (#2106).
- `DrawIndexedInstanced` draws complete groups of three indices from the
start index, applies the signed base vertex and discards a trailing
partial triangle. Flat and textured indexed lists check the complete
input ranges and finite vertex attributes before rendering and refuse
target aliasing with their inputs. One instance per indexed draw remains
supported. Synthetic pixel, range, non-finite and alias tests passed on
the software reference and, for pixel, non-finite and alias cases, native
Apple Silicon Metal with validation enabled (#2125).
- A textured `DrawInstanced` draws each complete triangle in order from the
start vertex, using the position and texture coordinate in every vertex
record. A trailing partial triangle and fewer than three vertices draw
nothing. The draw preflights all complete vertex data and refuses input
resources aliased with the target or from another device. The single-
instance limit remains (#2172).
- Native ARM64 macOS gains a bounded presentation API with BGRA8Unorm
`CAMetalLayer` drawables and a headless RGBA8Unorm texture ring. Ordered
shared-event signals and bounded terminal-command waits enforce three
frames in flight, handle resize and surface drawable loss or command
errors. `xenora present` exercises authored synthetic clear frames using
exact headless readback or a native AppKit window. Ten focused local native
Metal tests, including metadata refusal and asynchronous ring readback, a
ten-frame exact headless readback and a three-frame window submission
passed with API and GPU validation enabled. Display-compositor
and independent-acceptance evidence remain absent (#2181).
- Synchronize the central notices and license decisions for the two locked
native presentation bindings, preserving the upstream attribution and SDK
review caveats (#2413).
- `advapi32.dll` now generates the legacy cryptographic randomness and user identity surface from the typed runtime-service catalog: `CryptAcquireContextA`, `CryptReleaseContext`, `CryptGenRandom`, `SystemFunction036` (RtlGenRandom) and `GetUserNameA`. The provider tokens move from a closure capture into the services state as the process-table lifecycle they model, fresh for each spawned child exactly as a process-local token table should be; the randomness remains real host entropy and the fixed-user answer keeps its terminator-inclusive size contract. The internal lifecycle test now exercises the services through the standard registry, cross-validating the cataloged implementations. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- A command list can clear a render target explicitly with
`cmd_clear_render_target`, which fills every texel of the target with one
colour when the command is reached in the list. The scissor rectangle and
the viewport do not limit the clear, the draws recorded after it compose
over the cleared texels, and a clear of the bound target replaces the frame
the execution reports, so a list that only clears still shows the cleared
colour. The clear accepts a nonempty, single-subresource `R8G8B8A8_UNORM`
2D texture owned by the command list's device and checks `RENDER_TARGET`
state when executed, after preceding barriers. Unsupported targets record
nothing, and an unknown handle is refused. Rectangles, depth and stencil
clears and float colours are not supported, and the command has no guest
export yet (#2071).
- Command lists can copy a whole resource with `cmd_copy_resource`. The copy
runs in command order when the list executes, so the draws recorded around
it observe the copied contents, and a copy into the bound render target
replaces that target's contents. A copy between resources that differ in
type, size or format is refused with `GraphicsError::CopyResourceMismatch`,
and a copy within one resource, across devices, into a guest-backed resource
or involving an unsupported resource shape is refused. Execution requires
copy-source and copy-destination states after preceding barriers. The command is not exposed to guests yet
(#2076).
- Host `GraphicsContext` D3D12-shaped samplers accept the `BORDER` (4) address mode beside `WRAP` (1),
`MIRROR` (2), `CLAMP` (3) and `MIRROR_ONCE` (5), with the three border
colours a native Metal sampler can hold: transparent black, opaque black
and opaque white. A border colour outside those three, including one with
a NaN component, is refused when an axis uses border addressing, and the
colour is ignored when no axis does, as in D3D12. The software reference
reads the border colour instead of a texel when a border axis is outside
the texture, and the native Metal sampler maps the mode to
`ClampToBorderColor` with the matching border colour. The guest
`XenoraCreateSampler` ABI still exposes clamp-only point sampling (#2085).
- MOVBE big-endian memory loads and stores are implemented in both x86-64 execution engines at 16, 32 and 64 bits, including CPUID leaf 1 ECX bit 22 reporting, unprefixed 0F38 decoder-map support and native ARM64 byte-reverse lowering in the DBT; hardware comparison remains absent (#2210).
- `advapi32.dll` now generates the security-token surface from the typed runtime-service catalog: `OpenProcessToken`, `DuplicateToken`, `GetTokenInformation`, `EqualSid`, `AccessCheck`, `CheckTokenMembership` and the honestly-refused `SetTokenInformation`, completing `register_tokens`. The fixed-identity answers are unchanged: one user, one logon session, one token, duplication yielding the same identity, the TokenUser record with its self-referencing header, byte-exact SID comparison, and the access grant that is machine truth on a machine without privilege separation. **New witness coverage written first**: `advapi_token_family.rs` pins the duplication, comparison, membership, access-check and refusal contracts the compiled guests never exercised. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `advapi32.dll` now generates the SAFER level surface from the typed runtime-service catalog: `SaferCreateLevel`, `SaferComputeTokenFromLevel` and `SaferCloseLevel`. The level handles move from a closure capture into the services state as the process-table lifecycle they model, fresh for each spawned child; the documented scope, level, flags and reserved-parameter validation is unchanged, and a valid level still computes the machine's one token, which is what restriction truthfully computes to on a machine without privilege separation. **New witness coverage written first**: `advapi_safer_levels.rs` pins the lifecycle and validation contracts the compiled guests never exercised. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the byte-range lock services from the typed runtime-service catalog: `LockFile`, `UnlockFile`, `LockFileEx` and `UnlockFileEx`. The contracts are unchanged: the handle validation tells write-less files and non-files apart, the plain forms take the offset and length in their register halves always exclusive, and the extended forms read the offset from the overlapped structure with the exclusive-lock flag honored. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the file-mutation services from the typed runtime-service catalog: `CreateDirectoryA`, `CreateDirectoryW`, `RemoveDirectoryA`, `RemoveDirectoryW`, `MoveFileA`, `MoveFileW`, `MoveFileExA`, `MoveFileExW` and `DeleteFileW`. The contracts are unchanged: creation refuses the security descriptor the machine does not model, renames keep their documented error ordering and the replace-existing flag semantics, and deletion tells directories, missing parents, sharing violations and absent files apart exactly as documented. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the file-time writing and search cleanup services from the typed runtime-service catalog: `SetFileTime`, `SetSystemTime`, `FindClose` and `FindVolumeClose`. The contracts are unchanged: the time setter replaces the tracked slots for each non-null FILETIME pointer exactly as Windows does, the system clock keeps its honest refusal, and the search closes release only true search handles. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the file-attribute services from the typed runtime-service catalog: `GetFileAttributesW`, `GetFileAttributesA`, `GetFileAttributesExW`, `GetFileAttributesExA`, `SetFileAttributesW` and `SetFileAttributesA`, with their api-ms-win-core-file API-set aliases. The contracts are unchanged: the attribute bits are the truth of the object with the reparse point answering itself, the extended form packs the tracked FILETIMEs and the high-low size split at the documented offsets, and the setter accepts only the normal and archive bits for a path the machine knows. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the file-metadata queries from the typed runtime-service catalog: `GetFileSize`, `GetFileSizeEx`, `GetFileTime` and `FlushFileBuffers`. The contracts are unchanged: the size answers split across the low-word return and the high-word output with the documented 0xFFFFFFFF failure value, the times are the tracked ones defaulting to the Unix epoch rather than an invented time, and the flush validates the writable file on a memory drive where a write has nowhere further to go. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the drive shape and handle-information services from the typed runtime-service catalog: `GetLogicalDrives`, `GetDriveTypeA`, `GetDriveTypeW`, `GetDiskFreeSpaceExA`, `GetDiskFreeSpaceExW` and `SetHandleInformation`. The contracts are unchanged: the one fixed disk answers its bitmask and type as constants, the memory drive's one-gigabyte counts write into whichever outputs the caller supplied with the documented noaccess and invalid-parameter ordering, and the handle-information call accepts flags it has no child process to honor for while refusing unknown handles. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the mutex surface from the typed runtime-service catalog: both `CreateMutex` forms, both extended forms with their documented API-set forwarders, and `ReleaseMutex`. The machine models no named mutexes, so names and security attributes are honestly unsupported in either form exactly as before; the ownership, recursion and abandoned-release semantics are unchanged. The compiled recursion/exclusivity guests and the narrow-form validation witness pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the unnamed event surface from the typed runtime-service catalog: both `CreateEvent` forms, both `CreateEventEx` forms with their three API-set forwarders each, and the `SetEvent`/`ResetEvent` pair. The documented not-supported failures for names and security attributes, the invalid-parameter flag validation, the modify-state access check and the waiter-waking signal are unchanged. The compiled event-rights, signaling and multiple-wait guests pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- The MSVCP facet reference-counting pair (`_Incref`/`_Decref`) and the narrow ctype `do_widen` moved into the typed runtime-service catalog as partial-status entries, the shared-lock count arithmetic and the identity widening moving verbatim.
- `kernel32.dll` now generates the file-API mode and type queries from the typed runtime-service catalog: `AreFileApisANSI`, `SetFileApisToANSI`, `SetFileApisToOEM`, `IsDBCSLeadByteEx`, `LocalFileTimeToFileTime` and `GetFileType`, with their api-ms-win-core-file API-set aliases. The contracts are unchanged: the recorded narrow-path mode round-trips, false is the correct DBCS answer for every byte because no double-byte codepage exists here, the local-time conversion is the bounded UTC identity, and the type query distinguishes disks, consoles, pipes and unknown handles exactly as documented. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- The MSVCP stream-state and exception-mask surface (the `rdstate`/`good`/`eof`/`fail`/`bad` queries, the `clear`/`setstate` mutations across both object families, and the `exceptions` mask accessors) moved into the typed runtime-service catalog as partial-status entries, the bit machinery and buffer mirroring moving verbatim.
- The MSVCP Yarn string-helper surface moved into the typed runtime-service catalog as partial-status entries: the constructor, assignment, destruction and accessor families across the narrow and wide element specializations, the owned-copy semantics moving verbatim. The typed catalog now admits mangled C++ export names as valid symbols.
- Added 1,024 runtime SOPC cases covering every bit index, ignored upper index bits and every single-bit difference in 64-bit comparisons. Both CPU interpreters and local Metal readback passed (#2112).
- An original freestanding Peterson/futex mutex guest now stress-tests fine-grained critical-section interleaving, WaitOnAddress blocking, WakeByAddressSingle handoff, exact protected counter totals and thread cleanup through the cooperative scheduler at quanta 1, 64 and 1024. The evidence covers deterministic one-host-thread interleaving only, not host-parallel x86 TSO certification (#2202).
- An original freestanding lock-free ring-buffer guest now stress-tests SPSC and MPMC once-only delivery, per-producer ordering and thread completion through the cooperative scheduler at quanta 1, 64 and 1024. The evidence covers deterministic one-host-thread interleaving only, not host-parallel x86 TSO certification (#2188).
- Added bounded `MTLHeap` placement resource allocation and `MTLResidencySet` residency tracking (`HeapArena`, `HeapBuffer`, `HeapTexture`) in `xenora-metal` with guest virtual address range checking, deterministic drop-time coalescing, explicit refusal of sparse/managed/console-ABI requests, and native GPU tests in `crates/metal/tests/heap_resources.rs` (#2035).
- `kernel32.dll` now generates the file-time conversion pair `FileTimeToSystemTime` and `SystemTimeToFileTime` and the `QueryUnbiasedInterruptTime` query from the typed runtime-service catalog. The documented range failures with `ERROR_INVALID_PARAMETER`, the sixteen-byte system-time layout and the unbiased elapsed count in 100-nanosecond units are unchanged. The compiled round-trip conversion guest and the clock coherence and monotonicity guests pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- The VOP3P packed forms now transport the `OP_SEL`/`OP_SEL_HI` half-selection
fields for the fourteen integer and five binary16 forms: each result half
reads the low or high 16-bit operand bits of each source as the encoding
selects, on both the integer and binary16 lowerings and both CPU references.
The unused SRC2 selection bits of two-source forms are ignored and
canonicalized. `CLAMP` is now accepted where the guide gives it a meaning:
the integer add, subtract and multiply-add forms saturate each selected half
to its signed or unsigned 16-bit range, and the binary16 forms clamp to
[0.0, 1.0] through the guide MIN/MAX rules; the other packed integer forms
still refuse it. The test matrices grow to 96 integer and 56 binary16 CPU
cases per interpreter with selection/clamp rejection cases, and a fourth
fixture exercises the fields in the LLVM three-way comparison, now 1,836
comparisons across 241 forms. Native Metal readback matched all cases on an
Apple M1 Max with API and shader validation enabled; independent acceptance
remains pending (#2185 follow-up).
- The VOP3P family now includes the five packed FP16 forms `V_PK_FMA_F16`,
`V_PK_ADD_F16`, `V_PK_MUL_F16`, `V_PK_MIN_F16` and `V_PK_MAX_F16` (guide
12.10, printed pages 164-165), including the per-half NEG and NEG_HI source
modifiers. The decoder transports the negate masks only for these forms and
keeps refusing them on the integer forms. The compiler lowers each form to
integer-only MSL that unpacks each half, forms the exact result in 64-bit
integers and rounds once to binary16 on the pinned round-to-nearest-even and
allow-denormals modes (guide 6.4), so no Metal floating-point mode can change
the result. The production reference and the independent interpreter
evaluate exact binary16 models with different structures; NaN operands and
NaN results are refused by both. A fixture with negate modifiers, tracked
IR/MSL goldens, 31 known-answer cases per CPU interpreter, 38 controlled
rejections, six run-time domain refusals and 31 native Metal readbacks in 31
programs on an Apple M1 Max with API and shader validation enabled are
included. The five forms are recorded as decoded, lowered and LLVM
three-way checked (1,814 comparisons across 241 forms), with independent
acceptance still pending (#2185).
- The VOP3P integer family now includes the six dot-product forms
`V_DOT2_I32_I16`, `V_DOT2_U32_U16`, `V_DOT4_I32_I8`, `V_DOT4_U32_U8`,
`V_DOT8_I32_I4` and `V_DOT8_U32_U4` (guide 12.10, printed pages 164-165).
Each form decodes with three VGPR sources and the default element-wise
encoding, lowers through a typed IR operation to integer-only MSL helper
kernels (masked lane extraction, unsigned sign extension, wrapping 32-bit
accumulation), and is evaluated by the production and independent CPU
references with different accumulation structures. A fixture, tracked
IR/MSL goldens, 30 known-answer cases per CPU interpreter and 39 controlled
rejections are included; native Metal readback matched all 30 cases in 30
programs on an Apple M1 Max with API and shader validation enabled. The
six forms are recorded as decoded, lowered and LLVM three-way checked, with
independent acceptance still pending (#2173).
- The first VOP3P batch implements fourteen packed 16-bit integer forms end to
end: `V_PK_ADD_I16`/`U16`, `V_PK_SUB_I16`/`U16`, `V_PK_MIN_I16`/`U16`,
`V_PK_MAX_I16`/`U16`, `V_PK_MUL_LO_U16`, `V_PK_MAD_I16`/`U16`,
`V_PK_LSHLREV_B16`, `V_PK_LSHRREV_B16` and `V_PK_ASHRREV_I16`. The semantic
registry declares the family, the decoder accepts the default element-wise
VOP3P encoding with two VGPR sources (three for the multiply-add forms) and
refuses half swaps, CLAMP, NEG and non-VGPR sources, and the compiler lowers
each form to per-half MSL on explicit `ushort`/`uint` operations. The
production reference and the independent interpreter evaluate the guide
12.10 pseudocode with separate implementations. A fixture, tracked IR and
MSL goldens, 44 known-answer cases per CPU interpreter and 54 checked
rejections are included; native Metal readback matched all 44 cases in 34
fourteen forms are recorded as decoded, lowered and LLVM three-way checked,
with independent acceptance still pending (#2160).
- A research-only RDNA 2 preparation pack for `v_dot2_f32_f16`, `v_cmpx_eq_u32`, `v_fma_f32`, `image_load`, basic DS access, multi-word MUBUF, bounded loops and DPP lane controls: original llvm-mc syntax fixtures, exact arithmetic and lane tables, open semantic questions, and trusted-MSL probes. No decoder, compiler, reference-execution or independent-acceptance support is claimed for these forms (#526, #190, #188, #1898).
- The MSVCP140_2 special-math-function surface (`__std_smf_hypot3` and `__std_smf_hypot3f`) moved into the typed runtime-service catalog as implemented-status entries, the scaled three-argument norm traveling through the typed floating-point ABI exactly as before — the first catalog surface for the msvcp140_2 module.
- An original Wave32 compute shader converts packed RGB565 colors to RGBA8. Both CPU interpreters and a local native Metal readback matched the expected bytes for all 65,536 colors, including dispatches ending in a partial wave. This is a synthetic shader test, not guest texture-format support or independent acceptance (#2146).
- The MSVCP thread surface (`_Thrd_start`/`_Thrd_join`/`_Thrd_detach`/`_Thrd_exit`, the identification queries `_Thrd_equal`/`_Thrd_current`/`_Thrd_id`, and the scheduling cooperation `_Thrd_yield`/`_Thrd_sleep`/`_Thrd_abort`/`_Thrd_hardware_concurrency`) moved into the typed runtime-service catalog, the launch handoff and the cooperative-scheduler integration moving verbatim.
- Public XTRE startup has regression coverage for provisioned DLLs. Original
guests verify export calls, attach and detach ordering, cleanup after a
nested attach refusal, fresh replay and final-reference unload (#2080).
- Implemented the six remaining RDNA 2 SOPC forms (`s_bitcmp0_b32`, `s_bitcmp1_b32`, `s_bitcmp0_b64`, `s_bitcmp1_b64`, `s_cmp_eq_u64`, `s_cmp_lg_u64`) for normal general SGPRs and even SGPR pairs across `xenora-isa`, `xenora-decoder`, `xenora-shader`, `xenora-ref`, the independent validation interpreter, LLVM three-way checks, and native Metal readback (#2112).
- Native ARM64 macOS now has an original bounded cross-queue timeline scheduler
in `xenora-metal`. Independent compute, render and copy/upload queues use one
`MTLSharedEvent` timeline per queue, monotonic dependency values, at most
eight waits per command buffer and at most sixteen incomplete submissions.
Normal retained-reference command buffers preserve resource lifetime, host
waits have explicit retryable timeouts, collected completions expose
correctness-gated host and optional GPU timing hooks, and abandoned work is
retired after terminal GPU status. Native validation tests cover exact
compute-copy-render-compute readback, resource lifetime, failure cases,
concurrent cross-queue stress and bounded retirement; this is a low-level
scheduling primitive, not guest graphics or a benchmark result (#2182).
- `ucrtbase.dll` now generates the CRT heap allocation family from the typed runtime-service catalog: `malloc`, `calloc`, `realloc` and `free`, each resolving through the heap API set and the legacy `msvcrt.dll` spelling. The zero-length clamp, the overflowing-product refusal, the null-address and zero-size `realloc` forms and the ENOMEM reporting through the thread errno are unchanged. `_expand` stays handwritten as a callback task behind the invalid-parameter machine. The thread-isolation unit test now resolves through the full standard registry and confirms the cataloged allocation failure lands in the same TEB-derived errno slot the handwritten accessors read. The compiled allocation and resize IAT guests, the legacy-import guest and the full x15 suite pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the machine and processor query surface from the typed runtime-service catalog: the system-information pair, `GlobalMemoryStatusEx`, the system-time trio, the installation directory pair, both `GetVersionEx` forms, both computer-name forms, the processor-number, processor-count, affinity-mask and processor-feature queries and both logical-processor topology queries. The documented buffer-size, invalid-parameter, invalid-handle and insufficient-buffer failures, the simulated single-processor Windows 10 machine answers and the API-set forwarders are unchanged, and `api-ms-win-core-version-l1-1-0.dll` joins the validated kernel32 API sets. The compiled machine-description, topology, memory-status, processor-feature and calendar guests pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `ucrtbase.dll` now generates the CRT string utility family from the typed runtime-service catalog: `strrchr`, `_strlwr`, `_strupr`, `_strrev`, the C-locale collation `strcoll`, `wcscoll`, `strxfrm`, `wcsxfrm`, the Annex K copies `memcpy_s` and `memmove_s`, the integer formatting family `_itoa`, `_ltoa`, `_i64toa`, `_ultoa`, `_ui64toa`, `_itoa_s`, the copies and concatenations `strcpy`, `strncpy`, `strcat`, `strncat`, the search family `strstr`, `strcspn`, `strspn`, `strpbrk`, the tokenizer `strtok` and the case-folded comparisons `_stricmp`, `_strnicmp` — 27 services with their string, convert, private API-set and legacy `msvcrt.dll` aliases. The `strtok` scan position is the documented CRT-instance-shared state and now lives in the service state rather than a registration closure. A new compiled guest covers the copy and concatenation forms — zero-padding, termination and the destination answer — which no witness previously exercised. The six existing utility guests, the legacy-alias search and tokenizing guest and the wide collation guests all pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `kernel32.dll` now generates the public heap surface from the typed runtime-service catalog: `GetProcessHeap`, the `HeapAlloc`/`HeapReAlloc`/`HeapSize`/`HeapValidate`/`HeapFree` operations, `HeapCreate`/`HeapDestroy` private heaps, the constant `HeapCompact` and the legacy `GlobalAlloc`/`GlobalFree` fixed-block compatibility path. The hidden backing heap of the movable local-memory machinery now lives in the shared services state, so the cataloged public services and the handwritten local services keep refusing each other's handles exactly as before; the documented flag validations and `ERROR_INVALID_HANDLE`/`ERROR_NOT_SUPPORTED`/`ERROR_INVALID_ADDRESS`/`ERROR_NOT_ENOUGH_MEMORY` failures are unchanged, and the two heap API sets join the validated kernel32 forwarders. The seven compiled heap guests and the movable-handle isolation test pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- Added a correctness-gated interleaved private guest-heap churn workload (#2640). Four heaps share a bounded 64-block live set with varied sizes, alignment, zero-initialization, exact ownership/size checks, full payload sentinels and immediate stale-pointer rejection. A separate process-heap control survives private heap destruction. The 256-cycle smoke and opt-in 51,200-cycle ARM64 release stress both passed locally. Idle-host performance timing remains pending; no allocator, low-fragmentation heap or mapped-section behavior changed.
- MOVBE big-endian memory loads and stores are implemented in both x86-64 execution engines at 16, 32 and 64 bits, including CPUID leaf 1 ECX bit 22 reporting, unprefixed 0F38 decoder-map support and native ARM64 byte-reverse lowering in the DBT; hardware comparison remains absent (#2210).
- The compute and graphics MSL emitters now append only the binary16 helper
blocks an operation needs instead of a monolithic preamble: classification
and rounding, arithmetic, packed templates, conversions and integer-to-half
conversions are separate dependency groups, shared ones emitted once. On the
tracked fixtures this cuts the generated MSL by 55% for a conversion-only
shader, 24% for a packed binary16 shader and 2% for the translated f16
graphics pipeline; compiler tests pin the absence of unneeded helpers and
bound the fixture sizes. Local Metal command-line compile medians were
unchanged within noise, so no compile-time speedup is claimed (#2218).
- The translated gfx1030 graphics stages now accept the default-field packed
integer forms (`V_PK_ADD`, `V_PK_SUB`, `V_PK_MIN`, `V_PK_MAX`,
`V_PK_MUL_LO_U16`, the shifts and multiply-adds) and the six integer dot
products. The graphics compiler reuses the compute path's packed expression
builders and dot helper kernels, keeps dword SSA slots with `as_type`, and
still refuses non-default selection/clamp fields at the instruction offset. A
new native render test turns a binary16 0.5 pair plus an integer 1024 pair
into 0x3c00 with `V_PK_ADD_I16` and accumulates a `V_DOT2_I32_I16` of packed
ones, exporting white. Independent acceptance remains pending (#2217).
- The translated gfx1030 graphics stages now accept the VOP1 unary operations
the compute path implements (bitwise complement, bit reverse, bit scans,
binary32 rounding, integer/binary32 and half conversions) and the VOP2
integer/bitwise operations (add/subtract without carry, bitwise, shifts and
24-bit multiplies). The graphics compiler shares the compute expression
builders, keeping one semantic implementation and dword SSA slots with
`as_type` reinterpretation; binary32 arithmetic stays vertex-only and
non-default packed fields still fail at the instruction offset. A new native
render test flips a sign bit with XOR and converts an integer constant to
binary32 in the pixel stage, matching the expected 0/255/64/255 pixels.
Independent acceptance remains pending (#2214).
- The translated gfx1030 vertex and pixel stages now accept the half-precision
conversions `V_CVT_F32_F16`, `V_CVT_F16_F32` and `V_CVT_OFF_F32_I4` and the
default-field packed forms `V_PK_ADD_F16`, `V_PK_MUL_F16`, `V_PK_MIN_F16`,
`V_PK_MAX_F16` and `V_PK_FMA_F16`. They lower through the same integer-only
binary16 helpers as the compute path, with values kept in float-typed SSA
slots and packed dwords reinterpreted with `as_type`; non-default selection,
clamp and negate fields fail at the instruction offset. A new native offscreen
render test drives an f16 color pipeline through both stages and checks the
packed half math against the exact model (77/77/77/255 in a 4x4 target).
Independent acceptance remains pending (#2213).
- The VOP1 binary32/integer conversions now work end to end on Wave32:
`V_CVT_U32_F32` and `V_CVT_I32_F32` truncate toward zero, saturate
out-of-range values and infinity and convert NaN to zero as the guide states,
and `V_CVT_OFF_F32_I4` returns the exact printed 4-bit offset table from
-0.5 to +0.4375. All three lower to integer-only MSL helpers, the production
reference and the independent interpreter keep their own conversion code, and
a new fixture joins the LLVM three-way comparison (1,886 comparisons across
250 forms). The validation suite runs 61 CPU cases per interpreter (sixteen
binary32 pattern sweeps per integer form plus boundaries and the exhaustive
nibble table), 43 controlled rejections, and 61 native Metal readbacks in 61
programs on an Apple M1 Max with API and shader validation. Independent
acceptance remains pending (#2209).
- The four VOP1 half-precision conversions now work end to end on Wave32:
`V_CVT_F32_F16` widens binary16 to binary32 exactly, `V_CVT_F16_F32` rounds
binary32 to binary16 once with round-to-nearest-even and allow-denormals
(creating subnormals and the IEEE overflow to infinity), and
`V_CVT_F16_U16`/`V_CVT_F16_I16` round 16-bit integers through the same kernel.
The batch also adds `V_CVT_U16_F16`/`V_CVT_I16_F16`, which truncate toward
zero and saturate to the 16-bit integer range with FP16 denormals accepted.
All six are integer-only in the compiler and in both CPU references, the
16-bit destination is zero-extended as a documented translator contract, and
NaN inputs are refused at run time. A new fixture joins the LLVM three-way
comparison (1,863 comparisons across 247 forms), exhaustive 16-bit sweeps and
boundary cases run on both CPU interpreters and on native Metal (108 cases in
108 programs on an Apple M1 Max with API and shader validation), and the
status and coverage tables list the new forms. Independent acceptance remains
pending (#2201).
- A freestanding tagged-counter guest fixture now stresses locked CMPXCHG16B through four contending scheduler threads at multiple deterministic quanta, validating exact 128-bit count/tag pairing and final totals. The evidence remains limited to Xenora's one-host-thread interleaving model (#2224).
- RDTSCP now decodes and executes in both CPU engines using the documented deterministic guest time-stamp counter, returning zero for the fixed TSC_AUX contract and reporting its CPUID feature bit; no host timer, frequency, writable MSR or hardware comparison is implied (#2194).
- Added the bounded gfx1030 MUBUF multi-word and buffer-atomic subset: `buffer_load_dwordx2`, `buffer_load_dwordx4`, `buffer_store_dwordx2`, `buffer_store_dwordx4`, `buffer_atomic_add` and `buffer_atomic_cmpswap`. The synthetic output memory is now documented as a zero-initialized dispatch-wide image for these forms, with per-component out-of-range behavior, exact compare-and-swap/wrapping-add semantics, static disjointness proofs for every output write, independent structural write proofs in both CPU references, checked high-register and out-of-range component handling, and a zero-initialized native output path selected through the compiled shader’s explicit output-memory contract. Local verification on Apple M1 Max includes 11 Metal programs with API and shader validation, 52 targeted three-way LLVM instruction comparisons and CPU known answers, including mutation and overlap refusals. Independent acceptance remains pending. The poison-filled legacy fixture path remains available (#2197).
- A bounded gfx1030 Local Data Share subset decodes, interprets and lowers `ds_write_b32`, `ds_write2_b32`, `ds_read_b32`, `ds_read2_b32`, `ds_add_u32`, `ds_add_rtn_u32` and `s_barrier`. Each synthetic Wave32 wave owns a 1024-byte zero-initialized allocation. Translation requires provable alignment, bounds and full EXEC, and allows one outstanding returning DS operation completed by `s_waitcnt lgkmcnt(0)`. Metal uses atomic threadgroup words throughout, avoiding non-atomic memory races, and declares a 512-thread pipeline ceiling for the backed wave partitions. Deterministic fixtures require disjoint ordinary writes and barrier-separated cross-lane dependencies. Equal paired offsets use one access, and both CPU references reject overlapping ordinary writes. The six independent cases, three assembled fixtures and threadgroup-width boundary passed local native tests on Apple M1 Max with Metal API and shader validation, including the effective limit of 512 threads and refusal of 513. Independent acceptance is pending (#2178).
- The MSVCP codecvt locale::id data exports moved into the typed runtime-service catalog as partial-status entries: the four zero-initialized specialization cells, lazily allocated on first binding, with their lazy-slot state moving into the shared services state.
- The MSVCP ios_base sparse-storage surface moved into the typed runtime-service catalog as five partial-status entries: the xalloc index allocation, the iword/pword slot references, the _Findarr node resolution with its bounded chain walk, and the _Index counter data export — the sparse storage state moving into the shared services state.
- The MSVCP istream integer extraction operators moved into the typed runtime-service catalog as nine implemented-status entries — the signed and unsigned forms across the documented widths plus the existing boolean form — with new integration conformance covering whitespace skipping, base detection, the auto-base zero corner, and the saturation-plus-failbit contract on overflow and empty input.
- The MSVCP istream float and pointer extraction operators moved into the typed runtime-service catalog as four implemented-status entries — the float, double and long-double forms plus the void-pointer hexadecimal form — with new integration conformance covering decimal parsing, hexadecimal address reading and the failbit-on-empty contract.
- The MSVCP classic ctype surface moved into the typed runtime-service catalog as three partial-status entries: the _Getctype structure answer with its freshly allocated table and canonical fallback, plus the _Tolower/_Toupper ASCII conversions with the locale-vector rejection quirk — with new integration conformance covering the table classification, conversion semantics and vector rejection.
- The ucrtbase `_get_stream_buffer_pointers` service moved into the typed runtime-service catalog as a partial-status entry with its stdio API-set alias — the documented out-pointer triple for standard streams with the null-file EINVAL answer — with new integration conformance covering the field triple, null out-pointer skipping and the errno rejection.
- Command lists can copy bytes between two buffers with `cmd_copy_buffer_region`.
The copy runs in command order when the list executes, so the draws recorded
around it observe the copied bytes. A copy between non-buffer resources, a
copy within one buffer, a copy into a guest-backed buffer and a copy whose
range leaves a buffer are refused, and a buffer a recording list copies to or
from cannot be destroyed until the list is closed. The command is not exposed
to guests yet. On an Apple M4, draws from copied buffers give the same pixels
on native Metal as on the reference (#2056).
- A command list can now set one scissor rectangle with
`cmd_set_scissor_rect`, which limits every later draw in that list to the
pixels it covers. `left` and `top` are inclusive and `right` and `bottom`
are exclusive, as in D3D12, and the target bounds a rectangle that reaches
past it. A rectangle with `right < left` or `bottom < top` is refused with
`GraphicsError::InvalidScissorRect` and nothing is recorded. The rectangle
is replaced by a later one and stays in force for the draws that follow it,
including across a render-target bind. A list that sets no rectangle is not
clipped, which is a documented deviation from D3D12, where a rectangle is
required. On an Apple M4, native Metal writes the same pixel sets as the
reference for every case (#2050).
- `_set_fmode` now binds from `ucrtbase.dll` and
`api-ms-win-crt-stdio-l1-1-0.dll` and writes the guest `_fmode` cell exposed
by `__p__fmode` for the documented `_O_TEXT`, `_O_BINARY` and `_O_WTEXT`
modes. Other values leave the cell unchanged, set `errno` to `EINVAL` and
return `EINVAL`; the invalid-parameter callback path remains unmodelled.
Local translated-service evidence only; no Windows, Xbox hardware, game
execution or independent-acceptance claim is made (#2041).
- `ucrtbase.dll` now generates the CRT memory operations and the narrow and wide string length and comparison family from the typed runtime-service catalog: `memset`, `memcpy`, `memmove`, `memcmp`, `strlen`, `strnlen`, `strcmp`, `strncmp`, `wcslen`, `wcsnlen`, `wcscmp` and `wcsncmp`, each resolving through the `api-ms-win-crt-string-l1-1-0.dll` API set and the legacy `msvcrt.dll` spelling, with the three memory operations also answering the mingw private API set. The copy operations read the whole source through a bounce buffer before writing, so overlap resolves as `memmove` requires. This completes the migration of the plain `crt::register` surface; the conversion, spawn and spawn-wait registrations are separate functions. The compiled IAT guests exercising both modules — memory fill and overlap, byte-wise and unit-wise comparison, bounded and unbounded lengths — and the legacy-import guest all pass unchanged. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `msvcp140.dll` now generates the mechanical `basic_streambuf` surface from the typed runtime-service catalog: the eight base virtual answers (`_Lock`, `_Unlock`, `overflow`, `pbackfail`, `showmanyc`, `underflow`, `sync`, `imbue`), `setbuf`, both failing `seekoff`/`seekpos` forms, the indirect pointer accessors (`eback` through `epptr`), the range operations (`gbump`/`pbump`, `setg`/`setp`/`setp` three-pointer form, `gndec` through `_Pninc`, `in_avail`/`_Pninc` availability pair), both `_Init` forms including the six-field stack-passed variant, the `getloc` query and the wide compatibility spellings. The virtual-dispatching lifecycle, the vtable-installing constructors and the callback-driven `uflow`/`xsgetn`/`xsputn`/`sputc`/`sbumpc`/`sgetc` remain handwritten pending the catalog callback and dynamic-trampoline surfaces. The compiled stream-buffer accessor and lifecycle guests, the invalid-receiver and invalid-range fault witnesses and the iostream construction guests all pass against the generated registrations. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made.
- `docs/diagnostics/import-audit/frozen-gap-classification.md` classifies the
frozen probe's unresolved imports as already bound, public contracts still
missing, or proprietary and unsupported, so offline registry coverage is not
presented as guest execution or hardware evidence.
- Exact static imports for the five existing bounded Universal CRT string
handlers now resolve through `api-ms-win-crt-string-l1-1-0.dll`, and
`lstrcmpW` also resolves through the obsolete core-string API-set spelling
used by the inspected candidate. This adds aliases only; handler semantics
and evidence scope are unchanged (#2037).
- `msvcp140.dll` now binds the thirteen public Microsoft x64 `basic_ostream` formatted insertion exports as partial-status services. Narrow and wide insertion share flags, precision, width and put-area handling; the wide path reads the two-byte fill and writes UTF-16 units. Sentry, virtual overflow, tied streams, unit buffering and C++ unwinding remain explicitly unsupported. Unit tests and an original compiled guest check the decorated imports, two-byte fill, digits, width reset, short writes and exact UTF-16 output. Local Apple Silicon verification only: no Windows, Xbox, game-execution or independent-acceptance claim is made (#2036).
- Live guest presentation: a **Guest Presentation** window presents the frames an
authored PE guest renders while it runs, instead of a saved transcript. A new
bounded `XPF1` binary transport (`xenora-pe-session --present`, documented in
[`docs/runtime/live-guest-presentation.md`](docs/runtime/live-guest-presentation.md))
streams each genuine RGBA8 frame with its sequence, dimensions, monotonic
presentation time and SHA-256. The Swift host verifies the stream, draws it
through a reusable shared Metal texture, waits for the first genuine frame
rather than substituting one, and forwards keyboard, mouse-button and
controller input one frame at a time so at most one frame is ever in flight.
The window reports guest cadence and frame intervals, pause/resume/stop and
clean shutdown, and the launcher's own diagnostics on failure. Because the
session ABI is request/response, at most 64 inputs and 256×256 pixels, this is
live display of genuine guest frames, not a free-running renderer, and no
commercial game or Xbox compatibility is claimed. Verified locally on Apple
Silicon with the original authored-session fixtures; independent acceptance is
not claimed.
- Circular-import fixture evidence: `fixtures/pe/cycle` links two modules
into a true import cycle and locks the designed honest refusal — the
consumer's `LoadLibrary` returns null (`cycle_runtime_fixture` CLI test);
supporting cycles remains a tracked feature question.
- Reference-counting fixture evidence: `fixtures/pe/refcount` loads one
runtime module twice and proves exact counting guest-side — same handle,
survival past the first free, full unload at zero
(`refcount_runtime_fixture` CLI test).
- Added a manual hosted C runtime integration fixture for R1. The verifier
builds two original guests, checks the sorted report on stdout and through
guest file export, and reports any missing runtime bindings (#2089).
### Added
- The VOP2 binary16 arithmetic forms `V_ADD_F16`, `V_SUB_F16`,
`V_SUBREV_F16`, `V_MUL_F16`, `V_MIN_F16` and `V_MAX_F16` now work end to end
on Wave32: the low binary16 halves of SRC0 and VSRC1 are added, subtracted,
multiplied, minimized or maximized with the exact integer kernels and the
result is zero-extended into VDST. VSRC1 is a VGPR; SRC0 accepts a VGPR,
normal SGPR, vcc_lo or literal and refuses inline constants. Both CPU
references keep independent implementations; the f16 validation suite grows
to 104 CPU cases per interpreter (including 48 VOP2 cases) and 104 native
Metal programs, and the fixture and three-way comparison grow to 1,937
comparisons across 267 forms. Independent acceptance remains pending
(#2226).
- The translated gfx1030 graphics stages now accept the binary16 rounding,
packed saturation, fract and frexp forms and the binary32 fract/frexp forms
through the same integer-only helper blocks as the compute path. A new pixel
fixture and native render test export `frexp_mant(0.3) = 0.6`, the free
exponent of 0.5 (zero), `fract(0.25) = 0.25` and alpha 1.0, matching the
expected 153/0/64/255 pixels; all 19 translated graphics tests pass on the
local Apple M1 Max with API and shader validation. Independent acceptance
remains pending (#2225).
- The VOP1 binary32 forms `V_FRACT_F32`, `V_FREXP_MANT_F32` and
`V_FREXP_EXP_I32_F32` now work end to end on Wave32. The fractional part is
the exact residual `x - floor(x)` rounded once (negative magnitudes at or
below 2^-25 give 1.0), the mantissa normalizes the significand into
[0.5, 1) and passes zeros/infinities through, and the free exponent is the
normalized exponent as a two's-complement 32-bit value with zero for
zero/infinity/NaN. Both CPU references keep independent implementations; the
fixture and three-way comparison grow to 1,920 comparisons across 261 forms,
and the new suite runs 72 CPU cases per interpreter with 47 controlled
rejections and 72 native Metal programs on an Apple M1 Max. Independent
acceptance remains pending (#2223).
- The VOP1 binary16 forms `V_FRACT_F16`, `V_FREXP_MANT_F16` and
`V_FREXP_EXP_I16_F16` now work end to end on Wave32. The fractional part is
the exact residual `x - floor(x)` rounded once (the DX rule, so negative
inputs give a positive fraction), the mantissa normalizes the significand
into [0.5, 1) and passes zeros/infinities through, and the free exponent is
the normalized exponent as low 16 two's-complement bits with zero for
zero/infinity/NaN. Both CPU references keep independent implementations; the
fixture and three-way comparison grow to 1,910 comparisons across 258 forms,
and the rounding suite reaches 173 CPU cases per interpreter with 103
controlled rejections and 173 native Metal programs on an Apple M1 Max.
Independent acceptance remains pending (#2221).
- The VOP1 binary16 rounding forms `V_TRUNC_F16`, `V_FLOOR_F16`, `V_CEIL_F16`
and `V_RNDNE_F16` and the packed saturation `V_SAT_PK_U8_I16` now work end to
end on Wave32. The rounding forms evaluate the printed pseudocode with exact
integer arithmetic (integral results, sign-preserving zero, guard/half/sticky
ties) and the packed form clamps two signed 16-bit lanes to [-128, 127]. Both
CPU references keep independent implementations, a new fixture joins the
LLVM three-way comparison (1,904 comparisons across 255 forms), and the
validation suite runs 101 CPU cases per interpreter (exhaustive binary16
sweeps, boundaries, packed words) with 67 controlled rejections and 101
native Metal readbacks in 101 programs on an Apple M1 Max. Independent
acceptance remains pending (#2219).
- Nested-reentrancy fixture evidence: `fixtures/pe/nestedunload` locks the
nested `FreeLibrary`-inside-detach ordering guest-side through armed
probes, and `fixtures/pe/failattach` locks the honest null return and
non-registration of a nested attach refusal
(`nested_reentrancy_fixture` CLI tests).
### Added
- The MSVCP ios format-state surface moved into the typed runtime-service catalog as seven partial-status entries — flags/setf/unsetf mask arithmetic, precision/width replacements and the basic_ios fill character — with new direct-invocation integration conformance covering the documented previous-value contract and the explicit unmapped-object faults.
- The MSVCP ios_base::Init machinery moved into the typed runtime-service catalog as partial-status entries: the initialization count cell and its function form, the cout/clog standard stream data exports, and the constructor/destructor pairs including the final-destruction flush of clog before cout — with the count and stream-slot state moving into the shared services state.
- The MSVCP ostream insertion surface (the thirteen `operator<<` overloads for integral, floating-point and pointer values on narrow streams) moved into the typed runtime-service catalog as partial-status entries, the flags-and-precision formatting machinery moving verbatim.
- The loadlib fixture now also proves guest services stay callable from inside the detach sequence: the provider's TLS detach callback and `DllMain` detach each issue a live `WriteConsoleA`/`GetStdHandle` call and fold the outcome into the armed ordering proof, so the exact exit-70 control covers service availability during unload (#2011).
- Nested-load fixture: a runtime-loaded outer DLL whose `DllMain` itself calls `LoadLibrary` for the inner one, with guest-verified proof that the inner initialization completes before the outer attach resumes — the positive control exits exactly 66 and unprovisioned shapes fail at distinct honest steps (#2014).
- AVX2 VEX.256 integer logic, all twelve `VPMOVSX`/`VPMOVZX` widening variants, `VPALIGNR`, `VPBLENDW` and `VMPSADBW` now execute in the interpreter and through the ARM64 DBT shared instruction semantics. Widening forms consume consecutive lanes from an XMM register or the exact 4-, 8- or 16-byte memory operand. The immediate-controlled operations use 32-byte memory operands, with separate `VMPSADBW` controls per 128-bit half. Their original V1 acceptance cases run on all four input sets against the unchanged oracle and fixtures (#1602). Local Apple Silicon verification passed the six V1 CPU tests and 68 focused CPU tests, including 80 added LLVM-assembled register and memory forms with exact boundary-fault checks. Independent acceptance is pending.
- The four SSE prefetch hints (`PREFETCHNTA`, `PREFETCHT0`, `PREFETCHT1` and `PREFETCHT2`) now execute in the interpreter and ARM64 dynamic binary translator as explicit no-fault no-ops. Their ModRM address is decoded but never read. Register operands and LOCK are #UD as documented; Xenora's decoder also continues to refuse operand-size and repeat prefixes on forms that do not declare them. LLVM-assembled fixtures cover every digit, and deterministic dual-engine controls check an unmapped address, complete state preservation and the refused encodings. The SSE CPUID witness is now an unsupported MMX-state conversion rather than a prefetch hint, and the feature bit remains clear. Local Apple Silicon verification only; no hardware, Windows, Xbox, game-execution or independent-acceptance claim is made.
- Circular import graphs are supported by runtime `LoadLibrary`, the preparation seam and static package startup. Import binding completes for the entire batch before initializers run. Circular component members initialize in deterministic package-index order. Original guest fixtures check cross-cycle calls in both directions during attach, static startup and removal of both members after a runtime root unload. The V2 import-cycle case now expects exit 41 (#2058). Non-root members of cyclic batches refuse individual reference changes while the root owns the batch. Detach calls across a cycle remain outside the verified scope.
### Fixed
- Shader planning now marks forms with no single eligible operand layout as needing operand rules, making that unsupported planning case explicit (#2245).
- The DBT now treats `PUSHFQ` and `POPFQ` as stack instructions that can leave a block, like `PUSH` and `POP`. A `POPFQ` that faulted on an unmapped stack had let dead-flag elimination drop the previous instruction's flags, so the DBT and the interpreter stopped with different RFLAGS. The x86 integer fixture now executes both forms against an independent reference, which restores `every_declared_form_is_executed_by_a_fixture` on `main` (#2049).
- The VOP3 registry dispatch test now checks binary16 arithmetic, ternary,
exponent scaling and packing alongside the forms it already covers.
Each declared form is checked for a unique selector (#2100).
- The `lstrcmpW` catalog entry again carries its documented `api-ms-win-core-string-obsolete-l1-1-0.dll` alias beside the supported string set, repairing the resolution the migration to the catalog dropped — the witness `candidate_string_api_set_imports_resolve_to_existing_handlers` of `runtime_services` passes again, and the suite is fully green at 172 tests. The obsolete string API set joins the validated list as the documented carrier of the legacy lstr family.
- The QA runtime-inventory parser now accepts typed-catalog data-export records and preserves their provider separately from function handlers, restoring the QA/release tooling tests on current `main` (#2148).
- Strict Clippy passes the stream-buffer pointer service documentation after its catalog migration.
- The hosted C++, graphics and textured fixture builders now select PE mode
when the native linker finder falls back to rust-lld (#2092).
- The shared hosted Metal adapter used by the CLI and XTRE now installs the translated textured renderer alongside the flat renderer, sampling RGBA8 and BC1 guest textures with their bound point-sampler address modes. Acceptance's `frame/textured` and `frame/textured-indexed32` cases on the hosted adapter are no longer expected to fail with `NativeMetalRequired` (#1613).
- The static loadlib fixture test now expects the `XenoraLibArm` export that the committed provider and negative-control DLLs already carry. The earlier expectation predated the detach-sequence fixture change and made `cargo test --locked --workspace` fail on current `main`; no runtime behavior, tolerance or gate changed.
- Strict workspace Clippy is unblocked on current `main`: now-unused module-name constants in the synchronization, condition-variable and thread-exit notification services and the MSVCP insertion/`ios_base::Init` symbol-name tables were removed, fiber-slot allocation no longer borrows an already-borrowed index, and the two typed date/time catalog entry points document and narrowly allow their eight-argument Win64 signature. The runtime inventory was regenerated after the merged condition-variable catalog change. No test, tolerance, gate or runtime behavior changes.
- The guest-memory resolver now derives the permission kind from the last word of the required-access string: descriptive spellings like "condition write" check write permission instead of falling through to the execute check, repairing the MSVCP condition-variable operations that faulted with spurious permission violations on non-executable heap memory.
- Runtime module service binding now mirrors the startup path: resident dependencies are excluded by canonical name rather than closure position, forwarded and unnormalized service imports resolve through the terminal forwarder target and the graph-normalized spelling, and structurally unbindable import slots refuse the load before mutation instead of being written last-write-wins (#1957).
- Runtime-load initialization planning now runs inside the rollback closure so planner errors restore the memory snapshot, and trampoline exposure is documented as deliberately non-transactional because nothing in rolled-back memory references it (#1967).
- Runtime module catalog registrations are validated for the whole batch, including collisions between batch members, before the memory transaction, so a registration failure can no longer strand prepared memory or a partially published catalog (#1963).
- A runtime-loaded batch whose `DllMain` answers FALSE no longer leaks or resurrects: the failed attach unwinds completely. Modules whose own attach already completed receive their detach sequences in reverse initialization order — Windows delivers `DLL_PROCESS_DETACH` for a failure-to-load unload — then every batch module leaves the dynamic catalog, its reference-count traces drop and its image memory and function table release exactly as the `FreeLibrary` unload path does, so a later load of the same name maps and initializes a fresh copy instead of returning the failed handle without initialization (#1961).
- Static TLS of runtime-loaded modules is now replicated process-wide for workers created after the load: templates join the shared replication list at publication time and leave it when the module unloads or its attach fails, so new threads never write into released image memory; threads already running at load time keep their existing TLS arrays as a documented deviation (#1970).
- Microsoft x64 mutex services now check every guest field offset, validate the complete 80-byte object before reading or writing it, and reject recursion-count overflow or an unowned zero-count unlock instead of wrapping. `_Mtx_getconcrtcs` validates its object before returning the critical-section address, Microsoft condition-variable calls validate the complete object and check both condition and mutex offsets before use, thread-exit notifications check both guest offsets before use, and `XMemGetWorkingSetStatistics` validates the caller-supplied span before zeroing it. Deterministic robustness cases and unit controls cover all-ones and partially backed pointers; the complete `runtime_robustness` suite, strict Clippy and the audited runtime inventory passed locally. No Windows, Xbox hardware, game execution or independent-acceptance claim is made (#1932).
- Count-bounded UCRT `strncpy_s` and `wcsncpy` copies now read no farther than their requested source range, so valid guest strings ending at a page boundary do not fault while preserving terminator and UTF-16 padding behavior.
- Microsoft x64 formatted integer extraction now accepts a single zero when the stream selects its base automatically, rather than incorrectly setting `failbit`.
- Narrow Microsoft x64 formatted ostream insertion exports now report their actual partial status: direct put-area formatting is available, while sentry, virtual-overflow, tied-stream and unit-buffer synchronization semantics remain unsupported.
### Added
- `msvcp140.dll` binds the `basic_ios`, `basic_ios` and `ios_base` virtual-table data imports (`??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@` and its wide and `ios_base` forms). These were the first unresolved symbols named by the session compatibility startup diagnostics. Each import resolves to a synthesized guest table with a zero type-information word and a deleting-destructor slot that stops explicitly rather than completing an unimplemented destruction. Unit tests verify the table layout and that binding writes a valid data address through the exact import that previously refused the image; the `probe-20261130-161733` artifacts were left unchanged. Other unresolved imports can still refuse a candidate image, and no Windows, Xbox, game-execution or independent-acceptance claim is made.
- The import registry records structured diagnostics for unresolved imports and for invoked explicit stubs. A diagnostic carries the exact requested module, symbol and name/ordinal kind, the owning image when known and the IAT RVA when observed through a PE table; a shareable log handle lets a caller inspect them after the registry is moved into startup. Normal unresolved-import rejection, memory validation, Win64 ABI checks and transactional binding are unchanged, and no return value is synthesized for an unsupported contract. `ModuleBindingPlan::missing_imports` exposes the same structured view for package images with the consuming module as owning image, separately from implemented-service coverage. Original compiled PE and DLL guests verify exact identities, ordinal/name distinction, owning image, explicit stub refusal and unchanged binding; local Apple Silicon verification only, with no Windows, Xbox, game-execution or independent-acceptance claim.
- The MSVCP thread-exit notification surface (`_Cnd_register_at_thread_exit`, `_Cnd_unregister_at_thread_exit` and `_Cnd_do_broadcast_at_thread_exit`) moved into the typed runtime-service catalog as implemented-status entries, the registration bookkeeping and the exit drain moving verbatim.
- The MSVCP condition-variable surface (`_Cnd_init` and its in-situ forms, `_Cnd_destroy`, the wait pair and the wake operations) moved into the typed runtime-service catalog as implemented-status entries, the cooperative parking and the deadline conversion moving verbatim.
- The MSVCP mutex surface (`_Mtx_init` and its in-situ forms, `_Mtx_destroy`, the admission trio and the inspection accessors) moved into the typed runtime-service catalog as implemented-status entries, the SRW-backed admission and recursion accounting moving verbatim.
- The MSVCP locking surface moved into the typed runtime-service catalog: the `_Mtx` critical-section quartet, the `_Lockit` guard family and legacy statics, the shared `_lock_locales` pair under every import spelling, and the `_Locinfo` lifetime — including mangled C++ export names. The hidden slot-array state moved into the shared services state, and the locale-lock api-set registration became an honest alias of the ucrtbase canonical.
- The MSVCP time surface (`_Xtime_get_ticks`, the `_Xtime_diff_to_millis` pair, `xtime_get` and the `_Query_perf_counter`/`_Query_perf_frequency` performance counters) moved into the typed runtime-service catalog as implemented-status entries, the guest-clock arithmetic moving verbatim.
- The eight thread-local and fiber-local storage services (the TLS core five including `TlsGetValue2`, plus `FlsAlloc`, `FlsGetValue` and `FlsSetValue`) moved from hand-written registration into the typed runtime-service catalog as canonical kernel32 entries with generated processthreads and fibers api-set aliases; `FlsFree` stays hand-written because invoking its guest cleanup callback is beyond the catalog’s current typed dispatch.
- `FreeLibrary` now runs a dynamically loaded module's detach notifications before teardown: TLS callbacks then `DllMain`, each with the detach reason and ignored return values as on Windows, with catalog removal and memory release only after the sequence completes; the original loadlib fixtures prove the ordering from the guest side through an armed probe that survives the image release, and the positive control still exits exactly 70 (#1978).
- The gfx1030 decoder now records Data Parallel Primitive (DPP8 and DPP16) source controls on declared VOP1 and VOP2 forms, including register-only shifts and logical operations. Reserved control values, the unassigned DPP16 bit, unsupported source modifiers and VOPC DPP selectors are explicitly refused. LLVM-assembled decoder witnesses check the fields against the public AMD RDNA 2 ISA guide and LLVM modifier documentation, including row-share and row-xmask. Disassembly prints the LLVM-compatible `_dpp` mnemonic and trailing modifiers. DPP execution remains unsupported by the CPU reference and Metal compiler (#1983).
- The five blocking-wait services (`WaitForSingleObject` and its Ex form, `WaitForMultipleObjects` and its Ex form, `SignalObjectAndWait`) moved into the typed runtime-service catalog as canonical kernel32 entries with generated synch api-set aliases, the park-and-resume machinery moving verbatim; the typed service context now carries the shared state Arc so services reaching the child-process machinery no longer need handwritten registration for that reason alone.
- The eight critical-section services (the three initialize forms, enter, try-enter, leave, delete and the spin-count setter) moved from hand-written registration into the typed runtime-service catalog as canonical kernel32 entries with generated synch api-set aliases.
- The seven slim reader/writer lock services (`InitializeSRWLock`, the exclusive and shared acquire, try-acquire and release triples) moved from hand-written registration into the typed runtime-service catalog as canonical kernel32 entries with generated synch api-set aliases, the blocking acquisition propagating through the typed adapter exactly as it did through the closures.
- `WerRegisterFile` moved from a duplicated hand-written registration into the typed runtime-service catalog as the first catalog entry with honest `stub` status: a canonical kernel32 service with a generated windows-error-reporting api-set alias, documenting its bounded fail-safe-success contract instead of registering the same no-op closure twice.
- The four search-and-sort services (`qsort`, `qsort_s`, `bsearch`, `bsearch_s`) moved into the typed runtime-service catalog as the first CRT callback-task consumers, their comparators entering through generated dispatch exactly as the handwritten tasks entered them; the catalog also relaxed its callback validation to admit void results, which the task machinery answers harmlessly.
- The typed runtime-service catalog learned callback tasks: a `callback` entry generates the `register_callback_task` registration, with parameters extracted from the argument positions and the handler receiving the state, memory, TEB and scratch pieces the task machinery works with. `FlsFree` is the first consumer, its per-thread cleanup callbacks now entered through generated dispatch exactly as the handwritten task entered them.
- The kernel32 date and time picture services `GetDateFormatEx` and `GetTimeFormatEx` moved from hand-written registration on the datetime api-set into the typed runtime-service catalog as canonical kernel32 entries with generated aliases, clearing the first two structural-consistency findings the inventory detector reports.
- The locale and geo probes `LocaleNameToLCID` and `GetUserDefaultGeoName` moved from hand-written registration on the localization api-sets into the typed runtime-service catalog as canonical kernel32 entries with generated aliases; the localization l1-2-3 api-set joins the kernel32 alias surface. The existing zero-count geo size-query and last-error limitations remain.
- The runtime inventory now detects canonical registrations on API-set modules as structural-consistency findings: API sets are forwarders, so a service registered canonically on one is a migration candidate for the canonical host plus a generated alias. The first report lists the eighteen live candidates.
- `FreeLibrary` unloads dynamically loaded modules whose count reaches zero: exactly the root handle the guest received is unpinned at load time, and its last release removes the module from the kernel32 dynamic catalog, releases the image memory regions together with the retained reservation span and the image's function table, and leaves the name free for a fresh load that initializes a fresh copy. The runtime-load-library boundary consumer verifies the full cycle — double load, first release still loaded, second release invisible, fresh reload re-running attach — through the real guest. Dependency modules of a multi-module batch keep their process-resident pin because inter-module reference tracking is not yet implemented; detach notifications (`DllMain(DLL_PROCESS_DETACH)` and TLS callbacks) remain a documented follow-up (#1946).
- `kernel32.dll!lstrcmpW` and the public core-string API-set spelling compare bounded UTF-16 strings in code-unit order, with the en-US collation simplification documented explicitly. The datetime API set now binds `GetDateFormatEx` and `GetTimeFormatEx` with real bounded formatting: the documented numeric pictures, flags, quoted literals, backslash escapes and doubled quotes are rendered from the caller's `SYSTEMTIME`, while month and weekday names, unsupported locales, alternate calendars, invalid dates and unsupported fields fail with `ERROR_INVALID_PARAMETER`; sizing calls and short buffers follow the documented return and `ERROR_INSUFFICIENT_BUFFER` behavior. Original translated-guest tests cover exact strings, capacities, flags, quote escapes and refusals. Local Apple Silicon verification only; no Windows, Xbox, game-execution or independent-acceptance claim is made (#459, #1800).
- The kernel32 synchronization services `WaitOnAddress`, `WakeByAddressSingle` and `WakeByAddressAll` moved from hand-written registration on the synch api-set into the typed runtime-service catalog as canonical kernel32 entries with generated api-set aliases, extending the generated dispatch coverage without behavior change. Regenerating the runtime inventory also corrected drift from merged msvcp140 work.
- The CRT `nexttowardf` moved from a hand-written registration directly on the math api-set into the typed runtime-service catalog as a canonical ucrtbase entry with a generated alias, matching every other math primitive and proving the float-typed migration path.
- The CRT spawn services `_spawnve` and `_wspawnve` moved from hand-written multi-module registration into the typed runtime-service catalog as canonical ucrtbase entries with generated msvcrt and process api-set aliases; the migration relaxed three state helpers from unnecessary `Arc` receivers to plain references, and `api-ms-win-crt-process-l1-1-0.dll` joined the documented ucrtbase api-set list.
- An original Microsoft x64 package verifies function-local static
initialization under the guest scheduler. One worker waits while the
initializer throws, then retries with isolated EXE and DLL thread-local
storage. The compiler-generated failure cleanup and normal CRT exit
leave an exact journal with one successful construction and one
destructor. The guard helpers are linked into the fixture (#1839).
- `scripts/audit/import_module_rollup.py` regroups a reprobe JSON report by DLL instead of startup cluster, validating count agreement and label shape while explicitly refusing to infer ownership, semantics or compatibility from a module name. A synthetic fixture tests case-insensitive grouping and drift, malformed-label and duplicate-label rejection; `docs/diagnostics/import-audit/module-rollup.md` documents the command and evidence boundary (#1916).
- `scripts/audit/import_reprobe.py` reports current binding statuses for a frozen wanted-import CSV from a saved live registry snapshot, grouped by the static audit's startup clusters, in JSON or Markdown. It reuses the runtime inventory parsers, rejects malformed or conflicting inputs, and never executes a guest or reads the candidate. Tests build synthetic snapshots for exact aliases, cluster grouping and failure cases; the tool is documented under `docs/diagnostics/import-audit/`. This is offline registry state, not a behavior, hardware or game-compatibility claim (#1907).
- The static import-audit artifacts now have a public interpretation layer: a README that fixes their evidence boundary, a non-runtime gap triage that separates re-probe candidates from research-only console middleware, and an offline validator that checks agreement between the per-import table, the missing-import list, the cluster matrix, the summary report and the decoder-coverage blocker. A committed fixture keeps the validator testable without the ignored candidate data. This change adds documentation and tooling only; it does not execute the candidate, bind an import or claim current runtime coverage (#1905).
- `scripts/audit/cpu_coverage_audit.py` reproduces the frozen PE-byte coverage summary from `cpu_coverage.csv`: it validates the CSV, groups unsupported slots by the probe's own mnemonic label, preserves the report's traversal-order first blocker, and optionally checks the static JSON summary. A synthetic fixture tests derived counts, grouping, first-blocker drift and malformed inputs; `docs/diagnostics/import-audit/cpu-coverage.md` explains the hand-off and evidence boundary. The tool does not decode new bytes, run a guest or change decoder code, and its static observations are not hardware, Windows, Xbox or game-compatibility evidence (#1912).
- `msvcp140.dll` binds all 33 released Microsoft x64 `_Yarn` exports for the `char`, `wchar_t` and `unsigned short` specializations, resolving the startup import `??4?$_Yarn@D@std@@QEAAAEAV01@PEBD@Z` (#1460). The two-field object is the public Microsoft STL definition: `_Myptr` at offset zero owns a `malloc`-sized copy and `_Nul` at offset eight is the embedded terminator. Default construction nulls the pointer and clears the terminator; `empty`/`_Empty` test the pointer, including the non-empty one-unit empty string; `c_str`/`_C_str` return the embedded terminator while empty. Pointer and copy assignment allocate through the guest process heap, free the replaced block before installing a distinct copy, and make self-assignment a no-op; `_Tidy` and destruction leave the object empty. A string longer than one million units, a null object and an unowned pointer stop explicitly instead of becoming silent no-ops. Original compiled ARM64-built x64 guests exercise every decorated export, and guest-level tests verify exact bytes, two-byte wide units, null assignment, destructor release, rejected double release, same-size reassignment without heap growth, and invalid-object and unowned-pointer controls. Local Apple Silicon verification only; no Microsoft binary, Windows, Xbox, game-execution or independent-acceptance claim is made.
- `LoadLibraryA`/`LoadLibraryW` load modules from the closed-world provisioned store at runtime: the transitive in-store dependency closure is mapped, relocated, exception-registered, IAT-bound and TLS-prepared as one memory transaction inside the running guest, then each image registers in the kernel32 dynamic-module catalog and its TLS callbacks and `DllMain(DLL_PROCESS_ATTACH)` execute in dependency order as a bounded callback-task sequence on the calling thread. Service imports of dynamically loaded modules resolve through a snapshot of the registry's resolution keys and bind through the shared dynamic-trampoline table; explicit stubs and service data imports are refused before mutation, and any preparation failure restores the whole guest-memory snapshot. A zero `DllMain` result fails the load with `ERROR_DLL_INIT_FAILED` while the images stay process-resident, the documented deviation from Windows' failed-attach unwind. Already-loaded names add a reference and answer the same handle; `GetProcAddress` answers direct guest addresses for dynamic-module exports. The original `fixtures/pe/loadlib` consumer exits with status 70 only when the provider's TLS callback ran before its `DllMain`, the indirect export call triples its argument and the initialization markers are exact; the missing-export and attach-refusal controls fail at their distinct steps, and the runtime-load-library boundary fixture verifies service-import resolution inside a runtime-loaded module end to end. Delay-load imports, datafile loads, loader-lock reentrancy, detach notifications and unloading remain unsupported (#923).
- D3D12 samplers accept the WRAP (1) and MIRROR (2) address modes beside CLAMP (3). `create_sampler` refuses the modes it does not implement, and the software reference samples with the mode the descriptor names instead of always clamping: the address mode is applied to the integer texel index `floor(coord × size)`, so wrap repeats the index with the period of the texture, mirror reflects it with the period of twice the texture size, and clamp stays `clamp(index, 0, size − 1)`. The native Metal sampler maps wrap to `Repeat` and mirror to `MirrorRepeat`; the translated image-sample path still accepts clamp addressing only. On an Apple M4, native Metal point-samples the same texel sequences as the reference for every mode on both axes (#1915).
- D3D12 samplers accept the `MIRROR_ONCE` (5) address mode beside `WRAP` (1), `MIRROR` (2) and `CLAMP` (3), and `create_sampler` refuses only the remaining modes (0, `BORDER` (4) and values outside the enumeration). The software reference mirrors the texture coordinate once about zero and then clamps it, so the texel index is `floor(|coord| × size)` clamped to `0 … size − 1`. The native Metal sampler maps the mode to `MirrorClampToEdge`, and the translated image-sample path still accepts clamp addressing only. On an Apple M4, native Metal point-samples the same texel sequence as the reference on both axes (#2043).
- `msvcp140_2.dll` binds the released Microsoft x64 `__std_smf_hypot3` and `__std_smf_hypot3f` three-argument norm through the typed floating-point ABI: arguments arrive in XMM0 through XMM2 and the result leaves in XMM0. The scaled evaluation divides by the maximum magnitude, so inputs near the double maximum stay finite instead of overflowing in the intermediate sum of squares and inputs near the minimum normal keep their precision instead of underflowing to zero; an infinity overrides even a NaN input as ISO C Annex F requires, and NaN inputs propagate quietened. The single-precision export evaluates in double precision. An original compiled C++ witness verifies exact Pythagorean triples in both precisions, signed zero, the infinity and NaN rules, and the extreme finite inputs, with last-place rounding following the host square root as documented in the inventory (#1848).
- `msvcp140_2.dll` provides bounded single- and double-precision Hermite,
Laguerre, associated Laguerre, Legendre and associated Legendre imports.
The typed Win64 calls accept degrees and orders through 64 with family
limits on finite real arguments. An original compiled guest covers all ten
exports, quiet NaN payloads, signed zeros for associated Legendre and
explicit refusals outside the supported range. The same witness runs from
a dynamically loaded DLL across two attach and detach cycles (#1406).
- `scripts/fuzz.sh pe_startup` starts arbitrary bytes as an executable through the same loader path as `xenora run`: relocation, import binding against the standard services, exception tables, TLS and a short entry run. Any error or guest exit is accepted; a host panic, abort, timeout or runaway allocation is a finding. `scripts/fuzz.sh` now also runs `pe_parse`, and seeds both PE targets from `fixtures/pe/*.exe` with a 16 KiB input limit. `scripts/fuzz.sh pe_package` does the same for an executable followed by its DLLs (module graph, exports and forwarders, `DllMain`), seeded with the in-repo packages. Without seeds, `pe_parse` never got past the `MZ` check. Local 600 s campaigns found no crash (#1863).
- `ReadFile` serves the standard input handle: a program reading its redirected input with `ReadFile(GetStdHandle(STD_INPUT_HANDLE), ...)` receives the captured standard-input bytes in order — the same device the CRT streams and `ReadConsoleA` already name — with end of file reported as a zero transfer once the finite input is consumed, exactly as on Windows. Synthetic guest calls verify ordered reads with text-mode line endings, the end-of-file transfer and the invalid count-pointer control (#1626).
- The CPU test guide maps instruction forms and PE loading stages to their original regression fixtures, identifies the interpreter and DBT paths checked, and records the ARM64 results at the audited revision (#158).
- `msvcp140.dll` binds the Microsoft x64 narrow stream formatting controls of the pinned public STL `xiosbase`: `ios_base::flags` replaces under the 16-bit format mask, both `setf` overloads merge — the masked form under its mask argument as well — `unsetf` clears, and `precision` with `width` replace the signed stream sizes, each answering the prior value exactly as the public member functions document; narrow `basic_ios::fill` replaces the one-byte fill member, non-ASCII bytes included. The unit-buffered output epilogue is no longer a boundary for `basic_ostream::write`: after the sentry teardown unlocks the buffer, a good unit-buffered stream locks, syncs through the buffer's virtual table and unlocks again, merging `badbit` when sync reports failure. An original compiled guest verifies prior-value answers, mask truncation, negative stream sizes, independent objects, the unitbuf flush integration and an invalid-receiver fault control (#1508).
- The standalone Microsoft x64 `basic_ostream` lifecycle is generalized across the documented wide specialization instead of handwriting a parallel implementation: `msvcp140.dll` now also binds the public `basic_ostream` constructor, virtual destructor, virtual-base destructor, deleting destructor and vbtable data export through the shared object-layout and locale lifecycle primitives, with the two-byte wide fill member written exactly as the narrow lifecycle writes its byte. Original compiled guests cover ordinary construction, null-buffer badbit construction, complete and deleting destruction, heap storage release and refusal paths (#1825).
- An optional native ARM64 QEMU cross-check runs five original AMD64 add-with-carry cases in QEMU TCG, the interpreter and the dynamic binary translator. It checks registers, defined flags and guarded memory against AMD manual expectations and reports software-engine disagreements separately (#983).
- `scripts/fuzz.sh cpu_engines` runs arbitrary x86-64 bytes on the interpreter and the ARM64 DBT from the same guest state: whole, split at a fuzzed budget, cold and warm. It stops at the first difference in exit, retired count, registers or guest memory. The input picks each general register from data-page pointers and boundary values, and can map the code page writable to exercise self-modifying code. Raw `SYSCALL`, which the DBT refuses by design, is checked against that contract. Local runs found two bugs: same-block self-modifying code (#1827) and a host panic in the VEX masked moves near the top of memory (#1845). Agreement between the engines is not agreement with x86 hardware (#1828).
- An original hosted C report verifies UCRT decimal and hexadecimal conversion, binary scaling, and exact output through guest file streams. It checks malformed input, conversion and scaling overflow, and a successful fresh replay at two optimization levels (#1819).
- The V1 `pushfq` case is promoted in place now that `PUSHFQ` and `POPFQ` execute, keeping the original oracle and running it on all four input sets (#1603).
- `PUSHFQ` (`9c`) and `POPFQ` (`9d`) are decoded and executed in both the interpreter and the ARM64 DBT (#1603). The pushed word has the architecturally fixed bit 1 set, the six modelled status flags and DF in their defined positions, and zero for unmodelled system bits. `POPFQ` restores only the modelled flags and DF and ignores reserved or system bits. Intel defines `66 9C`/`66 9D` as 16-bit operand-size forms; this bounded implementation declares only the 64-bit forms and refuses that prefix explicitly instead of executing it as an unimplemented form. Unmapped stack accesses fault without changing state, and the DBT runs both instructions through the shared semantics with explicit fallback counters. Known-answer and dual-engine tests cover status round trips, reserved-bit reads, unmodelled-bit loads, operand-size refusals, memory faults and both linked and unlinked DBT routes. No Xbox hardware result, game execution or independent acceptance is claimed.
- `scripts/controller-probe` records what macOS GameController reports for one physical controller, for checking Campaign F controller profiles (#942). Its virtual-pad self-test passes; no physical controller has been tested.
- The ARM64 fixture-verification CI job now checks the generated x86 integer, vector, floating-point, AVX, AVX2, FMA and F16C fixture text against the existing public LLVM assembler output, closing the freshness gap outside the local x86 generator tests (#1814).
- `msvcp140.dll` supports the Microsoft x64 narrow `basic_streambuf` lifetime and buffer ranges: construction writes the measured 104-byte base object and default empty ranges through the six self-referential indirect range pointers, destruction releases the owned classic `locale` wrapper through the reference protocol, and the range accessors, setters, bump and availability helpers preserve caller-owned byte storage while updating only the documented cursors and counts. Base `uflow`, `xsgetn` and `xsputn` redispatch through the guest virtual table, and the remaining base virtuals answer the public default contract from a synthesized 15-slot table. Copying or swapping stream buffers, full public facade behavior, named locales and facet use remain outside this slice. An original freestanding compiled guest verifies compiler-generated base construction and deletion, empty and populated ranges, precise cursor movement, extraction and insertion across buffer boundaries, default virtual responses and the locale reference release; invalid-object and invalid-range control guests fault separately (#1367).
- `ucrtbase.dll` and the CRT string API set bind `wcscoll` and `wcsxfrm` for the documented bounded C-locale case: comparison uses unsigned 16-bit code-unit order, transformation is the identity copy, answers the untruncated length without the terminator and never writes outside the supplied code-unit count. Original freestanding guests compiled at -O1 and -O2 verify comparison signs and equality, sizing without output, exact terminator capacity and short-output guards through the exact API-set imports, with adjacent sign and guard controls; named locales remain unsupported (#1502).
- A V1 instruction form is now promoted by changing its table entry, which keeps the case running and widens it from one input set to all four. The acceptance guide states when a fix's author may remove a blocker marker. Removing a form fails the tests.
- The x86 instruction registry now carries generated lane-wise packed integer execution rules for 44 operations. The interpreter and ARM64 DBT consume one table for lane arithmetic, bitwise logic, comparisons, min/max, averaging and low multiplication, replacing duplicate handwritten registration while leaving complex operations handwritten until their rule families exist. CPU coverage reports consume the rows as authoritative interpreter and NEON-lowering evidence (#1786).
- V8 adds a release-only, correctness-gated performance harness for CPU engines, translation and dispatch, startup, service calls, persistent sessions and Metal submission and readback, with per-group process isolation. Local Apple M4 measurements only; they found that a reused DBT engine runs call-heavy code slower than a new one (#1666). The persistent translation cache stores no block for any V1 workload, so no warm-cache figure is reported (#1779).
- Add an isolated in-process translation cache with checked source capture, epoch-guarded publication, concurrent read-only execution leases and exclusive code-range retirement. Synthetic ARM64 JIT tests cover simultaneous leases, stale candidates, mapping-boundary changes and explicit failures. The production DBT and direct links are not yet integrated (#2382).
- The typed service catalog is authoritative again for the merged pipe-trigger and `_fdopen` resolution: the generator validates and emits the stream-level `run_pending_writer_for_stream` hook, services carry repeatable `note` documentation lines, and `services.txt` records the fread pipe trigger plus the math API-set `_fdopen` alias that the merged table already bound. The Python inventory validator accepts the same hook grammar, so `xenora-runtime-gen --check` passes on a clean checkout again (#1715).
- Microsoft STL timed mutex service `_Mtx_timedlock` stacked on the mutex
foundation: immediate attempts, positive absolute deadlines, infinite
null-target waits, recursion accounting and the timed-out answer of the
non-recursive relock all follow the pinned Microsoft implementation, with
the timed wake parked on the slim lock deadline so a blocked worker never
holds the host. The original compiled witness exercises contention in
which the worker acquires after release, expires while the owner still
holds the mutex and subsequently reuses it through the infinite wait,
verified under the deterministic guest clock.
- Microsoft STL legacy thread creation `_Thrd_create`: the worker starts
through the shared CRT thread machinery with its function and parameter
captured in the initial processor state — the startup hand-off the
Microsoft binder protocol guarantees — and the sixteen-byte descriptor is
filled with the thread handle and identifier exactly as `_Thrd_join`
consumes them. The automatic condition notification drain runs at the
worker's exit. The original compiled witness verifies the handoff, the
signed negative exit status bit-for-bit, the notification delivery and
the failure answers at several scheduler quanta.
### Fixed
- `LoadLibrary` could not load a second module concurrently and could not load at all after explicit-package startup: the layout planner received overlapping occupied intervals because committed image headers and sections lie inside their retained reservation span by design. Occupied intervals are now coalesced into their union, overlapping and adjacent spans merging, so the planner receives the non-overlapping view it requires. Regression evidence prepares two different provisioned modules into one address space while both stay loaded (#1953).
### Added
- Microsoft STL condition notifications at guest thread exit:
`_Cnd_register_at_thread_exit`, `_Cnd_unregister_at_thread_exit` and
`_Cnd_do_broadcast_at_thread_exit` follow the pinned Microsoft
`xnotify.cpp` implementation, with the registrations process-local, the
unregistration dropping every slot naming the mutex across all threads
and the drain writing the result slot, broadcasting the condition and
releasing the mutex one level per registration in insertion order. The
drain runs automatically when a guest thread exits, which is how the C
runtime delivers the notifications on Windows.
### Added
- `msvcp140.dll` binds the eight Microsoft x64 condition-variable exports of the public STL `cond.cpp`: `_Cnd_init` allocates the 72-byte object in the guest heap while `_Cnd_init_in_situ` initializes caller storage, and every wait sleeps on the Win32 cell inside the object while releasing the SRW cell inside the mutex — exactly the primitive layer the compiled library uses, so STL and Win32 waiters share one queue and a Win32 `WakeAllConditionVariable` on the raw cell wakes an STL waiter. `_Cnd_wait` clears and restores the owner and count bookkeeping around the sleep, `_Cnd_timedwait` converts the absolute deadline through the `_Xtime_diff_to_millis2` millisecond rounding and answers `_Timedout` only when the deadline has actually passed, and a wait on a mutex the thread does not own meets the explicit runtime boundary. An original compiled C++ witness verifies heap and in-situ lifetimes, wake-one versus broadcast ordering, Win32 wake interoperability and expired deadlines, with the unowned-wait control guest (#1486).
- `msvcp140.dll` binds the nine Microsoft x64 mutex exports of the public STL `mutex.cpp`: `_Mtx_init` allocates the 80-byte object in the guest heap while `_Mtx_init_in_situ` initializes caller storage, the SRW cell at offset 16 shares the Win32 slim-lock machinery and the cooperative scheduler so a blocked guest worker never blocks the host, and the plain fast path plus the recursive count follow the documented owner/count fields at offsets 72 and 76. `_Mtx_trylock` refuses a non-recursive relock with the count restored, `_Mtx_current_owns` and `_Mtx_getconcrtcs` answer the documented queries, and null destruction is a no-op. An original compiled C++ witness verifies allocated and in-situ lifetimes, the exact layout, recursive counting and cross-thread contention in which a worker blocks inside `_Mtx_lock` until the main thread releases the mutex (#1468).
- An original hosted C numeric-report workload exercises the UCRT `strtod` and `ldexp` conversions together at runtime: decimal and hexadecimal records are parsed, scaled by powers of two and written as an exact little-endian binary64 report through guest CRT streams. The loader regression asserts the imported conversions — `ldexp` reaches the UCRT through its import slot because mingw-w64 statically links its own implementation — the exact report bytes at both optimization levels, rejection of malformed and out-of-range input without a report, and byte-identical reproducibility in fresh state (#1819).
- Microsoft STL thread services `_Thrd_start`, `_Thrd_join`, `_Thrd_detach`,
`_Thrd_exit`, `_Thrd_equal`, `_Thrd_current`, `_Thrd_id`, `_Thrd_yield` and
`_Thrd_sleep` following the pinned cthread.cpp contracts: the sixteen-byte
aggregate passes by value through hidden pointers and returns through the
hidden slot exactly as the Microsoft x64 ABI emits it, join consumes the
descriptor with the signed exit code preserved bit-for-bit and closes the
handle, detach releases ownership without waiting, and the sleep suspends
until the target time through the documented timespec conversion. The
original compiled witness exercises the full lifecycle at several
scheduler quanta.
### Added
- Microsoft STL thread compatibility exports `_Thrd_abort` and
`_Thrd_hardware_concurrency`, both partial: the abort follows the guest C
runtime abort path with its legacy diagnostic argument unused, and the
topology reports the configured guest processor count of the bounded
single-group model the Win32 system information services expose. The
original compiled witness matches the topology against the GetSystemInfo
result and exercises the abrupt abort exit from the main thread and from
a worker thread, verifying the trailing normal exit never runs.
### Added
- Implement the exact Win64 Universal CRT `_expand` export and its CRT heap API-set alias on the shared process heap: growth never moves the block, refusal when a live neighbour prevents growth answers null with `errno` `ENOMEM` and leaves the allocation untouched, and a null block runs the documented invalid-parameter dispatch — terminating with `STATUS_INVALID_CRUNTIME_PARAMETER` by default or answering null with `errno` `EINVAL` when a returning handler is installed (#1756).
- Bind the exact signed Microsoft x64 iostate mutators for `ios_base::clear`/`setstate` in both arities, the `exceptions` mask accessors and the narrow `basic_ios` `clear`/`setstate` pair: replacement is distinguished from merging, incoming bits normalize through the documented `0x17` mask, the narrow forms merge `badbit` for a null stream buffer before delegating, the exceptions setter re-clears the current state, and an intersecting mask takes the explicit runtime limit after the documented state update pending `ios_base::failure` throws (#1561).
- Implement the Microsoft x64 narrow input-character path: `basic_streambuf::sgetc` reads through the documented get-area indirection without consuming, `sbumpc` consumes through the `_Gninc` bookkeeping, empty areas fall to the guest `underflow`/`uflow` overrides, and `basic_istream::peek` with both single-character `get` overloads lock the buffer, zero `_Chcount`, peek before consuming, merge `eofbit` or `eofbit|failbit` exactly as the pinned source sequences them and unlock, with tied-stream and exception-mask configurations bounded explicitly. The `basic_istream` destructor is split into the documented empty body and the virtual-base destructor so compiler-driven destruction releases the locale exactly once (#1500).
- Implement the Microsoft x64 narrow output-character path: `basic_streambuf::sputc` writes through the documented put-area indirection and falls to the guest `overflow` override, and `basic_ostream::put` writes with width padding, resets the width, runs the `unitbuf` flush through `sync` and merges `badbit` on EOF, with tied-stream and exception-mask configurations bounded explicitly (#1503).
- V5 acceptance checks that two triangles sharing an edge cover their union in either draw order. Both orders now pass on the reference and native Metal backends after the existing shared-edge fix (#1777).
- V5 acceptance now verifies `frame/two-draws` on the reference and both Metal runtimes, since draws accumulate in the render target (#1612). The expected frame, fixture and tolerances are unchanged.
- `ucrtbase.dll` and the CRT conversion API set expose narrow C-locale `strtod`. The AMD64 service returns in XMM0, recognizes decimal and hexadecimal subjects, `INF` and `NAN` spellings, malformed-exponent rollback and nonconversions, and writes the exact end pointer. Decimal conversion is correctly rounded; hexadecimal conversion rounds exact input bits to nearest, ties to even. A nonzero finite input that rounds to zero or infinity reports `ERANGE`. Original compiled guests verify API-set and canonical binding, exact values and end positions, no-conversion and range behavior, and controls on the one-ulp and malformed-exponent boundaries (#1493).
- `ucrtbase.dll` and the CRT time API set expose `_gmtime64_s` and `_localtime64_s`. The secure conversions write the caller-provided `tm`; `_gmtime64_s` uses the UCRT validation interval from twelve hours before the epoch through fourteen hours after the 64-bit time cutoff, while `_localtime64_s` accepts the epoch through that cutoff and keeps Xenora's documented UTC local-time policy. Invalid values return `EINVAL` with all nine output fields set to -1, and null parameters use the guest invalid-parameter handler before errno and the return value are applied. An original compiled AMD64 guest verifies exact imports, leap-day and endpoint fields, sentinels, errno timing and the default-termination control (#1717).
- `msvcp140.dll` binds the six Microsoft x64 release xtime and performance-clock exports of the public STL `xtime.cpp`: `_Xtime_get_ticks` counts 100-nanosecond intervals since the Unix epoch from the same guest wall clock as `GetSystemTimeAsFileTime`, `xtime_get` answers its time kind only for `TIME_UTC` with a real destination and fills the 16-byte `_timespec64` — seconds at offset 0, 32-bit nanoseconds at offset 8, padding it never writes — `_Xtime_diff_to_millis` and `_Xtime_diff_to_millis2` normalize only the target record, subtract the other operand as it stands, clamp expired deadlines to zero, round the nanosecond remainder up to whole milliseconds and truncate the exact count to the signed 32-bit `long` of the ABI, and `_Query_perf_counter` with `_Query_perf_frequency` read the same monotonic guest performance clock and fixed frequency as the Win32 services. The conversion core is shared for the condition-variable waits of #1486. An original freestanding compiled guest verifies the time-kind result, the timespec64 layout and its untouched padding, target-only normalization, upward rounding, expired deadlines, signed and truncating returns and exact agreement with the Win32 guest clock across deterministic sleeps, with unmapped-write and unmapped-read fault controls (#1489).
- `vcruntime140.dll` implements the scalar Microsoft x64 C++ EH3 slice for original Clang-built guests: `_CxxThrowException` validates compiler `ThrowInfo`, `__CxxFrameHandler3` matches catch clauses in source order, typed scalar reference catches bind owned objects that live through the unwind and catch funclet, by-value scalar catches copy into compiler frame slots, unused scalar parameters need no slot, synchronous `catch(...)` follows C++ selection without catching non-C++ exceptions, and cleanup funclets run through Xenora's existing two-phase unwinder. Cross-image type matching accepts distinct scalar type-descriptor copies by decorated name. An original executable plus relay/provider DLL package verifies mutable and const references, typed precedence over ellipsis, ellipsis after a mismatched scalar type, an unused scalar catch object, destruction of a `_Lockit` guard before a second thread takes the same lock, and a non-C++ control. Rethrows, nested C++ exceptions, non-scalar objects, nontrivial construction or destruction and consolidation remain explicit boundaries (#1708).
- `ucrtbase.dll` binds direct `fegetround`/`fesetround` imports, also resolved through `api-ms-win-crt-runtime-l1-1-0.dll`: the four modern `FE_*` values translate to the calling guest thread's real MXCSR rounding-control bits, invalid values fail without changing MXCSR, and original freestanding guests verify query/set preservation plus changed CVTSD2SI results. The x87 control word and propagation into CRT math or formatting remain outside this partial service (#1499).
- `msvcp140.dll` binds the Microsoft x64 `_Lockit` guards, mutex helpers and shared CRT locale lock: `_Mtxinit` initializes guest-owned critical-section storage with the documented 4000 spin count, `_Mtxlock`/`_Mtxunlock` enter and leave through the existing guest critical-section and scheduler paths so a competing guest thread blocks and resumes, and the eight raw lock slots plus the CRT locale lock are hidden critical sections shared across `msvcp140.dll`, `ucrtbase.dll` and the pinned locale API-set spellings. The thiscall members record the raw kind in the borrowed four-byte guard — kind zero is the locale lock, kinds one to seven select raw slots, kinds beyond are documented no-ops and negative indexes take the explicit boundary — while the legacy static helpers apply the documented mask-to-slot rule. An original compiled guest verifies recursive ownership, independent slots, blocking and resumption of a competing thread and borrowed guard storage, with unowned-release and negative-kind controls (#1692).
- `msvcp140.dll` supports the Microsoft x64 classic locale lifetime: `locale::_Init` lazily creates the shared implementation with the documented "C" category mask and name, retaining one reference for the global cell and one for the immutable classic wrapper exactly as the public runtime does; `_Getgloballocale`, `_Setgloballocale`, `locale::classic`, `_New_Locimp`, `_Locimp_ctor` and `_Locimp_dtor` follow the public contract, and implementation objects carry a synthesized virtual table whose deleting-destructor and reference-count slots dispatch into the runtime, so compiler-emitted copy, assignment and destruction sequences run unchanged. Copying the classic implementation stops the guest explicitly because C-locale facet construction is separate evidence. An original freestanding compiled guest verifies the compiler-emitted sequences end to end: process-local identity, the reference protocol through virtual-table slots, wrapper immutability and the deleting-destructor storage handoff (#1361).
- `msvcp140.dll` binds the three Microsoft x64 narrow `basic_ios` stream buffer accessors: `rdbuf()` answers the borrowed pointer, `rdbuf(new_buffer)` answers the previous pointer, installs the replacement and runs the documented `clear()` update — badbit for a null buffer, goodbit otherwise — and `set_rdbuf` changes the pointer silently, preserving state. An exception mask intersecting the update takes the explicit runtime boundary after the documented write. An original compiled guest exercises all three imports through one source-built output stream: a switched put area reaching only the replacement buffer, independent streams, the null buffer and original buffer lifetime, with invalid-receiver and exception-mask control guests (#1678).
- `xenora-pe-session --replay` runs a bounded file of decimal inputs with the deterministic guest clock. It validates every record before starting the worker and finishes after the last input (#1714).
- XTRE hosts can pass a saved authored replay plan directly to a persistent session. The CLI and XTRE share the same input validation. XTRE uses the deterministic guest clock and requests orderly shutdown after the last input (#1738).
- Standard descriptors live again when reallocated: closing descriptor 0, 1 or 2 and opening or duplicating onto the freed number clears the closed mark, exactly as a reused lowio slot does on Windows, so the CRT stream layer answers through the new descriptor. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `tsort FILE` sorts its file argument (`a b c` for a three-node chain) instead of answering nothing, the close-then-open redirection idiom busybox uses for file arguments (#1701).
- `_fdopen` wraps a descriptor that `_open_osfhandle` took over a kernel pipe end: the stream becomes pipe-backed, draining and feeding the shared pipe exactly as the descriptor did, owning the kernel handle until the stream or its descriptor closes, and `_fdopen` resolves through the math api-set contract the mingw-w64 import library attributes it to. Stream reads now fire the deferred-child pipe trigger as the `_read` wiring does, resolving both the pipe-backed stream and the inherited descriptor shapes. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: make's `VAR != command` capture arrives whole (`lines=[1 2 3]` for a three-line command, several independent captures in one makefile), and the `tar czf` compressor shape round-trips. An original compiled guest verifies the full popen shape - CreatePipe, CreateProcess, `_open_osfhandle`, `_fdopen`, `fread` - against disabling the trigger (#1689).
- `RtlCaptureStackBackTrace` resolves through `kernel32.dll`, `ntdll.dll` and the documented RTL support API sets (#459). The Partial service records the saved return-address chain in mapped guest memory, skips the requested number of frames, caps the walk at 64 frames, and derives a synthetic diagnostic hash from the captured pointers. It does not interpret unwind codes, frame-pointer chains, chained unwind data or host stacks. Original byte-built PE guests verify skip counts, output layout, hash stability, faults and API-set binding. Local Apple Silicon verification only; no Windows comparison, Xbox execution, game execution or independent acceptance is claimed.
- An original hosted C guest verifies that synchronous _spawnve inherits the parent CRT environment or uses an explicit replacement vector. The fixture checks the child CRT and Win32 views, parent isolation and fresh launches (#1684).
- `CreateProcessA` and `CreateProcessW` pass an explicit environment block to the deferred child. Both select UTF-16 when `CREATE_UNICODE_ENVIRONMENT` is set and use the narrow encoding otherwise. Xenora bounds the block at 32,768 bytes. A null pointer preserves inheritance (#1675, #1703).
- `ucrtbase.dll` and the CRT time API set expose `_mkgmtime64` for UTC dates from 1970 through 3000. The service normalizes successful calendar fields and ignores the input DST flag. It requires the year after month normalization to be within that range and returns `-1` with `errno` set to `EINVAL` for a null calendar pointer (#1677).
- `CreateThreadpoolWork`, `SubmitThreadpoolWork`, `WaitForThreadpoolWorkCallbacks` and `CloseThreadpoolWork` resolve through `kernel32.dll` and the documented threadpool API sets (#459). The synthetic implementation is explicitly partial: callbacks run synchronously on the calling guest scheduler thread in FIFO order when waiting, `fCancelPendingCallbacks` cancels queued callbacks, and `PTP_CALLBACK_ENVIRON` is ignored. No host worker threads, parallel callbacks, or Windows threadpool scheduling behavior are claimed. Original byte-built PE guests cover sequencing, cancellation, invalid arguments and API-set binding. Local Apple Silicon verification only; no Windows comparison, game execution or independent acceptance is claimed.
- `RtlPcToFileHeader` and `FlushProcessWriteBuffers` resolve through `kernel32.dll` and their documented API sets (#459). The first searches the main and registered guest image ranges and answers the containing image base; built-in service identities are not images. The second is an explicitly partial synthetic barrier: it orders host-visible guest memory accesses and records a generation without issuing an interprocessor interrupt or claiming hardware memory ordering. Original byte-built PE guests check the call shapes, image boundaries, fault behavior and API-set binding, and unit tests check dynamic module ranges and barrier counting. No Windows comparison, Xbox execution, game execution or independent acceptance is claimed.
- The CRT math API set exposes `nexttowardf`. It steps to the adjacent binary32 value toward a Microsoft binary64 direction and sets `ERANGE` on overflow. Guest floating-point exception flags remain unsupported (#1668).
- Guest WinHTTP requests can disable automatic redirects before sending. They receive the original redirect status, headers and body through the ordinary response APIs. The option applies to each request and the WinHTTP binding remains Partial (#1741).
- Integrated the loopback WebSocket wire engine into synchronous WinHTTP request and socket handles (#2651). An explicitly marked HTTP upgrade transfers ownership of the validated connection to a WebSocket handle. Six new Partial exports cover completion of the upgrade, Send, Receive, Shutdown, Close and QueryCloseStatus. Independent source reviews and six original production-registry guest tests cover data exchange, split receive buffers, close status, malformed upgrades and status callback inheritance. TLS, external destinations, fragmented wire messages and asynchronous WebSocket calls remain unsupported.
- Prepared an isolated bounded loopback WebSocket wire candidate (#2643). It checks the RFC 6455 HTTP upgrade response, retains buffered post-upgrade bytes, exchanges unfragmented text and binary frames with fresh masked client frames, handles ping/pong and close, and refuses invalid or oversized frames within finite operation deadlines. Twelve original local TCP tests passed on ARM64, including malformed upgrades, framing limits, terminal socket release and aggregate receive deadlines. The wire engine awaits WinHTTP and GDK handle/API integration. Fragmentation, negotiated extensions, TLS and external connections are outside this candidate.
- `ucrtbase.dll` and the CRT math API set expose `atanf` and `cbrtf` for binary32 arctangent and cube root. Both use native math and preserve Xenora’s signed-zero and NaN behavior. The bindings are Partial because final-bit accuracy can differ from UCRT and guest floating-point exception and `_matherr` handling remain unsupported (#1691).
- `ucrtbase.dll` and the CRT math API set expose binary32 `acosf` and `asinf`. Inputs beyond the closed interval from −1 to 1 return the default indefinite value and set the calling guest thread's `errno` to `EDOM`. Input NaNs retain their sign and payload and are quieted without raising the native invalid-operation flag. An original guest verifies that errors in a worker leave the parent thread's value intact. The bindings remain Partial for guest floating-point exceptions and `_matherr` (#1735).
- `ucrtbase.dll` and the CRT math API set expose `_fdsign`, `_fdtest` and `_dtest`. The functions read the sign and classify IEEE floating-point values without modifying the guest inputs (#1661).
- V7 vertical acceptance soaks the V1 to V6 workloads, requiring identical results and bounded footprint, threads, descriptors and Metal allocation, with deliberate-leak controls. A local 200-iteration release run on Apple M4 passed; no independent acceptance.
- `msvcp140.dll` resolves the exact public Microsoft x64 `basic_ostream(basic_streambuf*, bool)` constructor, its virtual destructor, the virtual-base destructor and the class vbtable data import (#1377). Compiled programs that create an ordinary `std::ostream` over their own stream buffer no longer stop with an unresolved-import error. When it builds the most derived object, the constructor installs a shared vbtable and a synthesized one-slot virtual table. When a derived class has already built the virtual base, it finds that base through the derived vbtable. `delete` dispatches through the virtual table and releases the CRT heap block. Original C++ guests compiled at -O1 and -O0 check automatic, heap, placement and derived objects, `write` and `flush`, storage reuse, locale and storage release, and construction in one DLL with deletion in another. Raw controls cover memory faults and the explicit refusals for standard-stream registration, array deletion and callback cleanup. Run-time type information on these objects, wide output streams and formatted insertion are not supported. Local Apple Silicon verification only: no Microsoft binaries, MSVC-built callers, Xbox execution or independent acceptance is claimed.
- `vcruntime140.dll` resolves `strchr`, `strrchr` and `strstr` through the existing guest byte-string search services. An original PE checks exact imports, match positions, terminator searches and missing matches (#1630).
- `vcruntime140.dll` exposes `wcsrchr` for guest UTF-16 strings. It returns the last matching code unit, including the terminator, and stops explicitly if the string has no terminator within the 1 MiB scan budget (#1644).
- V6 vertical acceptance runs an original interactive scene for 64 inputs on the shared persistent-session ABI, on the software reference and native Metal, checking state and frames against a host model, replay, concurrent isolation, refused sessions and agreement with `xenora-pe-session`. It records that the software reference does not apply the top-left fill rule (#1631). Local Apple M4 verification only; no independent acceptance.
- V4 vertical acceptance runs an original application through its whole XTRE lifecycle, from static compatibility report and relocation through configuration, workers, frames and teardown, with bad-configuration and refused-startup controls. The compiled input-through-`ReadFile` variant is a required successful case with the same lifecycle evidence (#1626). Local Apple M4 verification only; no independent acceptance.
- C-locale `strftime` and `wcsftime` format the ISO week-based year, week number and weekday using `%G`, `%g`, `%V` and `%u`. The shared guest fixture checks dates that fall in the previous or next ISO year (#1620).
- C-locale `strftime` and `wcsftime` format `%r` as a twelve-hour time with seconds and an AM or PM indicator. The shared guest fixture checks midnight, noon and exact buffer capacity (#1634).
- C-locale `strftime` and `wcsftime` accept the Microsoft `#` modifier on scalar calendar fields and directives whose representation stays the same. Original narrow and UTF-16 guests check padding, buffer capacity and invalid formats (#1651).
- C-locale `strftime` and `wcsftime` accept the `#` modifier on `%D`, `%F`, `%r`, `%R`, and `%T`. They remove leading padding while preserving the layout of subsequent fields (#1804).
- V3 vertical acceptance runs an original threaded guest through XTRE at four scheduler quanta, checking synchronization, TLS and FLS, address waits, handle ownership, task-queue cancellation, deterministic replay and deadlock reporting. Local Apple M4 verification only; no independent acceptance.
- V2 vertical acceptance runs an original C++ package of an executable and three DLLs through XTRE, checking static construction, static TLS, cross-module objects, initialization and teardown order against the dependency graph, and six refused packages with a clean rerun after each. Local Apple M4 verification only; no independent acceptance.
- The legacy SSE reciprocal forms RCPPS, RCPSS, RSQRTPS and RSQRTSS execute in both CPU engines. Intel defines their results by a relative-error bound of at most `1.5 * 2^-12`, so the implementation uses round-to-nearest IEEE division and reciprocal square root: the answers stay inside that published bound but are not bit-identical to any x86 implementation. MXCSR rounding is ignored, no SIMD floating-point exception is raised, zero and denormal sources answer signed infinity, tiny results flush to signed zero, NaNs are quieted, and negative finite RSQRT sources other than `-0.0` answer the indefinite encoding (#1568). The VEX forms remain refused. The dedicated dual-engine fixture covers the register and memory forms against the published bound; the generic form-coverage test records those forms as covered there. No hardware, game or independent-acceptance claim is made.
- `api-ms-win-core-processtopology-l1-1-0.dll` resolves `GetThreadGroupAffinity` and `SetThreadGroupAffinity` through the existing synthetic thread services. The guest sees group zero, and setting affinity accepts only the full simulated processor mask (#1611).
- V5 vertical acceptance renders an original guest scene through XTRE on the software reference and native Metal and checks every frame against an independent pixel oracle, plus backend depth, blend and compute-to-texture scenes. It reports as blocked that draws replace each other (#1612), the hosted Metal adapter cannot run textured draws (#1613) and a device with a descriptor heap or root signature cannot be destroyed (#1614). Local Apple M4 verification only; no independent acceptance.
- `tests/acceptance` adds the first vertical acceptance milestone (V1): an original x86-64 guest runs integer, control-flow, call, addressing, scalar, SSE2, AVX2, FMA, CPU-state and fault workloads on the interpreter and the DBT, checked against host-computed results, and writes JSON evidence records. It reports missing AVX2 256-bit forms (#1602) and `PUSHFQ` (#1603) as blocked. Local Apple Silicon verification only; no independent acceptance.
- The single-byte Windows code pages: `MultiByteToWideChar`, `WideCharToMultiByte`, `IsValidCodePage` and `GetCPInfo` now serve the documented Windows-125x family, the ISO/IEC 8859 pages numbered 28591 through 28605, and ASCII (20127) beside the existing UTF-8, 1252 and 437, each against the documented public mapping table. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `iconv` converts between UTF-8 and the ISO-8859/Windows-125x pages exactly, round-trips through Latin-1, and places the euro sign at 0xA4 in ISO-8859-15.
- `msvcp140.dll` resolves the exact public Microsoft x64 standalone `basic_istream(basic_streambuf*, bool)` constructor and virtual destructor (#1582). The implementation zeroes `_Chcount` at offset 8 and calls the existing bounded `basic_ios::init` once through the virtual base at offset 16, leaving the guest-owned vbtable and virtual-base vtable words unchanged. Destruction releases the synthetic locale and explicitly refuses a standard-stream slot, sparse array or callback list. Original ARM64-built x64 guests verify present and null buffers, every initialized field, storage reuse, locale ownership, invalid pointers and refusal paths; the service-level witness checks Win64 nonvolatile-register preservation. No Microsoft headers or binaries, wide streams, stream operations, full locale semantics, C++ unwinding, Xbox execution or independent acceptance is claimed.
- The native app and `xenora-pe-session` now run a user-selected PE without an executable or companion SHA-256 pin (#1583). The SHA fields are gone from the app and the worker treats `--sha256` as an optional caller-side integrity check rather than an authorization gate. PE parsing, module roles, the 64 MiB input bound, import and mapping validation, session ABI checks, deadlines and explicit refusals remain. Frame SHA-256 still verifies returned pixels. No provenance prompt, Xbox hardware, game-execution or independent-acceptance claim is made.
- The macOS Run Executable panel can add companion DLLs to the selected PE. It sends the explicit package through the same bounded worker as the CLI and clears the DLL selection when the executable changes (#1600).
- The standard macOS Run Program window can select native Metal for supported PE graphics. Reference remains the default. The runner captures the selected backend for each launch and reports native startup errors through the existing diagnostics (#1650).
- The exact UCRT time API-set import `_ftime64` writes 64-bit Unix seconds and fractional milliseconds from the guest clock. The synthetic timezone is UTC. A null destination follows the guest CRT invalid-parameter path (#1559).
- The Operation Ascension tracker records the nine runtime acceptance milestones and links original fixture results to the live service inventory (#1278). Aliases point to their canonical services, and unreviewed services carry evidence class E.
- `CreateProcessW` accepts UTF-16 application names and command lines for deferred launches of the current guest image. It uses the same pipe redirection, process identity, and exit status as `CreateProcessA`. Xenora reads up to 4,096 UTF-16 code units per string, including the terminator, and reconstructs the child command line from the parsed arguments (#1550).
- Added additive schema-v1 runtime-observed session compatibility reports for the CLI worker, `xenora-xtre` and the native app (#1569). The CLI writes `xenora-session-compat` immediately before its existing final startup record, and XTRE builds the same schema from milestones it already records. Nine ordered stages distinguish observed completion, observed incompleteness, `not_observed` and `unsupported`; the worker reports its absent graphics and presentation paths as unsupported, and XTRE reports frame presentation as unsupported even when a backend was prepared. The app consumes the session record only after validating the following startup record and matching worker and guest exit status, shows a bounded selectable summary, and leaves altered or guest-written records visible but undisplayed. A public C schema constant, three golden JSON records and focused loader, CLI, XTRE and app tests pin the interface and emission order. This is synthetic-session reporting only: no file is newly inspected or executed, no external binary is an oracle, and no Xbox hardware, commercial-title, window-presentation or independent-acceptance claim is made.
- Added an additive version-1 static compatibility report (#410). `xenora inspect --format compat-json` and `xenora_compat_report_executable` reuse the existing probe and PE records; the native app presents the same counts and findings and can copy or export the JSON. The report keeps ordinary and delayed imports separate, distinguishes name, ordinal and coverage statuses, records strict-loader vetoes and bounded decoder findings, and labels every finding a static potential blocker. Golden fixtures and original PE witnesses pin the schema and interpretation. Nothing is executed, no absolute path is disclosed by default, and no game, hardware or independent-acceptance result is claimed.
- Extracted the authored persistent-session ABI into `xenora::persistent_session` and reused it from both the CLI worker and `xenora-xtre` instead of defining a second protocol. XTRE now offers host-owned `PersistentInputs`, `PersistentSession` and `PersistentReport`: the guest receives bounded inputs, each presentation is captured and checked against the selected backend, and shutdown fails on a missing stop request, a broken input/presentation sequence or an open runtime handle. The original `fixtures/pe/authored-session` package is reused unchanged. Three ordinary tests passed and one ignored native Metal comparison passed locally on Apple Silicon; this is a bounded host-driven loop, not a native window, general event loop, Xbox interactive contract or independent acceptance (#417).
- XTRE persistent sessions can opt into the CLI's deterministic replay clock. Each accepted input advances time by 16 ms, and fresh sessions independently reproduce the original clock fixture's frames and file journal (#1591).
- XTRE can retain a single-image guest executable for the runtime's existing self-launch services. The original process fixture exercises redirected input and output, child exit status and clean handle release (#1610).
- Guest draw composition preserves the coordinates of earlier pixels when the viewport changes shape. The presented image uses the last draw's viewport and readback preserves the bound RGBA8 target's row layout (#1744).
- XTRE accepts caller-supplied startup arguments and standard input for single-image, package and authored persistent sessions. An original guest checks the exact command line, input bytes and EOF across those launch paths (#1629).
- The authored PE launcher and macOS session panel accept guest startup arguments and a bounded standard-input file. The file and arguments are installed before guest initialization. Manual frame commands and replay plans use their existing controls (#1768).
- XTRE hosts can supply validated guest Win32 environment variables when starting a single image, an explicit package or a persistent replay session. Original PEs check Unicode lookup, empty block entries and per-session isolation (#1643).
- `xenora run` and `xenora-pe-session` accept repeated `--env NAME=VALUE` options and install them before guest initialization. The runners and XTRE share environment validation. Original PEs exercise single-image, package and persistent CLI startup (#1656).
- `xenora-pe-session` can export a selected guest file after the session shuts down cleanly. The supervisor shares the ordinary runner's bounded staging and publishes before reporting `done` (#1676).
- The macOS Authored PE Session panel can save a guest-generated file to a destination selected before launch. Finish waits for publication and reports the saved path. Cancel before Finish leaves the destination untouched (#1690).
- The macOS Authored PE Session panel can save the displayed verified frame as a PNG at its original dimensions. A later frame presentation cannot change the selected export (#1710).
- The macOS Authored PE Session panel runs deterministic replay files through the bundled launcher. It verifies frames as they arrive and reports completion after the launcher finishes and any selected guest file has been saved (#1722).
- The macOS Authored PE Session panel saves the verified inputs from a successful deterministic manual run as a replay plan that the app and command-line launcher can read (#1725).
- The macOS Authored PE Session panel disables cancellation after the launcher confirms completion. It waits for a clean exit before offering the recorded replay plan from a manual session (#1752).
- Xenora.app can configure explicit guest environment variables in Run Program and Authored PE Session. Each launch captures the selected variables, including empty values, and passes them to its bundled runner (#1667).
- `msvcp140.dll` resolves the exact Microsoft x64 `basic_ios` constructor, `init(streambuf*, bool)`, virtual destructor and the `ios_base` constructor/destructor for the bounded nonstandard stream lifecycle (#1294). Construction applies the public x64 member initializers; `init` sets the documented flags, precision, width and fill, stores the guest stream buffer, allocates a synthetic one-pointer locale token and sets `badbit` for a null buffer. Destruction releases that locale and refuses a standard-stream slot, sparse array or callback list instead of silently skipping owned state. Original freestanding guests and a compiler-built producer/consumer DLL package verify state queries, storage reuse, cross-DLL ownership, invalid pointers and explicit refusals on Apple Silicon. No Microsoft headers or binaries, wide streams, `cerr`, full locale semantics, C++ unwinding, Xbox execution or independent acceptance is claimed.
- `msvcp140.dll` resolves the exact public Microsoft x64 `basic_iostream(basic_streambuf*)` constructor and virtual destructor (#1533). The implementation zeroes the `basic_istream` character count, initializes the single virtual `basic_ios` base once through the existing bounded `basic_ios::init`, leaves guest-owned virtual-table, vbtable and vtordisp words unchanged, and releases the synthetic locale on destruction with explicit refusals for standard-stream slots, sparse arrays and callbacks. Original compiler-built guests verify present and null buffers, every initialized field, storage reuse, locale ownership, invalid pointers and refusal paths on Apple Silicon; the service-level witness checks Win64 nonvolatile-register preservation. No Microsoft headers or binaries, wide streams, stream operations, full locale semantics, C++ unwinding, Xbox execution or independent acceptance is claimed.
- `msvcp140.dll` resolves the exact public Microsoft x64 `basic_iostream(basic_streambuf*)` constructor and virtual destructor (#1539). The narrow and wide forms share the documented x64 data-member offsets; the wide form changes the decorated symbols and writes the two-byte Windows `wchar_t` fill member. Original ARM64-built x64 guests verify present and null buffers, every initialized field, storage reuse, locale ownership, invalid pointers and refusal paths, while the service-level witness checks Win64 nonvolatile-register preservation. No Microsoft headers or binaries, wide stream operations, locale facets, C++ unwinding, Xbox execution or independent acceptance is claimed.
- An original C guest checks the exact UCRT math API-set imports for `lroundf`, `modff`, and `remainderf`. It checks Win64 `long` results, the four-byte `modff` output, signed zero, and tie handling at two compiler optimization levels (#1515).
- `CreateSymbolicLinkA`/`CreateSymbolicLinkW` create symbolic links in the virtual drive: the link stores its target text exactly as written, relative targets resolve beside the link rather than the caller, and resolution follows the chain iteratively at the operation boundary with the documented reparse-point cap of Windows - opens follow, a dangling link names its missing target so creation through it still works, and cycles refuse rather than loop. `unlink`, `remove`, `rmdir` and rename act on the link itself exactly as the reparse point of Windows dies and moves rather than anything it names, while `stat` and `_access` answer what the target answers. `CreateFile` of either width honors `FILE_FLAG_OPEN_REPARSE_POINT` by opening the link itself, and `DeviceIoControl` answers the one control code the file system owns, `FSCTL_GET_REPARSE_POINT`, with the `IO_REPARSE_TAG_SYMLINK` buffer layout - the entire readlink chain of a mingw guest. Kernel32 `CreateFile` paths also resolve against the working directory, as they do on Windows. Attribute queries report `FILE_ATTRIBUTE_REPARSE_POINT` over the normal bits, and enumeration carries the reparse tag in the find data's first reserved field exactly as Windows reports it - the chain a mingw `lstat` reads to tell the link from the file without any control code. Measured with the public mingw64 busybox binary on Apple Silicon: `ln -s` creates, `cat` and appends follow, `readlink` prints the target text, `ls -l` draws the link with its `l` type letter and target-text size, `stat` prints the link and its target, `rm` removes the link alone, and dangling links refuse opens with no such file. Local verification only.
- `CreateHardLinkA`/`CreateHardLinkW` create hard links in the virtual drive: several names share the one file's content, times, attributes and locks exactly as the directory entries of Windows do, writes through any name are visible through all of them, deleting one name keeps the file alive through the others with a surviving alias taking over the canonical entry, and `GetFileInformationByHandle` reports the true link count. busybox `ln` now creates working hard links, measured with the public mingw64 binary on Apple Silicon.
### Fixed
- The legacy Microsoft STL `_Thrd_create` returns the pinned error value 4
and rejects unwritable descriptor fields before creating a worker.
The compiled guest verifies the failure keeps its descriptor intact and
that `_Thrd_join` consumes a successful descriptor with its signed result
and exit notification preserved (#1874).
- STL thread startup checks the handle output before publishing a worker.
Timed sleeps handle deadlines beyond the signed 32-bit millisecond range
by repeating finite waits. A following short sleep keeps its own deadline
(#1497).
- Failed Microsoft STL thread operations return the pinned error value 4.
A join that lacks exit-query rights preserves the handle and caller's
output, and consecutive sleeps use separate scheduler deadlines (#1497).
- Two triangles that share an edge no longer leave a seam on native Metal in either draw order. The mask that composes each draw into the bound target now follows the Direct3D top-left fill rule, so a pixel centre on a shared edge or vertex belongs to exactly one triangle, as on Metal, instead of both. The software reference rasteriser itself is unchanged (#1631) (#1777).
- The RDNA 2 errata record no longer calls the section 12.13 `mod 64` pseudocode the Wave64 rule for `DS_PERMUTE_B32` and `DS_BPERMUTE_B32`. Section 10.4.4 runs a wave64 permute as two independent wave32 halves, which the literal cross-half reading contradicts, so the Wave64 lane index is recorded as unresolved until the half-wave reading or hardware evidence settles it. The Wave32 reading (index bits [6:2] after `OFFSET`) is unchanged, and the 10.4.4 citation now names pages 96 and 97.
- Scheduled workers now receive the initial package's static TLS. The worker setup maps a TLS array in the thread slot, answers it through the TEB thread-local-storage pointer exactly as the compiler-emitted `gs:0x58` access sequence requires, and replicates every initial package image's template into independent initialized storage before the worker enters — the same process-global indexes the initial thread uses. Previously a created thread faulted at its first compiler-emitted static TLS read, because only the initial thread's array was prepared. An original compiled Microsoft x64 package proves the contract: two workers read the initialized template values of both the EXE and the DLL while the initial thread keeps its own mutated copies, at several scheduler quanta (#1843).
- The authoritative `cpu-inventory` coverage evidence now consumes every checked-in x86 assembly fixture list under `crates/loader/tests/x86/` automatically instead of only the hardcoded `integer.txt`, `vector.txt` and `float.txt`, and the mnemonic-level evidence mapper recognizes the exact spelling aliases the fixtures use for registry operations: the leading-`v` VEX spelling of a shared operation, the `vpgather` spellings of the gather forms, the trailing element-width letter the FMA assembly keeps and the registry drops, and the masked-move and variable-shift width spellings. Operations missing fixture evidence drop from 31 to 16, and every remaining entry is a legitimately unexercised or intentionally unsupported operation (string instructions, RCP/RSQRT approximations, atomics, `cld`/`std`, the loop family); no coverage beyond mnemonic evidence is claimed (#1833).
- The standalone narrow `basic_istream` constructor and destructor now follow the compiler-emitted Microsoft x64 layout: the pinned public STL istream header specifies `#pragma vtordisp(push, 2)`, under which a compiler witness emits a 120-byte object with caller padding and the vtordisp word at 16/20 and the single virtual `basic_ios` base at offset 24, not 16. The constructor reads the hidden trailing most-derived argument the compiler appends after the documented parameters and refuses inherited construction explicitly, exactly as it refuses standard-stream registration; caller padding and the vtordisp word stay guest owned. Original compiled guests verify the corrected field placement, storage reuse, locale ownership and the invalid-pointer, standard-stream, inherited-construction and cleanup controls (#1624).
- `fgets` and `fgetws` on a valid regular stream opened only for writing now latch the FILE error indicator: the calls still return null, but `ferror` distinguishes the refused read from end of file while `feof` stays clear. Ordinary line reads, genuine end of file, `clearerr` and closure are unchanged (#1784).
- The `std::locale` implementation facet-vector copy and teardown no longer panic the host on a guest-controlled facet count whose byte length is unrepresentable: the count is checked once up front and an overflow is a controlled guest memory fault. The seeded loader robustness campaign now passes the multiply site, and ordinary C-locale and empty-vector behavior is unchanged (#1772).
- `_Tolower` and `_Toupper` no longer panic the host on a guest locale vector within 24 bytes of the top of the address space: the name-field address uses checked addition and an unrepresentable address is a controlled guest memory fault, as elsewhere in the loader (#1797).
- `scripts/audit/import_reprobe.py` now accepts a generated `docs/runtime/inventory.json` report as well as the raw live registry snapshot. It reconstructs the canonical and alias key rows from the published report while keeping the supplied file's digest, so the frozen import gaps can be re-probed against a committed revision without rerunning Cargo. A synthetic report regression covers exact aliases and cluster grouping; this remains offline registry state, not behavior or compatibility evidence (#1907).
- The RDNA reference interpreter reports an unsupported image-sample mask when no components are selected. Both the interpreter and shader compiler preserve valid writes through the last vector register (#1812, #1813).
- A persistent ARM64 DBT translation cache no longer makes misses expensive (#1810, split from #1779). A lookup now checks for the entry before taking the shared file lock, since entries appear only by atomic rename, and a cache handle remembers up to 4,096 keys it found absent until it inserts or invalidates them. Every hit keeps its full verification and a damaged entry is still rejected on every lookup. A miss over an empty cache fell from 32–37 µs to under 1 µs, and the V1 `calls` guest with an empty cache attached from about 1.2–1.7 ms to about 250 µs, in local release measurements on a loaded Apple M1 Max. The cache still stores almost no acceptance block, because blocks with helper calls or link exits are not portable; that part of #1779 remains open.
- The persistent session test forces a stdout write failure even if another process holds the read end. The Metal footprint test measures its 50 session lifetimes in a fresh process so other frame tests cannot leave allocations in the measurement process (#1793).
- A reused ARM64 DBT engine no longer stops following block links at every stack store when translated code lies on both sides of the stack (#1666). Stores now end a link chain only when they touch a 4 KiB guest page holding translated bytes, inside the existing hull; stores into translated code still end the chain and retranslate. On the V1 `calls` guest the warm engine follows 224 links instead of 21, and its median run time fell from about 78 µs to about 49 µs in a local release measurement on a loaded Apple M1 Max; cold runs and the `branches` and `addressing` workloads are unchanged.
- The x86 vector test suite passes again on main (#1790). Its REX.W sweep now aims MASKMOVDQU's implicit RDI store at mapped data, so both forms store and their bytes are compared, and the rejected-encoding list uses the reserved 256-bit VEX `vaesenc` now that the 128-bit form executes. No engine behavior changed.
- The macOS Authored PE Session keeps buffered completion records when the launcher exits on time even if the reader resumes late. It reports a timeout if the launcher exit is only observed at or after the shutdown deadline. During replay, the deadline starts when the reader validates the completion record, even if the interface processes it later. After an output error or a disconnect before the launcher's ready record, the app closes input so the launcher can shut down and report its diagnostic. Cancel becomes unavailable once the app has recorded a failure, so it cannot replace the diagnostic while the launcher exits (#1824).
- The narrow `rdbuf` witness guests are rebuilt for the corrected Microsoft x64 `basic_ostream` virtual base: the synthetic ABI header now enables construction displacement emission, so the compiler reserves the 112-byte object with the displacement word at 12 and the virtual `basic_ios` base at 16, and the read-only mirror reads the same offsets the construction service initializes. The stale committed guests still encoded the superseded 104-byte layout, which misread every stream field; the switching, invalid-receiver and exception-mask assertions all pass again (#1785).
- The scheduler-aware Microsoft `_Lockit` guards, mutex helpers and shared CRT locale lock are restored alongside the bounded `_Locinfo` addition: the merge of the bounded registration replaced the #1745 service registrations outright, so `_Mtxinit`/`_Mtxdst`/`_Mtxlock`/`_Mtxunlock`, the `_lock_locales`/`_unlock_locales` aliases under every import spelling, the default `_Lockit` constructor and the legacy static helpers silently disappeared while the committed guests and the changelog still described them. The reconciled module registers both contracts, and the original positive lockit controls plus the unowned-release and negative-kind boundaries pass again (#1791).
- The hosted `crt_swprintf` witness now expects the documented default-mode truncation result: a negative return, the exact three-character prefix, an in-bounds null terminator and an intact guard just beyond the capacity. The previous check predated the separated default and legacy capacity rules and contradicted its own comment; the runtime behavior was already correct (#1787).
- Reject null sources and counts above `INT_MAX` in the C-locale `mbstowcs`/`wcstombs` conversions before the destination is touched, answering `(size_t)-1` with `errno` `EINVAL` exactly as the documented invalid-parameter continuation requires; valid null-destination size queries and exact-capacity conversions are unchanged, and a successful conversion after a refusal is verified in the hosted wide fixture at O0 and O2 (#1574).
- The standalone Microsoft x64 `basic_ostream` lifecycle now uses the vtordisp layout of the pinned public declaration: a 112-byte complete object, vbtable entries `{0, 16}`, the virtual `basic_ios` base at offset 16 and the construction-displacement word immediately before it. Construction, derived-object lookup through the caller's vbtable, complete destruction and scalar deletion use the corrected displacement, and stream initialization now owns the shared classic `std::locale` implementation through a real one-pointer locale wrapper rather than a synthetic token, releasing that reference and wrapper at base destruction. Original compiled guests cover automatic, heap, placement and derived objects, cross-DLL construction and deletion, raw negative controls and locale reference ownership. Local Apple Silicon verification only; no Microsoft binary execution, Xbox execution or independent acceptance is claimed (#1659).
- A zero-byte `_read` on captured standard input preserves the stream’s EOF indicator and input position, including through a duplicate descriptor (#1726).
- Failed `fread` and `fgetc` calls on a regular file stream set its `ferror` indicator. `feof` continues to report end of input and `clearerr` resets both indicators (#1773).
- A short `fread` from captured standard input sets `feof` immediately, including when the read consumes a byte saved by `ungetc`. Exact-length and zero-length reads leave the EOF indicator unchanged (#1721).
- `ungetc` on captured standard input retains one byte for the next byte-oriented stdio read and clears EOF. Raw descriptor and console reads use the underlying input cursor (#1672).
- Guest graphics draws accumulate into the bound render target. Each backend draw now contributes only the pixels covered by its triangle, so earlier draws survive until an explicit `SetRenderTargets` clears the target; flat and textured draws use the same composition rule (#1612). The focused software-reference test checks two disjoint triangles, the stored target bytes and the clear reset. Local Apple Silicon verification only; no native Metal, game-execution or independent-acceptance claim is made.
- `ldexp` sets guest `errno` to `ERANGE` when a finite input overflows to signed infinity. Original guest controls cover both signs and verify that exact finite results and preexisting infinities preserve `errno` (#1731).
- Narrow CRT `scanf` stops at an incomplete fixed-width character field and returns the number of completed assignments. It leaves the incomplete field’s destination untouched (#1657).
- Secure CRT `qsort_s` and `bsearch_s` dispatch the invalid-parameter handler for invalid arguments and report `EINVAL` when the handler returns. Invalid calls leave the array untouched and skip the comparator (#1633).
- Spawned children receive their parent's environment. `_spawnve` and `_wspawnve` read the environment vector they are passed instead of dropping it, a null vector inherits the CRT environment copy `_putenv` maintains as the CRT contracts the spawn, and `_initialize_narrow_environment` seeds that copy from the process environment block at startup instead of pointing `_environ` at an empty table. Insertions and removals through `_putenv` rebuild the `_environ` table over the CRT-owned strings as the CRT rewrites its own, `getenv` resolves startup entries, and the environment is one coherent store across the CRT services. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: exported variables reach child shells in both resolution forms and at any nesting depth, `env` prints them, and `make` substitutes environment variables in recipes. Local verification only.
- File times now follow the drive's clock: creation stamps the file, every write and truncation moves the write time, and `GetFileInformationByHandle` reports the tracked times instead of zeros. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `find -newer` answers correctly, and make's incremental semantics work - a second `make` reports nothing to be done and editing a dependency rebuilds exactly the affected target.
- The C-locale `strftime` and `wcsftime` formatters emit the two-digit century for `%C`. The shared guest fixture checks the 1999 to 2000 boundary for both widths (#1605).
- Explicit PE packages now record each completed TLS detach callback and the callback that fails. The native regression checks callback order, the exact guest fault, and the subsequent `DllMain` record (#1733).
- One-shot PE package runs report a fault in a detach callback even when the root program has already exited successfully. The startup report retains the entry-returned stage and includes the root exit status in the diagnostic. A run with a detach fault publishes no guest file export (#1769).
- Documented how package consumers read entry and shutdown evidence, with commands to reproduce callback ordering and the one-shot export check (#1796).
- The Ascension tracker preserves verified work during GitHub synchronization and excludes completed or superseded packages from remaining implementation counts (#1278).
- Guest file streams now set `feof` when `fgetws` encounters the end of input, including the text-mode `Ctrl+Z` marker. The hosted C fixture checks the indicator, exact-capacity reads, and reset after `clearerr` and seek (#1494).
- Removed the obsolete CRT input helper left by the stdin redirection change so the loader builds with strict Clippy again (#1590).
- Default bounded wide formatting reserves space for a terminator, reports insufficient capacity, and supports null-buffer sizing. Original guest controls distinguish the default, legacy and explicit sizing forms (#1748).
- Wide CRT `printf` formatting uses UTF-16 arguments for `%lC`, `%wC`, `%lS` and `%wS`. Original PE controls check non-ASCII output, explicit precision and exact buffer capacity (#1662).
- The CRT spawn re-parses the flattened child command line instead of passing the parent's argv verbatim: the CRT flattening is verbatim on Windows and busybox-w32 pre-quotes every argument for it, so only the reparse consumes the caller's quote layer. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `make` runs Makefile recipes through the shell and multi-target dependency builds complete, while scripts, pipes and command substitution are unchanged.
- XTRE validates the stack, thread-local storage array, and thread environment block before preparing a guest session. Single-image validation respects the PE stack reserve, and package validation uses the loader's fixed stack (#1564).
- Kernel32 path services now reject empty interior and trailing separators before lexical dot resolution while preserving the empty drive key, a single leading drive-root anchor and the bare volume root in both widths (#1579). The earlier anchored-path, working-directory, UNC-refusal and dot-segment behavior is unchanged; `CreateDirectoryA` again refuses `valid\\inner` instead of collapsing it into an existing directory, while `C:/`, `C:\\` and `\` still answer `FILE_ATTRIBUTE_DIRECTORY`. Focused synthetic path tests cover the restored shape, the retained anchor and the bare-root forms. No Windows, Xbox, game-execution or independent-acceptance claim is made.
- The CRT `_getcwd` honours the allocating form of a null buffer: the answer lands in a fresh heap allocation exactly the size of the answer, the contract of mingw-w64 `_getcwd` and what busybox-w32's ash leans on through `getcwd(NULL, 0)` when it tracks the working directory. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `pwd` and `$PWD` track changes of directory, `cd -` round-trips through `OLDPWD`, and the logical path of a directory symlink shows after entering it.
- The find data of `FindFirstFile`/`FindNextFile` now carries the entry times in the three FILETIME slots at offsets 4, 12 and 20 of either width: the narrow serialization never wrote them at all and the wide one wrote them eight bytes lower, split across the wrong fields. Guests reading directory-entry times - the whole mingw `lstat` chain of a real binary does, since reparse detection reads the find data - previously answered the zero of the first day of 1601, whose negative seconds no CRT `ctime` of a mingw binary survives: busybox `ls -l` of a directory entry whose times came from the find data dereferenced the null and died mid-row, surfacing in the parent shell as a spawn failure. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: the long listing of a symlink now completes with its date and `->` target.
- Runtime module loads can be retried with the same service registry after TLS preparation fails. Data imports are bound after TLS preparation so codecvt cells remain readable and writable on retry (#1521).
- Runtime module preparation rechecks selected module names against the active service registry before mapping. A named alias or an ordinal-only service can reserve the identity (#1604).
- XTRE persistent input plans can be cloned and replayed independently. Session construction rejects a request after Stop or more than 64 inputs before launching the guest (#1555).
- Symbolic links whose target text climbs with `..` resolve correctly: the dot segments now collapse after the target joins the link's parent, not before, so a link at `dir/sub/up` pointing at `../real.txt` reaches `dir/real.txt` instead of losing the climb. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `ln -s ../sl/a up_link` reads through the link, and relative chains, absolute targets and link-to-link chains are unchanged.
- `_ctime64_s` and its `ctime_s` binding write an empty string to a valid output buffer when returning `EINVAL` for a null or out-of-range source time. A zero-capacity buffer stays intact (#1556).
- The kernel32 path services resolve working-directory-relative and anchored absolute guest paths correctly: the path readers no longer strip the root anchor before the working-directory resolution runs, so an anchored form (`\dir\file`, as mingw `_fullpath` produces) no longer acquires a second working-directory prefix. `CreateFile` both widths, `GetFileAttributes`/`SetFileAttributes`, `CreateDirectory`/`RemoveDirectory` and `MoveFile` share one reader-resolver pair per width. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `realpath` answers for plain directories and symlinks, `cd` through a directory symlink enters the target, and absolute-path reads succeed from a subdirectory working directory.
- `SetEnvironmentVariableW` rejects values longer than 32,767 UTF-16 code units before replacing the existing value (#1560).
- `SetEnvironmentVariableA` checks the 32,767 UTF-16 unit limit before publishing a value. Multibyte values that fit the guest UTF-8 model are stored whole, and an oversized replacement preserves the previous value (#1754).
- The one-shot PE runner checks module counts before opening paths, applies a 256 MiB aggregate snapshot limit to each group of modules, and reports rejected companions or provisioned images as admission failures (#1404).
- The shared authored persistent-session protocol validates the four-byte `XenoraSessionNextInput` destination before publishing its Ready boundary or reading a host request. The CLI and `xenora-xtre` therefore reject null, read-only and cross-page destinations with `invalid NextInput output address` instead of waiting for input at a boundary the guest had not validly reached (#1537). The three original CLI boundary regressions and two new protocol-level tests pass locally; no timeout, tolerance or guest fixture was changed.
- Authored PE sessions reject completion and guest file exports when a graphics device is still live at Finish or when the launcher checks cleanup after guest exit. The original CLI controls verify both cases on Reference and Metal (#1487).
- A completed guest draw keeps its original image dimensions when a later command changes the viewport. The authored session launcher verifies both the original pixels and dimensions on Reference and Metal (#1463).
- Native fixture checks now accept Apple's universal `/usr/bin/clang`, whose native slice is `arm64e` rather than a literal `arm64` slice (#1540). A shared check accepts either native ARM64-family slice while still requiring an executable tool and still reporting `file -L`, `lipo -archs` and `otool -L`; the 23 build scripts that can fall back to `command -v clang` use it. A thin Intel-only slice is rejected and no fixture, timeout or test assertion was weakened. A QA guard verifies both outcomes, and the previously failing console ANSI fixture passes with the universal compiler.
- The Python QA runtime inventory parser now accepts and validates the authoritative `before` pre-handler catalog field used by `ucrtbase.dll!_read` (#1531). It mirrors the Rust generator's hook grammar (`name(parameter)`), known-hook and parameter-kind checks, rejects malformed, unsupported and duplicate fields, keeps the additive field in JSON serialization, and leaves the typed service and alias counts unchanged. The strict QA suite previously failed on `main` with `unknown field 'before'`; no catalog, generated table or guest behavior changed. The local `PYTHONPATH=scripts python3 -m unittest discover -s tests/qa` suite reproduced the failure before the change and now reports 95 tests with 8 platform-skipped tests and no errors.
- Native fixture build scripts now use the documented input-first `lipo -verify_arch arm64` form. Xcode 26.6 rejects the previous flag-first order, which made a native CI run fail even when the host tools were ARM64; the ARM64 requirement itself is unchanged.
- Restored the strict workspace baseline after the merged SSE3 and CRT work: stale witnesses no longer expect the implemented horizontal and add-subtract forms to be refused, the CPUID SSE3 bit remains clear while FISTTP, MONITOR, MWAIT and the legacy LDDQU, MOVDDUP, MOVSLDUP and MOVSHDUP forms stay absent, and the CRT allocation-failure fixture now materialises `_fmode` before exhausting the heap so it still checks `fopen`'s `NULL`/`ENOMEM` path. Removed the strict-lint violations in the runtime-services and CRT-stream fixtures, the reparse-point path now uses the symlink accessor instead of leaving it dead, and the COM task-memory guest now checks the page-granular committed extent that VirtualQuery reports after the heap-arena change, and the legacy disk-space, volume-information and mount-point queries accept the explicit `C:\` root anchor preserved by the later path-normalization change. `CreatePipe` refuses an overflowing security-attribute address instead of panicking under the seeded robustness driver. The deferred-child pipe trigger is now a validated `before run_pending_writer_for_fd(fd)` entry in the authoritative service catalog and is emitted by the generator instead of being hand-edited into the generated runtime table; the generated runtime table and live service inventory were refreshed after the prior runtime merges. Exact heap sizes are now keyed by owning heap and removed only when that heap's allocation is released, so a guest's rejected `LocalFree` of a movable object's backing address no longer hides the object's size from `LocalSize`; the IAT heap witness now checks the page-granular committed extent instead of expecting the byte after a 19-byte record to be unmapped (#1526). This is a test, generation and documentation reconciliation plus a heap bookkeeping fix, not new instruction execution or a CPUID policy change.
- Restored the strict workspace baseline after the merged SSE3 and CRT work: stale witnesses no longer expect the implemented horizontal and add-subtract forms to be refused, the CPUID SSE3 bit remains clear while FISTTP, MONITOR, MWAIT and the legacy LDDQU, MOVDDUP, MOVSLDUP and MOVSHDUP forms stay absent, and the CRT allocation-failure fixture now materialises `_fmode` before exhausting the heap so it still checks `fopen`'s `NULL`/`ENOMEM` path. Removed the strict-lint violations in the runtime-services and CRT-stream fixtures, the reparse-point path now uses the symlink accessor instead of leaving it dead, and the COM task-memory guest now checks the page-granular committed extent that VirtualQuery reports after the heap-arena change, and the legacy disk-space, volume-information and mount-point queries accept the explicit `C:\` root anchor preserved by the later path-normalization change. `CreatePipe` refuses an overflowing security-attribute address instead of panicking under the seeded robustness driver. The deferred-child pipe trigger is now a validated `before run_pending_writer_for_fd(fd)` entry in the authoritative service catalog and is emitted by the generator instead of being hand-edited into the generated runtime table; the generated runtime table and live service inventory were refreshed after the prior runtime merges. Exact heap sizes are now keyed by owning heap and removed only when that heap's allocation is released, so a guest's rejected `LocalFree` of a movable object's backing address no longer hides the object's size from `LocalSize`; the IAT heap witness now checks the page-granular committed extent instead of expecting the byte after a 19-byte record to be unmapped, and the bounded soak witness counts the page-granular heap commit rather than the exact requested size (#1526). This is a test, generation and documentation reconciliation plus a heap bookkeeping fix, not new instruction execution or a CPUID policy change.
- File names in the virtual drive now accept the full Unicode range of NTFS rather than ASCII alone: narrow paths arrive as the UTF-8 of the process code page, and case folding is the Unicode lowercase, the documented approximation of the case-insensitive comparison NTFS applies across the whole range. `fünf.txt` and `FÜNF.TXT` name the one file exactly as `plain.txt` and `PLAIN.TXT` do, measured with the public mingw64 busybox binary on Apple Silicon.
- CRT `rename` now answers `EEXIST` for an existing file target, exactly as the mingw-w64 CRT answers it: busybox-w32's own `mingw_rename` reads that errno to decide the `MoveFileEx` replace fallback is worth attempting. `MoveFileEx` of either width also resolves its names against the working directory, as the kernel32 file services resolve them on Windows. busybox `sed -i` and `mv -f` now replace files in place, measured with the public mingw64 binary on Apple Silicon in the working directory and at the drive root.
- CRT `_chmod`/`_wchmod` now accept directories, exactly as `SetFileAttributes` accepts them on Windows: the read-only mark applies to the path, which names a file or a directory but never both, and nothing the drive enforces against directories changes. busybox `cp -r` previously complained it could not preserve the permissions of every directory it copied; the copy now completes silently.
- The synthetic `CreateProcessA` returns a guest error before reserving child handles when required pointers are null, when a startup field it reads is inaccessible, or when the process-information output is unwritable (#1426).
- Anonymous pipe writes fail with `ERROR_BROKEN_PIPE` in Win32 and `EPIPE` in the CRT after the last read-end handle closes. Duplicated readers and writers keep their respective ends open until their final close. Pipelines whose producer is still running when the consumer exits also require interleaved child execution, which remains pending (#1471).
- CRT heap allocations now commit page-granular memory while reporting exact requested sizes, reproducing the Windows CRT heap's arena slack: small-object adjacent reads that the mingw CRT stdio macros rely on complete instead of faulting, which repairs `diff` end-to-end on differing files (it previously died with a guest access violation); zero-length allocations keep their zero-length marker behaviour, and same-page growth is a pure in-place size change (#1421).
### Added
- An original hosted C report exercises allocation, overlapping buffer moves, numeric parsing, the C locale, wide streams, worker-local `errno`, UTC formatting and ordered exit cleanup. The fixture checks exact report bytes and malformed and missing input at two optimization levels (#1492).
- `CreateProcessA` now starts a deferred child process for the spawn-then-wait shape the mingw popen machinery uses (#1426): the startup structure's standard handles wire the child's input, output and error, the command line parses by the documented Microsoft quoting rules, and the child executes synchronously where the parent can no longer proceed without it - at the wait, or at the first read of a pipe the child feeds, since a drained pipe cannot answer before the child has written it. An active child or an exited child with a retained handle can be reopened by PID. All handles report the same PID and exit status. The parent can close its pipe handle immediately while the deferred child retains the endpoint through its own handle. The parent reaches EOF after the last writer closes, including when stdout and stderr share a pipe. CRT seeks now propagate into the synthesized kernel file object behind a descriptor, as `_lseek` is the handle's own `SetFilePointer`, so an inherited handle starts where the seek left it - the seamless-decompressor inspect-and-seek-back shape depends on it. Measured end-to-end on Apple Silicon with the current public mingw64 busybox binary: `tar czf` writes a valid gzip archive, `tar tzf` lists it, `tar xzf` extracts intact contents and `zcat` decompresses to stdout, where every one previously died at the compressor spawn. An original mingw-w64 fixture pins the whole shape - pipe drained before the wait, payload intact through the seek-back, status collected through the `OpenProcess` alias. Limitations: this is deferred synchronous execution, not concurrent processes - a parent that never reads the pipe nor waits never runs the child. Evidence is local Apple Silicon testing with the public binary only; no Windows comparison, independent acceptance or game compatibility is claimed.
- The existing en-US locale now returns its ISO language and country codes through GetLocaleInfoA, GetLocaleInfoW and GetLocaleInfoEx. The separate Windows language abbreviation remains ENU (#1488).
- Added a source-built benchmark for initial package TLS peak resident memory on Apple Silicon. It compares two release loader revisions with exact TLS and payload checks, and retains raw measurements for matching no-TLS controls (#1485).
- An original GNU C++ guest verifies a worker waits on `std::mutex` and the direct pthread mutex, observes the owner's publication after unlock, and retains its own dynamically initialized thread-local value. Both optimization levels exercise uncontended and contended modes (#1483).
- An original GNU C++ guest checks `std::vector::reserve` rollback after a throwing element copy, successful retry, and balanced construction and destruction. The test builds at two optimization levels and uses an explicitly supplied local GNU unwinder (#1476).
- An original AMD64 guest checks the canonical Kernel32 context-capture, function-entry lookup and one-frame virtual-unwind exports against assembler-emitted unwind metadata in a relocated image (#1475).
- `GetProcessIdOfThread` returns the owning guest process ID for current, live, and retained thread handles with query rights. The service is limited to threads in the calling Xenora guest process (#1470).
- Added an original three-module COM guest that checks task-memory ownership across DLLs and COM import aliases, including failed growth, caller release, and clearing an owned UTF-16 property variant (#1457).
- An original authored PE session fixture keeps a Windows guest worker alive between frames. It checks event handoff, thread-local state, deterministic clock readings in a worker-written journal, exact RGBA output, and a clean join on Stop at zero and 64 inputs. A 65th input is rejected without a completion report (#1449).
- Added an original GNU C++ guest that checks per-thread initialization and mutation of a compiler-generated thread-local scalar across a two-worker condition-variable rendezvous, including timeout and lock reacquisition (#1445).
- The exact `vcruntime140.dll!__C_specific_handler` import resolves to the existing partial C structured exception handler. Compiled guests verify both unwind into a catch and resumption without unwind when a filter continues execution (#1438).
- `PropVariantClear` releases task-allocated GUID and binary BLOB payloads and resets the guest record to `VT_EMPTY` (#1429). Overlapping or unwritable descriptors leave the payload allocation intact.
- An original hosted C text index checks C-locale transform bounds, collation, callback sorting and binary searches at two optimization levels in fresh guest states (#1425).
- Added an original GNU C++ package fixture for nested exceptions across two DLLs and an EXE (#1424). It checks inner cleanup before rethrow, outer object identity across both typed handlers, and exact guard and destructor order. The fixture exercises the installed shared SEH unwinder at two optimization levels, with pre-entry refusal when the unwinder is omitted and a fresh successful replay.
- `scripts/audit/compare_import_bindings.py` compares a fixed wanted-import list across two saved registry snapshots (#1417). Both report formats include per-DLL counts, exact binding changes and SHA-256 digests that identify the snapshots and the normalized wanted set.
- Added an original CLI fixture showing that provisioning a DLL leaves it unavailable to the guest, while explicit packaging runs its process-attach initializer and exposes its export (#1408).
- An authored PE session test interleaves two launches that use the same guest journal path. After the second fails cleanup, the first finishes with the expected frames and virtual clock, and a fresh launch restarts both counters (#1407).
- `vcruntime140.dll` exposes `__intrinsic_setjmp` and `longjmp` for AMD64 null-frame C callers (#1409). The original guest exercises nonlocal continuation and saved register state. Calls requesting unwind-backed cleanup stop with a guest unwind failure.
- `WinHttpCrackUrl` supports `ICU_DECODE` with caller-provided component buffers (#1402). It writes one wide unit per `%xx` byte and checks each capacity against the decoded length before writing. An original AMD64 guest checks decoded and raw output and an undersized buffer failure.
- `WinHttpCrackUrl` accepts `ICU_ESCAPE` for copied path and extra-info UTF-16 components. It escapes raw spaces in those components and checks the expanded length before writing any component (#1580).
- The UCRT utility API set exposes `rand` and `srand` with deterministic per-thread state shared by `ucrtbase.dll` (#1393). The UCRT time API set exposes `_time64` with a signed 64-bit timestamp from the injected clock and an optional eight-byte guest output. Original AMD64 guests exercise the API sets, reseeding, separation from the legacy CRT and the clock boundaries.
- An original PE executable and two DLLs exercise separate C++ records on two simultaneously live guest workers. Thread return and explicit exit each drive a cross-DLL FLS callback, destructor and heap release before the worker handle signals (#1395).
- An original hosted C record processor checks the CRT environment, formatted input, exact floating-point splitting, UTC leap-day formatting and guest file ownership. The fixture also verifies malformed input and fresh-state replay (#1388).
- Extracted the authored persistent-session ABI into `xenora::persistent_session` and reused it from both the CLI worker and `xenora-xtre` instead of defining a second protocol. XTRE now offers host-owned `PersistentInputs`, `PersistentSession` and `PersistentReport`: the guest receives bounded inputs, each presentation is captured and checked against the selected backend, and shutdown fails on a missing stop request, a broken input/presentation sequence or an open runtime handle. The original `fixtures/pe/authored-session` package is reused unchanged. Three ordinary tests passed and one ignored native Metal comparison passed locally on Apple Silicon; this is a bounded host-driven loop, not a native window, general event loop, Xbox interactive contract or independent acceptance (#417).
- Added an original Microsoft x64 C++ fixture that runs a polymorphic control and checks that dynamic type queries and casts stop at the exact unresolved runtime import before guest entry (#1380).
- An original GNU C++ guest exercises ordered map node ownership. It checks that rejected duplicate insertion preserves the node and pointee, then verifies reinsertion, record destruction order, and clean state on replay (#1378).
- An original PE executable and two DLLs exercise the opt-in COM factory, server locking, same-thread interface ownership and independent STA and MTA cleanup in one package. The fixture also checks unload eligibility and refusal when the opt-in service is absent (#1372).
- Movable local-memory objects now have stable handles across lock, resize, discard and rehydration. The existing heap API-set `LocalFree` binding releases them, and an original guest PE checks relocation, failed-resize rollback and stale-handle errors (#1366).
- Added an original GNU C++ guest whose exception unwinds through two independently compiled C DLL frames. The executable checks the typed catch and destructor order, and a missing inner DLL fails before entry (#1365).
- Authored PE guests can register a bounded ANSI window class, create a headless window, post and dispatch messages to the guest procedure, change visibility and retire the window. An original scheduled PE exercises the seven RTCore imports, including failed and reentrant creation and cleanup after the owner thread exits (#1357).
- `PeekMessageA` and `PeekMessageW` recognize the documented queue category flags. Guests can select posted messages without changing the existing window, message-ID and removal rules (#1759).
- Guest processes can create and reopen named semaphores with the ANSI and wide Win32 APIs. Handles to the same name share the permit count and the name retires when the final handle closes. The `api-ms-win-core-synch-l1-2-1.dll!CreateSemaphoreW` import reaches the same implementation (#1347).
- An original PE executable and its provider DLL exercise explicit event closure and process-exit cleanup through the package loader. A fresh run verifies independent state after a deliberate nonzero exit (#1338).
- An original Microsoft x64 EXE and two DLLs verify independent static thread-local indices and storage on the initial thread. The regression checks cross-DLL writes, detects an altered template, and checks clean initialization in a fresh package run (#1337).
- The synthetic C runtime supports the documented `strftime` format codes `%D`, `%F`, `%R`, `%T`, `%n`, and `%t` (#1326).
- The UCRT `wcsftime` import uses Xenora's supported C-locale calendar conversions, preserves UTF-16 literals and counts capacity in wide code units. Invalid parameters and unsupported conversions use the guest CRT callback (#1440).
- An original Microsoft x64 codecvt package fixture verifies that an executable and two DLLs share each synthetic locale ID cell while keeping the four specialization cells distinct. It checks writes across modules, fresh state, and startup refusal for an unsupported specialization (#1325).
- The Universal CRT executable SEH filter can continue exception search, ignore mapped exceptions, or call a one-shot guest `SIGILL` or `SIGSEGV` handler (#1322). An original compiled AMD64 PE exercises the API-set import on Apple Silicon.
- An original two-thread COM guest checks separate apartment initialization and shows that the synthetic server stays ineligible to unload until the last thread releases its object. The regression covers balanced cleanup, opt-in refusal before entry, and a fresh run (#1320).
- An original Microsoft x64 C++ package fixture verifies that two base views share one virtual base, dispatch to the derived object, and release the complete allocation through that virtual base. A rejected handoff leaves the allocation live for a retry. Local Apple Silicon verification only (#1305).
- Universal CRT `_c_exit()` returns to the guest with pending exit callbacks and open descriptors intact (#1292). An original AMD64 PE verifies the runtime API-set import on Apple Silicon.
- A separate synthetic `std::clog` import routes bounded writes to guest standard error, keeps its state independent of `std::cout`, and participates in the final `ios_base::Init` flush. A source-built Microsoft x64 ABI fixture locally verifies routing, state isolation, and refusal of oversized writes on Apple Silicon (#1282).
- Added a source-built GNU C++ package that verifies scalar thread-local storage across an EXE and DLL, then checks that the compiler-emitted destructor import is refused before guest entry (#1507).
- Guests can call `_get_wide_winmain_command_line` through UCRT or its runtime API set to pass the UTF-16 argument tail to `wWinMain` on startup (#1442).
- Added an original GNU C++ package fixture that throws a typed object in a DLL, catches it by reference in the EXE, and checks stack cleanup and exception-object destruction in order (#1411). Both images use the installed MinGW-w64 shared SEH unwinder. The fixture also checks an ordinary return, refusal before entry without the unwinder, and a fresh package run at two optimization levels.
- `VirtualQueryEx` resolves through Kernel32 and the memory API set for queries using the current guest's pseudo-handle. It reports the same tracked regions as `VirtualQuery` and validates process handles before changing guest output (#1375).
- Synthetic guests can create `HKEY_CURRENT_USER` keys, reopen them with `RegOpenKeyW` and store DWORD preferences for the guest run (#1308). Original AMD64 PE fixtures verify round-trips and fresh-session isolation on Apple Silicon.
- Original Microsoft x64 C++ fixtures record the compiler’s typed throw dependencies, verify normal destructor order, and show that an image with catch-all rethrow metadata is refused before entry because its exception-runtime imports are missing. Local Apple Silicon evidence for the current boundary (#1297).
- An original COM package fixture passes an opt-in synthetic IUnknown from a producer DLL to a consumer DLL. It verifies identity, error handling, reference ownership, and unload eligibility, then checks that a missing opt-in refuses startup before a fresh run succeeds. Local Apple Silicon verification only (#1287).
- Added opt-in graphics startup to `xenora-xtre` (#417). `ApplicationConfig::with_graphics_backend` accepts `none`, `reference` or `metal`; `metal` installs the existing `xenora::hosted_graphics::install_metal` adapter before launch, and the report records a `graphics-prepared` milestone plus a `graphics_backend` field in `summary_json`. The existing original `fixtures/pe/package-scene` package is reused unchanged as the acceptance fixture: its executable and provider DLL draw two frames through the standard graphics services, export 96 bytes to `C:\package-frames.bin`, and destroy every graphics object before exit. Four ordinary tests cover the reference backend twice, a rejected provider and backend-name validation; the native Metal case passed locally on Apple Silicon as an `ignored` test run by `scripts/test-gpu.sh`. This is headless startup, not a native window, persistent frame loop, Xbox graphics contract or independent acceptance.
- Added host-supplied scoped storage to `xenora-xtre` (#417, #1523). `ApplicationConfig::with_storage_scope` accepts a 1-to-64-character ASCII scope of letters, digits, hyphens and underscores, publishes it to the guest as `XENORA_STORAGE_SCOPE`, and records a `storage-scope-prepared` milestone. The original `fixtures/pe/xtre-storage.cpp` fixture creates `C:\xtre-storage-`, writes and rereads a journal through the existing UCRT file services, and the host checks the result through `ServicesState`. Four tests in `crates/xtre/tests/storage_scope.rs` cover two isolated scopes, the maximum scope length, a missing scope and invalid scope names; they passed locally on `aarch64-apple-darwin` together with the five existing XTRE tests. Scoped storage is a directory on the synthetic in-memory `C:` drive with no host filesystem mapping, no persistence beyond the session and no separate quota.
- The AVX2 gather instructions execute in both engines: each lane loads from its own vector-indexed address when its mask lane's sign bit is set, masked lanes are never accessed and keep their destination values, and the mask zeroes as lanes complete, matching the restartable fault model of the manuals.
- MASKMOVDQU and VMASKMOVDQU execute in both engines: the sign bit of each mask byte decides whether the source byte reaches the memory at the implicit RDI address, masked bytes are never accessed, so their faults are suppressed.
- The VEX form of the carry-less multiply executes in both engines: VPCLMULQDQ takes the first source from VEX.vvvv as the non-destructive encoding of the legacy operation, with the same SDM Table 4-13 qword selection by imm8 bits 0 and 4, at 128 bits.
- The VEX AES-NI forms execute in both engines: VAESENC, VAESENCLAST, VAESDEC and VAESDECLAST take the state from VEX.vvvv as the non-destructive encodings of the legacy round operations, and VAESIMC and VAESKEYGENASSIST widen likewise, all at 128 bits.
- An original C++ guest fixture exercises compiler-generated Itanium ABI guard abort when a function-local constructor throws. A guest worker retries and initializes the object once, and startup controls require the three guard imports. The compiled fixture passes locally at two optimization levels on Apple Silicon (#1277).
- `WinHttpSetStatusCallback` now delivers synchronous guest handle creation and closing notifications for the supported flags (#1281). Derived handles inherit the callback, and the loader preserves all five Win64 arguments and the enclosing API result. Closing a parent invalidates descendant operations while allowing each handle to be explicitly closed. Evidence comes from original PE tests on Apple Silicon.
- Added `xenora-xtre`, a bounded host-side startup orchestration crate over the existing loader, service registry, cooperative scheduler and opt-in synthetic Gaming Runtime lifecycle (#417, #1522). It validates caller-supplied application configuration before creating a session, keeps each session's service state isolated, runs single-image or explicit-package startup, records ordered milestones and stops at the first structured failure. `StartupReport::summary_json` uses stable machine-readable codes rather than human-facing loader display text. Five tests in `crates/xtre/tests/startup_slice.rs` passed locally after rebasing onto current main, covering repeated isolated launches, the original multi-DLL package, invalid configuration, an unexpected exit and an unresolved import. This is Windows-shaped synthetic execution: no native launcher, Metal initialization, console container, Xbox startup, authenticated SDK material, game execution or independent acceptance is claimed. The earlier shared XAsync debug overflow was corrected on main by #1293; the targeted runtime robustness test passes on the rebased branch and this fixture does not mask that runtime lane.
- Added an original C++ PE32+ fixture and native ARM64 builder for the XTRE startup path (`fixtures/pe/xtre-startup.cpp` and `fixtures/pe/build-xtre-startup.sh`, #1522). It creates a task queue, drives the merged XAsync provider protocol through `Begin`, `DoWork`, `GetResult` and `Cleanup` with the documented operation codes 0, 1, 2 and 4, checks the completion callback and payload, closes the queue, and checks idempotent Gaming Runtime initialization and teardown. The package tests derive the expected import count from the original PE import tables: eleven imports for the single-image fixture and nine for the multi-DLL fixture, including host-service bindings. These are original synthetic fixtures with local evidence only.
- Added an original Microsoft x64 C++ package fixture that checks compiler-emitted global initialization in dependency order and per-DLL exit callbacks in reverse registration order (#1276). The EXE and two DLLs record their execution order in the synthetic guest drive.
- Added an original Microsoft x64 C++ ABI package fixture that constructs an object in one DLL, invokes and deletes it through a base pointer in another, and checks destructor order and heap release. A rejected handoff leaves the object live for a retry (#1263).
- The XAsync provider protocol core in `xgameruntime.dll` (#1252): `XAsyncBegin`, `XAsyncSchedule`, `XAsyncComplete`, `XAsyncGetStatus`, `XAsyncCancel`, `XAsyncGetResult` and `XAsyncGetResultSize`, plus the `XTaskQueueGetCurrentProcessTaskQueue`/`XTaskQueueSetCurrentProcessTaskQueue` pair the queue-less blocks fall back to. `XAsyncBegin` invokes the provider synchronously with `Begin` through the callback-task machinery; `XAsyncSchedule` queues the `DoWork` invocation on the work port and `XAsyncComplete` queues the caller's completion callback on the completion port, both riding a new exact-arguments form of queue callback since the protocol invokes providers with an operation code and data pointer rather than a context. The provider data block lives in the documented 32-byte `internal` space of the 56-byte `XAsyncBlock`. Retrieval honors the identity-mismatch `E_INVALIDARG`, the payload-less `E_NOT_SUPPORTED` and the size the completion recorded, and a successful retrieval chains the provider's `Cleanup` before the operation leaves the table. `XAsyncGetStatus` answers `E_PENDING` or the operation result with an optional blocking wait. Three original end-to-end fixtures compiled from C++ with native clang/LLD exercise the round trip, the cancel path and the process-queue fallback through the synthetic startup. Limitations: thread-pool queue modes cannot carry provider arguments yet and are refused with `ERROR_NOT_SUPPORTED`, operations never retrieved never run `Cleanup`, and the exact value of `E_NO_TASK_QUEUE` comes from independent public reconstructions rather than a Microsoft page. Local verification only.
- `WINHTTP_OPTION_CONTEXT_VALUE` in `WinHttpSetOption` and `WinHttpQueryOption`: the caller-owned opaque per-handle value Windows stores on every session, connection and request handle, zero until set, an eight-byte `DWORD_PTR` sized by the option contract, independent per handle and gone with the handle. Sized queries report the required eight bytes and the closed-handle query fails with the invalid-handle error. Local verification only.
- Native Metal compute commands can be packed into one bounded command buffer with `NativeCompute::submit_words_batch` and collected through `wait_batch` (#137). Each `(source, entry, input, output_slot)` tuple is checked before anything is encoded; up to eight commands share one completion wait, distinct output slots stay independent, reused slots share one output buffer, and one compute encoder carries every dispatch with a buffer-scope barrier following each dispatch but the last. Outputs are read after the whole batch completes, so commands that share a slot see its final contents. The in-flight table stays at sixteen submissions and reports a `queued_commands` bound of at most 128; invalid batches release every acquired buffer without inserting a submission. Original Apple M5 fixtures compare eight batched outputs with individual dispatches, exercise a shared-slot write/read pair across the barrier, and pin the empty, oversized, bad-slot and full-queue refusals. A pre-change probe of eight commands measured median host 3244.833 us and GPU 123.042 us across 20 samples; after the change, one manual comparison on the same host measured median host 2411.793 us for individual commands and 825.417 us for the batch, with GPU spans of 165.104 us and 159.208 us respectively. These are debug-build samples with warm pipelines on one device, not a general speedup, independent acceptance or game execution claim.
- `EncodePointer` and `DecodePointer` now resolve as partial `KERNEL32` services using a deterministic synthetic per-process cookie, with an original generated PE import test that round-trips a pointer through the translated service path. Windows does not publish a stable cookie algorithm, so no compatibility or cryptographic claim is made (#459).
- Documented the evidence scope of the regenerated single-module Microsoft import census (#1163). Against `origin/main` revision `bdedc62d` it classifies 198 distinct imports as 27 implemented, 95 partial and 76 missing, and groups the missing `KERNEL32.dll` names by subsystem. This static CSV census is explicitly not a reproduction of the historical multi-module package preflight counts; no authorized redistributable DLLs were available, none were committed, and no execution claim is made.
- The 256-bit form of VPMOVMSKB executes in both engines, concatenating every byte lane's sign bit across both 128-bit halves: the low half answers bits 0-15 of the general register and the high half bits 16-31. Fixtures cover both vector widths against the independent byte-array reference, a deterministic regression separates the halves' bit positions, and the AVX2 CPUID witness moves to the still-refused 256-bit VPBLENDVB. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- A machine-readable Operation Ascension campaign tracker under `docs/coordination/ascension-tracker.json`, with validated work-package fields for subsystem, priority, dependencies, owner, state, evidence class, issue, PR, test status and limitations. `scripts/audit/campaign_tracker.py --check` verifies the local schema; `--sync` reconciles PR and issue states through the installed GitHub CLI without changing ownership, evidence or limitations. `docs/README.md` links the tracker and commands. This is planning infrastructure only; it does not mark any implementation independently verified.
- VPMASKMOVD and VPMASKMOVQ execute in both engines at 128 and 256 bits: lanes are loaded or stored only when the sign bit of their mask lane is set, masked lanes are never accessed, so fault suppression matches the manual. Validated against an independent byte-array reference in `tests/x86_avx2.rs`, including the memory write-back of masked stores.
- Decode and execute the SSE3 horizontal and add-subtract float forms HADDPS, HSUBPS, HADDPD, HSUBPD, ADDSUBPS and ADDSUBPD and their AVX forms in both engines, validated against exact rational arithmetic in the independent reference, which composes them lane by lane across positions.
### Changed
- Dependency modules of a runtime-loaded batch are no longer pinned process-resident: one count is the batch's own reference, and a root unload cascades in reverse topological order — members whose batch reference was their last run their detach sequence and unload, while a member the guest separately loaded stays resident (#1986).
- The x86 DBT tracks flag liveness per flag instead of all-or-nothing, so a flag-setting instruction stores only the flags that can still be observed. SETcc, CMOVcc and Jcc count as reading only their condition's flags, and VEX-encoded forms now count as possible block exits. The guest state at every fault, budget stop and block boundary is unchanged, and the persistent translation cache identity moves to `xenora-dbt-portable-v2-aarch64`, so older entries are not reused. Measured locally on an Apple M4: across 7,006 blocks decoded from the PE fixtures' code sections, emitted ARM64 code falls from 489,117 to 481,425 words (1.6%), and a linked loop of compare, SETB and arithmetic runs in 6.24–6.40 ms against 7.64–7.68 ms before (six interleaved runs each). Agreement with the interpreter is checked for every SETcc and CMOVcc condition at every budget cut and at a fault (#1903).
- The Ascension tracker records the consolidated hosted CRT matrix, closes the workflow rows for verified merges, and links the exact XTRE startup and replay evidence. R1 remains partial and R9 remains blocked on dynamic guest loading (#1642).
- The Ascension tracker links merged CRT, loader and XTRE work to exact test revisions and records the remaining wide calendar and dynamic-loading work (#1587).
- Reconciled the Ascension tracker with upstream CRT and XTRE merges through `332f9381`. The tracker records 16 passing tests in the ordinary Apple Silicon XTRE suite, which leaves two opt-in Metal cases ignored by default. Both cases passed in a separate native M1 Max replay. It also records the open host TLS-preparation retry fix (#1552). Direct CRT gaps and dynamic module lifecycle through XTRE remain open.
- Updated the Ascension tracker with verified hexadecimal conversion evidence for binary32 and binary64 (#1493) and independent native checks of the two VCOMP140 timing calls (#1313).
- Updated the Ascension tracker with independently reproduced native DLL attachment sequencing (#923) and exact evidence for the direct Microsoft STL wait and notification candidate (#1299).
- Updated the Ascension tracker with exact GNU TLS destructor-import evidence (#1507), separately tested decimal and hexadecimal CRT cases (#1493), and the merged preparation and registry boundaries for XTRE startup (#923).
- The Ascension tracker records scoped ARM64 evidence for classic Microsoft STL range collation, including the Win64 hidden return pointer and the pending shared-registry integration (#1482).
- The Ascension tracker records independent original-guest evidence for two missing UCRT wide-collation imports and a passing wide comparison control (#1502).
- Consolidated superseded Phase 01, Phase III, infrastructure and Phase 02 research notes into `docs/testing/historical-checkpoints.md` and removed six redundant documents (#1541). Original gate states, host facts, exact results, source pins and unresolved limitations are preserved; documents still linked from `docs/README.md` or held by live claims were retained. No gate was reopened or promoted, and no hardware, game-execution or independent-acceptance claim is made.
- Reconciled `docs/coordination/ascension-tracker.json` with the merged startup-first and runtime work (#1260, #1267, #1268, #1266, #1259, #1233, #1244, #1243, #1245, #1256, #1271, #1274, #1269, #1279, #1280). The XTRE slice is recorded as locally tested evidence class D, unresolved runtime dependency packages stay blocked and no package was promoted to independently verified. The tracker validator, dashboard and PR-state sync ran locally.
- Documented the XTRE host contract in `docs/interfaces.md` and `docs/runtime/xtre.md`, and recorded observed public startup-source revisions in `docs/research/sources.md`. The AMD RDNA2 ISA PDF is recorded as unavailable and a research task; no further download was attempted and no claim relies on it.
- Regenerated the checked-in runtime-service inventory against the merged service registry after rebasing onto current main (`a1b69294`). The inventory check passes; no new service implementation or compatibility claim is made by regeneration.
### Added
- A machine-readable Operation Ascension campaign tracker under `docs/coordination/ascension-tracker.json`, with validated work-package fields for subsystem, priority, dependencies, owner, state, evidence class, issue, PR, test status, limitations, ownership state, assignment side and personal-workload flag. Revised ownership records all 13 XTRE packages, eight vertical milestones and the remaining CPU/DBT, startup-research and Metal lanes under the maintainer assignment, while C/C++ runtime work is marked Catminou-owned and excluded from the personal implementation count. `scripts/audit/campaign_tracker.py --check` verifies the local schema; `--sync` reconciles PR and issue states through the installed GitHub CLI without changing ownership, evidence or limitations; `--dashboard` prints state and separate completion counts. `docs/README.md` links the tracker and commands. This is planning infrastructure only; it does not mark any implementation independently verified.
- The 256-bit form of VPBLENDVB executes in both engines: each byte lane is selected from the first or second source by the sign bit of the matching lane of the control register the immediate's high nibble names, independently in each 128-bit half. Fixtures cover register and memory sources with several control registers against the independent byte-array reference. The AVX2 CPUID witness moves to the gather instructions, which stay refused. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- VTESTPS and VTESTPD execute in both engines at both vector widths: the sign bit of each 32- or 64-bit lane decides ZF (no lane with both signs set) and CF (every set sign of the second source meets a set sign of the first), with the remaining flags cleared as the SDM orders. Fixtures compare the flags against an independent byte-array reference in both engines, including the all-zero and all-set edge patterns that decide the reductions. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- VMASKMOVPS and VMASKMOVPD execute in both engines at 128 and 256 bits: lanes are loaded or stored only when the sign bit of their mask lane is set, masked lanes are never accessed, so fault suppression matches the manual. Validated against an independent byte-array reference in `tests/x86_avx2.rs`, including the memory write-back of masked stores.
### Added
- The six legacy AES-NI forms `AESENC`, `AESENCLAST`, `AESDEC`, `AESDECLAST`, `AESIMC` and `AESKEYGENASSIST` now run in the interpreter and the ARM64 translation engine (#1188). The SDM operation order is shift rows, substitute bytes, the optional column mix and the round-key XOR; `AESIMC` is InvMixColumns only, and `AESKEYGENASSIST` uses SubWord of X1 and X3 with a zero-extended RCON immediate. No flags are written, and a faulting memory source changes no state. Original LLVM-assembled fixtures cover register and memory sources and all six opcodes; an independent GF(2^8) reference shares no code with the executor, and hand-derived FIPS 197 vectors pass in both engines. VEX and EVEX AES forms remain refused, and the CPUID AES bit stays clear with VEX `VAESENC` as the honest witness. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- Documented the current bounded GPU workload resource contract (#164): guest graphics and persistent resource caps, native compute and pipeline bounds, texture staging rules, explicit rejection behavior and the future indirect-count requirement. This consolidates verified source limits only; no runtime behavior, GPU result, game compatibility or independent acceptance is newly claimed.
- `GetCurrentProcessorNumber` reports virtual processor zero for the guest scheduler, allowing this Microsoft runtime import to resolve (#1201).
- Registered the documented localization, heap and process-thread API-set aliases for `FormatMessageA`, `LocalFree` and `GetCurrentThreadStackLimits` (#1251). The aliases inherit the existing partial Kernel32 implementations.
- Guest CPUID now exposes basic leaf 7 with a single subleaf: EAX reports zero subleaves, EBX reports only the complete BMI1 bit, and leaves 2 through 6 return zeros because Xenora models no cache, topology, monitor or power state (#1177). AVX2, BMI2 and the other leaf-7 features remain clear with refused-witness tests; the table is checked in the interpreter and the ARM64 translation engine. Local Apple Silicon evidence only; no x86 hardware or independent acceptance is claimed.
- The entry image is provisioned into the synthetic C: drive when the runner keeps it for `_spawnve` (#1207). The image honestly exists in the guest world, so a CRT that probes the module path with `GetFileAttributesEx` - as the win32 fork emulation does before re-executing the program - or reads the image bytes sees exactly what was started. Provisioning is all-or-nothing inside the drive's ordinary bounds: an image that does not fit stays absent rather than truncated. Measured end-to-end on Apple Silicon with the current public mingw64 busybox binary (v1.39.0-FRP), whose shell re-execution probe previously failed before any spawn: `echo hi | cat` prints `hi`, `echo hello | tr a-z A-Z` prints `HELLO`, command substitution prints `hi`, a three-stage pipe into `wc -c` counts correctly, and a pipeline redirected into a file reads back. Background execution still fails on a separate `/dev/null` open gap, documented in the issue. Evidence is focused loopback testing only; no Windows comparison or game compatibility is claimed.
- CRT `_open` and `_dup` now allocate the lowest free descriptor number, and a standard descriptor the guest closed is free for it exactly as the CRT models (#1210). The close-then-open redirection idiom — close stdin, open `/dev/null`, expect the open to land on the number just freed — now wires the shell's background children correctly; the public mingw64 busybox binary runs `echo hi & wait` to completion with the child's output, measured locally with the spawn and address-size pieces applied.
- The 67H address-size override prefix is decoded and executed for ModRM memory operands and LEA in both engines (#1203). The computed effective address, including RIP-relative totals, is truncated to 32 bits and zero-extended before any FS or GS base is added, per Intel SDM Vol. 2A 2.2.1.6; register-only instructions ignore the prefix. String instructions, accumulator offset forms and VEX combinations under the override stay honest decode refusals rather than wrong-width or wrong-register answers. Measured end-to-end on Apple Silicon with the current public mingw64 busybox binary, which reads its thread-local storage through `mov rax, gs:[eax]` at startup: the binary previously stopped 14 steps into its entry point with an illegal instruction and now runs applets to clean exits - `echo hi` prints through the ordinary x64 execution path, `sh -c 'echo hi > f; cat f'` completes the shell save-redirect-restore frame and prints `hi`, and `seq 3` prints 1, 2, 3. Original byte-level regression coverage pins the truncation, the segment ordering with a GS base above 4 GiB, the base-index-displacement wrap, LEA and the three refusal classes in both engines, with expectations derived from the manual. Evidence is local Apple Silicon testing only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- Bounded automatic WinHTTP redirect following (#1197): 301/302/307/308 with required `Location`, parser-based absolute and parent-relative resolution, POST-to-GET rewrite for 301/302 only, exact verb-preserving body replay through bounded retention, honest HTTPS refusal and a documented ten-redirect bound. Loopback-tested on Apple Silicon only; TLS, redirect policies and callbacks remain unsupported.
- The legacy `PCLMULQDQ` form now runs in the interpreter and the ARM64 translation engine (#1176). Following SDM Table 4-13, `imm8[0]` selects a qword of the first source and `imm8[4]` one of the second for a bit-by-bit carry-less product, with no flag writes; every other immediate bit is ignored, and checked memory sources leave all state unchanged on a fault. Original LLVM-assembled fixtures cover the four canonical selector immediates plus ignored-bit variants with register and memory sources, and an independent byte-array reference shares no code with the executor. Hand-derived vectors and a dedicated regression compare all four selectors with ignored bits set in both engines. The CPUID PCLMULQDQ bit stays clear with the still-unimplemented VEX form as the witness. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- Added partial Microsoft locale facet reference-count operations and narrow-character widening; locale construction and destruction are not yet implemented (#1163).
- Standard UCRT streams expose guest-owned unbuffered pointer, base and count fields through `_get_stream_buffer_pointers`; nonstandard opened streams and buffered operation remain unsupported (#1163).
- Added partial Microsoft x64 `ostream::write` and `flush` dispatch through guest stream-buffer virtual methods, with state updates and explicit refusal of unsupported tied, unit-buffered and throwing paths. A bounded synthesized standard output object is added below (#1163).
- Microsoft x64 `ios_base` state query exports now read guest state bits, including `good`, `eof`, `fail`, `bad` and `rdstate`; they now read the synthesized standard output object added below (#1163).
- Added an original Microsoft-header iostream fixture and local build script for measuring `std::cout` import and execution gaps; a separate freestanding fixture with the same decorated imports now executes end to end. No local Microsoft-header build was available here (#1163).
- Microsoft atomic-wait deadline helpers now use the guest monotonic clock, including infinite and capped timeouts. Actual atomic waits and notifications remain unsupported (#1163).
- The four Microsoft UTF codecvt locale-ID data imports now resolve to distinct writable guest cells initialized to zero; locale allocation and conversion remain unsupported (#1163).
- `vcruntime140.dll` memory imports now bind to the existing bounded guest memory services for copy, move, fill, compare and search. An original MSVC-ABI executable exercises the aliases locally (#1163).
- Added partial Microsoft STL `ios_base::Init` constructor, destructor and count services and an original MSVC-ABI guest fixture. Nested construction and destruction update the guest count; the final destructor now flushes the bounded standard output object and returns (#1163).
- Added a bounded synthesized `std::cout` data import for the decorated Microsoft x64 name. `write` through that object reaches the CRT standard output, `flush` is a checked no-op on the unbuffered stream, and `good` reads the object's state word. The final `ios_base::Init` destructor flushes it and returns instead of stopping the guest. Original freestanding PE fixtures built with native ARM64 Clang and `lld-link` write `hello from std::cout` to the captured output and exit cleanly; forged-object, bad-state exception-mask, oversized-transfer and nested-initializer controls are included. Local verification on this rebased branch: focused MSVC stream tests pass, and the full loader suite reports 1662 passed, 0 failed and 17 ignored; formatting, strict Clippy, fixture checks and the runtime/claims/dependency/status audits pass. This is one synthetic narrow stream: no streambuf vtable, locale, wide stream, `cerr`, `clog`, Microsoft DLL, game execution or independent acceptance is claimed (#1163).
- `WINHTTP_QUERY_CUSTOM` named response-header queries (#1195): case-insensitive first-match lookup of a caller-supplied ASCII field name with the textual sizing contract and documented not-found error. Duplicate-header enumeration through the index parameter remains refused. Loopback-tested on Apple Silicon only.
- `WINHTTP_QUERY_RAW_HEADERS` response queries (#1212): the captured final response head transcribed into the NUL-separated form — every line ending becoming the line's terminator, the trailing empty string appended as the public implementation evidence lays the form out — with the textual sizing contract shared with the CRLF form. Duplicate-header enumeration remains refused. Loopback-tested on Apple Silicon only.
- `WinHttpQueryHeaders` duplicate-header enumeration through `lpdwIndex` (#1216): the index input selects the zero-based occurrence of a case-insensitive name match and advances by one on success only, exactly as the public implementation evidence contracts the enumeration loop; an index past the last occurrence fails with `ERROR_WINHTTP_HEADER_NOT_FOUND` unchanged. Loopback-tested on Apple Silicon only.
- The AVX2 256-bit immediate shuffles `VPSHUFD`, `VPSHUFHW` and `VPSHUFLW` now execute in both engines (#1184): each applies its documented 128-bit immediate shuffle to the two halves separately, with register and memory sources at the correct width. Fixtures are LLVM-assembled rows next to the 128-bit forms and compare the independent legacy reference lane by lane. The AVX2 refusal witness moves to `VPMOVMSKB ymm`; gathers, masked moves and the remaining AVX2 forms stay refused, so the CPUID AVX2 bit stays clear. Local verification only; not compared with x86 hardware.
- `WINHTTP_QUERY_RAW_HEADERS_CRLF` response queries (#1190): exact wire capture of the final response head (status line plus header lines in received order, CRLF-terminated) with the documented sizing contract. The NUL-separated level-21 form, custom named-header queries and index enumeration remain explicitly unsupported. Loopback-tested on Apple Silicon only.
- The BMI2 `PDEP` and `PEXT` scalar forms now run in the interpreter and the ARM64 translation engine in both 32- and 64-bit widths (#1167). VEX.vvvv is the bit source and the ModRM operand is the mask: PDEP deposits consecutive low source bits into the mask's set positions, and PEXT compresses masked source bits into low positions, with no flag writes. Original LLVM-assembled fixtures cover register, memory, aliased and high-register forms; an independent bit-by-bit reference and hand-written edge answers cover zero, all-ones, sparse and high-bit masks in both engines. All defined BMI2 forms now execute; CPUID still withholds BMI2 pending independent acceptance, with a reserved VEX.L=1 PDEP encoding as the inline witness. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- The BMI2 `MULX` scalar form now runs in the interpreter and the ARM64 translation engine in both 32- and 64-bit widths (#1171). The ModRM r/m operand is the unsigned multiplicand, RDX is the implicit unsigned multiplier, the ModRM register receives the high product and VEX.vvvv receives the low product, with no flag writes. Sources are read before either destination so aliasing cannot change the product, and the low write precedes the high so an identical first and second operand keeps the high half. Original LLVM-assembled fixtures cover register, memory, aliased and high-register forms in both widths; an independent bit-at-a-time reference and hand-written edge answers cover zero, one, all-ones and high-bit values, and a faulting memory source changes no state in either engine. PDEP and PEXT are also implemented; CPUID still withholds BMI2 pending independent acceptance, with a reserved VEX.L=1 PDEP encoding as the inline witness. Evidence is local testing on Apple Silicon only; no x86 hardware comparison, independent acceptance or game compatibility is claimed.
- Bounded WinHTTP chunked request upload (#1186): `Transfer-Encoding: chunked` accepted in request headers with the documented constraints (no optional data, no declared total length), verbatim `WinHttpWriteData` pass-through because the caller frames chunks, and `WinHttpReceiveResponse` accepted from the writing phase as a documented Xenora choice. Corrected the stale interface note that still denied the fixed-length streaming implemented in #1116. Loopback-tested on Apple Silicon only; TLS, redirects and authentication remain unsupported.
- Bounded `WinHttpCreateUrl` (#1180): composition of canonical HTTP/HTTPS URLs from the Win64 `URL_COMPONENTS` record, complementing `WinHttpCrackUrl`. Counted or terminated component input, scheme-string precedence over `nScheme`, default-port elision, credential assembly with `ICU_REJECT_USERPWD` rejection, `ICU_ESCAPE` escaping of the documented unsafe set with UTF-8 percent-encoding for non-ASCII text, and the documented sizing contract (required count with terminator on `ERROR_INSUFFICIENT_BUFFER`, count without terminator on success). Undocumented details are recorded as Xenora canonical choices in `docs/interfaces.md`. No network use; local loopback-free testing on Apple Silicon only.
- The AVX2 256-bit uniform packed shifts `VPSLLW`, `VPSLLD`, `VPSLLQ`, `VPSRLW`, `VPSRLD`, `VPSRLQ`, `VPSRAW` and `VPSRAD` now execute in both engines (#1193), by an immediate byte and by the uniform count of the second source. The count operand is an xmm register or memory operand even in the 256-bit forms, so both halves shift by the same count, as the operation sections specify; the independent reference harness applies the same rule rather than halving the count. Fixtures are LLVM-assembled rows in both widths. The byte-granular `VPSLLDQ` and `VPSRLDQ` execute at 256 bits in the same change, each lane shifting separately as the manual specifies. Gathers, masked moves and the remaining AVX2 forms stay refused, so the CPUID AVX2 bit stays clear. Local verification only; not compared with x86 hardware.
- Bounded XAudio2 loop exit (#1173): `IXAudio2SourceVoice::ExitLoop` now handles immediate requests by ending an active loop after its current pass, remains a documented no-op outside the loop region, and honestly rejects deferred operation sets. Audio processing, callbacks and output remain absent.
- Bounded XAudio2 source-rate reconfiguration (#1169): `IXAudio2SourceVoice::SetSourceSampleRate` now validates the documented 1000-200000 hertz range, refuses a voice while buffers remain queued, updates the input rate visible through voice details and retimes later fixed-clock sample counts. Creation flags are still refused, sample-rate conversion, mixing and audible output remain absent, and no Windows or Xbox hardware comparison is claimed.
- The BMI1 bit-field extract BEXTR and the BMI2 high-zeroing BZHI execute in both engines and operand widths, completing the BMI1 instruction list. BEXTR saturates its extraction window against the zero-extended source and BZHI reports an out-of-range index in CF, per the Intel SDM operation sections; fixtures compare an independent bit-level reference in both engines. BMI1 stays unreported in CPUID because leaf 7 itself is unimplemented — a documented separate design question (#1103).
- The exact COM API-set import `api-ms-win-core-com-l1-1-0.dll!CoCreateInstance` now resolves to the existing typed COM activation handler (#1063). The original COM fixture binds that export through the API-set library; activation behavior, class registration limits and the `ole32.dll` alias are unchanged. Evidence is local guest execution on Apple Silicon only.
- The synchronous `XNetworkingQueryPreferredLocalUdpMultiplayerPort` query now writes UDP port 3074 as the fixed preference of Xenora's process-local loopback network machine, with exact two-byte output and invalid-parameter behavior. The value does not represent UPnP negotiation, NAT state, external reachability or Xbox network compatibility; registration, asynchronous and change-notification variants remain unsupported (#1162).
- FMA3 is implemented in the interpreter and the ARM64 translation engine (#1149): VFMADD, VFMSUB, VFNMADD, VFNMSUB, VFMADDSUB and VFMSUBADD in the 132, 213 and 231 orderings, packed single and double at 128 and 256 bits and the scalar forms, with register and memory sources. The product is exact and the sum rounds once, so a separately rounded multiply followed by an add is refused by the tests: `softfloat::fused_multiply_add` keeps a 125-bit window below the leading bit and hands the result to the shared rounding path, which supplies overflow, underflow, tininess, flush-to-zero and precision. Expected values are exact-fraction vectors generated independently of the executor, and every vector runs in both engines. The CPUID FMA bit stays clear until independent acceptance. Local CPU validation on Apple Silicon only; the NaN-selection rule among several NaN operands is a documented local rule because the operation sections do not state one.
- AVX2 cross-lane permutations, broadcasts, blends and per-lane variable shifts (#1150). `VPERMD`, `VPERMPS`, `VPERMQ`, `VPERMPD`, `VPERM2I128`, `VINSERTI128`, `VEXTRACTI128`, `VPBROADCASTB`, `VPBROADCASTW`, `VPBROADCASTD`, `VPBROADCASTQ`, `VBROADCASTI128`, `VPBLENDD`, `VPSLLVD`, `VPSLLVQ`, `VPSRLVD`, `VPSRLVQ` and `VPSRAVD` now decode from the semantic registry and run in both the interpreter and the ARM64 DBT. The variable shifts take the value from VEX.vvvv and the counts from the ModRM operand, as the operation sections of Intel SDM Vol. 2 name SRC1 and SRC2, and a count at least as wide as the element zeroes a logical shift and sign-fills an arithmetic one. Original LLVM-encoded fixtures cover every declared form in both engines, and an asymmetric case fails if the shift operands are exchanged. `VPBROADCASTB/W/D/Q`, `VBROADCASTSS` and `VBROADCASTSD` accept both a register and a memory source, while `VBROADCASTF128` and `VBROADCASTI128` keep their memory-only source. AVX2 remains incomplete because gathers, masked moves and the 256-bit immediate shuffle are still refused, so the CPUID AVX2 bit stays clear. Local verification only; not compared with x86 hardware and no independent acceptance is claimed.
- F16C conversions (#1151): `VCVTPH2PS` and `VCVTPS2PH` now execute at both vector lengths through an exact binary16 rounding path. Widening ignores DAZ and raises no denormal exception; narrowing ignores FTZ, takes its rounding mode from `imm8[1:0]` or MXCSR.RC, and reports the documented denormal-source flags. VEX.W and a used VEX.vvvv are refused. 36 LLVM-assembled forms and 882 independently derived bit-exact vectors run in both the interpreter and the DBT, with focused checks for rounding, ignored FTZ/DAZ and flag masks. CPUID still does not report F16C until independent acceptance; evidence is process-local on Apple Silicon only.
- Wave32 legacy multiply and three-input median forms (#975): `v_mul_legacy_f32` now decodes in both VOP2 and VOP3 encodings and `v_med3_f32` in VOP3, all through the semantic registry, reference and independent interpreters and Metal lowering. Legacy multiply implements the DX9 zero-wins rule before NaN, infinity or subnormal operands without claiming the unpinned forced-zero sign as specification; MED3 implements the guide's MIN3/MAX3 branch order, including quiet-NaN source selection and signed-zero position sensitivity. VOP3 scalar, VGPR, `vcc_lo` and one-literal sources and per-source ABS/NEG are supported, while OP_SEL, CLAMP, OMOD, inline constants, special sources, multiple literals and the legacy SRC2 field remain controlled refusals. Local CPU validation, LLVM encoding checks and Apple M1 Max Metal readback passed; independent acceptance and game compatibility are not claimed.
- Wave32 VOP3A ordered binary32 compares (#976): `v_cmp_{lt,eq,le,gt,lg,ge}_f32_e64` now decode from the semantic registry, execute in the reference and independent interpreter, and lower to Metal with the documented ABS/NEG modifiers on both VGPR inputs. Explicit masks cover `vcc_lo` and general SGPR destinations, EXEC/absent-lane masking, NaN unordered behavior, signed zeros, infinities, modifier-sensitive finite values and VCC preservation; unsupported output modifiers, SRC2 forms and non-VGPR sources remain refused. Local CPU validation and Apple M1 Max Metal readback passed; independent acceptance and game compatibility are not claimed.
- Implemented bounded Winsock `getservbyport` and stable service ordinal aliases (#1145). The reverse lookup shares the fixed standard service table, honors network-byte-order port input and optional TCP/UDP filtering, produces the same legacy `servent` layout, and ordinals 55/56 bind to the documented stable `getservbyname`/`getservbyport` slots. Unknown services remain honest nulls; no external service database or reachability is claimed. Evidence is focused process-local testing on Apple Silicon only.
- Implemented bounded Winsock event objects (#1143). `WSACreateEvent`, `WSACloseEvent`, `WSASetEvent`, `WSAResetEvent` and non-alertable `WSAWaitForMultipleEvents` use the existing unnamed manual-reset event machinery with Winsock initialization and error reporting; zero-timeout polling and scheduler-backed waits integrate with `WSAEventSelect`. Alertable completion routines, overlapped socket I/O and ordinal aliases remain unsupported. Evidence is focused process-local testing on Apple Silicon only.
- CRT anonymous pipes are kernel objects now, and process creation inherits them (#1040). `_pipe` builds a kernel pipe pair in the machine-wide object table and wraps both ends exactly as the CRT wraps them on Windows, so `_get_osfhandle` answers real handles, `GetFileType` reports FILE_TYPE_PIPE, and `PeekNamedPipe` reports the buffered byte count - failing with ERROR_BROKEN_PIPE once no write can arrive, which in the synchronous process world is as soon as the buffer drains, since no suspended process can write while the reader runs. A `_spawnve` child inherits its parent's descriptor wiring as the CRT hands it down - pipe ends, wrapped handles, aliases and standard streams, though not owned file streams, whose positions are the parent's own - pipe end references count machine-wide in place of the per-process handle tables, and a pipe object dies exactly when its last reference anywhere closes, the write end's last close marking end of stream. A spawned child's exit no longer wipes the machine-wide object table it shares with its parent and siblings. Measured end-to-end on the real busybox binary: shell pipelines complete and the shell continues after them - `echo hello | tr a-z A-Z` prints HELLO, `echo hi | cat; echo done` reaches done, data chains through `cat | cat`, a pipeline redirects into a file and back out, and cp copies file to file through the spawn and pipe stack - where every pipeline previously hung the shell after partial output or failed with bad-descriptor errors on both ends. Stream-level standard input reads follow the redirection too: `fread`, `fgetc` and `_filbuf` on stdin read what descriptor 0 names once it is duplicated onto a pipe or file, as the CRT's stdin is backed by its descriptor - measured: `echo abc | wc -c` counts 4.
- Paging-file-backed memory mappings share their content across the machine now (#1040). `CreateFileMapping` carries one backing byte store per object, a view copies it in at mapping time and out at unmapping, flushing and process spawn, so a child process mapping the handle its parent passes - the numeric handles being machine-wide, as inherited handles are on Windows - reads what the parent wrote. This is the hand-off the busybox win32 shell's fork emulation uses, measured end-to-end on the real binary: the shell re-executes itself, the child reconstitutes from the shared state, runs the command and the parent's `OpenProcess`/`WaitForSingleObject`/`GetExitCodeProcess` chain collects its exit status, so shell command sequencing with correct `$?` propagation works. Views reconcile only at those synchronization points since one process executes at a time, which is exact for spawn-then-wait hand-offs and documented as the limit; writes a finished child never unmapped do not reach the parent.
- Spawned children are real process objects now (#1040): a `_P_NOWAIT` child enters the machine-wide object table as an exited process whose handle is waitable, closeable, duplicable and re-openable through `OpenProcess` by its process id - the value the handle was created with, both namespaces being machine-wide integers here. `GetProcessId` answers it for child handles, `WaitForSingleObject` on one completes immediately as a terminated process does, and `GetExitCodeProcess` answers the final status instead of STILL_ACTIVE.
- The CRT process spawn surface runs a child for real in the `_P_WAIT` and `_P_NOWAIT` modes (#1040). `_spawnve` and `_wspawnve` re-execute the program's own image - kept in memory by the runner, never re-read from the host disk - in a fresh guest memory space with its own CRT state, arguments and process identity, while the machine-wide filesystem stays shared so a file the parent wrote is visible to the child. The child runs to completion inside the spawn because process concurrency does not exist yet; this is exact for the spawn-then-wait pattern shells use, and programs that truly overlap parent and child are the documented limit. `_P_WAIT` returns the child's exit status and `_P_NOWAIT` a synthetic process handle whose `_cwait`/`waitpid` collect the finished child once. The other modes keep their honest ENOSYS refusal, a spawn of any image but the program's own reports ENOENT, and a child that stops without exiting reports the spawn failure instead of an invented status. The child's output flows into the parent's capture as inherited standard handles would carry it. An original hosted C fixture re-executes itself, passes arguments both ways, shares the file and returns status 42, verified end-to-end through the loader and ARM64 translation. Environment override through `envp`, console input inheritance, `CreateProcess` and independent acceptance remain unsupported.
- Implemented bounded Winsock `WSAStringToAddressA` and `WSAStringToAddressW` (#1141). Strict four-part dotted-decimal IPv4 with optional decimal `:port` parses into exact 16-byte `sockaddr_in` output, missing ports default to zero, and insufficient output capacity reports the required byte size. Malformed strings, unsupported families, protocol-info and bad memory fail honestly. Parsing is not connectivity or routing evidence; no ordinal alias is claimed. Evidence is focused process-local testing on Apple Silicon only.
- Implemented Winsock `WSAAddressToStringW` and tightened both address-string width forms (#1139). IPv4 loopback `sockaddr_in` values format as dotted decimal plus port, Unicode sizing uses documented WCHAR units, insufficient capacity reports the required size, and both forms now validate the 16-byte input length and reject non-null protocol-info. No ordinal alias is claimed. Evidence is focused process-local testing on Apple Silicon only.
- Implemented bounded synchronous Winsock `WSAAccept` and corrected legacy `accept` output validation (#1137). Null condition procedures with zero callback data share the same loopback backlog path, optional client-address output shape is validated before a pending endpoint is consumed, and unsupported condition/callback forms fail explicitly. No blocking, external routing or ordinal alias is claimed. Evidence is focused process-local testing on Apple Silicon only.
- Implemented bounded synchronous Winsock `WSAConnect` over the shared loopback connect path (#1135). IPv4 stream and connected-datagram establishment match legacy `connect`; caller data, callee data, SQOS and GQOS extensions remain explicit invalid-argument errors. No external routing, blocking behavior, quality-of-service or ordinal alias is claimed. Evidence is focused process-local testing on Apple Silicon only.
- Implemented `WSASocketW` and corrected both Winsock `WSASocket` width forms to share the bounded IPv4 TCP/UDP creation semantics of legacy `socket` (#1133). Null protocol-info, group zero and flags zero are supported; protocol-info, groups, overlapped flags and unsupported socket tuples fail honestly. No ordinal aliases are claimed because the published AMD64 assignments for these higher slots vary by Windows release. Evidence is focused process-local testing on Apple Silicon only.
- Fixed the Win64 `WSASocketA/W` GROUP and DWORD flag arguments (#2655). Only their low 32 bits are meaningful, while the protocol-info pointer retains all 64 bits. Both entry points now accept valid zero flags even when a compiled caller leaves stack-slot padding unchanged, and still reject unsupported low bits. The authored TCP/UDP witness that previously failed with `WSAEOPNOTSUPP` passed at both scheduler quanta 1 and 64. All 18 Winsock unit tests and four network/ordinal integration tests passed locally on ARM64. Overlapped I/O remains pending.
- Bound three more stable Winsock AMD64 ordinals for existing services (#1131): ordinal 51 `gethostbyaddr`, 112 `WSASetLastError` and 116 `WSACleanup`. The original ordinal-IAT fixture now covers 31 imports and exercises reverse lookup, error storage and cleanup through ordinal slots; undocumented and version-shifted ordinals remain unresolved, with no console ABI claim.
- Implemented the synchronous Winsock byte-order forms `WSAHtonl`, `WSAHtons`, `WSANtohl` and `WSANtohs` for valid sockets (#1129). They validate the socket and output memory before writing exact 16-bit or 32-bit byte-swapped results; invalid sockets and bad output memory fail explicitly. No ordinal aliases are claimed because published AMD64 assignments for these higher slots vary by Windows release. Evidence is focused process-local testing on Apple Silicon only.
- Bound the remaining stable legacy Winsock AMD64 ordinals for already implemented services (#1127): ordinal 5 `getpeername`, 8 `htonl`, 12 `inet_ntoa`, 14 `ntohl` and 15 `ntohs` now alias the same named implementations through ordinal-IAT imports. The original ordinal fixture exercises a byte-order conversion and a peer-name query; undocumented ordinals remain unresolved and no version-shifted higher WSA ordinal or console ABI is claimed.
- Implemented synchronous non-overlapped Winsock `WSASendTo` and `WSARecvFrom` datagram forms (#1125). x64 `WSABUF` gather/scatter, explicit loopback destinations, connected fallback, first-send auto-binding, byte counts and source-address reporting are supported; stream sockets, unsupported flags and overlapped completion fail honestly. The complete source-output shape is validated before consuming a pending datagram, a correction also applied to legacy `recvfrom`. Evidence is focused process-local loopback testing on Apple Silicon only; external routing, blocking sockets, overlapped I/O and Internet reachability remain unsupported.
- Implemented synchronous non-overlapped Winsock `WSASend` and `WSARecv` gather/scatter forms (#1119) for connected process-local loopback sockets. x64 `WSABUF` arrays are decoded with a bounded count of at most 64 entries, stream sends report partial byte counts under the fixed flow-control window, datagrams preserve boundaries and truncate with `WSAEMSGSIZE`, and unsupported flags or overlapped/completion forms fail explicitly. Zero-length stream sends no longer signal read readiness. Focused loopback tests cover ordering, zero-length fragments, flow control, truncation and invalid inputs on Apple Silicon only; external routing, blocking sockets and overlapped I/O remain unsupported.
- Implemented loopback-only Winsock `gethostbyname` for `localhost`, `127.0.0.1` and the fixed `XENORA` machine name (#1107). Other names remain explicit host-not-found results because no external DNS exists.
- Implemented the bounded Winsock `ioctlsocket` legacy form for `FIONREAD` and `FIONBIO` over the existing process-local loopback socket model (#1105). Unsupported commands and blocking-mode requests remain explicit errors; no external networking or general ioctl compatibility is claimed.
- Winsock AMD64 ordinal binding (#1016/#1111): the 23 published desktop ordinal slots whose named implementations exist now resolve to those same services, covering socket creation/options, datagram and stream primitives, `select`, startup/error access, loopback name resolution, `ioctlsocket`, host naming and `__WSAFDIsSet`. A literal export-looking name `Ordinal#7` remains distinct from ordinal 7; unimplemented slots stay unresolved. The loopback-only network scope and per-service partial status are unchanged. Original ordinal-IAT PE coverage binds all 23 entries and exercises startup, `htons`, loopback datagram bind/connect/send/ioctl/recv, loopback host lookup, close and error lookup locally.
- Package startup can report the root executable entry boundary and actual main TEB to host integrations (#1045). The entry phase follows TLS and DLL attach and ends before detach; the existing startup API remains available. Its original fixture builder accepts a native lld-link when bundled rust-lld is unavailable. The fixture also checks TLS callback ordering and independently reads the PE entry address.
- An original two-DLL fixture checks shared synthetic UCRT allocation ownership, imported data, and one thread's `errno` across a static PE package (#1254).
- LODS, SCAS and CMPS at 8, 16, 32 and 64 bits run in both engines, with REP on LODS and with REPE and REPNE on SCAS and CMPS (#988). These are the string scans and compares that `strlen`, `memchr` and `memcmp` idioms compile to, and the guest stopped on them before. They follow the MOVS/STOS model: one element per step, RIP stays on the instruction while it repeats, and a fault keeps the elements already done. A repeated CMPS or SCAS that faults restores the flags it began with, as the SDM's REP entry describes, also when a step budget split the repeat. SCAS and CMPS set the flags as CMP would, a REPE or REPNE repeat also stops on the ZF the element produced, and a zero count changes nothing. FS or GS override the `[RSI]` source only. REPNE stays refused on MOVS, STOS and LODS. Thirteen SDM known answers written earlier by another contributor now pass in both engines instead of being listed as refused. A byte-array model test covers every form, prefix and direction, stop positions, step budgets, faults and segments. Not compared with x86 hardware; awaiting independent review.
- Hosted PE programs and explicit packages can opt into offscreen Metal flat draws and native timeline fences with `xenora run --graphics-backend metal` (#1034). The worker uses the existing translated shader pair. Explicit backend selection with `--trace` reports the last presentation and its completed frame count.
- `xenora-pe-session` runs a digest-pinned authored PE through repeated input and frame exchanges in one worker (#1042). Its versioned guest ABI defines frame checkpoints and orderly EOF cleanup, with an original program that verifies rendered pixels and a file held open across requests. An optional guest clock makes clock-backed rendering independent of host input delays.
- `xenora-pe-session` accepts explicitly supplied, SHA-256-pinned companion PE DLLs and an optional native Metal backend (#1240). The package loader runs dependency initialization and teardown around the persistent root entry. The worker checks that detach finishes and keeps the session ABI confined to the root entry's main guest thread.
- Xenora.app can start a digest-pinned authored PE package with its bundled session runner, send live inputs, display verified Reference or Metal frames, and finish or cancel the session (#1257).
- Hosted guest threads can use `WaitOnAddress`, `WakeByAddressSingle` and `WakeByAddressAll` through the public synchronization API set (#1039). Address waits share the scheduler's guest deadlines, wake ordering and thread cleanup.
- Reused bounded DBT fault-guard scratch storage across block translations (#101). This removes the per-cold-block vector allocation while clearing patch positions before reuse; execution semantics are unchanged.
- Optimized guest-memory region maintenance (#106): insertion now uses the sorted position directly instead of resorting the whole table, and exact-base removal binary-searches the region base before scanning only equal-base entries. Overlap rejection and allocation ownership semantics are unchanged.
- Empty module TLS blocks now keep their assigned static TLS index reserved instead of leaving a zero slot that a later module can reuse (#978). The marker is nonzero but invalid to dereference because an empty block has no guest bytes; rollback still restores the reservation after failed preparation.
- Headless USER32 guests can post messages to live threads and retrieve them with `PeekMessageA/W` (#1052). The cooperative runtime returns the Win64 payload and posting time, lets callers filter and preserve or consume messages, and refuses receivers without an active queue.
- The native Run Program panel can export one file from the synthetic guest C: drive to a new Mac file after a successful run (#1033). It passes the guest path and chosen destination to the bundled worker, which applies the CLI export size and destination protections.
- UCRT `terminate` resolves through `ucrtbase.dll` and `api-ms-win-crt-runtime-l1-1-0.dll` (#1046). Its default path follows the modeled `abort` exit with status 3, runs no `atexit` callbacks and closes open guest handles. Custom termination handlers remain outside this subset.
- Hosted guests can obtain and free an OEM environment snapshot through the narrow Win32 exports (#1055). Snapshots use CP437 and a separate allocation owner, so later environment updates or calls to the wide free leave a narrow snapshot intact.
- The native app can save a finalized frame journal as UTF-8 CSV with frame order, column, fixture mode and input direction (#1074).
- The NUL device, as DOS device names resolve it: a final path component whose base name is `nul` - in any directory position, with or without an extension - opens the character device rather than a drive file. Opens need no directory behind the device and succeed under every disposition, writes discard and report their count, reads answer end of file, `GetFileType` answers FILE_TYPE_CHAR, and nothing traverses into the device or enumerates it on the drive. The other DOS device names stay rejected exactly as before. Measured on the real mingw64 busybox binary: `cat /dev/null` exits clean and the shell's `echo hi > /dev/null` redirection discards silently, both of which previously failed.
- Directory handles through `CreateFile` (#1024). `FILE_FLAG_BACKUP_SEMANTICS` is now modeled as a flag bit distinct from the attribute bits, and a directory opens through `CreateFile` exactly as the documentation gates it: only with the flag, only with the plain open-existing disposition, and the handle supports no read or write - both fail with `ERROR_ACCESS_DENIED` as they do on Windows - while the close and the `FILE_TYPE_DISK` type answer as they should. Without the flag the directory open keeps its `ERROR_ACCESS_DENIED` refusal, and create or truncate dispositions stay refused because `CreateFile` never creates directories. This is the open step of the win32 `opendir` chain real binaries use before enumerating by path; measured on the mingw64 busybox binary, the `ls` chain now passes both the attribute check and the directory open, with the remaining failure isolated in the search surface.
- RDTSC (`0F 31`) runs in both engines, and CPUID leaf 1 now reports TSC (EDX bit 4) (#973). Guest code that reads the time-stamp counter without a service call no longer stops on an illegal instruction. The counter is a deterministic guest counter, never a host timer: one per guest address space, 0 when it is created, and advanced by one on each RDTSC. Values therefore never depend on the host's timer frequency and are identical in the interpreter and the DBT. The counter counts reads, not time, and is not tied to the `QueryPerformanceCounter` guest clock; `docs/cpu/instruction-registry.md` specifies it. RDTSCP stays refused. New tests cross the low-word rollover in both engines and check that no other fixture instruction moves the counter. The implementer also wrote their expectations, and nothing was compared with x86 hardware.
- Anchored search patterns and dot entries in file enumeration (#1031). `FindFirstFile` no longer rejects a pattern anchored at the drive root - `\*` enumerates the root exactly as a drive-root-relative path is ordinary on Windows - and every directory enumeration now begins with the `.` and `..` entries the real enumeration always returns, matched through the wildcard exactly as real names are. A pattern that matches nothing keeps its honest `ERROR_FILE_NOT_FOUND`. Measured end-to-end on the mingw64 busybox binary with the directory-open and dot-resolution branches stacked: `ls /` enumerates the root and lists a file written through the shell redirection chain, where the run previously failed the open with an invalid-name error.
- Lexical resolution of dot path components in the guest filesystem (#1012). `.` and `..` now resolve ahead of validation and lookup exactly as the Windows path rules document: `a\..\b` is exactly `b` whether or not `a` ever existed, `.` components drop, and a `..` at the drive root stays at the root because there is nothing to pop - so `C:\..\outside` escapes nothing, it is exactly `outside` at the root. The resolution lives in the validating path wrappers and the attribute readers, because the CRT layer joins its working directory before resolving and a pre-resolved relative `..` could no longer climb it. The empty string stays invalid input while a path of dot components or the bare root anchor resolves to the root, which always exists as a directory. Measured on the real mingw64 busybox binary: the `ls` stat chain through `GetFileAttributesExA` now answers the root correctly instead of failing the path as invalid, while the directory enumeration chain remains a separate gap. Regression coverage pins the lexical cases, the root clamping, the empty-input distinction and the write/read-through identity of resolved paths.
- Per-port GDK ThreadPool task-queue mode (#974): `XTaskQueueCreate` now accepts Manual and ThreadPool independently for work and completion ports. ThreadPool submissions create implementation-owned guest worker threads under the cooperative scheduler, so work runs without a manual pump while Manual completion still waits for `XTaskQueueDispatch`. Xenora can interleave but cannot truly parallelize these callbacks. Workers not yet exited when termination starts join the termination drain, and a worker not yet resumed receives `cancelled=true`; retroactive cancellation of an already running worker and automatic termination-callback spawn on a ThreadPool completion port remain limitations. SerializedThreadPool, Immediate and delayed ThreadPool submission remain explicit `ERROR_NOT_SUPPORTED` cases. Original scheduler fixtures cover mixed and dual ThreadPool modes, termination of a not-yet-started worker and the exact failure results.
- Manual GDK task-queue termination completion (#981): pending work callbacks are cancelled and drained before completion callbacks, late submissions fail with `E_ABORT`, and the optional termination callback is queued once to the completion port. `wait=true` blocks only the calling guest thread under the scheduler and returns after that callback returns; `wait=false` remains asynchronous. Original scheduler fixtures cover cancellation order, callback context, duplicate-handle ownership and a composite queue sharing a port without inheriting termination. Local verification only; close-handle object lifetime and thread-pool queue modes remain limitations.
- Supplemental LLVM ARM64/gfx1030 integer cross-check evidence (#982): one target-independent LLVM IR recurrence now has separate ARM64 and gfx1030 entry points, an independently checked native ARM64 runner, a documented synthetic Wave32 adapter and translated Metal readback coverage. The evidence is limited to LLVM 23.1.6 instruction selection within Xenora's supported gfx1030 subset; it implements no AMDHSA initialization and claims neither AMD nor Xbox hardware agreement.
- Structured startup reports for explicit multi-image packages (#1083): the normal package runner now reports proven parse/map/relocation/import phases, uses the package entry observer for TLS/entry boundaries, distinguishes a normal packaged guest exit from malformed protocol, and preserves truthful pre-entry failure or early-exit evidence. New original multi-DLL controls cover a DLL that refuses attach and a DLL that exits during attach. This is reporting infrastructure only; no new package execution capability is claimed.
- Package startup can report the root executable's entry boundary and actual main TEB to host integrations (#1045). The entry phase follows TLS and DLL attach and ends before detach, with the existing package startup API still available.
- Scheduler-backed `XTaskQueueDispatch` waits (#980): timeouts above the former 1000 ms cap and `INFINITE` now reach already queued work, a blocked dispatch retries through the cooperative guest-thread scheduler instead of sleeping the host thread, finite timeouts use the scheduler clock, and termination wakes an infinite waiter as false once cancelled callbacks are drained. Original scheduler fixtures cover cross-thread submission, caller-thread callback delivery, timeout expiry, deadline ordering, delayed callbacks and termination; true asynchronous termination completion remains part of #981.
- `xenora-session --workload reopen` runs the second bundled program under the same worker, frame and journal checks. That guest reopens its file each frame and checks an auto-reset event (#958).
- `_invalid_parameter_noinfo` and `_invalid_parameter_noinfo_noreturn` use the guest's global UCRT invalid-parameter handler with five zero arguments (#1018). The no-return entry point and the default path end the process with the modeled CRT termination status.
- UCRT startup can read the narrow `WinMain` argument tail through the exact runtime API set (#1027). The returned pointer shares the `GetCommandLineA` buffer and retains its original quoting.
- `xenora-session --workload threaded` runs the bundled scheduled guest with one persistent Win32 worker (#961). Positional and replay inputs drive checked frames, journal columns and cleanup through the same launcher and PPM export path.
- `xenora-session --interactive` accepts one direction at a time from standard input and returns each validated frame immediately (#1017). Closing input verifies the guest's journal and cleanup before publishing the final record and frame export.
- `ADVAPI32.dll!RegOpenKeyW` reopens predefined roots through the three-argument Win64 API and reports absent named subkeys in the synthetic registry (#1007). Original PE tests cover the exact Advapi32 import and guest output handling. The service is partial because the registry contains predefined roots only.
- The scheduled guest can signal an event, semaphore or mutex and then wait through `SignalObjectAndWait` (#1021). The threaded session now uses it for the per-frame worker handoff, and scheduler retries resume the wait without repeating the signal.
- Original dynamic-load fixture evidence (#932): `fixtures/pe/loadlib` now contains a reproducible no-CRT consumer/provider set built by the native ARM64 LLVM toolchain. The consumer imports only kernel32 loader services, loads logical module `xenora_loadlib.dll`, resolves function and evidence exports indirectly and exits 70 on exact success; the provider records TLS and `DllMain` evidence, while two same-logical-name controls omit the function export or refuse process attach. Static tests cover PE shape, imports/exports, negative controls and TLS preparation without callback execution. This is fixture evidence only: `LoadLibrary`, initializer execution, unloading, game execution and independent acceptance remain unsupported.
- An original packaged scene verifies relocated DLL initialization, guest events, graphics cleanup, and two exact reference-renderer frames exported through the public CLI (#1028). Wrong digests, missing providers and rejected DLL initialization leave the export absent.
- Middleware compatibility inventory (#803): `docs/middleware/coverage.md` now separates implemented, locally verified, partial, unsupported and research-only networking, WinHTTP, XNetworking, libcurl, FidelityFX, Metal acceleration-structure and video/media surfaces, with explicit licensing and clean-room boundaries. This is documentation and audit infrastructure only; no runtime behavior or compatibility is newly claimed.
- Relocation contract hardening (#919): the standalone relocation primitive now documents its pre-mapped-memory precondition and non-transactional partial-write behavior. Focused regressions pin rejection of a DIR64 target crossing the end of section backing, acceptance across adjacent section backing, raw-larger-than-virtual backing, and the manual multi-page relocation fixture now declares backing matching the memory it maps.
- Each native app session now owns a `xenora-input` router behind an additive C interface (#953, Campaign F #942). The interface takes physical key codes, mouse deltas and buttons, focus changes, controller connections with family recognition, per-controller profile text, and raw GameController values with battery evidence. A snapshot call lets a settings screen read the same router that guest execution uses, and publishing installs the four routed slots into the running frame loop's existing XInput slots. Every argument is validated before any state changes. The app does not call the interface yet, and no physical controller has been tested.
- Dynamic in-memory guest module registration for the kernel32 module catalog (#921). A crate-internal hook can admit an already prepared PE32+ image under its closed-world logical name, base and half-open size while retaining its export table; it performs no host search, loading, initialization or execution. Registered modules use their base as the handle, participate in name and range lookup and `GetModuleFileName`, resolve direct named/ordinal exports as `base + RVA` rather than service trampolines, and follow forwarder chains of at most eight edges into guest modules or captured built-in service exports. Registration rejects invalid names, collisions, overlapping ranges and direct exports outside the image. Dynamic modules are pinned with one loader-owned reference because unloading and teardown do not exist yet; `FreeLibrary` bookkeeping and this process-resident deviation are documented. Original byte-built synthetic fixtures cover direct/ordinal/forwarded lookup, kernel32 terminals, hop bounds, case normalization, range containment, collision refusal and bookkeeping on native ARM64. `LoadLibrary` conversion, unloading, game execution and independent acceptance remain unsupported.
- Added bounded PE32+ resource inspection for original EXE and DLL files,
including named and numeric identifiers, language leaves, counted strings,
version metadata and identity-only manifests. Original multilingual
fixtures exercise parsing and native ARM64 DBT payload readback from a
mapped EXE and rebased provisioned DLL. Local tests pass. Independent
acceptance and guest Win32 integration remain pending (#2371, #2372).
- Dedicated, explicitly registered PE resource services now implement
Find/Load/Lock/SizeofResource, A/W string and resource enumeration,
version.dll queries, and bounded per-thread manifest activation contexts.
Original x64 import calls and five-argument language callbacks run through
native ARM64 DBT with exact guest payload, handle and lifetime checks.
A compiled EXE/DLL package additionally binds real PE imports, rebases
both images and detects a changed French resource byte at guest exit.
Automatic registry and loader lifecycle integration remain pending
(#2376, #2372).
- An original freestanding C PE32+ guest, `fixtures/pe/xinput-poll.exe` (#951, Campaign F #942), reads routed host input through its own `XInputGetState` calls under the ARM64 DBT. A deterministic, headless acceptance test drives keyboard, mouse and two virtual DualSense-profile controllers through the `xenora-input` router and the public XInput slots, frame by frame. It compares the guest's output with hand-written literals for automatic and physical-only routing. The controllers are virtual devices, no physical controller has been tested, and the app does not use this path yet.
- Physical controller profiles in `xenora-input` (#948, Campaign F #942). Controllers are recognized from the documented GameController product categories, with Elite paddles and the Series X|S Share button told apart. Positional element translation gives PlayStation and Nintendo controllers the Xbox logical layout without keyboard emulation. Profiles support remapping, radial dead zones, response curves, drift calibration, inversion, sensitivity, stick swap, trigger thresholds, vibration intensity and a versioned, bounded text format. The default profile is an exact passthrough of the host values. Only virtual-device tests exist: no controller model has been tested on hardware, and the Switch Pro and DualSense Edge are not recognized automatically.
- A host input router crate, `xenora-input` (#944, Campaign F #942), turns keyboard, mouse and physical-controller events into up to four XInput-unit gamepad snapshots. It maps physical macOS key codes to the default Xbox layout, with normalized diagonals, optional analog ramping and full release on focus loss. Mouse motion drives the right stick, with sensitivity, inversion, a dead zone, smoothing, a maximum magnitude and a decay to neutral. Six routing modes combine sources so that one source never releases a button another still holds, and analog conflicts resolve deterministically. The crate is deterministic and host-agnostic, with unit tests only. It is not yet wired into the FFI, the app or any guest, and no physical hardware has been tested.
- C++ array allocation compatibility through the public Itanium ABI names `_Znay` and `_ZdaPv` (#936). Both array forms use the existing checked guest heap, so distinct array blocks cannot overlap, zero-size arrays remain non-null and freeable, null deletion is harmless and an interior or foreign address fails without releasing the live block. An original no-CRT `new[]`/`delete[]` executable built at O0/O1/O2/Os emits both imports itself and runs through the loader and ARM64 translation with exact values checked from its `.gate` section. Local verification only; no Windows comparison, independent acceptance or game execution is claimed.
- CMPXCHG8B and CMPXCHG16B (`0F C7 /1`, with and without LOCK) run in both engines (#971), and CPUID leaf 1 now reports them as CX8 (EDX bit 8) and CMPXCHG16B (ECX bit 13). Lock-free guest code needs these instructions, for example Windows x64 interlocked singly linked lists and 128-bit compare-exchange, and the guest stopped on them before. The pair compare writes only ZF. A mismatch loads the operand into EDX:EAX, zero-extended, or into RDX:RAX, and writes the operand back. CMPXCHG16B needs a 16-byte aligned operand. A fault changes nothing. The DBT runs the form on the shared semantics. The eight SDM known answers already in the suite now pass in both engines instead of being listed as refused. New tests run both engines on each half of the compare, addressing, alignment, noncanonical addresses, faults and a retry loop. Not compared with x86 hardware; single-thread results only; awaiting independent review.
- Native Metal upload and readback of BC6H and BC7 textures (#237). `xenora-texture` gains a pitched `BptcUpload` with `BptcFormat::{Bc6hUfloat, Bc6hSfloat, Bc7Unorm}` and the pitch, length and overflow validation of the other BC uploads. `NativeCompute::read_bptc_upload` sends the original blocks to `BC6H_RGBUfloat`, `BC6H_RGBFloat` or `BC7_RGBAUnorm` textures when the device reports BC support, and fails with `supportsBCTextureCompression` otherwise. BC7 reads back as RGBA8. BC6H reads back as four binary32 words per texel, which limits a BC6H level to 1024 texels. On an Apple M1 Max (macOS 27.2.1) with Metal API and shader validation, original blocks were compared with the CPU decoders and hand-derived anchors. They covered all eight BC7 modes with rotations and index selection, the four single-subset BC6H modes in both signednesses with HDR values up to 65504, subnormal and negative results, seeded random blocks of every mode, reserved modes, two layers, two mips, padded pitches and 5×3 and 1×1 edge levels. Every texel matched exactly, except for two divergences that the test names and reports. A reserved BC7 block (low byte zero) read as opaque black, whereas Khronos and Microsoft specify zero in every channel. A BC6H SF16 value that interpolates to -1 read as +0.0, Microsoft's sample-code reading; the CPU decoder follows Khronos's -0.0. These are observations of one device, not specification facts. Two-subset BC6H blocks wait on the CPU decoder (#236).
- C++17 aligned allocation operators on `libstdc++-6.dll` (#941): scalar and array aligned `new` validate nonzero power-of-two alignments and allocate through the checked shared guest heap, including alignments above its 64 KiB granularity; scalar and array aligned `delete` use exact block ownership, keep null deletion harmless and fault interior or foreign pointers. Original no-CRT x86-64 C++ fixtures exercise compiler-emitted scalar/array forms at O0/O1/O2/Os, distinct live blocks, zero-size blocks, null deletion and invalid interior deletion. Sized aligned deletion, exception propagation, Windows comparison, independent acceptance and game execution remain unclaimed.
- The CPU translation benchmark reports emitted native bytes against guest fixture bytes for its arithmetic, branch and checked-memory workloads (#176). The ratio includes block overhead and any retranslations; it is not a per-instruction expansion or a live cache-size measurement.
- The Itanium C++ ABI guard-variable surface for thread-safe function-local statics (#934). `libstdc++-6.dll` now provides `__cxa_guard_acquire`, `__cxa_guard_release` and `__cxa_guard_abort` through the typed service registry, and the registry documentation identifies them as typed rather than manual C++ support entries. Guards are keyed by aligned guest address, ownership is keyed by the calling thread, acquire returns 1, 0 or -1 with `ERROR_INVALID_PARAMETER` for invalid or contended guards, release writes the initialized byte, abort leaves it clear, and a release or abort by another thread stops with the runtime-limit fault. Cross-thread contention and recursive acquisition fail rather than block because the scheduler runs one guest thread at a time; this deviation is documented. An original no-CRT C++ PE32+ fixture covers compiler-emitted local-static guards, all three direct services, invalid addresses and a reentrant control at O0/O1/O2/Os, and the hosted C++ fixture now keeps default thread-safe statics enabled. Local verification only; no independent acceptance, game execution or Windows comparison is claimed.
- Legacy-mode floating-point printf conversions (#933): the `printf` family no longer refuses floating point when the caller's option bits lack `_CRT_INTERNAL_PRINTF_STANDARD_ROUNDING`. Halfway cases now round away from zero, the pre-2015 Windows behavior those bits select, while the standard bit keeps ties to the even digit; values that are not exact ties agree in both modes. The digit generation rounds from the exact decimal expansion of the binary value at the requested position, so the two modes differ only where the specification says they do. End-to-end measurement on the real mingw64 busybox binary: `seq 3` prints `1`, `2`, `3` and `seq 0.5 1 3` prints `0.5`, `1.5`, `2.5` through the legacy msvcrt.dll `vfprintf` path, where the run previously stopped with the runtime-limit exit.
- Legacy-mode floating-point printf conversions (#933): the `printf` family no longer refuses floating point when the caller's option bits lack `_CRT_INTERNAL_PRINTF_STANDARD_ROUNDING`. Halfway cases now round away from zero, the pre-2015 Windows behavior those bits select, while the standard bit keeps ties to the even digit; values that are not exact ties agree in both modes. The digit generation rounds from the exact decimal expansion of the binary value at the requested position, so the two modes differ only where the specification says they do. End-to-end measurement on the real mingw64 busybox binary: `seq 3` prints `1`, `2`, `3` and `seq 0.5 1 3` prints `0.5`, `1.5`, `2.5` through the legacy msvcrt.dll `vfprintf` path, where the run previously stopped with the runtime-limit exit, and the hexadecimal conversion rounds its halfway cases the same way - the pre-2015 library never printed hexadecimal floating-point, so the legacy answer there is Xenora's consistent extension of the documented decimal rule.
- A guest-visible `xaudio2_9.dll` in the loader (#888, PR 1b). A guest imports the module, calls `XAudio2Create` or `XAudio2CreateWithVersionInfo`, and calls the engine and its voices through the vtables of the public interfaces: `IXAudio2` with thirteen entries, `IXAudio2SourceVoice` with the nineteen shared voice methods and ten more, and `IXAudio2MasteringVoice` with the nineteen and `GetChannelMask`. The loader owns the guest objects, writes their vtables into guest memory, checks every guest pointer before the bounded model sees it, answers an unreadable or unwritable pointer with `E_POINTER` instead of faulting the host, names the audio bytes of a buffer instead of copying them, keeps a destroyed voice as a tombstone that answers `XAUDIO2_E_INVALID_CALL`, and tears the engine and its voices down with the last `Release`. `GetVoiceDetails`, `GetVolume`, `GetFrequencyRatio` and `GetChannelMask` are implemented; the effect, filter, channel and matrix calls, the submix voice, the engine callbacks and the source sample rate report `E_NOTIMPL` or write nothing and record a diagnostic. The bounded core model gained the engine clock that the mixer of #306 replaces: every `GetState` advances the started source voices of the engine by one 10 ms quantum of the mastering rate, and a stopped engine moves nothing. The XAudio2 structures now use the one-byte packing `xaudio2.h` declares (`XAUDIO2_BUFFER` 44 bytes with the context at offset 36, `XAUDIO2_VOICE_STATE` 20 bytes with the sample count at offset 12). The core model of PR 1a had used natural alignment (48 and 24 bytes), which would have misread a real guest's buffer context and sample count. Nothing is audible, no sample is read, no device is opened and no behaviour was compared with Windows or console hardware. The original acceptance program `fixtures/pe/xaudio2-voices.cpp` runs to a zero exit code through the ordinary x64 execution path on Apple Silicon, and the loader diagnostics report no engine, no voice, no queued buffer and no queued byte afterwards. Local verification only; independent acceptance is pending.
- Bounded closed-world module provisioning and non-executing runtime load preparation (#922). A host-side store admits immutable PE32+ snapshots under printable logical names, rejects duplicate canonical identities, service-module collisions, malformed images and aggregate budget overruns, and is populated by `xenora run --module =` from regular files without guest-visible host search. The crate-internal preparation entry point collects transitive dependencies, refuses circular components, places images through the existing layout planner while avoiding caller-supplied occupied ranges, composes transactional map, relocation, exception, IAT and TLS seams, and resolves service keys before package exports. Every import is inspected before mutation, explicit stubs are refused, and a later failure restores the caller's memory snapshot. Original multi-DLL fixtures cover a single module, a dependency chain with IAT readback, a cycle, a service-name collision, an unresolved import with unchanged memory, placement avoidance and admission limits. No initialization execution, `LoadLibrary` wiring, game execution or independent acceptance is claimed.
- `xenora run --pe --package ...` starts an explicit multi-image package through the ordinary supervisor and worker path. Every module is an original file supplied by the caller, admitted as a bounded regular-file snapshot with a unique file name; no host module search exists. The package uses the scheduler and the existing mapped-image budget, and an unresolved import or a missing provider is refused before the entry point with structured counts. The original three-image fixture reaches the same guest status through the CLI as through the library API. Package startup remains experimental; no game execution or independent acceptance is claimed.
- Experimental multi-DLL package startup now composes the existing dependency graph, layout, batch mapping, relocation, exception registration, import binding, TLS preparation and dependency-ordered initialization into one path. An original no-CRT consumer EXE with two dependent provider DLLs runs to its entry point: function and data imports bind to provider addresses, a leaf TLS callback runs before the leaf `DllMain`, both `DllMain`s run leaf-before-middle, `ExitProcess` resolves through the service registry, and orderly teardown detaches the middle provider before the leaf. A missing provider fails closed with structured per-import diagnostics instead of a first-error-only message. Local verification only; game execution and independent acceptance are not claimed.
- The narrow `ctype.h` classification and conversion surface moves to the canonical runtime table and resolves on `msvcrt.dll` for legacy-linked mingw binaries: the eleven class predicates plus `isblank`, `tolower` and `toupper` follow the C locale's ASCII table exactly, with EOF and out-of-range integers in no class as documented undefined behaviour read honestly. `atoi` and `atof` parse the decimal forms of the C contract - whitespace, sign, digits, fraction and exponent - clamping the integer overflow the contract leaves undefined. The partial hand-registered `isblank`/`isgraph` pair is replaced by the canonical table entries. Measured against the busybox probe binary, unresolved msvcrt imports drop by fourteen; `_putenv` and `setbuf` remain unresolved because the environment and stream-machinery surfaces are their own batches.
- Native video texture import now uses Core Video's live Metal texture cache bindings for IOSurface-backed BGRA and NV12 planes. A bounded Metal compute converter handles BT.601 and BT.709 video/full-range NV12, and a separate local H.264 VideoToolbox decoder requires and checks actual hardware acceleration before returning a frame. Existing playback and copy upload remain available. All 15 focused native video tests passed locally on M1 Max with Metal API and GPU validation, including hardware-decoded BGRA and NV12 frames (class A synthetic local evidence). The full native app gate also passed all 128 Swift tests and bundle smoke checks. Independent maintainer acceptance and wider codec, device and game compatibility remain open (#2358).
- A bounded copy-based video texture upload layer: decoded 32-bit BGRA pixel buffers can be uploaded into native shader-read Metal textures with exact row-stride preservation, non-BGRA rejection and native Apple Silicon tests covering both an independent byte-exact control and one decoded H.264 fixture frame. Zero-copy import, presentation, color conversion, scheduling and console-specific video interfaces were outside that initial slice.
- A narrow native video playback foundation in the Swift application layer: AVFoundation-backed single-track decoding with explicit lifecycle states, serialized seek/reader replacement, stable end-of-stream behavior, timestamp/frame-duration reporting, terminal cleanup semantics and independently generated H.264 fixture tests. Metal texture upload, real-time scheduling, audio synchronization, Bink and every console-specific video ABI were outside that initial slice. Verified through native Apple Silicon Swift tests only; no game or Xbox video compatibility is claimed.
- A narrow host-side Metal acceleration-structure probe now performs runtime ray-tracing capability detection and builds one original single-triangle primitive acceleration structure through public classic Metal APIs, with explicit scratch/input lifetime extension and command-buffer completion validation. The local Apple Silicon probe passes repeated construction, but it does not test ray intersections, rendering, performance, refit/compaction or console compatibility.
- Partial COM base services provide thread apartment tracking, GUID text conversion, a bounded task allocator, variant clearing for values and task strings, and explicit failure for unavailable local classes (#880). Original C and C++ guests exercise guest vtables and an opt-in synthetic host factory; no Windows classes are implemented and independent acceptance is pending.
- The opt-in synthetic COM factory tracks balanced server locks and reports unload eligibility after the last lock and interface reference are gone (#1255).
- The CRT `rand_s` boundary now returns cryptographically secure host entropy through checked guest memory instead of hitting the unsupported-service stub (#853). A null output continues as `EINVAL`; a host entropy read failure zeroes the output and reports Xenora's documented `EIO` choice. The invalid-parameter handler itself is still not dispatched, so the registration remains partial.
- `bcrypt.dll` now resolves the three CNG random-provider imports (#996). A guest can open and close an RNG provider or use the system-preferred or pseudo-handle modes. Guest-bound tests verify NTSTATUS values, exact output ranges and provider lifetime.
- A public-documentation XAudio2 boundary analysis covering voice roles, mastering/source lifetime, buffer submission and looping validation, format constraints, error honesty, offline validation that does not imply audible output, and unresolved mixer/COM design questions. No XAudio2 implementation or compatibility is claimed.
- Synchronous cleartext WinHTTP requests can stream a declared fixed-length body through bounded `WinHttpWriteData` calls after an initial optional body fragment (#1115). The transport enforces the remaining byte budget, reports written byte counts, blocks response reception until the body is complete and fails the request after stream errors. Controlled loopback tests cover exact multi-write wire bytes, zero-length writes, state ordering, overlong writes and invalid inputs. Chunked upload, asynchronous writes, TLS and real Xbox compatibility remain unsupported.
- `WinHttpQueryHeaders` can return the documented Date, Expires and Last-Modified response headers as SYSTEMTIME structures in the synchronous cleartext WinHTTP subset (#1113). Controlled loopback tests cover all three conversions, exact 16-byte sizing, missing headers and malformed or impossible dates. The conversion reuses the deliberately strict HTTP-date parser; textual forms of these query levels, additional date headers, permissive legacy parsing and real Xbox compatibility remain unclaimed.
- `WinHttpQueryHeaders` can also return the documented Date, Expires and Last-Modified response headers in their unmodified textual UTF-16 form (#1117). Controlled loopback tests cover exact header text, NUL-terminated required sizing, null and short buffers, missing headers, incomplete responses and invalid memory. Arbitrary named headers and additional date-valued headers remain unsupported.
- `WinHttpQueryOption` exposes the four supported DWORD timeout options on session and request handles with documented required-size semantics, unsigned infinite-value bits, incorrect-type/invalid-option errors and request-specific inherited values. Arbitrary option queries remain unsupported.
- WinHTTP requests can configure bounded, case-insensitive headers and set resolve, connect, send and receive timeout options before transmission (#968). Guest import tests verify copied headers, discarded failed updates, exact loopback request bytes and the receive timer. Both APIs cover the synchronous cleartext transport subset.
- `WinHttpSetTimeouts` supports session and not-yet-sent request handles in the synchronous WinHTTP subset: signed timeout validation follows the public zero/minus-one infinite contract, documented defaults are explicit, requests inherit a creation-time snapshot of session values, request overrides are isolated, and connect/send/receive timeouts are applied to the blocking TCP transport. Finite DNS resolution timeouts are enforced with a detached helper thread because Rust's blocking resolver cannot be cancelled; late resolver results are discarded honestly. Controlled tests cover defaults, inheritance, overrides, invalid values/handles and a silent-server receive timeout on Apple Silicon only.
- Boundary-focused CMOVcc/SETcc verification (#123): original tests now evaluate every CMOV condition across all 32 CF/PF/ZF/SF/OF combinations against an independently written condition oracle in both engines, cover 16/32/64-bit destination rules including the false 32-bit zero-extension case, preserve low-byte/high-byte/extended-byte register aliasing for SETcc, and prove false CMOV memory reads plus SETcc memory-write faults leave state unchanged. No production CPU change was needed for these cases.
- Boundary-focused legacy high-byte register verification now covers AH/CH/DH/BH without REX, SPL/BPL/SIL/DIL and extended low-byte registers with REX, identical numeric encodings across that boundary, source and destination merges, and interpreter/DBT agreement. No production CPU change was needed for these cases.
- Boundary-focused integer multiply/divide verification now covers memory-operand MUL/IMUL/DIV/IDIV at 8, 16, 32 and 64 bits: independently derived wide products, quotient/remainder placement in the implicit AX/DX registers, exact zero-extension behavior, divide-by-zero and quotient-overflow faults without state mutation, and interpreter/DBT agreement. No production CPU change was needed for these cases.
- Integer ALU memory-operand verification (#120): original boundary-focused tests cover ADD/OR/AND/SUB/XOR memory destinations and memory sources at 8, 16, 32 and 64 bits, group-one byte immediates including sign-extended wide forms, independently derived flags, register merging and zero-extension, successful read-modify-write access spanning adjacent writable regions, and exact state plus memory preservation when a crossing write is denied. The broad independent form matrix already existed in `x86_integer.rs`; production CPU/DBT code needed no change. Local verification only; independent acceptance pending.
- CMP and TEST memory-operand verification (#119): original byte-level tests in `crates/loader/tests/cpu_compare.rs` cover every memory form (38/39, 3A/3B, 80/7, 81/7, 83/7, 84/85, F6/0, F7/0) at 8, 16, 32 and 64 bits in both engines. Defined flags are derived independently with 128-bit arithmetic (TEST AF remains architecturally undefined and is masked out), JE branches run taken and untaken, compared memory is mapped read-only so any write faults, sign-extended immediates and ten effective-address shapes (negative disp8/disp32, SIB without base, RIP-relative, extended registers, FS/GS) are exercised, and representative unmapped, no-access, crossing and non-canonical reads must fault with the exact address and leave the guest state untouched. The investigation established that the shared decoder and semantics already implement these forms; the gap was verification depth, so no production code changed. Local verification only; independent acceptance pending.
- `MsgWaitForMultipleObjects` joins the windowless user32 surface: the message half of the wait never fires where no window can exist, so the wait reduces exactly to the kernel object wait it delegates to, resume included. MWMO_WAITALL is honored, MWMO_ALERTABLE honestly refused, unknown flags invalid. busybox binds the import for its event loops. Local in-module tests cover the validation.
- The legacy msvcrt.dll exports the file-mode and wide file surface it documents: `_chmod`, `_access`, `_unlink`, `_wchmod`, `_waccess`, `_wunlink`, `_wfopen`, `_wstat64i32` and `_wmkdir` resolve there beside their ucrtbase entries, so legacy mingw binaries binding them from msvcrt.dll link. Probe-measured on the branch: the busybox report drops _access, _unlink and _chmod.
- The UCRT math API set resolves `lroundf`, `modff`, `nextafterf` and `remainderf` (#986). Exact binary32 tests cover Win64 register widths, four-byte guest output, signed zero, neighbors and quotient ties. The math services retain the existing guest floating-point environment limitations.
- `_chmod` joins the file-mode surface beside its wide form: the read-only bit of the mode marks the drive file, writes and truncation and deletion of it fail, and stat and access report the mode, with EINVAL for an unreadable name and ENOENT for a missing file. Local in-module and runtime tests cover the marking.
- `xmem.dll!XMemFree` now releases exact live XMem-owned allocation bases instead of using the unsupported-service trap. XMem allocations share the bounded virtual-memory budget but have ownership distinct from `VirtualAlloc`; foreign, interior, null or repeated frees stop explicitly because the public routine has no error channel. End-to-end guest coverage writes and reads an allocation before freeing it and confirms the backing memory is unmapped, while allocator IDs, graphics memory types, page-size/alignment attributes and physical Xbox memory behavior remain unsupported.
- Physical controller battery evidence can now be transported atomically with XInput snapshots through an additive `xenora_xinput_battery` host interface. GameController absence, unknown state/level and real charge evidence remain distinct; XInput still reports only `BATTERY_TYPE_UNKNOWN` because Apple exposes no chemistry, while real percentages use Xenora's documented coarse quantization policy. Charging state is retained as host evidence and is never misrepresented as chemistry. Hardware-verified battery behavior is not claimed.
- XInput vibration forwarding now uses independent host output state for every occupied controller slot rather than slot zero alone. The macOS frame loop polls only slots with an assigned controller or a previously active actuator path, routes each slot's sequence to its own GameController/CoreHaptics sink, sends a neutral disconnect once when a controller leaves and resets every sink at terminal lifecycle. Scripted coverage verifies independent routing and disconnect behavior; no physical haptic effect or multiplayer hardware verification is claimed.
- The macOS XInput host bridge now maps up to four GameController devices into session-stable XInput slots. Discovery keeps extended gamepads ahead of micro gamepads, assignments persist by controller identity while devices remain present, vacated slots send explicit neutral disconnects, and new controllers fill the lowest empty slot. Slot zero remains the legacy/UI/vibration primary; scripted tests cover two controllers, capability metadata, replacement and deduplication. This is a documented Xenora assignment policy only, with no physical multiplayer or hotplug verification claimed.
- Undocumented XInput ordinal 100 (`XInputGetStateEx`) is resolved on `xinput1_3.dll` and `xinput1_4.dll` with the publicly evidenced 16-byte state layout. The host home button maps to guide bit `0x0400`, visible only through ordinal 100 and masked from named `XInputGetState`; ordinal 101/102/103 remain unsupported and no Microsoft/Xbox-hardware verification is claimed. The registry and robustness driver now preserve typed ordinal keys so ordinal-only canonical services are resolved rather than collapsed into lookalike names.
- `XInputGetAudioDeviceIds` now resolves on the modern XInput surfaces that export it. Connected virtual controllers report the documented no-headset result with empty IDs and zero counts, using correct Win64 stack extraction for the fifth argument and exact memory validation; no WASAPI endpoints, headset detection or audio paths are fabricated.
- The legacy DirectX redistributable `xinput1_3.dll` module name now resolves the implemented XInput state, capability, vibration, enable, keystroke and battery boundaries. `XInputGetDSoundAudioDeviceGuids` is available only on the legacy surfaces that export it and reports connected/no-headset as two null GUIDs without inventing DirectSound devices; undocumented ordinal-only exports and real audio endpoints remain unsupported.
- `XInputGetBatteryInformation` is resolved on the XInput surfaces whose public export metadata includes it. The boundary validates exact output memory and device type, reports absent devices explicitly and reports connected virtual gamepads as unknown/empty rather than inventing battery chemistry, wired status or charge. Physical battery metadata, headset devices and charge-level integration remain unsupported.
- `XInputEnable` is resolved on the public XInput surfaces that export it. Disabling reporting neutralizes gamepad data, stops host haptic actuation through the FFI enabled bit while still registering vibration commands, and re-enabling exposes the latest registered command again. The undocumented disabled packet-number case is explicitly documented as Xenora's zero-valued boundary rather than Windows evidence; physical focus-policy integration remains absent.
- `XInputGetKeystroke` is now resolved on `xinput1_4.dll` and `xinputuap.dll` with exact index/reserved/output-memory validation, correct absence from reduced `xinput9_1_0.dll`, disconnected-slot errors and the documented empty result while no host keystroke-event source exists. No input events are fabricated.
- `XInputSetState` accepts the exact four-byte vibration command layout for connected virtual XInput slots, records sequence-numbered motor commands and exposes them through a non-consuming FFI poll. The macOS frame-loop fixture forwards changed commands to GameController/Core Haptics continuous players, using separate handle localities when available and an explicitly approximate combined default actuator otherwise. Disconnects reset the command and terminal loops stop output. This is best-effort host-output plumbing only: no hardware-verified physical effect is claimed, motor frequency character is not emulated, host-reported support is carried atomically in the input snapshot and reflected in the slot capability bits/motor resolution, without claiming observed physical actuation.
- `XInputGetCapabilities` for connected virtual XInput slots reports the exact 20-byte public structure for Xenora's standard-gamepad surface: full input resolutions, no unsupported feature flags, and vibration capability only when the host explicitly reports a haptic output path. Invalid slots/flags/output are rejected before mutation, while physical-device metadata remains limited to host-reported capability.
- The first host-to-guest XInput delivery chain: the native FFI accepts a validated 16-byte controller snapshot for slots 0-3, the frame-loop session installs it in `ServicesState`, and the macOS app maps GameController extended/micro gamepad buttons, triggers and both thumbsticks into public XInput units without reusing legacy mouse fields. The legacy fixture input remains separate, on-screen horizontal input can act as a virtual controller, and local Rust/Swift tests cover malformed FFI input, runtime serialization, conversion and composition. Physical multiplayer assignment, haptics, hotplug policy, arbitrary game execution and real-game compatibility remain unsupported.
- The first XInput runtime boundary: `XInputGetState` resolves through the public XInput library names, validates the four documented user slots and output-memory range without mutation, serializes explicit host-supplied controller snapshots in the exact 16-byte public layout, and reports disconnected slots honestly. Packet numbers increment only when a supplied snapshot changes or reconnects. Physical controller discovery, FFI/Swift wiring, vibration, capabilities and hotplugging remain unsupported; local in-module tests cover layout, packet numbering, negative-controller results, invalid indexes and boundary memory validation on Apple Silicon only.
- The first XInput runtime boundary: `XInputGetState` resolves through the public XInput library names, validates the four documented user slots and output-memory range without mutation, and honestly reports no connected controller instead of inventing input state. Invalid indexes and invalid output ranges return explicit argument errors. Vibration, capabilities, hotplugging and host controller bridging remain unsupported; local in-module tests cover positive negative-controller results, boundary memory validation and all three library names on Apple Silicon only.
- The first WinHTTP synchronous cleartext transport slice: `WinHttpSendRequest` copies headers and an optional bounded body out of guest memory and performs one direct HTTP/1.1 exchange with `Connection: close`; `WinHttpReceiveResponse` parses bounded status/headers; the status-code, status-text, content-type, content-length and server forms of `WinHttpQueryHeaders`, plus `WinHttpQueryDataAvailable` and `WinHttpReadData`, expose selected metadata and body bytes with documented sizing, EOF and error propagation. Connection reuse, TLS, non-chunked or combined transfer codings, streaming writes, cancellation, callbacks, redirects, authentication, proxying, raw/custom response-header queries and duplicate-header enumeration remain unsupported. Chunked responses are decoded incrementally with bounded validated framing and trailers. Verified against independently controlled loopback HTTP servers through in-module tests on Apple Silicon only; loopback transport evidence is not Internet reachability, Windows comparison or independent review.
- A bounded XAudio2 core model in the new `crates/xaudio2` (#888). It is pure Rust with no unsafe code, and it does not touch guest memory, the loader, a mixer or audio output. It provides the Windows x64 layouts of `WAVEFORMATEX` (18 bytes), `XAUDIO2_BUFFER` (44 bytes) and `XAUDIO2_VOICE_STATE` (20 bytes), packed to one byte as `xaudio2.h` declares them, plus validation of every format and buffer field. It also implements HRESULT mapping (`E_INVALIDARG`, `E_POINTER`, `E_NOTIMPL`, `E_OUTOFMEMORY`, `XAUDIO2_E_INVALID_CALL`), engine, mastering-voice and source-voice lifetimes whose stale handles are refused, and a fixed sample clock for each source voice. The clock covers play regions, finite and infinite loops, end-of-stream, flush, and `GetState`, and it emits the buffer-start, buffer-end, loop-end and stream-end events a later callback PR will deliver. The supported subset is PCM16 and float32, mono or stereo, at 44.1 or 48 kHz; everything else is refused explicitly. Audio buffers are referenced by guest address, not copied. No guest-visible XAudio2 exists yet and nothing is audible. 29 acceptance and clock tests pass locally. Contract: [docs/runtime/xaudio2.md](docs/runtime/xaudio2.md).
- The first WinHTTP object layer: `WinHttpOpen`, `WinHttpConnect`, `WinHttpOpenRequest` and `WinHttpCloseHandle` validate and own session, connection and request handles, copy bounded UTF-16 inputs out of guest memory, enforce parent handle types atomically, reject unsupported async/proxy/transport flags honestly, support concurrent creation on shared parents, and clean the table at guest process exit. No HTTP transport, TLS, response parsing, cancellation or callback dispatch is implied. Verified through the in-module `winhttp.rs` unit tests on Apple Silicon only; not compared with Windows and not independently reviewed.
- `WinHttpCrackUrl` splits canonical HTTP and HTTPS URLs into guest-backed views or bounded UTF-16 buffers (#995). The Win64 fixture verifies exact offsets, scheme and port, and unchanged outputs after a failed copy.
- The Wave32 VOP2 binary32 forms `v_add_f32`, `v_sub_f32`, `v_subrev_f32`, `v_mul_f32`, `v_min_f32` and `v_max_f32` go through the semantic registry, the decoder, both CPU interpreters, the IR and MSL (#784). The behaviour comes from the AMD RDNA 2 guide section 12.7: page 131 for the add, the two subtractions and the multiply, page 132 for the minimum and page 133 for the maximum. The minimum and the maximum follow the guide's own pseudocode, not Metal's `fmin` and `fmax`, which differ on signed zeros, so the MSL computes them with integer tests on the register bits. `v_add_f32` and `v_mul_f32` move from hand-written decoder forms to registry forms with the same Metal output and a wider operand domain; the other four are new. The compiler no longer folds an exact constant float operation and no longer refuses an inexact one at verify: the guide's rule is a rounded binary32 operation, so the value is computed at run time, and a value outside the modelled domain is refused there by the interpreters rather than at compile time. A program whose runtime values leave the domain is therefore accepted by the translator and refused by the interpreters, which is the documented limit of this batch. The other refused inputs are subnormal inputs, NaN inputs to the arithmetic forms, signalling NaN inputs to the minimum and the maximum, and a result that is NaN or that is nonzero and below 2^-126. A guide-derived oracle passes on both interpreters and in a local native Metal readback on Apple M4 (300 cases, 65712 lanes, 197 programs). Its negative control is written against the two signed-zero tie-break rules rather than against the host's `f32::min`, whose signed-zero tie-break is unspecified and already agrees with the guide on this target. Independent acceptance is pending. ([vector binary32](docs/shaders/vector-binary-f32.md))
- MIMG image-sample coverage now pins the DMASK channel order and the explicit LOD in the generated IR and MSL without a GPU, and a partially active sample keeps the prior destination value in the lanes the EXEC mask excludes (#818). The fixture comments now say that the descriptor lanes sample too instead of claiming they are masked off.
- MIMG explicit-LOD 2D image sampling (#818): `IMAGE_SAMPLE_LZ` and `IMAGE_SAMPLE_L` for gfx1030 Wave32, non-NSA, RGBA8 unorm, point filtering and clamp-to-last-texel addressing. The resource descriptor's base-address field is address bits 47:8 (a 256-byte-aligned byte offset), and malformed extent, swizzle, minimum-LOD, level-range, sampler mip-filter, z-filter, clamp-z, LOD-bias and LOD-range fields are refused with distinct errors. The compute compiler requires the synthetic descriptor loads before a sample and the native backend validates the descriptors against the bound texture and sampler. Six assembled fixtures cover DMASK 1, 8, 5 and 15 and LOD 0 and 1 through the reference, the second independent interpreter and a local Apple M4 Metal readback with API and shader validation; independent acceptance is pending. Contract: [docs/shaders/mimg.md](docs/shaders/mimg.md).
- Deterministic explicit-module image layout planning (#833): a pure arithmetic loader interface validates a caller-supplied arena and occupied half-open intervals, prefers aligned PE image bases when usable, chooses the lowest free 64 KiB-aligned fallback for relocatable images, refuses unavailable fixed-image bases honestly and retains per-image failures beside successful placements. It performs no guest-memory allocation, mapping, relocation, import binding, service registration or execution. Covered by original synthetic arithmetic tests on native ARM64; independent acceptance is pending.
- Transactional explicit-module batch mapping (#889): the loader validates that a complete deterministic layout plan belongs to the supplied in-memory PE images, maps the images in input order at their planned bases and returns logical half-open reservations with entry metadata. A malformed or incomplete plan is rejected before memory mutation, and a later validation or insertion failure restores the whole prior address space through whole-memory snapshot rollback whose cost scales with the existing memory rather than the new image. Relocation, import binding, service registration, exception/TLS initialization, unloading, reference counting and execution remain unsupported. Covered by original synthetic fixtures on native ARM64; independent acceptance is pending.
- Explicit-module image-span retention (#907): successful batch mapping now records each complete half-open `SizeOfImage` span in guest memory without committing hole bytes. Later direct mappings, requested-base allocations, automatic virtual/heap placement and in-place heap growth treat those spans as occupied. A placement overlapping memory that already exists anywhere in its complete span is rejected before mutation, adjacent spans remain distinct, and batch rollback restores the prior reservation records exactly. Unloading, per-section ownership and host operating-system guard pages remain unsupported. Covered by original synthetic module fixtures and memory unit tests on native ARM64; independent acceptance is pending.
- Non-executing explicit-module initialization-order planning (#916): positional package bytes, parsed images and reservations are validated as one batch, TLS reports can optionally be carried through the same image indexes, and a caller-supplied dependency graph is rejected unless rebuilding it from the same package reproduces it exactly. The plan reuses the graph's deterministic provider-before-consumer condensation order, annotates modules with reserved entry addresses while distinguishing potential `DllMain` work from process entries, and carries discovered TLS callbacks without executing them. Circular components remain grouped without an invented order, while incomplete import/export inspection is explicit ordering uncertainty. Loader-lock semantics, thread policy, initialization execution, unloading and real Xbox compatibility remain unsupported. Original synthetic fixtures cover input order differing from dependency order, deterministic output, cycles, malformed inspection and stale graph/package/TLS mismatches on native ARM64; independent acceptance is pending.
- Transactional explicit-module TLS preparation (#911): after reservation-shape validation, batch-loaded PE32+ images have TLS directories, index locations, templates, callback arrays and executable callback targets validated against committed image backing. Absent directories remain honest no-ops; modules with TLS receive indexes in input order from zero slots in one caller-selected thread TLS array without overwriting nonzero slots, and template plus zero-fill bytes are initialized in independently owned thread-dynamic storage. Validation completes before mutation, and allocation or copy failure restores earlier index writes, arrays and allocations through the documented whole-memory snapshot. Callbacks are discovered and rebased but never executed; DllMain, thread creation policy, dynamic TLS APIs, unloading and module execution remain unsupported. Original synthetic fixtures cover absent/valid/malformed directories, hole-backed data, occupied slots, allocation-failure rollback and multi-module ordering on native ARM64; independent acceptance is pending.
- Transactional explicit-module exception-directory registration (#906): after reservation-shape validation, batch-loaded PE32+ images have their x64 exception directories checked for alignment, whole-entry shape, ordering, image bounds and committed-image backing, including fixed unwind-data extents, before function tables are registered in input order. Absent directories are honest no-ops, and a malformed or hole-backed directory in a later module rolls back earlier table registrations without writing guest bytes. This is loader infrastructure only: module execution, dynamic function-table APIs, unwind-semantics changes, TLS initialization, unloading and reference counting remain unsupported. Original synthetic unit fixtures cover valid registration, absent directories, reused holes and rollback on native ARM64; independent acceptance is pending.
- Transactional explicit-module ordinary-IAT binding (#894): `xenora_loader::module_iat` validates that positional module images, batch reservations, the dependency graph and the exact binding plan describe the same package before mutation, including reservation indexes, alignment, image extents, entry metadata, preferred-base metadata and non-overlap. Resolved ordinary slots are written as little-endian guest u64 values through loader-phase memory access; unresolved missing-module, missing-export, forwarder and overlapping-slot outcomes remain unwritten diagnostics. Per-slot image-backing validation and memory writes are transactional through a whole-memory snapshot, so a later failure restores even earlier successful slots. Relocation, service registration, API-set resolution, delayed imports, exception/TLS initialization, module execution, unloading and ownership tracking remain unsupported. Original synthetic fixtures cover named, ordinal and forwarded binding, unresolved outcomes, exact rollback and package/plan agreement on native ARM64; independent acceptance is pending.
- Transactional explicit-module batch relocation (#893/#895): after a batch is mapped, the loader validates one-to-one reservation indexes, alignment, image extents, entry and preferred-base metadata before mutation, applies each image's existing PE32+ DIR64 relocations at its reserved base and writes the mapped image-base field. A malformed directory or out-of-bounds target in any module restores the exact pre-relocation address space, including earlier successful fixups, through the documented whole-memory snapshot mechanism. Relocation itself performs no import or IAT write; ordinary-IAT binding is a separate implemented step, while delayed imports, service registration, exception/TLS initialization, unloading, ownership tracking and execution remain unsupported. Original synthetic fixtures cover multi-image fallback rebasing, zero-delta preferred bases, invalid reservations and exact rollback on native ARM64; independent acceptance is pending.
- The CRT spawn family refuses honestly: `_spawnve` and `_wspawnve` answer minus one with ENOSYS in errno across ucrtbase, msvcrt and the process API set, since the machine is one process and cannot host a child. Local in-module tests cover the refusal shape.
- `GetSecurityInfo` answers the owner and group of any object as the machine's one identity and honestly refuses access-control-list queries (ERROR_NOT_SUPPORTED in the return value), since the machine models no ACLs. Local in-module tests cover both directions.
- `getservbyname` resolves service names from the standard Internet assignment table (http, https, ssh, ftp, smtp, domain, and others) with ports in network byte order and misses unknown services honestly. Local in-module tests cover the resolution and the miss.
- Non-executing PE module dependency graphs (#787): explicitly supplied in-memory PE32+ images can be inventoried with bounded module identities, Windows module-reference normalization, named/ordinal export resolution, finite in-package forwarder chains using Xenora's documented last-dot compatibility policy, structured API-set/path diagnostics, structured partial-table errors and deterministic dependency components that expose cycles. Loader infrastructure only: host file search, API-set schema resolution, delayed imports, memory mapping, relocation, import-address-table writes, runtime services, reference counting, initialization/TLS, unloading and guest execution remain unsupported. Dependency edges cover references reached by observed import resolution, not unused forwarders; section virtual zero-fill is not yet represented as table backing. Verified with original synthetic fixtures in the scoped loader test on native ARM64; independent acceptance is pending.
- Non-executing import-binding plans (#815): `xenora_loader::module_binding` consumes module-graph resolutions for explicit in-memory PE32+ packages and caller-supplied base addresses, producing deterministic ordinary-IAT slot records with the source request, final provider export, checked slot and target addresses, package table-inspection errors and structured unresolved outcomes. Valid forwarder chains and circular module dependencies can produce static addresses; failed forwarders, missing or empty exports, malformed tables and overlapping slots remain diagnostics; overlapping IAT slots are never given order-dependent winners. Loader infrastructure only: host file search, memory writes, runtime services, delayed imports, initialization and guest execution remain unsupported. Verified with original byte-built synthetic fixtures in the scoped loader test on native ARM64; independent acceptance is pending.
- Added decoding and Metal shader translation for the sixteen Wave32 VOPC binary32 compares `V_CMP_{F,LT,EQ,LE,GT,LG,GE,O,U,NGE,NLG,NGT,NLE,NEQ,NLT,TRU}_F32` (opcodes 0-15, #786), writing the Wave32 VCC mask. They follow the per-opcode lines of guide Table 61, not the summary table's U: a NaN (quiet or signalling) is unordered, so U and the N* forms hold on it, and +0 equals -0. Integer inline constants are refused as SRC0. The MSL tests the binary32 bits with integer operations, so the Metal math mode cannot change a NaN result. The guide-derived oracle passes on both reference interpreters (976 cases, 1,456 rejections) and on native Metal on a local Apple M4 under API and shader validation (976 cases in 626 programs); independent acceptance is pending. The generator gains additive float-compare entries; the generated text of existing forms is unchanged apart from their form indices.
- The Wave32 VOP1 integer to binary32 conversions `v_cvt_f32_i32`, `v_cvt_f32_u32` and `v_cvt_f32_ubyte0`-`3` (#785) go through the semantic registry, decoder, both CPU interpreters, IR and MSL. Inexact I32 and U32 results round to nearest even (MODE.FP_ROUND pinned to 0); the MSL builds the binary32 bits with integer operations only, so no Metal float conversion is involved ([vector unary](docs/shaders/vector-unary.md)). The registry generator gains the additive `cvt_f32` and `cvt_f32_ubyte0`-`3` operations; generated code for existing forms is byte-identical. A guide-derived oracle passes on both interpreters and in a local native Metal readback on Apple M4 (258 cases in 127 programs). `v_mov_b32` stays a hand-written decoder form. Independent acceptance is pending.
- Regenerated the runtime-service inventory reports after integrating #799 with current main, so the canonical, manual, partial and data-import counts include the service registrations merged upstream. This updates audit documentation only; --check continues to reject stale reports.
- The legacy `msvcrt.dll` view of the integer-parse family: `strtol`, `strtoul`, the 64-bit `strtoll`/`strtoull` and the `_strtoi64`/`_strtoui64` spellings resolve through the Universal CRT engine they share, and the console key forms `_getch`/`_getche` are registered with their honest semantics - the machine's console input is empty and a key read would block the one executor forever, so a program that calls one stops while the common import-without-calling case runs. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 76 to 70 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The advapi32 SAFER and token-membership surface: `SaferCreateLevel` validates the scope, level and flags and remembers the level under the handle it hands out, `SaferComputeTokenFromLevel` answers the machine's one token for a valid level because a machine without privilege separation computes no restriction, `SaferCloseLevel` ends the handle's life exactly once, `CheckTokenMembership` answers honestly that the machine user's own SID is a member of the machine token and another SID is not, and `SetTokenInformation` honestly refuses to reprogram the one fixed identity. Verified through the in-module unit tests of `advapi.rs`.
- PE32+ loader infrastructure retains the COFF characteristics word and identifies DLL images. Entry RVA zero is admitted only for a DLL, while nonzero entries still have to name executable image code. A parsed image can now be mapped into an existing `GuestMemory` at an explicit base; the insertion-only mapping is transactional, so a malformed or overlapping image leaves the prior address space and metadata unchanged. The current transaction snapshots the whole address space and is a batch-local mechanism rather than the memory ownership design needed by dynamic module loading. Relocations, imports, initialization, module services and unloading remain separate steps (#776).
- Bounded PE32+ export-directory parsing as loader infrastructure (#774): the 40-byte directory, export address/name/ordinal tables, checked ordinal arithmetic, printable bounded strings, explicit empty ordinal slots, duplicate or inconsistent name associations and forwarder RVAs. Reserved export flags are ignored as required of PE consumers. Parsing preserves entries completed before the first error. It is not yet used by probing, module services or guest library loading; coverage is synthetic and local, with independent acceptance pending.
- The wide CRT file operations sqlite3 uses for most of its file names (`_wfopen` through the stdio API set, `_access`/`_waccess`, `_unlink`/`_wunlink`, `_wmkdir`, `_wchmod` and `_wstat64i32` through the filesystem API set). Names and modes read as UTF-16, with anything beyond ASCII rejected since the drive's names are ASCII. `_wchmod` tracks the read-only bit with real semantics: writing, truncating or deleting a read-only file fails, `_access` with the write bit fails on one, and `_wfopen` for writing refuses it with EACCES. `_wstat64i32` answers the 48-byte mingw-w64 layout with the regular-file or directory bit, read always, write unless read-only, the size and one link; the times answer -1 because the drive has no time stamps. Unit tests cover each errno answer; the hosted lock fixture grows to 51 checks, all passing through `xenora run` at -O0 and -O2 with its control variant failing as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- CRT thread creation (`_beginthreadex`/`_endthreadex` through `api-ms-win-crt-runtime-l1-1-0.dll`): the CRT spellings of CreateThread and ExitThread over the same scheduler machinery, answering the handle directly with errno answers (EINVAL for the arguments CreateThread refuses, ENOMEM when the machine has no room or no scheduler) instead of the kernel32 last error. The hosted fixture starts a real worker thread end to end: it writes shared memory, ends itself with `_endthreadex(42)`, is waited on and has its exit code read back. 56 checks pass through `xenora run` at -O0 and -O2.
- `_assert` through `api-ms-win-crt-runtime-l1-1-0.dll`: the message "Assertion failed: , file , line " on stderr, then the process ends with status 3 as the CRT's abort does when no signal handler can intercept - and none can exist here. Proven through the runtime services test; an end-to-end hosted fixture has to wait for the fd layer (#500), because mingw-w64's assert support initializes stderr through `_fileno`/`_setmode` and every program using `assert` imports them.
- A compatibility runner for selected original C, C++ and module fixture tests, with bounded command execution, JSON and Markdown reports, and distinct host-build and fixture-command outcomes (#792).
- Reproducible live runtime-service inventory (#465): `scripts/audit/runtime_inventory.py` uses a non-executing Cargo example to emit deterministic JSON and Markdown reports of canonical typed and manual registrations, kind-aware named and ordinal identities, data imports, aliases, implicit statuses and consistency findings. It matches probe or simple CSV wanted-import lists by kind and family, using probe categories when present, and its stale-report `--check` mode runs in CI. `ImportRegistry` now records key kind, data-import metadata and whether a status was explicitly chosen without changing service dispatch.
- Opt-in synthetic single-library Gaming Runtime lifecycle registration with idempotent initialization and terminal teardown failure for open GDK queues. The original Scarlett fixture now has a normal-startup integration test, and translated service tests cover queue close and active-object failure. Full DLL reference counting and platform initialization remain unsupported.
- An original hosted C record and compression fixture, with O0–O3 guest builds, independently specified output and file-byte checks, and malformed-input controls (#796).
- Documented AMD FidelityFX licensing and native Metal compatibility boundaries at a pinned public SDK revision, including the default binary-only license, exact-file MIT-list review requirement, temporal-upscaling input contracts and independent fixture requirements. No AMD implementation source, shader or asset was copied, and no upscaling implementation or compatibility is claimed.
- Documented native Metal acceleration-structure compatibility boundaries from the public SDK, including descriptor separation, sizing, scratch ownership, build/refit/copy/compaction ordering and deterministic fixture requirements. No implementation or console-specific ABI is claimed.
- Added an original Scarlett-style Gaming Runtime fixture (#713) with static import and startup diagnostics.
- The interpreter and ARM64 dynamic binary translator accept 73 additional 256-bit AVX2 packed integer forms through shared semantics (#711).
- Synthetic guest applications can query a saved slot's exact byte length before reading it, including after reopening the platform service (#765).
- Hosted guests can import `TlsGetValue2` to read a thread-local slot without changing the calling thread's last-error value (#763).
- The native Metal test gate now checks the persistent CLI framebuffer and the supervised program startup trace through their shipped worker processes (#759).
- Process environment store: `SetEnvironmentVariableA`/`W` add and delete variables, `GetEnvironmentVariableA`/`W` answer them case-insensitively with the documented size semantics, `ExpandEnvironmentStringsA`/`W` resolve `%name%` against them with unresolved names copied verbatim, and `GetEnvironmentStringsW` hands the sorted `NAME=value` block. The C runtime's `_environ` does not follow, which is the behaviour Windows programs observe.
- The legacy `_onexit` spelling registers an exit function in the same shared list `atexit` feeds, answering the function pointer itself on success and zero on failure as the legacy contract documents, under both the `msvcrt.dll` and Universal CRT spellings.
- The macOS frame loop accepts directional and primary-action input from micro gamepads when an extended controller is unavailable (#757).
- A record of the defects, ambiguities and undefined helpers in AMD's RDNA 2 guide (#741): 33 defects and 8 undefined helpers, one row per item with the guide page, the defect, the reading Xenora adopts and any second source, plus the hardware hazards that apply to EXEC-writing forms ([errata record](docs/research/rdna2-errata.md)). The registry rows that depend on a defect now say so, so a resolved decision is not silently reverted to the guide's literal text. The guide PDF is not stored in the repository.
- The twelve Wave32 SOP1 forms that write the execution mask (#740): `s_and_saveexec_b32`, `s_or_saveexec_b32`, `s_xor_saveexec_b32`, `s_andn2_saveexec_b32`, `s_orn2_saveexec_b32`, `s_nand_saveexec_b32`, `s_nor_saveexec_b32`, `s_xnor_saveexec_b32`, `s_andn1_saveexec_b32`, `s_orn1_saveexec_b32`, `s_andn1_wrexec_b32` and `s_andn2_wrexec_b32`. The ten SAVEEXEC forms leave the previous EXEC_LO in their destination and then update EXEC_LO; the two WREXEC forms update EXEC_LO first and leave the new mask in their destination. Under Wave32 the upper half of EXEC is ignored, so these forms touch EXEC_LO only, and the mask does not gate scalar instructions, so one of them executes even when the mask is empty. The registry gains an `exec` effect (`exec_save`, `exec_write`) and a `sop1_saveexec` operand rule; the generator checks that the pinned XML record has one implicit EXEC read and one implicit EXEC write, and no Rust is written per form ([SOP1 EXEC-writing forms](docs/shaders/sop1-saveexec.md)). The compiler's EXEC is a compile-time value, so a source that is not known at translation time is refused rather than guessed, and a destination outside s0-s105 is refused because the guide still writes EXEC and SCC for it. A guide-derived oracle runs on the reference interpreter and on the second independent interpreter, and the LLVM encoder comparison covers the twelve opcodes through a new fixture, which brings that comparison to 188 forms. The oracle passes 288 Metal cases in 38 programs in a local native Metal readback on Apple M4 with Metal API and shader validation. Independent acceptance is pending.
- The C runtime `_open_osfhandle` wraps a kernel pipe end as a descriptor the CRT reads, writes and closes, taking ownership of the handle, and `_get_osfhandle` answers the handle a descriptor wraps, so guest code can move a pipe between the Win32 and CRT worlds as spawn redirection does. `CreatePipe` moved onto the typed service table with its contract tested end to end.
- `_setjmp` and `longjmp` for the legacy `msvcrt.dll` view and the modern Universal CRT (#632): the documented 256-byte x64 jump buffer carries the callee-saved registers, the resume stack and instruction pointers, the x87 and SSE control words and xmm6 through xmm15. `_setjmp` returns through the ordinary service path, exactly the first return the CRT documents; `longjmp` is a context service, so the machinery applies the restored state exactly as written, and a zero value becomes one. Verified end-to-end with a mingw-built guest program at -O0 and -O2 - the -O2 locals live in the callee-saved registers, so the exact output is the register preservation check - covering the first return, the jump value, the zero-to-one rule, a calm callee and a counted jump loop ([jump fixture](tests/compat_fixtures/crt_jump.c)).
- The legacy C runtime byte forms `_filbuf` and `_flsbuf` move one byte at a time through a stream, the read answering EOF at the end, as the `getc` and `putc` macro support does on an unbuffered stream.
- The C runtime `_open_osfhandle` wraps a kernel pipe end as a descriptor the CRT reads, writes and closes, taking ownership of the handle, and `_get_osfhandle` answers the handle a descriptor wraps, so guest code can move a pipe or a file between the Win32 and CRT worlds as spawn redirection does, the kernel object and the CRT descriptor sharing one position. `CreatePipe` moved onto the typed service table with its contract tested end to end.
- The C runtime `ungetc` pushes a byte back onto an open readable stream: the bytes come back last-pushed-first through the stream and its shared descriptors, a push clears the end-of-file indicator, a successful seek forgets the stack, and the stream position reports step back over the pushed bytes, as ISO C 7.21.7.10 specifies.
- The Wave32 VOP1 binary32 rounding forms `v_trunc_f32`, `v_ceil_f32`, `v_rndne_f32` and `v_floor_f32` (#710) go through the semantic registry, decoder, both CPU interpreters, IR and MSL. The MSL works on the register bits with integer operations only, so Metal math modes cannot flush subnormals or change NaNs. Subnormal inputs assume MODE input denormals allowed. `v_rndne_f32` follows the guide's round-to-nearest-even description, so a zero result keeps its sign. The interpreters refuse NaN inputs and integer inline constants. NaN inputs are recorded as an unsupported operand variant, because the MSL passes NaN bits through unquieted ([vector unary](docs/shaders/vector-unary.md)). A guide-derived oracle passes on both interpreters and in a local native Metal readback on Apple M4 (152 cases). Independent acceptance is pending.
- The kernel32 surface busybox imports is complete: `DeviceIoControl` validates its handle and honestly refuses control codes since the machine has no device drivers, `LoadLibraryExA/W` resolve built-in modules with the documented flag semantics of a catalog without a search path, and `SetEnvironmentVariableA/W` are honestly unsupported since the process environment is the fixed capture the machine started with. Verified through the unit tests of `runtime_file_types.rs`.
- `OpenProcess` answers a real handle for the machine's one process and no such process otherwise, `ReadProcessMemory` copies the guest memory exactly through it, and the cross-process forms - `CreateRemoteThread`, `ReadDirectoryChangesW`, `CreateNamedPipeA` - are honestly unsupported. Verified through the unit tests of `runtime_snapshot.rs`.
- `GetFileAttributesExA/W` pack the attributes, the zero times the drive does not track and the size, `UnlockFile` accepts a valid file handle like the byte-range forms, `IsDBCSLeadByteEx` is correctly false for every byte since no served code page has lead bytes, and `SetFileTime`/`SetSystemTime` are honestly unsupported rather than silent no-ops. Verified through the unit tests of `runtime_file_types.rs`.
- `WriteConsoleOutputA/W` copy a rectangle of `CHAR_INFO` cells into the screen buffer grid and `ReadConsoleOutputA/W` read it back, both clipped to the grid with the written rectangle reported, so partial writes and fills compose. Verified through the round-trip unit tests of `runtime_console_buffer.rs`.
- The volume enumeration and information: `FindFirstVolumeA/W` enumerate the machine's one volume under its fixed GUID name, `FindNextVolumeA/W` end it, `FindVolumeClose` closes the search, `GetVolumeInformationA/W` answer the fixed label, serial, component limit and filesystem identity, and the mount-point/volume-name translation forms translate the `C:\` root and the GUID name to each other. Verified through the unit tests of `runtime_volumes.rs`.
- Console input honesty: `GetNumberOfConsoleInputEvents` counts the empty input buffer exactly, `PeekConsoleInputA/W` succeed reading nothing, `ReadConsoleInputA/W` fail with `ERROR_NOT_SUPPORTED` rather than blocking the only executor forever, `SetConsoleCP`/`SetConsoleOutputCP` accept UTF-8 only, `SetConsoleCtrlHandler` stores handlers that correctly never fire on a machine with no control events, and `GenerateConsoleCtrlEvent` is honestly unsupported. Verified through the unit tests of `runtime_console_input.rs`.
- Console screen buffers: `CreateConsoleScreenBuffer` creates a bounded 80x25 grid of character cells, `GetConsoleScreenBufferInfo` reports the grid, cursor, attribute and window, `SetConsoleCursorPosition` moves the cursor inside the grid, `SetConsoleTextAttribute` round-trips the color pair, `SetConsoleScreenBufferSize` resizes keeping the content, `FillConsoleOutputCharacterA/W` and `FillConsoleOutputAttribute` fill a run of cells, stopping at the grid end, and `SetConsoleActiveScreenBuffer` selects the active buffer. Verified through the unit tests of `runtime_console_buffer.rs`.
- `GetProcessTimes` answers the machine's mock clock for its one live process, with a zero exit time, and `GetCompressedFileSizeA` answers the plain size since nothing on the drive is compressed. Verified through the unit tests of `runtime_snapshot.rs` and `runtime_file_types.rs`.
- The toolhelp process snapshot of a machine with one process: `CreateToolhelp32Snapshot` for TH32CS_SNAPPROCESS, `Process32First/Next` of both widths enumerating the machine's one process with ERROR_NO_MORE_FILES at the end of the list, and `IsWow64Process` answering false since nothing runs under WOW64. Verified through the unit tests of `runtime_snapshot.rs`.
- `MoveFileExW`, the wide width of the extended rename, sharing the narrow form's replace-existing and reboot-refusal behavior. Verified through the unit tests of `runtime_file_types.rs`.
- The narrow attribute forms `GetFileAttributesA`/`SetFileAttributesA` share the wide forms' answers and their documented subset: the drive does not track attribute bits, so the set accepts only the normal and archive forms and refuses the rest with ERROR_NOT_SUPPORTED. Verified through the unit tests of `runtime_file_types.rs`.
- `CreateFileA` opens the same drive as the wide form with narrow path names, sharing rules and dispositions identical across the widths. Verified through the unit tests of `runtime_file_types.rs`.
- `MoveFileExA` renames with MOVEFILE_REPLACE_EXISTING and honestly refuses MOVEFILE_DELAY_UNTIL_REBOOT since there is no boot to wait for. Verified through the unit tests of `runtime_file_types.rs`.
- `SetHandleInformation` validates its handle and accepts the inheritance flags, which are inert without child processes, and `GetFileSize` answers the legacy 32-bit size form with the high word through its pointer. Verified through the unit tests of `runtime_file_types.rs`.
- The volume queries: `GetLogicalDrives` answers the bitmask of the one disk the machine has, `GetDriveTypeA/W` answer DRIVE_FIXED, and `GetDiskFreeSpaceExA/W` report the memory drive's capacity through their three 64-bit outputs. Verified through the unit tests of `runtime_file_types.rs`.
- Anonymous pipes: `CreatePipe` creates the two positional ends of a bounded in-memory stream, `ReadFile`/`WriteFile` stream bytes through them in order, closing the write end is the end of the stream, `PeekNamedPipe` reports without taking, and a read of an empty pipe whose write end is open fails honestly with ERROR_NOT_SUPPORTED since blocking would deadlock the only executor. Verified through the unit tests of `runtime_pipes.rs`.
- The file type and flush forms: `GetFileType` distinguishes disk files, the character devices of the console handles and other objects with the documented FILE_TYPE_UNKNOWN cases, `FlushFileBuffers` accepts a file opened for writing and refuses read-only and unknown handles with their documented errors. Verified through the unit tests of `runtime_file_types.rs`.
- The unhandled-exception filter now runs (#476). When an exception search, from `RaiseException` or from a guest CPU fault, reaches the end of the stack, the filter stored by `SetUnhandledExceptionFilter` is called as guest code on the raising thread with an `EXCEPTION_POINTERS`. `EXCEPTION_CONTINUE_EXECUTION` resumes with any changes the filter made to the context, and `EXCEPTION_CONTINUE_SEARCH` and `EXCEPTION_EXECUTE_HANDLER` take the default action. With no filter, the default action ends the guest process with the exception code as its exit status. That status is a Xenora policy, because the public pages give none, and it replaces `ExitReason::UnhandledException`. An exception raised while a filter runs gets the default action at once, also a Xenora policy. An unhandled `RaiseException` stops with the registers as at the call into it, and a fault at the faulting instruction. TLS callbacks and thread start routines now return to sentinels on the reserved sentinel page, which the import dispatcher stops at, instead of to unmapped addresses whose fetch faults were being dispatched as guest access violations. Exit unwinds and the nested-exception and collided-unwind dispositions are still refused with `ExitReason::InvalidUnwind`. `crates/loader/tests/guest_c_seh.rs` adds six original C cases, among them filters that edit the context. Verified locally on Apple Silicon; not independently reviewed.
- IsDebuggerPresent answers false and OutputDebugString drops its output, the documented behavior of a machine with no debugger attached.
- Paging-file-backed memory mappings (`CreateFileMappingA/W`, `MapViewOfFile`, `UnmapViewOfFile`) with zero-filled views tracked in the central handle table, and `CreateProcessA/W` failing honestly with ERROR_NOT_SUPPORTED since the guest is the only process. Verified through the unit tests of `runtime_file_mapping.rs`.
- Hosted programs can acquire and release shared or exclusive byte ranges on the synthetic drive. A conflicting request fails immediately. The file API mode is tracked per guest, and the legacy disk-space queries report the synthetic volume's capacity (#611).
- The hosted runtime adds view flushing, heap validation and compaction queries, the Universal CRT process ID, and the Universal CRT path and directory search functions used by SQLite (#611).
- A guest calling `DebugBreak` now raises a continuable breakpoint through the structured exception dispatcher (#611).
- `GetModuleFileNameA/W` answer the path the program was started with for its own image, with the documented truncation form, and the registry services of advapi32 (`RegOpenKeyExA/W`, `RegQueryValueExA/W`, `RegCloseKey`) model the machine's registry as honestly empty: the predefined roots open, every subkey and value is absent with ERROR_FILE_NOT_FOUND. Verified through the unit tests; probe binaries using them run end to end through `xenora run`.
- The small CRT utilities of the survey: narrow string copying and concatenation (`strcpy`, `strncpy`, `strcat`, `strncat`), `strrchr`, `_strdup`, the in-place case conversions `_strlwr`/`_strupr` and reversal `_strrev`, the C-locale collation forms `strcoll`/`strxfrm`, the Annex K copies `memcpy_s`/`memmove_s` with their documented constraint answers, the character classes `isblank`/`isgraph`, the integer formatting family `_itoa`/`_ltoa`/`_i64toa`/`_ultoa`/`_ui64toa`/`_itoa_s` and `getenv_s` answering the documented empty over the empty environment. Verified through the unit tests and the hosted `crt_crtutils` fixture (23/23 checks at -O0 and -O2 through `xenora run`).
- The formatted-input engine of the `scanf` family (#605): `sscanf` for the legacy CRT and the modern `__stdio_common_vsscanf` — whose real x64 signature carries the bounded-input count the disassembly of a mingw-w64 binary shows, not the five-parameter shape the name suggests. The integers with their length modifiers, the characters, the strings, the scansets, `%n`, `%%`, the field width and assignment suppression are implemented; the floating conversions stop the guest rather than misread. A mingw-w64 binary exercising 25 reference cases prints byte-identical results to the host C library on this machine. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 165 to 164 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `wcscpy` and `_wcsnicmp` for the wide strings a legacy mingw binary imports directly from `msvcrt.dll`: the copy is unbounded exactly as the CRT's is, and the case-insensitive comparison folds with the ASCII rules of the C locale — the only locale the runtime models — answering -1, 0 or 1 as the sign-only contract permits. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 167 to 165 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `putc` — exactly `fputc`, as Microsoft's documentation states — and `ferror`: the error indicator a failed write through a file stream sets, including a write refused for the mode or the orientation, as the CRT sets it for any failed write operation. `clearerr` clears it, as before. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 169 to 167 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `fprintf` and `vfprintf` for the legacy CRT: the variadic form reads its arguments from the calling convention, both format with the legacy stream options, and the text reaches the stream — including the `__iob_func` objects, which the shared streams now own and recognize. A mingw-w64 binary that runs `fprintf(stdout, "fp=%d\n", 7)` prints `fp=7` on the hosted console with every other check passing. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 171 to 169 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `__iob_func` answers the legacy CRT's array of three `FILE` objects — 48 bytes each as the mingw-w64 `_iobuf` fixes them — with the direction flag at offset 24 and the file descriptor at 28, and the buffer fields zero so a legacy stream starts unbuffered exactly as on Windows. First step of the legacy `FILE` campaign: the services that format through a stream come next. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 172 to 171 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `_pipe` answers two descriptors sharing one byte queue, as the CRT's anonymous pipe shares it: writes through the write end come back in order through the read end, the directions do not cross, and end of file answers once the write end has closed and the queue emptied. A read of an empty pipe whose write end is still open stops the guest — blocking is not modelled — rather than answering dishonestly. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 173 to 172 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The C runtime now answers `fread`, `fgetc`, `fseek`, `ftell` and `rewind` for `ucrtbase.dll` and the legacy `msvcrt.dll`: whole-item reads from file streams and `stdin` with the end-of-file indicator separating end from error, 32-bit seek and tell forms over the existing 64-bit engine, and rewind clearing both indicators as ISO C requires.
- user32 lands as the honest windowless surface: the machine is a console host where no window can ever be created, so the message queue is genuinely empty and every window handle genuinely invalid - `PeekMessageA` finding nothing and `IsWindowVisible` being false are the correct answers, documented as such rather than hidden stubs. Verified through the in-module unit tests of `user32.rs`.
- The CRT working directory is real: `_getcwd` reports it, `_chdir` validates against the virtual filesystem's directory set (a directory that does not exist cannot be entered), and `_fullpath` resolves dot segments lexically without an existence check - the exact split the CRT documents - all resolving case-insensitively on the machine drive. Verified through the byte-level unit tests of `runtime_file_types.rs`.
- The advapi32 token surface answers the machine's one fixed identity honestly: `OpenProcessToken`/`DuplicateToken` yield the single token of the single user, `GetTokenInformation` answers TokenUser with the fixed SID and its size contract, `EqualSid` compares byte-for-byte. AccessCheck and the ACL machinery stay unregistered - security theater is not an honest implementation. Verified through the in-module unit tests of `advapi.rs`.
- advapi32 lands: `CryptAcquireContextA`/`CryptReleaseContext` with their validating provider-token lifecycle, `CryptGenRandom` and `SystemFunction036` (RtlGenRandom) drawing real host entropy - a simulated machine must not offer predictable bytes behind an interface whose contract is unpredictability - and `GetUserNameA` answering the machine's fixed user with its size contract. Verified through the in-module unit tests of `advapi.rs`.
- The CRT string search family resolves through the legacy `msvcrt.dll` aliases legacy mingw binaries link against: `strstr`, `strtok` with its CRT scan state, `strcspn`/`strspn`/`strpbrk`, `_stricmp`/`_strnicmp` with ASCII case folding, alongside repaired `msvcrt.dll` aliases for the copy and compare string forms already served (`strcpy`/`strncpy`/`strcat`/`strncat`/`strrchr` and the memory forms). Verified through the byte-level unit tests of `runtime_file_types.rs` and the import probe over a real-world busybox.exe.
- `WSAEventSelect` associates a socket with an event object and mask, evaluating the current state at registration and posting network events as they occur - bytes arriving post FD_READ, the connect completion posts FD_CONNECT with FD_WRITE, the backlog push posts FD_ACCEPT, and a peer close posts FD_CLOSE - signaling the event object through the waitable machinery. `WSAEnumNetworkEvents` reports the occurred bits, drains them, and resets the event. Verified through the in-module unit tests.
- `WSAIoctl` answers the queries with real content: FIONREAD reports the bytes a recv could return now - the stream fifo length or the first pending datagram size - and FIONBIO accepts enabling (every socket is nonblocking by construction) while honestly refusing to disable. `gethostbyaddr` reverses the loopback into the machine's one name in reusable storage, an honest no-host for anything else. Verified through the in-module unit tests.
- The Winsock loopback learns byte streams: `socket` accepts the TCP form, `listen` marks a bound stream with its backlog limit, `connect` runs the loopback handshake - pairing the client with a server endpoint queued on the listener in order, refused where nothing listens or the backlog is full - `accept` dequeues in order reporting the client address, `send`/`recv` carry boundary-less bytes through the flow-control window, and closing an endpoint signals the orderly-shutdown eof the peer reads as zero bytes. Verified through the in-module unit tests of `winsock.rs`.
- Winsock name resolution over the loopback-only surface: `getaddrinfo` resolving localhost/127.0.0.1 into one heap-owned addrinfo the caller frees through `freeaddrinfo` - anything else is an honest no-name since no DNS exists - `getnameinfo` reversing the same address, and `inet_ntoa` formatting into reusable storage with the overwritten-static contract. Verified through the in-module unit tests of `winsock.rs`.
- The Winsock adapters land: `WSASocketA` validating its overlapped flags honestly (zero-flag creation is exactly `socket`), `__WSAFDIsSet` scanning the count-prefixed handle array the FD_SET macro expands to, and `WSAAddressToStringA` formatting the loopback sockaddr in dotted decimal with its port. Verified through the in-module unit tests of `winsock.rs`.
- The Winsock loopback learns `select` with the real fd_set layout and in-place filtering, capped timeouts rather than executor-deadlocking infinite waits, `shutdown` with its connected-only contract and direction flags enforced in send and receive, and `setsockopt` storing the vacuous-over-loopback reuse and broadcast options while refusing everything else honestly. Verified through the in-module loopback unit tests of `winsock.rs`.
- The Winsock loopback learns the datagram primitives: `sendto` with its explicit destination and first-send ephemeral auto-bind, `recvfrom` reporting the source address, plus `gethostname` answering the machine's fixed name and `inet_addr` with its documented all-ones failure ambiguity. Verified through the in-module loopback unit tests of `winsock.rs`.
- An experimental Series X|S launch preflight reads declared `MicrosoftGame.config` metadata
and reports the selected executable's static PE findings. It stops at the unverified console
bootstrap boundary. Original PE32+ fixtures exercise large-image rebasing, ordered thread-local
storage (TLS) callbacks and startup failure reporting on native macOS (#549).
- Added the gfx1030 semantic campaign roadmap and ledger (#526, #527). It records the starting coverage, family and operand gaps, current owners, and the evidence required for each implementation batch.
- The rest of package 9 of #459. Errors: `FormatMessageA`/`FormatMessageW` with the system message table for the error codes the synthetic services produce (texts from the public winerror.h documentation, trailing newline included), insert expansion with string and numeric specifiers, the allocate-buffer form whose memory `LocalFree` releases, and honest failures for unknown identifiers (the missing-message error) and `FORMAT_MESSAGE_FROM_HMODULE` (not supported, no module tables yet); `SetErrorMode` stores and exchanges the mode faithfully even though no dialogs exist. Environment: `ExpandEnvironmentStringsA`/`W`, `GetEnvironmentStringsW` and `FreeEnvironmentStringsW` over the empty environment, where expansion is the documented identity and the size answers count the terminator. System information: `GetVersionExA`/`W` reporting the simulated Windows 10 era machine, `GetWindowsDirectoryA`/`GetSystemDirectoryA` coherent with the synthetic drive, `GetComputerNameA`/`W`, `GetActiveProcessorCount`, `GetProcessAffinityMask`, `SetThreadAffinityMask` and `GetLogicalProcessorInformationEx` for the one-core-in-one-package topology; numa, cache and group relationships are not modeled. The `FormatMessageA` stub in the static C++ registrations is removed. Unit tests cover both widths, the documented failures and the cross-service memory ownership; a hosted mingw-w64 program, `crt_winsys.c`, passes all 25 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. `RaiseException` and `UnhandledExceptionFilter` stay out of this package: they need the exception dispatcher and are tracked in the issue. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The legacy Windows memory services (package 9, first part, of #459): `GlobalAlloc`, `GlobalFree`, `LocalAlloc` and `LocalFree`, reaching programs through kernel32 and the `api-ms-win-core-heap-obsolete` API set. As on every 32- or 64-bit Windows they are thin wrappers over the process heap: memory is always fixed, the returned handle is the pointer itself, and the moveable bit and the discardable hints of the 16-bit memory manager are accepted and inert. Freeing the null handle is the documented no-op success; freeing a non-allocation answers the handle itself with the invalid-handle error, which makes double frees detectable. The null-only `LocalFree` stub in the static C++ registrations is removed. Four tests cover the sharing with `HeapAlloc`, the documented failures and the API-set aliases; a hosted mingw-w64 program, `crt_winmemory.c`, passes all 16 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The narrow and shared Windows file services on the synthetic drive (package 8, second part, of #459): the narrow forms `CreateDirectoryA`, `RemoveDirectoryA`, `MoveFileA`, `FindFirstFileA` and `FindNextFileA` - the ones Universal CRT programs actually import - plus `CopyFileW`/`CopyFileA`, `GetFullPathNameW`/`GetFullPathNameA`, `GetFileInformationByHandle`, `SetFileAttributesW`, `SetFilePointer` and `GetTempFileNameA`. The narrow paths are UTF-8, coherent with the process code page, and narrow and wide forms share one implementation and one drive, so a file written through one width is the file read through the other. Copying a file onto itself is a sharing violation as on Windows, `fail_if_exists` is honored, the find data is laid out per width, `GetFullPathName` resolves against the synthetic root since there is no current directory yet (documented), and temporary names are unique within a run. One test in `crt_files.rs` covers the sharing between widths, the copies, the move, the sorted enumeration and each failure; a hosted mingw-w64 program, `crt_winfiles.c`, passes all 25 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The Windows encoding conversions (package 7, first part, of #459): `MultiByteToWideChar` and `WideCharToMultiByte` through `api-ms-win-core-string-l1-1-0.dll`, with `GetACP`, `GetOEMCP`, `IsValidCodePage` and `GetCPInfo` through `api-ms-win-core-localization-l1-2-0.dll`. A program importing any of them was refused before its entry point. Three code pages are served, each a documented public standard: UTF-8 exactly, including the surrogate pairs and the malformed sequences the Unicode standard's substitution describes; Windows-1252; and IBM 437. `CP_ACP` resolves to UTF-8 - Xenora's choice, the answer a Windows installation in its documented UTF-8 mode gives - because the process arguments are already served as UTF-8 and a program decoding them with the ANSI page must agree with what it was handed; Windows-1252 stays available by its number. The byte count rules follow Microsoft's pages, including the failure of a zero count, the terminator inside a -1 count, the size query of a null output, and the strict failures of `MB_ERR_INVALID_CHARS` and `WC_ERR_INVALID_CHARS`; unrepresentable characters take the default byte and raise the caller's flag, and UTF-8 refuses the default-character arguments as documented. Three tests in `runtime_services.rs` cover both directions, the replacements, the strict failures and each error code; a hosted mingw-w64 program, `crt_codepages.c`, passes all 23 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The locale identity of the runtime (package 7, second part, of #459): `GetSystemDefaultLCID`, `GetUserDefaultLCID`, `GetUserDefaultLangID`, `GetUserDefaultLocaleName` and the three `GetLocaleInfo` forms through `api-ms-win-core-localization-l1-2-0.dll`. One locale exists, English (United States) - Xenora's choice, documented in `services/locale.rs` - and a program asking for another fails cleanly instead of being handed American formatting under another name. The strings are the documented public values of en-US; a null locale name is the user default as the page documents, the size query counts the terminator, and the number form of `GetLocaleInfo` is refused rather than wrong. One test in `runtime_services.rs` covers the identity, both output encodings, the name forms and each failure; a hosted mingw-w64 program, `crt_locale.c`, passes all 18 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Byte-order string comparison, classification and case mapping for the one locale (package 7, third part, of #459): `lstrlenA`/`lstrlenW`/`lstrcpyA`/`lstrcmpA`/`lstrcmpiA`, `CompareStringA`/`CompareStringW`, `GetStringTypeW` and `LCMapStringW` through `api-ms-win-core-string-l1-1-0.dll` and `api-ms-win-core-localization-l1-2-0.dll`. The comparison is ordinal byte order with an ASCII case fold for the insensitive forms - not the linguistic order of Windows en-US, a simplification documented in `services/compare.rs` - and flags Xenora does not implement are refused with `ERROR_INVALID_PARAMETER` rather than silently ignored, as are `CT_CTYPE2`/`CT_CTYPE3` and sort-key mapping. One test in `runtime_services.rs` covers both widths, the fold, the size query and each failure; a hosted mingw-w64 program, `crt_compare.c`, passes all 26 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The console identity and the standard handles (package 8, first part, of #459): `GetStdHandle`, `SetStdHandle`, `GetConsoleCP`, `GetConsoleOutputCP`, `GetConsoleMode`, `SetConsoleMode`, `WriteConsoleA`, `WriteConsoleW` and `ReadConsoleA` through the console and process-environment API sets. The three devices answer fixed pseudo-handles, the console code pages are UTF-8 coherent with the process code page, and the writes append to the same capture `printf` uses, so mixed output stays in call order - `crt_console.c` proves the interleaving. `SetStdHandle` stores a redirection honestly: it changes what `GetStdHandle` answers, but a console write or read still belongs to the fixed console devices, so a redirected handle that is no console fails with `ERROR_INVALID_HANDLE` instead of writing nowhere. The mode bits round-trip without altering capture behavior yet, documented in `services/console.rs`. One test in `runtime_services.rs` covers the identity, the modes, both write widths, the line read and each failure; the hosted program passes all 20 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- A bounded standard input for hosted C programs (#467, package 1c of #459): `xenora run` reads its own standard input before the run starts, up to 1 MiB, and the guest's `stdin` serves it through `fgets`, `getchar` and `feof` with text-mode replacement of CR LF by one line feed. Input beyond the limit is refused with a command-line error before anything executes, never truncated silently; no input at all - a terminal, or the diagnostic channel holding fd 0 - means end of file at once, so a run stays deterministic. The end-of-file indicator follows ISO C: it is set when a read meets the end, so a last line without a newline sets it while a line feed does not. A line longer than the buffer comes in pieces of count - 1 characters without loss, and a CR alone is not translated. `scanf`, wide input and interactive input remain out of scope, as the ticket says. One test in `runtime_services.rs` covers the edges; a hosted mingw-w64 program, `crt_stdin.c`, passes all its checks through `xenora run` at `-O0` and `-O2` with the fixed input piped in and with none, its control variant exits non-zero, and a run fed 1 MiB + 1 byte is refused before the program starts. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Hosted programs run with `xenora run --export-guest-file ` can return one file from the synthetic C: drive (#698). The supervisor publishes its original bytes after a successful guest exit and refuses to replace a destination.
- Formatted input for hosted C programs, the narrow `scanf` family (#605): `__stdio_common_vsscanf` and `__stdio_common_vfscanf`, which mingw-w64's `sscanf`, `vsscanf`, `scanf`, `fscanf` and their secure `_s` forms call. A program that called any of them was stopped at the first call. The engine in the new `crates/loader/src/services/crt_scan.rs` follows ISO C 7.21.6.2 and Microsoft's scanf pages: white space, literals, `*`, widths, the documented sizes, integers in the base of each type, `%p`, `%n`, `%c`, `%s`, scansets with Microsoft's reversible ranges, and decimal, hexadecimal, infinity and NaN floating point rounded correctly into `float` or `double`. It tells an input failure from a matching failure, so `EOF` comes only from an input failure before the first conversion. A stream read starts at the stream's position and leaves the character after the last item unread, on `stdin` and on files `fopen` opened, in text mode with CR LF read as a line feed and `CTRL+Z` as the end. The secure forms take an `unsigned` buffer size after each `c`, `s` and `[` destination. What ISO C leaves undefined and Microsoft does not document, such as an unrepresentable value, a secure field that does not fit, wide conversions or a locale object, stops the guest with the runtime-limit fault instead of assigning a guessed value. The engine matches the host C library's `sscanf` on 4,326 generated cases whose result ISO C defines (`crates/loader/tests/scanf/reference.py`); 16 unit tests and six tests in `runtime_services.rs` take their expectations from the standard and the pages; a hosted mingw-w64 program, `crt_scanf.c`, passes all 27 of its checks through `xenora run` at `-O0` and `-O2` with piped input, and its control variant fails as intended. Wide input stays out of scope. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- A macOS contributor preview tool builds a versioned app from a clean Git commit, verifies the archived ARM64 app and worker with original Metal fixtures, and records artifact checksums and source notices (#541). It supports local signing and an explicitly configured Developer ID workflow. Public distribution validation remains on #415.
Guest execution uses original, purpose-built test programs. Commercial Xbox game execution
remains unsupported.
- Added partial `CreateEventExA/W` support for unnamed guest events (#625). Callers can choose manual or auto reset, the initial signal state and the rights on the returned handle. An original scheduled guest exchanges signals with separate wait-only and modify-only handles across multiple requests.
- Added partial `CreateSemaphoreExA/W` support for unnamed guest semaphores (#512). The requested access mask controls wait and release operations. Kernel32 and the documented API-set aliases resolve to the same services. An original guest fixture exercises both entry points at four optimization levels.
- File positions and file operations for C programs (#493, first part of package 4 of #459): `_ftelli64`, `_fseeki64`, `fgetpos` and `fsetpos` on streams `fopen` returned, and `remove` and `rename` through `api-ms-win-crt-filesystem-l1-1-0.dll`. A program that imported any of them was refused before its entry point. A position is the byte offset on Xenora's in-memory drive, so a line feed written in text mode counts two; seeks before the start, unknown origins and null arguments fail with `EINVAL`, and positions of the standard streams stop the guest. `fseek`, `ftell` and `rewind` stay with #312. One test in `runtime_services.rs` covers each origin, the round trip through `fpos_t`, writes past the end, and the `errno` of each failure; a hosted mingw-w64 program, `crt_files.c`, passes all 28 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The buffer forms of the C runtime `printf` family (#466, package 1b of #459): `__stdio_common_vsprintf`, `__stdio_common_vsprintf_s`, `__stdio_common_vfprintf_s` and `putchar`, so a hosted program can format into its own memory with `snprintf`, `sprintf`, `_snprintf` or `sprintf_s` instead of being stopped at the first call. The return value and termination rules of the standard and legacy forms come from Microsoft's `snprintf` and `_snprintf` pages, and the secure form's empty-the-buffer error reporting from `sprintf_s`; which rules apply is selected by the option bits, matching the constants observed in the code mingw-w64 generates (`0x1` legacy, `0x2` standard, verified by disassembly). Writes never leave the stated buffer, a fault inside it stops the guest, and a truncated legacy write leaves `errno` alone. An exact fit in the legacy form writes the text without a terminator and returns its length. A null buffer with zero capacity queries the required length in both forms. The invalid parameter handler is not modelled, so callers receive the documented result for continued execution. The one-line `__stdio_common_vsprintf` stub in `static_cxx.rs` is removed, as the ticket discussed, because the typed registry now serves the real entry point. The runtime tests cover exact fits, one-byte-short truncation, zero sizes, null buffers, guard bytes and faults. A hosted mingw-w64 program, `crt_sprintf.c`, checks the same behavior through `xenora run` at `-O0` and `-O2`, with a control variant that expects an incorrect result. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Temporary files for C programs (#493, last part of package 4 of #459): `tmpfile` and `tmpnam` through `api-ms-win-crt-stdio-l1-1-0.dll`. A program that imported either was refused before its entry point. `tmpfile` opens a binary stream for reading and writing whose file is deleted when the stream closes; `tmpnam` writes a name no file on the drive holds, into the caller's buffer or a static one when the argument is null. One test in `runtime_services.rs` covers the names' uniqueness against the drive, the single static buffer, and the deletion on close; a hosted mingw-w64 program, `crt_tmp.c`, passes all 9 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The descriptor layer of the C runtime (#493, third part of package 4 of #459): `_open`, `_read`, `_write`, `_lseek`, `_close`, `_fileno`, `_isatty` through `api-ms-win-crt-stdio-l1-1-0.dll`, and `_access`, `_unlink` through `api-ms-win-crt-filesystem-l1-1-0.dll`. A program that imported any of them was refused before its entry point — or, statically linked, hit the `_read` stub. A descriptor `_fileno` gives out shares the stream's state, as the CRT shares one file between them. The standard descriptors read what the host supplied and write to the captured output. `static_cxx.rs` drops its `_read` stub, as it did for `__stdio_common_vsprintf` in #466. One test in `runtime_services.rs` covers the shared state, the descriptor lifecycle, text-mode translation both ways, and the `errno` of each failure; a hosted mingw-w64 program, `crt_fds.c`, passes all 35 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The secure open and the stream indicators for C programs (#493, second part of package 4 of #459): `fopen_s` through `api-ms-win-crt-stdio-l1-1-0.dll`, with the error number as both the result and `errno` and the output pointer nulled on failure, and `clearerr`. File streams now keep the end-of-file indicator ISO C defines — a read that meets the end (or a text stream's CTRL+Z) sets it — and `feof` reports it for them, as it already did for the standard input. Nothing raises the error indicator yet. One test in `runtime_services.rs` covers the result/errno pairs of each `fopen_s` failure, the indicator's timing, and the guest stops; a hosted mingw-w64 program, `crt_secure.c`, passes all 16 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The C time services (#459, package 5): `_gmtime64`, `_localtime64`, `_mktime64`, `asctime`, `_ctime64`, `asctime_s`, `_ctime64_s`, `clock`, `_difftime64` and `strftime` with their legacy names through `api-ms-win-crt-time-l1-1-0.dll`, plus `FileTimeToLocalFileTime`. A program that imported any of them was refused before its entry point. The calendar arithmetic is exact; the machine's clock is UTC throughout, which the documentation states, so local time is UTC and `tm_isdst` is 0. The CRT's shared static buffers are reproduced. Two tests in `runtime_services.rs` cover the calendar, the error paths, the string forms and `strftime`; a hosted mingw-w64 program, `crt_clock.c`, passes all 18 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The wide-character conversions and classification (#459, package 6, first part): `mbtowc`, `wctomb`, `mblen`, `mbstowcs`, `wcstombs`, `mbsrtowcs`, `wcsrtombs` through `api-ms-win-crt-convert-l1-1-0.dll`, and `iswctype`, `iswalpha` and its siblings, `towlower`/`towupper`, `wcsncat` and `_wcsdup` through `api-ms-win-crt-string-l1-1-0.dll`. A program that imported any of them was refused before its entry point. The C locale's multibyte encoding is the answer, documented as such: bytes zero-extend to wide characters, and a wide character above 255 fails with `EILSEQ`. One test in `runtime_services.rs` covers the conversions both ways, the pointer advance of the restartable forms, and the ASCII classification; a hosted mingw-w64 program, `crt_wide.c`, passes all 17 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. The wide stream operations and printf forms need the orientation machinery and follow separately. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The remaining 49 common `math.h` functions of the Universal C runtime, through `api-ms-win-crt-math-l1-1-0.dll` (#468, package 3 of #459): `acos asin atan atan2 cbrt ceil copysign cos cosh erf exp exp2 expm1 fdim floor fmax fmin fmod frexp hypot llround log log10 log1p log2 lround modf nearbyint pow remainder rint round sin sinh tan tanh tgamma trunc` and `atan2f ceilf cosf expf floorf fmodf logf powf roundf sinf tanf`. A program that called any of them was refused before its entry point. They are typed registry services in the new `crates/loader/src/services/crt_math.rs`, with arguments and results in XMM registers. Functions whose result IEC 60559 fixes exactly (rounding to an integer, `copysign`, `fmod`, `remainder`, `fmax`, `fmin`, `fdim`, `frexp`, `modf`, `lround`, `llround`) are computed on exact operations; the others return the macOS host math library's result, which the registry says can differ from the UCRT's in the last place (macOS `atan2f(-0, -0)` is already one ulp inside -pi). `errno` is never set, no exception flag is raised and `rint`/`nearbyint` always round to nearest; a NaN argument comes back quieted and a domain error gives the x86 default NaN. `frexp` and `modf` stop the guest with a memory fault on an unwritable pointer. Five tests in `runtime_services.rs` cover Annex F special values, hand-derived exact results at ties and integer-range edges, and 1-ulp agreement with references computed independently with mpmath (`tests/compat_fixtures/crt_math_reference.py`). A hosted mingw-w64 C program, `crt_math.c`, passes all 110 of its checks through `xenora run` at `-O0` and `-O2`, and its control variant fails as intended. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Guest graphics supports indexed textured triangles with 16- or 32-bit indices and a signed base vertex, using the existing software and Metal texture paths (#559).
- Partial kernel32 services `TerminateProcess`, `GetExitCodeProcess`, `GetCurrentThreadStackLimits`, `GetThreadGroupAffinity` and `SetThreadGroupAffinity` (#475). `TerminateProcess` ends only the modelled guest process, through the current-process pseudo-handle, and fails with `ERROR_INVALID_HANDLE` for any other handle; no host process is touched. Stack limits come from the calling guest thread's TEB. Affinity reports one group holding every processor the guest is shown; narrower masks are refused with `ERROR_NOT_SUPPORTED`. An original C fixture built at `-O0`, `-O1`, `-O2` and `-Os` exercises them under the guest thread scheduler. Locally tested only; not independently reviewed.
- Guest CPU faults become structured exceptions, and `__C_specific_handler` is implemented (#453). A divide error, an access violation and UD2 in guest code now start the same search as `RaiseException`, as `STATUS_INTEGER_DIVIDE_BY_ZERO`, `STATUS_ACCESS_VIOLATION` (read, write or instruction fetch, and the address) and `STATUS_ILLEGAL_INSTRUCTION`. Other faults, including any other refused opcode, the runtime-limit marker, general-protection and SIMD faults and faults inside host services, still stop the guest, and a fault nothing accepts stops it with the original reason at the faulting instruction. `__C_specific_handler` runs MSVC-style C `__try`/`__except`/`__finally` scope tables, whose layout was derived from original clang `-fasync-exceptions` and mingw-w64 programs because no public page describes it. Exception handlers now get the context of the raise or fault, and continuing execution applies their edits to it. An uncaught C++ exception in a mingw-w64 program no longer stops at a stub: the C runtime's startup filter lets `std::terminate` print the exception and `abort` exit with status 3. `crates/loader/tests/guest_c_seh.rs` runs ten cases of the original `tests/compat_fixtures/guest_c_seh.c` at `-O0`, `-O1` and `-O2` against expectations written from the source. Verified locally on Apple Silicon; not independently reviewed. Nothing was compared with Windows or Xbox hardware. The unhandled-exception filter is still not called.
- The macOS Audio/VFS fixture can preview its captured sound on request through the existing native audio engine. The panel keeps the rendered frame available after audio capture or output failures and supports retrying the preview (#591).
- The macOS Audio/VFS fixture can save its verified guest PCM as a 48 kHz mono WAV file through the native save dialog (#747).
- The README now takes contributors from a native toolchain check through building Xenora.app and rendering its first synthetic frame. `scripts/build-app.sh --check` reports the selected Apple Silicon prerequisites before a build (#403).
- `xenora run --startup-report` now returns a versioned startup summary with the last completed stage, the original failure context, and a distinct timeout or unknown worker termination outcome. The supervisor retains valid events even if a worker leaves a damaged or incomplete record (#411).
- Existing RGBA8 Metal textures can now update selected mip levels through one bounded staging buffer. A batch validates every supplied level before writing, coalesces compatible row copies into the same command buffer, and waits for completion. Omitted levels keep their contents (#145).
- C++ exceptions run in guest programs (#447). A statically linked mingw-w64 C++ program (`-static-libstdc++ -static-libgcc`) carries GCC's unwinder and C++ personality as guest code; the guest runtime now provides the operating-system side they call. Startup reads and checks the image's exception directory (data directory 3) and refuses a malformed one. `RtlLookupFunctionEntry`, `RtlVirtualUnwind` and `RtlCaptureContext` work on the x64 `RUNTIME_FUNCTION`, `UNWIND_INFO` and `CONTEXT` layouts, including prologs, the listed epilog forms, frame registers, saved XMM registers, large allocations, machine frames and chained entries; unknown unwind versions and operations stop the guest with the new `ExitReason::InvalidUnwind` rather than being guessed. `RaiseException` runs a search phase and `RtlUnwindEx` an unwind phase that call the guest's language handlers with an `EXCEPTION_RECORD`, `CONTEXT` and `DISPATCHER_CONTEXT` on the guest stack, follow a handler that raises or unwinds again, run termination handlers in the frames passed and install the target context. Layouts were checked with `offsetof` against the mingw-w64 14.0.0 headers. Not modelled: exit unwinds, collided-unwind and nested-exception dispositions, handler edits to the context on continue-execution, `KNONVOLATILE_CONTEXT_POINTERS`, the unhandled-exception filter, CPU faults as exceptions and `__C_specific_handler`, which is still a stub; an exception nobody catches reaches the C runtime's startup frame and stops at that stub. The original program `tests/compat_fixtures/guest_cpp_exceptions.cpp` throws an `int`, a `std::runtime_error` through five frames whose destructors run, a rethrown `std::logic_error`, a class caught by `catch (...)`, a nested throw from a handler, and an exception through a frame with an 8 KiB allocation while floating-point values live in callee-saved XMM registers. `crates/loader/tests/guest_cpp_exceptions.rs` runs it at `-O0`, `-O1`, `-O2` and `-Os` through the loader and the ARM64 DBT against output written from the source, plus the uncaught control. Verified locally on Apple Silicon; not independently reviewed. Nothing was compared with Windows or Xbox hardware.
- Added the remaining imports of a statically linked mingw-w64 C++ program (#447): `libwinpthread-1.dll`'s `pthread_once`, key and mutex functions, which GCC's emulated thread-local storage calls, with the host keeping lock and key state because guest threads never run concurrently (key destructors are never called; mutex attributes are refused); `memchr`, `strchr` and `getenv`, which finds nothing because the environment is empty; `LocalFree` of a null handle; and `FormatMessageA`, `rand_s`, `_read` and `__stdio_common_vsprintf` as stubs that stop the guest if called.
- The guest graphics command context can create a bounded timeline fence, signal it after completed draw work, place a wait before the next command on the same or another queue, and read or wait for its completed value (#296). The native adapter uses a Metal shared event and separate signal and wait queues. The deterministic software path applies the same ordering contract. Waits are bounded, and a submission whose producer has yet to signal can be retried. Decreasing signals and Xbox-specific fences are unsupported. The draw/readback path remains synchronous. The contract follows Microsoft's [queue signal](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12commandqueue-signal), [queue wait](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12commandqueue-wait) and [completed value](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12fence-getcompletedvalue) documentation and Apple's [shared events](https://developer.apple.com/documentation/metal/mtlsharedevent).
- Guest PE programs can now create, signal, query and destroy timeline fences, and place fence waits on graphics queues through `xenora_graphics.dll` (#631). An original two-queue workload retries an early consumer submission and checks its readback. The native test wires Metal shared events through the existing backend adapter.
- The native app can run any executable (#442). Its new Run action sends the inspected file and any typed program arguments to the bundled `xenora run` worker from #439, so a run from the app keeps the worker's separate process, wall deadline and step limit. The app shows the program's standard output and standard error, its exit status and the last startup stage. A View > Show Metal HUD switch, off by default and remembered between launches, overlays the Metal device, frame size, frame counters and host-measured timings on fixture frames, and turns on stage tracing for program runs, which have no draw path yet. `scripts/build-app.sh` bundles and checks the worker, and its new `--smoke-hud` and `--smoke-run-program` checks need no GPU. Checked locally on Apple M4 in the running app: the Gate A2 program ran with arguments to exit 0 with all 76 checks passed, and the HUD showed and hid on a fixture frame and the frame loop. Not independently reviewed.
- Added `docs/research/exception-handling.md` (#441). It maps the public Windows x64 exception and unwind ABI (`.pdata`, `UNWIND_INFO`, unwind codes, two-phase dispatch, `EXCEPTION_RECORD` and the six services) to the pieces Xenora's guest runtime lacks. It also records what two original probe programs do on current main. A C `__try`/`__except` around a divide by zero stops the guest with `DivideError` instead of reaching its handler. A statically linked mingw-w64 C++ program that throws is refused before entry, and its exception-specific gaps are `RaiseException`, `RtlCaptureContext`, `RtlLookupFunctionEntry`, `RtlUnwindEx` and `RtlVirtualUnwind`, plus the `__C_specific_handler` stub. The page lists unknowns and source inconsistencies, a fixture plan and ranked follow-ups. Research only; no behaviour changed.
- Added the C++ runtime services a mingw-w64 C++ guest imports (#437). `libstdc++-6.dll` now provides `operator new` and `operator delete`, which reuse the same guest heap the C runtime's `malloc` and `free` use, `std::string`'s out-of-line `_M_dispose` and `_S_copy`, and libstdc++'s length-error, bad-allocation, logic-error, bad-array-length and assertion paths. The last four are noreturn functions, so they stop the guest with the runtime-limit fault instead of returning, which is an explicit refusal rather than a silent no-op. `libgcc_s_seh-1.dll!__emutls_get_address` is provided as well: GCC's emulated thread-local storage passes the address of a descriptor holding one variable's size and alignment, and the runtime returns the calling thread's own block for it, so two guest threads never share a thread-local variable. The layout is the one the toolchain's own `bits/basic_string.h` documents.
- Added `run_synthetic_startup_scheduled` to the loader (#437). The startup path ran the entry point directly, so a guest that called `CreateThread` was refused with `ERROR_NOT_SUPPORTED` because no scheduler was attached. The new entry point runs the same startup under the deterministic cooperative scheduler, so the entry point and the threads it creates take turns and share one instruction budget. A guest that exits the process still reports its own exit status.
- Added an original persistent rendering workload that reopens its synthetic journal on each frame and consumes signals through a duplicated auto-reset event. The loader test checks every journal prefix, frame, and handle count through explicit guest teardown (#739).
- Added `xenora-session` for an original synthetic application (#610). A single guest run retains CPU state, graphics objects and a synthetic file cursor across host requests, produces checked Metal or reference frames, and can export them after guest exit. If reporting the result fails, the command removes its exports so the same destination can be retried.
- `xenora-session --replay` accepts a bounded, versioned direction file and checks it before launching the guest. Replay and positional directions use the same journal and frame export path (#720).
- Added the SSSE3 instructions on XMM registers, and the 0F 38 and 0F 3A opcode maps they need, to the instruction registry (first part of #481): PSHUFB, PHADDW, PHADDD, PHADDSW, PHSUBW, PHSUBD, PHSUBSW, PMADDUBSW, PSIGNB, PSIGNW, PSIGND, PMULHRSW, PABSB, PABSW, PABSD and PALIGNR. Both engines run them on the shared semantics; none is lowered to NEON yet. The MMX forms stay refused, so CPUID does not report SSSE3. Seven SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, with 72 LLVM-assembled fixtures; not compared with x86 hardware and awaiting independent review.
- Added the integer SSE4.1 instructions on XMM registers to the instruction registry (second part of #481): PMOVSX and PMOVZX in all six widths, PMINSB, PMINSD, PMINUW, PMINUD, PMAXSB, PMAXSD, PMAXUW, PMAXUD, PMULLD, PMULDQ, PCMPEQQ, PACKUSDW, PBLENDVB, PBLENDW, PTEST, PHMINPOSUW, MPSADBW, MOVNTDQA, PEXTRB, PEXTRW to memory, PEXTRD, PEXTRQ, PINSRB, PINSRD and PINSRQ. Both engines run them on the shared semantics. Ten SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, with 254 LLVM-assembled fixtures; not compared with x86 hardware and awaiting independent review.
- Added the rest of SSE4.1 (first part of #491): ROUNDPS, ROUNDPD, ROUNDSS, ROUNDSD, DPPS, DPPD, BLENDPS, BLENDPD, BLENDVPS, BLENDVPD, INSERTPS and EXTRACTPS. Both engines run them on the shared semantics without host floating point. CPUID still does not report SSE4.1, because SSE, SSE2, SSE3 and SSSE3 come before it and are incomplete. Six SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, with 239 LLVM-assembled fixtures and 8,800 vectors computed from exact fractions, which cover every DPPS and DPPD immediate. New tests run every vector form with FS, GS and ignored segment overrides, with REX.W where it is ignored, at non-canonical addresses, with exact fault classes, and between instructions whose flags it must keep or replace, also when an unmasked floating-point exception stops it. Not compared with x86 hardware and awaiting independent review.
- Added the VEX forms of the implemented SSE to SSE4.2 instructions (second and last part of #552): floating-point arithmetic, compares with all 32 predicates, square roots, conversions, rounding, dot products, shuffles, unpacks, blends and VPTEST with 128- and 256-bit vectors where AVX has both, the scalar forms, and the packed integer, insert, extract and string forms with 128-bit vectors. Both engines run them on the semantics of the legacy forms, one half at a time, and both halves of a 256-bit operation report their floating-point exceptions together, except that VDPPS finishes the low half first. The approximations, the horizontal and alternating forms of SSE3, VTESTPS, VTESTPD, the masked moves, AVX2 and everything else VEX-encoded stay refused, and CPUID reports nothing new. 3,275 LLVM-assembled fixtures run against the integer reference and the exact floating-point and dot-product vectors of the legacy forms, with a reference of its own for the predicates and tests of unmasked exceptions in scalar and packed forms. Not compared with x86 hardware and awaiting independent review.
- Added the foundation of AVX (first part of #552): bits 255:128 of the sixteen vector registers, the VEX prefixes with their illegal forms, and the first VEX-encoded instructions: the plain, scalar, half and duplicating moves (but not the masked, sign-mask byte or widening ones), bitwise logic, VBROADCASTSS, VBROADCASTSD, VBROADCASTF128, VINSERTF128, VEXTRACTF128, VPERM2F128, VPERMILPS, VPERMILPD, VLDMXCSR, VSTMXCSR, VZEROUPPER and VZEROALL. Legacy SSE instructions keep the upper halves and VEX-encoded ones clear what lies above their vector length. Both engines run them on shared semantics. AVX arithmetic, AVX2 and everything else VEX-encoded stays refused, and CPUID reports nothing new. 407 LLVM-assembled fixtures run against a reference that works from assembly text, with tests of every illegal prefix, vvvv, length and W, alignment, exact fault classes, segment overrides, and the upper halves after every legacy vector fixture. Not compared with x86 hardware and awaiting independent review.
- Added SSE4.2 (second part of #491): PCMPGTQ, CRC32 at every width, and the string compares PCMPESTRI, PCMPESTRM, PCMPISTRI and PCMPISTRM with all aggregations, polarities, outputs, implicit and explicit lengths and flags. POPCNT already existed. Both engines run them on the shared semantics. CPUID still does not report SSE4.2, because SSE, SSE2 and SSSE3 come before its string compares and PCMPGTQ and are incomplete; POPCNT keeps its own bit. Three SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, with 583 LLVM-assembled fixtures. The references compute CRC32 by polynomial division and state the string compares as string operations, and hand-worked cases cover the usual idioms. Not compared with x86 hardware and awaiting independent review.
- The ARM64 DBT now lowers 27 SSE4 instructions to NEON instead of calling the shared semantics (third part of #491): PMINSB, PMINSD, PMINUW, PMINUD, PMAXSB, PMAXSD, PMAXUW, PMAXUD, PMULLD, PCMPEQQ, PCMPGTQ, PBLENDVB, BLENDVPS, BLENDVPD, MOVNTDQA and the twelve PMOVSX and PMOVZX forms. The lanes are the same by definition and the existing references check them. The other SSE4 forms still run on the shared semantics. No speedup was measured.
- Added an original C++ guest program and its integration test (#437). `tests/compat_fixtures/guest_cpp.cpp` links the mingw-w64 C++ runtime and exercises global constructors and destructors, static initialization, `operator new` and `operator delete`, `std::vector` and `std::string`, `std::sort` with a comparator, virtual dispatch, function pointers, thread-local storage in two guest threads, a file it writes and reads back, and runtime startup and shutdown. It is built with `x86_64-w64-mingw32-g++ -fno-rtti -fno-exceptions` and cross-compiles natively for ARM64. The integration test runs it through the loader and the ARM64 DBT at `-O0`, `-O1`, `-O2` and `-Os` and checks its output against a literal derived independently of the implementation, and checks a control that imports a service nobody provides. C++ exceptions and stack unwinding remain unsupported and are not exercised: they need a guest-side SEH unwinder rather than a service.
- Added an original two-thread guest application test (#615). A retained Win32 worker updates shared scene memory and a file cursor across events. The main thread draws and checks each frame, joins the worker and releases its resources. The test covers three scheduling quanta and a native Metal run.
- Added the Universal C runtime services that a C++ guest's runtime imports and that had no registered service (#437): `fputc`, `strerror`, `localeconv`, `mbrtowc`, `wcrtomb`, `_lock_file` and `_unlock_file` are registered with the documented `api-ms-win-crt-stdio`, `-runtime`, `-locale`, `-convert` and `-filesystem` API sets, and `memmove` now resolves through `api-ms-win-crt-private-l1-1-0.dll`, as `memcpy` already did. `fputc` writes one character to a captured stream, `strerror` names the error numbers the runtime already uses, `localeconv` returns the C locale's `struct lconv`, and the two conversions work in the single-byte C locale. Only the C locale is modelled. Locking a stream succeeds without a lock, because the guest scheduler runs one guest thread at a time and two guest threads can never hold the same stream at once. Verified locally through the loader's service tests; not independently reviewed.
- Added `GetStartupInfoA`, `GetStartupInfoW`, `GetCommandLineA` and `GetCommandLineW` with the API sets Microsoft lists for them (#455). A host gives the process its startup information with `ServicesState::set_startup_info`; flag combinations documented as invalid are refused, and the default has no flags and no strings. The command line is built from the program arguments and quoted so that Microsoft's documented C parsing rules give them back. A program whose startup code imports one of them was refused before. Original C and C++ programs built by the tests exercise them; nothing was compared with Windows, and independent review is pending.
- Added the LOCK prefix on the memory forms of INC, DEC, NEG, NOT and XCHG, and on BTC, BTR and BTS with an immediate (#451), next to the ALU operations added with #447. Compilers emit these for atomics such as `lock inc`, and each stopped the guest before. A locked form runs as one step on the shared semantics in both engines and is not lowered to ARM64 atomics; register destinations, CMP, TEST, BT, loads, CMPXCHG8B and CMPXCHG16B stay refused. Hand-derived results now cover every lockable form at every width, the ALU operations included. Not compared with x86 hardware; awaiting independent review.
- Added a CPU benchmark for gfx1030 metadata identification (#173). It verifies instruction boundaries on a mixed-family stream assembled with LLVM and reports first-pass and repeated-pass throughput.
- Added a guest-bindable texture path (#434). `xenora_graphics.dll` gained eight exports so a guest can bind its own texture: texture creation from guest memory, descriptor heaps, a shader resource view, a sampler, a root signature with two pixel-stage descriptor tables, and the three binding calls. The service computes the CPU and GPU descriptor handles for a heap slot internally, so a guest never performs descriptor handle arithmetic and never sees a host pointer, and a slot beyond the heap's descriptor count is refused. `XenoraSetVertexBuffer` now takes the vertex stride explicitly, because a flat draw reads three consecutive `float4` positions while a textured draw reads a `float4` texture coordinate after each position and needs a stride of at least 32 bytes. An original guest program (`tests/compat_fixtures/guest_textured.c`) links no C library, uploads a 2 by 2 texture out of guest memory, binds it, and draws a textured triangle whose sampled framebuffer it reads back into guest memory. The integration test runs that program through the loader and the ARM64 DBT on the software reference backend and on native Metal, where the guest's own texture is sampled through the translated gfx1030 `image_sample_lz` stage; both backends produced the same pixels, and the native case ran rather than being skipped. Constant buffers, upload and readback heaps, render target views, depth views and guest-visible fences remain unreachable from the guest.
- Added a guest-callable graphics command path (#412). `xenora_graphics.dll` exposes 21 exports so a guest program can author graphics work instead of receiving one fixed draw: device, command queue, allocator and command list creation, buffer and render-target resources, viewport, render-target, vertex and index binding, draws, execution, framebuffer readback into guest memory, and ordered destruction. Every export takes Win64 arguments, returns an `HRESULT`, and passes generation-checked opaque handles, never host pointers; a misuse returns a failure HRESULT rather than faulting the guest. `GraphicsContext` gained ordered destruction: a device outlives its queues, allocators, command lists and resources, an allocator outlives its command lists, a resource outlives the recording lists that reference it, and a recording list must be closed before it is destroyed; a refusal is an explicit `ResourceLifetimeViolation`, and a destroyed handle never resolves to a reused slot. An original guest program that links no C library (`tests/compat_fixtures/guest_graphics.c`) authors its own geometry and render targets, executes two draws and reads both framebuffers back into guest memory; its build script cross-compiles it to x86-64 PE32+ and checks that the tools it uses are native ARM64 with `file`, `lipo -archs` and `otool -L`. The integration test runs that program through the loader and the ARM64 DBT at `-O0`, `-O1`, `-O2` and `-Os` and checks the pixels against literals derived independently of the implementation, and covers an import nobody provides, a call the runtime must reject, and an exhausted instruction budget. The native Metal case attaches the Metal backend to the shared guest graphics context, asserts that the guest reports backend 1 and that both frames are byte-identical to the CPU-only path; it ran and passed on Apple M4. The loader keeps no direct Metal dependency: the native path crosses the existing `BackendRenderer` closure boundary and the deterministic software reference rasteriser remains the default on a host without a GPU. Descriptor heaps, root signatures, shader resource views, samplers and fences are not yet exposed to the guest.
- Added an original hosted C graphics fixture (#640). A Win32 worker reads a scene file through the C runtime and submits two frames through one guest graphics context. Integration tests compare exact shader and clear colors, reverse the file to check frame order, and exercise missing input and a missing scheduler. The same fixture has an opt-in native Metal test.
- Added `crates/loader/tests/shared_resource_lifecycle.rs`, which checks who owns shared graphics and GPU resources across repeated submissions (#152). On the guest graphics context it checks that forged handles (next generation, generation 0, null, unknown id) are refused for devices, queues, allocators, command lists and resources without recording or allocating anything; that a list still recording cannot be submitted; that 64 submit cycles, and resubmissions of one closed list, each read the vertex data the CPU wrote to guest memory just before that submission; and that a render target left in `RENDER_TARGET` by one submission is refused by the next until a barrier acquires it from that state. With the `gpu-tests` feature it checks that the native Metal compute context returns to zero tracked submissions after 24 submit and retire rounds of 1 to 16 dispatches, that dropped tokens keep counting against the 16-submission limit until their work completes, that invalid requests take no slot at the limit, and that a token waited on another context is refused while its issuer still retires the work. Each check fails on a deliberate local break of the code it covers. Tests only; local runs on Apple Silicon, not independently reviewed. The graphics context still has no release call, so a retired handle can only be modelled as a wrong generation, and a barrier whose "before" state is `COMMON` (which equals `PRESENT`) is accepted without comparing states.
- MOV between the accumulator and a 64-bit absolute address (`A0`-`A3`, `movabs` in LLVM syntax) now runs in the interpreter and the DBT (#428). The decoder turns the eight-byte offset into an ordinary memory operand, which FS or GS may override, so the existing MOV semantics and the DBT's native lowering apply. The address-size prefix (`67`, a four-byte offset) stays rejected.
- Added a bounded soak test of the guest runtime (#153). `tests/soak_workload.rs` runs one original hand-assembled guest routine 256 times on the same runtime, under the guest scheduler and the DBT. Each run creates an event and a worker thread, waits for the worker, closes both handles, and allocates, writes and frees a process-heap block and a `VirtualAlloc` region. After every run the test checks that open handles, guest memory in use and mapped guest address space are back at their baseline, that exactly one worker existed, that memory held mid-run is the same every time, that the translation cache stops growing after warm-up, and that the worker's exit code matches an independent model. Each run has an instruction budget, the whole test a wall-clock limit, and runs with the same seed must repeat exactly. A 2,000,000-run variant is `#[ignore]`d and documented in the file. The test also records that the first use of a thread slot keeps a 4-byte errno cell, which is bounded by the slot count. It runs CPU-side services only with the mock clock, and no GPU path. Local verification only.
- Added an original mixed CPU-to-GPU workload (#147). A synthetic PE32+ x86-64 loop runs under the ARM64 DBT, writes words to a guest buffer through checked guest memory, and the translated `add` RDNA2 compute fixture consumes those words on native Metal. `tests/mixed_workload.rs` checks the guest checksum, each guest word and each GPU word against values computed from the workload formula in plain Rust, checks that no instruction falls back to the interpreter, and checks that a store past the buffer stops the guest with a fault. The Metal test needs the `gpu-tests` feature (`cargo test -p xenora-loader --features gpu-tests --test mixed_workload`); it is not yet in `scripts/test-gpu.sh`. `cargo bench -p xenora-loader --bench mixed_workload` times only samples that pass the same check. It reports the CPU, submission, GPU, wait, readback and total phases with median, p90, p99, min, max, mean, variance and coefficient of variation, and records host, OS, build profile, Metal validation, power, thermal state and load. It exits nonzero and reports no timings for a size whose check fails. Measured locally on Apple M4 on a loaded machine only; no optimisation is claimed.
- LOOP, LOOPE, LOOPNE and JRCXZ run in both engines (#396; Intel SDM Vol. 2A, LOOP/LOOPcc and Jcc). The count is RCX; the address-size prefix stays rejected, so JECXZ and the ECX-counted forms are still refused. The DBT runs them through the shared semantics and ends its block at each. The three known answers from #155 that both engines refused are now verified, with eleven more cases, and `tests/cpu_loop.rs` checks a loop that spans translated blocks against a step-by-step model for every count, ZF match point and step budget.
- Added an opt-in, budgeted staged upload for RGBA8 textures (#144). `MetalRgba8Texture::upload_staged` fills a
Private-storage texture through one reused Shared staging buffer that never exceeds a `StagingBudget`. It
copies whole-row bands with a blit encoder and reuses the buffer only after the previous command buffer has
completed with status Completed. `plan_staged_upload` rejects missing, duplicate or out-of-range mip levels,
wrong mip sizes, short row pitches or byte buffers, and budgets smaller than one row, all before any Metal
object is created. A blit `read_back` returns any mip as tight RGBA8 bytes. On one Apple M4 under Metal API
validation, readback matched independently built patterns for every level of a padded 37×19, six-level
texture under four budgets, and matched the existing direct `upload`. Staging is slower than the direct path
(2048² with 12 mips, release build: 2.1 ms direct, 2.7 ms with a 4 MiB budget, 17.8 ms with 256 KiB), so
`upload` and its callers are unchanged. Not yet independently accepted.
- Added Win64 service-call ABI tests in `crates/loader/tests/runtime_services.rs` for #201. A dispatch-level test and a DBT guest-call test verify 16-byte-aligned call entry (`RSP % 16 == 8`), caller-owned 32-byte shadow space accessibility/integrity, return-value/stack/RIP return state, and preservation of RBX/RBP/RDI/RSI/R12-R15 and XMM6-XMM15 across registered service calls. Expected values are derived from the Microsoft x64 calling convention, not from current implementation behavior.
- Added checked, per-mip copy footprints for synthetic block-compressed texture arrays. Contributors can pack tight block rows or repack entire chains with independent row and placement alignment, and pass selected BC1–BC5 levels to the existing Metal readers (#391).
- Added `docs/research/texture-formats.md`, an inventory of the texture formats and layouts Xenora handles (#416). For BC1–BC7, RGBA8 and Depth32Float it separates container recognition, CPU decoding, layout conversion, native Metal upload and readback, translated sampling and guest reachability, and links the implementing files, tests and public specifications. It cross-references #236/#237 and #391/PR #394 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.
- Added File > Open Executable… with Command-O to the app (#408). It opens the same read-only file importer as the inspector's button, and 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. `Xenora --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); not yet independently reviewed.
- Added a `Native app build and smoke` CI job (#404). On the same native `macos-26` runner image and pinned Rust toolchain as the Rust checks, it runs `scripts/build-app.sh`, which builds the locked `xenora-ffi` library and the Swift app together, bundles and ad-hoc signs `Xenora.app`, and runs its `--smoke` check, so a Swift compile, link or smoke failure now fails CI. `scripts/build-app.sh` also prints `file` and `otool -L` for the executable and fails if it links any library outside `/System/Library/` and `/usr/lib/` (checked locally against a stubbed non-system dependency). The job is an app build and smoke result; it runs no Metal fixture and is not GPU verification.
- Added `tests/runtime_clock.rs`, which reads the performance counter, its frequency, both tick counts, the unbiased interrupt time and the system time from one injected clock and checks that they report the same elapsed time in their own units, after a host advance and after a guest `Sleep`, and that none of them decreases up to and past the end of the clock (#204). Expected values are worked out by hand from the documented units. Timed waits still return without consuming clock time.
- Added opt-in shader IR constant folding (`CompileOptions::fold_constants` / `compile_with`) for pure vector unary and binary ops whose operands are already constants (#141). Floating-point ops still use the exact positive-normal rules; loads, stores, lane masks, merges and branches are never folded. Default `compile` keeps the historical IR. Covered by hand-computed known-answer compiler tests (shifts by 32/33, ashr, min_i32 vs min_u32, mul_hi_i32_i24, ffbh_i32, exact float fold, load-derived float non-fold, and verify rejection of inexact constant float add) with a fold-on versus fold-off check, plus an MSL template drift check over every foldable op.
- Added opt-in shader IR common-subexpression elimination (`CompileOptions::eliminate_common_subexpressions` / `compile_with`) that reuses the first result of an equivalent pure vector unary or binary (#142). Equivalence is the same operation and the same operand values in the same order; constant operands match by bit pattern. Loads, stores, constant definitions, lane masks, merges, branches and other side-effecting or execution-mask-dependent ops are left in place. The pass runs after constant folding, so folded results stay constants and a later pure op on two equal folded constants can still be reused. Default `compile` keeps the historical IR. Covered by hand-derived known-answer compiler tests for reuse (and/xor, not, exact float add), for rejected loads, swapped subtracts, lane masks, lane merges and VCC selects, and for the four combinations with constant folding (1 + 2 = 3, and 1.0 + 2.0 = 3.0), and a check that the 13 golden fixtures, none of which repeats an expression, compile unchanged with the pass on. No speedup is claimed.
- The loader now maps an image's PE headers at its image base (#333): the first `SizeOfHeaders` bytes of the file, read-only, in whole 4 KiB pages that are zero past `SizeOfHeaders`. Programs read their own headers this way; the mingw-w64 C runtime does so before `main`, and until now that read faulted. When startup relocates an image it writes the load base into the mapped `ImageBase` field after the relocations, so an entry aimed at that field cannot move it twice; this is Xenora's policy and has not been compared with Windows. A load is refused with the new `PeError::InvalidHeaderSize` when `SizeOfHeaders` is zero, ends before the section table, runs past the file, or its pages would reach into a section, and when the bytes handed to the loader are not the PE32+ headers that were parsed. The page rule refuses images with sub-page section alignment whose first section starts inside the header page, which loaded before. The header pages count toward the 256 MiB mapping budget, which is checked before anything is mapped. `ParsedPe::parse` and the static probe are unchanged. `tests/pe_headers.rs` covers guest reads at the preferred and a relocated base, a relocation aimed at `ImageBase`, the write and execute faults and each refusal with original hand-built images; the image in `pe_mapping_limits.rs` now carries a valid `SizeOfHeaders`. Awaiting independent re-review.
- Added 35 known-answer cases for MOV with an immediate operand, opcodes C6 /0 and C7 /0 (#194), to `cpu_known_answers.rs`: byte, word, dword and qword stores through base, SIB, R12, R13, RSP and RBP addressing with 8-bit and 32-bit displacements; the imm32 sign extension of the 64-bit form; the register forms, including AH and a REX-selected SIL; unmapped and read-only store faults at each width; and #UD for reg field 1. Expected values come from the Intel SDM and were worked out by hand. The interpreter and the DBT already agreed with all of them, so this is new coverage and fixes no defect. The 16-bit forms covered are those that already run, and #118 stays open. Not compared with x86 hardware; awaiting independent review.
- LAHF and SAHF run in both engines, and guest CPUID reports them in leaf `8000_0001h`, ECX bit 0 (#387; Intel SDM Vol. 2A LAHF, Vol. 2B SAHF). The DBT runs them through the shared semantics. The four known answers from #155 that both engines refused are now verified, with twelve more cases, and the independent reference in `tests/x86_integer.rs` covers both instructions.
- `dbt_bench` can compare two of its JSON documents when `XENORA_DBT_BENCH_COMPARE=,` is set (#114). It prints each median with its change and whether the change exceeds the larger recorded IQR, and lists changed DBT counters. It refuses, with exit status 1 and the differing field named, to compare runs from different CPUs, operating systems or architectures, with unknown host fields, or with different workloads, sample counts, debug assertions or build labels. A new optional `XENORA_DBT_BENCH_BUILD_LABEL` records build settings the benchmark cannot see, such as LTO. No benchmark runs in this mode.
- `dbt_bench` can also write its results as one JSON document when `XENORA_DBT_BENCH_JSON=` is set (#112). The document records the host CPU, OS and architecture, the git revision and whether the tree had local changes, debug assertions, the workload and sample counts, the median, minimum, maximum, p95, p99, IQR and MIPS for the interpreter and for cold and warm DBT, and the cold DBT counters. Anything the benchmark cannot determine is `null`. The text output and the timed work are unchanged.
- Extended the original native ARM64 guest benchmarks with a hot CALL/RET workload, an alternating paired direct-linking control, per-run dispatcher and link counters, and separate opt-in DBT profiling. Service benchmarks cover the import trampoline, thread-local storage, last-error and thread ID reads, the performance counter, and uncontended critical-section enter/leave with checked guest results (#2359).
- Added opt-in `xenora-pe-session --frame-profile` diagnostics for input-to-presentation and successive presentation intervals, native Metal render/readback callback time, available GPU command timestamps, and whole-session DBT instruction, cache and service counters. The diagnostic stream keeps the session stdout protocol intact. Per-frame DBT and host-service timing remains pending engine instrumentation (#2359).
- Added synthetic guest handle-lifetime regression tests (#205) for capacity reuse, stale handles, duplicate rights and lifetime, wrong object types, thread pseudo handles and failed-output nonmutation. Runtime behavior is unchanged; independent acceptance is pending.
- Added an original DBT stress witness for a guest instruction spanning 4 KiB guest-page and 16 KiB mapping boundaries. It checks each returned value after partial immediate updates, unaffected block reuse, precise execute-permission faults and replacement host mappings in unlinked, indirect-link and experimental native branch-publication modes, including successful retargeting after each change. A separate guest allocation test records the current non-executable VirtualAlloc/VirtualProtect contract and split release/reuse behavior; page-generation invalidation and executable guest allocation support remain pending (#2362).
- Added a documented independent acceptance rule for promoting AMD RDNA2 desktop GPU (gfx1030) forms from local CPU and Metal results to `fixture verified`, including clean-commit evidence, reviewer independence, raw-log location, review-log summary, failure handling and status regeneration (#302).
- Added `xenora-bench startup` (#178), which measures Metal startup in fresh processes and in repeated
submissions within one process, phase by phase (launch, device and queue, translation, library, pipeline,
submission, GPU, readback), with median, p90, p99 and maximum. Every sample must produce the fixture's
expected output, or the run stops without writing results. `docs/testing/benchmarks.md` records one
release run on an Apple M4: a fresh process took about 43 ms (median), 36 ms of it creating the Metal
device and queue, while repeated runs in one process needed about 0.2 ms of host submission. Measurement
only; nothing was optimized.
- Added the VOP3A (`_e64`) encodings of eleven gfx1030 VOP2 integer forms (`v_mul_{i32_i24,hi_i32_i24,u32_u24,hi_u32_u24}`, `v_{min,max}_{i32,u32}`, `v_xnor_b32`, `v_sub_nc_u32`, `v_subrev_nc_u32`) and of the sixteen Wave32 integer compares (explicit SGPR mask destination, `s_cbranch_vccz` through `vcc_lo`, a translation error for reads of runtime-only SGPR results) as semantic-registry encoding variants, with VGPR sources only. New fixtures `vop3-integer` and `vop3-compare` with IR and MSL goldens, and an independent guide-derived oracle (`tests/validation/tests/vop3_{integer,compare}.rs`) that agrees on both reference interpreters and on native Metal. Part of #215.
- Added `scripts/cpu-tests.sh`, which lists the default-feature workspace test targets and runs
deterministic shards of them (`--shard K/N`), with `--check N` showing every target lands in
exactly one shard. It does not replace `cargo test --locked --workspace` or
`scripts/test-gpu.sh`. `docs/testing/cpu-coverage.md` records local CPU gate timings on one
Apple M4 host (about 40 s wall time; one loader target takes about 19 s) and shows that the 2- and
3-shard unions match the full gate's 681 passed and 34 ignored tests (#159).
- Added guest texture binding through D3D12-style descriptor tables (#303): shader-visible CBV_SRV_UAV and sampler heaps, `CreateShaderResourceView` for one-level RGBA8 and BC1 2D textures, a point/clamp `CreateSampler`, a root signature with one pixel-stage SRV table and one sampler table, and `SetDescriptorHeaps`/`SetGraphicsRootDescriptorTable` in `crates/loader/src/graphics.rs`, plus `NativeCompute::render_rgba8_sampled_bc1`. Verified locally on an Apple M5 Pro under Metal validation: a guest draw with the translated `image_sample_lz` pixel stage matches the software reference and hand-derived images on 16 of 16 pixels for two RGBA8 textures and 64 of 64 for an 8×8 BC1 texture. A wrong descriptor slot changes the image, off-centre and out-of-range coordinates point-sample with clamping, and a rejected binding, draw shape or resource state never reaches the backend. The software reference samples BC1 with the spec-exact decoder, while Apple's hardware rounds BC1's interpolated palette entries differently (171/84 against 170/85), so the BC1 fixtures use only endpoint colours. Not yet reachable from guest imports. Not yet independently accepted.
- Added MOVNTI, the SSE2 non-temporal store of a 32- or 64-bit general register to memory (part of #125). Both engines used to stop on it with an illegal-instruction exit. It is an ordinary store, as the other non-temporal stores already are; the register form and the 66 prefix stay rejected, and a destination that cannot be written faults without changing state. The SDM-derived case `movdqa_movaps_aligned_store_and_load` in `cpu_known_answers.rs`, which ends in a MOVNTI, moved from refused to verified, and `tests/x86/integer.txt` gains four assembled instructions checked by the text-only reference in `x86_integer.rs`. MASKMOVDQU stays rejected and SSE2 stays unreported by CPUID. Not compared with x86 hardware; awaiting independent review.
- Added MFENCE, LFENCE and SFENCE and documented the ordering of guest memory accesses (part of #199). Both engines used to stop on a fence with an illegal-instruction exit. Each engine runs one guest instruction at a time on one host thread and completes its loads and stores before the next, so accesses are already totally ordered and the fences change nothing; `docs/cpu/instruction-registry.md` states this and that it holds only while guest threads do not run on several host threads. Five single-thread cases in `cpu_known_answers.rs` and three assembled fixtures cover them, and the memory forms that share the opcode stay rejected. SSE2 is still not reported by CPUID because other SSE2 instructions are rejected; the refused SSE2 instruction that `cpu_features.rs` holds is now MASKMOVDQU. No multi-thread behaviour is established, and nothing was compared with x86 hardware; awaiting independent review.
- Added the accumulator short form of XCHG, opcodes 91 to 97 and 90 with REX.B, at 16, 32 and 64 bits (part of #118). Assemblers choose this form whenever one operand is the accumulator, and both engines used to stop on it with an illegal-instruction exit. A 16-bit exchange keeps the upper 48 bits of both registers, a 32-bit one clears both upper halves, and `49 90` exchanges RAX with R8 while plain `90` stays NOP. Both engines run the shared semantics; nothing is lowered to ARM64. Three SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, and `tests/x86/integer.txt` gains 20 assembled instructions checked by the text-only reference in `x86_integer.rs`. F3 before this form, 16-bit PUSH and POP and LODSW stay rejected. Not compared with x86 hardware; awaiting independent review.
- Added SHLD and SHRD, the double-precision shifts (`0F A4`/`0F A5` and `0F AC`/`0F AD`), for 16-, 32- and 64-bit register and memory destinations with the count in an 8-bit immediate or in CL (part of #121). The count is masked to five bits (six for 64-bit operands); a masked count of zero changes nothing, the vacated bits are filled from the source register, CF receives the last bit shifted out of the destination, ZF, SF and PF follow the result, OF is set only for a count of one (a sign change) and AF is undefined. A 16-bit count above 16 leaves the result and flags undefined in the Intel SDM; Xenora keeps every flag and writes the bits of the 32-bit concatenation, and no test relies on that. The registry gained the operand encodings `rm_reg_imm` and `rm_reg_cl`. Both engines run the shared semantics; nothing is lowered to ARM64. Eight SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, and `tests/x86/integer.txt` gains 72 assembled SHLD and SHRD instructions, checked by a bit-at-a-time reference in `x86_integer.rs` and by the faulting read-modify-write test. Not compared with x86 hardware; awaiting independent review.
- Added RCL and RCR, the rotates through the carry flag, for 8-, 16-, 32- and 64-bit register and memory operands with a count of one, CL or an immediate (part of #121). The count is masked to five bits (six for 64-bit operands) and then reduced modulo 9 or 17 for 8- and 16-bit operands; a masked count of zero changes nothing, CF receives the last bit rotated out, and OF is set only for a count of one. Both engines run the shared semantics; nothing is lowered to ARM64. Fourteen SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, and its shift sweep now runs both instructions at every width, count and carry against its bit-loop model. `tests/x86/integer.txt` gains 80 assembled RCL and RCR instructions, checked by the single-step reference in `x86_integer.rs`. SHLD and SHRD stay rejected. Not compared with x86 hardware; awaiting independent review.
- Added four Wave32 gfx1030 VOP2 select and carry forms through the semantic registry. Conditional select, add with carry and both subtract orders with borrow use a per-lane VCC bit and have a guide-derived oracle that passes on both CPU interpreters and on native Metal (local Apple M5, API and shader validation); independent acceptance is pending. Part of #215.
- Added decoding and Metal shader translation for twelve Wave32 VOPC 16-bit integer compares (#215). The signed and unsigned forms compare the low 16 bits of each source and write the Wave32 VCC mask. CPU verification covers 1,572 compiler acceptance cases and 408 rejections from the guide-derived oracle, which also passes on native Metal (1,572 cases in 1,420 programs on a local Apple M5 under API and shader validation); acceptance is pending.
- Added MOVS and STOS for 8- to 64-bit elements, with and without REP, and the direction flag with CLD and STD (#129). A REP form runs one element per step and stays on the instruction until RCX is zero, so every element counts against the step budget, a repeat can stop part-way and resume, a zero count touches nothing, and a fault keeps the elements already done with RSI, RDI and RCX at the one that faulted. An FS or GS override applies to the MOVS source only. Both engines run these on the shared semantics with no bulk-copy path, so large copies are slow. LODS, CMPS, SCAS, REPE, REPNE and the address-size override stay rejected. Fourteen SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, and `tests/cpu_rep.rs` adds a byte-array model over every form, direction and count; not compared with x86 hardware and awaiting independent review.
- Added a deterministic guest thread scheduler (first part of #323): independent CPU contexts, guarded stacks and TEBs on one host thread, with bounded turns, `CreateThread`, `ExitThread`, `TerminateThread`, `GetExitCodeThread`, `SuspendThread`, `ResumeThread` and `SwitchToThread`. With a scheduler attached, `WaitForSingleObject` and `WaitForMultipleObjects` block only the calling guest thread, with timeouts, on threads, events, semaphores and mutexes; abandoned mutexes, deadlocks and per-thread faults are reported. Guest threads never run concurrently. See `docs/runtime/threads.md`.
- Added blocking critical sections, SRW locks, condition variables, one-time initialization and `Sleep` to the guest thread scheduler (second part of #323). A call that has to wait blocks only the calling guest thread. Waiters are served oldest first, waiting writers are not starved by readers, and condition-variable sleeps return with their lock held, woken or timed out. Checked with compiled guest programs against documented Win32 results, not on Windows; awaiting independent review.
- Added decoding and Metal shader translation for the sixteen Wave32 VOPC 64-bit integer compares (#215). They read VGPR pairs, known even-aligned SGPR pairs or sign-extended inline integers and write the Wave32 VCC mask. The guide-derived oracle passes on native Metal (4,640 cases in 3,818 programs on a local Apple M5 under API and shader validation); acceptance is pending.
- Added XADD and CMPXCHG for 8- to 64-bit register and memory destinations, and the LOCK prefix on their memory forms (#198). LOCK anywhere else, CMPXCHG8B and CMPXCHG16B stay rejected. Both engines run the new forms on the shared semantics, one instruction at a time, so a locked instruction is indivisible today and LOCK changes no result; `docs/cpu/instruction-registry.md` states the ordering, alignment, compare-failure and fault rules a guest scheduler must preserve. A failed compare still writes the destination, so it faults on memory that cannot be written. Nothing is lowered to ARM64 atomic instructions, and no multi-thread behaviour is established. Fourteen SDM-derived cases already in `cpu_known_answers.rs` moved from refused to verified, with 62 LLVM-assembled fixtures and five new tests in `x86_atomic.rs`; not compared with x86 hardware and awaiting independent review.
- Added CPUID with a fixed, host-independent guest contract (#130). It reports a synthetic processor with the vendor string `Xenora guest` and sets a feature bit only when every instruction of that feature is implemented: CMOV, POPCNT, LZCNT and long mode today. SSE and SSE2 are not reported while parts of them, such as RSQRTPS and MFENCE, are still rejected, so the table is truthful about Xenora and not a plausible hardware model. Unlisted leaves return zeros. `tests/cpu_features.rs` pins every leaf in both engines, requires each reported feature's instructions among the executed fixtures, and holds a refused witness instruction for 31 unreported features. `docs/cpu/instruction-registry.md` gives the table and the rule for reporting a new feature. Not compared with a processor; awaiting independent review.
- Added six Wave32 gfx1030 VOP1 integer forms through the semantic registry, including bit scans and a two-register swap under EXEC (AMD RDNA 2 ISA guide section 12.8, #215). The compiler accepts 752 guide-derived cases and rejects 610 programs at the oracle’s expected offsets. Native Metal verification and independent acceptance are pending.
- Added delay-loaded imports to the static PE probe (#244). `xenora probe --mode static` now reads the PE32+ delay-load directory and lists each delay-loaded import in `imports.csv` with its DLL, symbol or ordinal, and delay import address table slot. A new `import_table` column, inserted after `iat_rva`, marks every row `ordinary` or `delayed`; `import_kind` stays the last column. The existing totals and `missing_imports.csv` still cover ordinary imports only, and the JSON report adds `delayed_imports`, `delayed_imported_dlls_count` and `delay_import_error`. The table is bounded by the directory's declared size, which must hold the empty descriptor that ends it, and each descriptor's DLL name, import address table and import name table must be present and start in section data. A table that breaks these rules, is truncated, sets a reserved attribute bit or uses the earlier virtual-address descriptor form is reported with the entries read before the problem. `xenora imports sync` leaves delayed rows out of its backlog. Inspection stays static: nothing is bound or executed. Covered by an original fixture (`fixtures/pe/delay-imports.exe`, generated by `fixtures/pe/delay-imports.py`) whose imports were cross-checked locally with `llvm-readobj --coff-imports` from LLVM 23.1.6; awaiting independent review.
- Added the first gfx1030 scalar memory instructions, `s_buffer_load_dword`, `_x2` and `_x4` (#189), with `s_waitcnt lgkmcnt(0)`, to the decoder, the independent CPU reference and the Metal lowering. They read the dispatch input at an immediate and SGPR byte offset, ignore the two low address bits, and keep the old register for a word out of range, as the AMD guide says. A loaded register is a run-time uniform value that vector instructions can read; scalar instructions that read one are refused. Reads and writes before the wait are refused too. An oracle written from the guide alone checks 1,530 cases on the reference and, with Metal validation on an Apple M5 Pro, on native Metal; LLVM agrees on the encodings. Independent acceptance is pending, and nothing was compared with hardware.
- The gfx1030 translator now accepts `s_cbranch_scc0` on a compare of a loaded scalar register (#187), with or without an `else` part that the skipped code's last `s_branch` jumps over. The twelve SOPC and twelve SOPK compares take loaded values. Both parts are limited to the integer vector instructions of the existing `s_cbranch_vccz` contract, which is unchanged and has no `else`; nested and backward branches stay refused. An oracle written from the AMD guide alone checks 2,120 cases, with both outcomes of every compare, on the CPU reference and, with Metal validation on an Apple M5 Pro, on native Metal. Independent acceptance is pending, and nothing was compared with hardware. Loops and divergent control flow remain unsupported.
- Added the sixteen gfx1030 SOPK integer forms through the semantic registry: `s_movk_i32`, `s_cmovk_i32`, `s_cmpk_{eq,lg,gt,ge,lt,le}_{i32,u32}`, `s_addk_i32` and `s_mulk_i32` (AMD guide sections 12.2 and 13.1.2), with SDST s0-s105 only and SIMM16 sign-extended (zero-extended for the unsigned compares). The registry gained the operand rules `sopk_sgpr` and `sopk_compare` and the operations `mov` and `cmov`; the decoder and the scalar translation fold them like SOP2 and SOPC. An independent guide-derived oracle (`tests/validation/tests/sopk.rs`, 4,184 cases and 398 rejections on both CPU interpreters and native Metal), an LLVM-assembled fixture `scalar-immediate.s` with IR and MSL goldens, and the LLVM three-way decoder check cover them (part of #215).
- Added an independent guide-derived oracle for the Wave32 16-bit (`v_cmp_{lt..ge}_{i16,u16}_e32`) and 64-bit (`v_cmp_{f..t}_{i64,u64}_e32`) integer compares in the reference and the second interpreter (6,212 lane cases, 1,208 rejections; contract in `docs/shaders/vector-compare.md` section 2a). Part of #215.
- Added `python3 -m qa rdna2 rank` to the read-only RDNA2 planner: it groups undeclared gfx1030 forms by the piece of work that would unlock them (an encoding variant of a declared form, a new operand rule, or a new primitive, from XML identity and operand shape only) and ranks the groups by forms per estimated cost, excluding claimed scopes, with `--no-float` to leave out floating-point groups until the FP contract exists (part of #215).
- Added authoritative read-only x86-64 CPU inventory CLI (`python3 -m qa cpu-inventory`) over `crates/loader/x86/instructions.toml` via `generate_x86.load`, with opcode-map/prefix/operand summaries, native vs shared-semantic operation partitions from `dbt.rs`, fixture mnemonic evidence and a separate unsupported catalog. Does not count candidates as implemented. Covered by `tests/qa/test_cpu_inventory.py`.
- Added typed runtime inventory CLI (`python3 -m qa runtime-inventory`) over `crates/loader/runtime/services.txt`, reporting implemented/partial/stub services separately from API-set aliases and leaving independently-verified empty unless recorded. Covered by `tests/qa/test_runtime_inventory.py`.
- Added `crates/loader/tests/cpu_known_answers.rs` (#155): 736 x86-64 cases whose results, flags, MXCSR state and faults come from the Intel SDM, with the AMD APM for some MXCSR flags, plus arithmetic, shift, packed-integer, multiply, divide and floating-point sweeps computed from the manuals' definitions. 700 cases were written before the CPU source was read; the rest and the sweeps came afterwards. The interpreter and the DBT both run them; the DBT route (ARM64 code or Rust helper) is confirmed by the fallback counter for straight-line cases and predicted for the others. 592 cases are verified, 133 use forms both engines refuse, and eleven, plus a self-modifying-code test, record open defects in five ignored tests: the reported address of a page-crossing fault, the fault class of a non-canonical address and of an instruction over 15 bytes, PE set by an exact unmasked overflow, and DBT blocks that stay cached after the guest rewrites them. Not compared with x86 hardware; awaiting independent review.
- Added a typed runtime service registry (`crates/loader/runtime/services.txt`) and `xenora-runtime-gen`, which generates Win64 argument and result adapters, static metadata and a coverage report. It covers 20 services: 16 existing kernel32 services moved to typed handlers, and `sqrt`, `sqrtf`, `fabs` and `fabsf` with arguments and results in XMM registers. Conflicting keys, unlisted API sets, unsupported types and behaviour without an existing test are rejected. See `docs/runtime/registry.md`.
- Added SSE and SSE2 floating point in scalar and packed, binary32 and binary64 forms: add, subtract, multiply, divide, minimum, maximum, square root, compares, COMI/UCOMI and the conversions between formats and integers (parts of #127 and #128; awaiting independent review). `crates/loader/src/softfloat.rs` computes every result exactly and rounds once, with MXCSR rounding modes, sticky flags, denormals-are-zero, flush-to-zero, tininess after rounding and x86 NaN rules; host floating point is not used because ARM64 differs. An unmasked exception exits with `SimdException` and leaves everything but MXCSR unchanged. RCP, RSQRT and MMX conversions are rejected, and no floating-point form is translated to NEON yet.
- Added 6,824 floating-point vectors computed with exact fractions by `tests/x86/float_reference.py`, run through both engines from registers and memory and through the packed forms, and more than two million round-to-nearest results compared with the host's IEEE 754 hardware.
- Added XMM0-XMM15 and MXCSR to the guest CPU state, and the SSE and SSE2 moves and packed integer forms: aligned, unaligned, scalar, half and non-temporal moves, MOVD/MOVQ, sign-mask extraction, bitwise operations, wrapping and saturating arithmetic, compares, minimum, maximum, average, multiplies, PSADBW, packs, unpacks, shifts, shuffles, PINSRW, PEXTRW, LDMXCSR and STMXCSR (parts of #124, #125, #126 and #128; awaiting independent review). Operations with identical NEON lane semantics are translated to ARM64; the rest call the shared semantics. Misaligned 16-byte operands and reserved MXCSR bits raise a distinct general-protection exit. MXCSR is state only: floating-point arithmetic is not implemented.
- Added 374 LLVM-assembled vector instructions with a byte-array reference, compared with both engines over 23,936 states, plus alignment, fault, width and mixed-sequence tests.
- Added a declarative x86-64 instruction registry (`crates/loader/x86/instructions.toml`) and its generator, `crates/loader/generate_x86.py`, with `validate`, `generate` and `--check` modes. The static probe, the interpreter and the native DBT now share one decoder driven by its tables, so instruction boundaries, rejected forms and reported support agree. Overlapping encodings, such as a sign extension claiming the MOV-immediate opcodes, fail validation. See `docs/cpu/instruction-registry.md`.
- Added integer instructions for 8-, 16-, 32- and 64-bit register and checked memory operands: the eight ALU operations, TEST, INC, DEC, NEG, NOT, XCHG, ROL, ROR, SHL, SHR, SAR, MUL, IMUL, DIV, IDIV, CMOVcc, SETcc, BT, BTS, BTR, BTC, BSF, BSR, POPCNT, TZCNT, LZCNT, CBW/CWD families, PUSH, POP, LEAVE, RET imm16 and flag instructions, with parity and auxiliary-carry flags and a distinct divide-error exit (parts of #65, #66, #68, #70, #71, #73, #118 to #123, #194 to #196; awaiting independent review). Forms the DBT does not lower to ARM64 call the same Rust semantics and are counted.
- Added 985 LLVM-assembled integer instructions with a bit-level reference that reads only their assembly text, compared with the interpreter and the DBT over 47,280 states, plus 4,000 random instruction sequences compared between the engines.
- Added sixteen gfx1030 SOP2 integer forms through the semantic registry: `s_min_i32`, `s_min_u32`, `s_max_i32`, `s_max_u32`, `s_cselect_b32`, `s_bfm_b32`, `s_mul_i32`, `s_bfe_u32`, `s_bfe_i32`, `s_absdiff_i32`, `s_lshl1_add_u32` to `s_lshl4_add_u32`, `s_mul_hi_u32` and `s_mul_hi_i32` (AMD guide section 12.1). Min and max set SCC from the strict compare (a tie gives S1 and SCC 0), `s_cselect_b32` reads SCC and is refused when SCC is unset, and BFM, MUL, MUL_HI and CSELECT leave SCC unchanged. The registry gained these primitives, a `selected_src0` SCC effect, the select's SCC input and a declared `shift_amount` for the shift-and-add forms; `ScalarAluOp::evaluate` now returns an optional SCC. Both reference interpreters, written separately from the guide, run the same sixteen forms and are checked against 21,070 guide-derived cases on both CPU interpreters and on native Metal; 597 rejected programs are refused by both interpreters and by the compiler. A new LLVM-assembled fixture covers all sixteen. Part of #215.
- Added MOVZX, MOVSX (0F B6/B7/BE/BF) and MOVSXD (63) for register and checked memory operands in the interpreter and the native DBT, with exact lengths in the static probe (parts of #65, #66, #67, #68 and #117; awaiting independent review). Covered: 16-, 32- and 64-bit destinations, AH/CH/DH/BH without REX, FS/GS bases and RIP-relative operands. Other 0x66 forms are rejected instead of running at the wrong width. Known-answer encodings come from the LLVM assembler; MOV immediates (B8-BF) have regressions proving they are never read as sign extensions.
- Added FNINIT (`DB E3`), the one instruction a C program built with the mingw-w64 runtime needs that the decoder refused (#378, part of Gate A2). Guest state gains the x87 control, status and tag words in `CpuState::x87`, and FNINIT sets them to the Intel SDM values `037F`, `0` and `FFFF`. Both engines run the shared semantics; nothing is lowered to ARM64 and the host's floating-point state is never touched. The registry gains a form key, `rm`, that pins a register-only form to one ModRM byte, because the other bytes of `DB /4` are different instructions. No other x87 instruction exists: FNSTCW, FLDCW, FNCLEX, FWAIT and all x87 arithmetic stay rejected, there are no x87 data registers, nothing can read the three words back, and CPUID still reports no FPU. Nine SDM-derived cases in `cpu_known_answers.rs`, whose harness now starts every case with the three words away from their reset values and requires every other instruction to keep them, one assembled fixture checked by the text-only reference in `x86_integer.rs`, and a sweep of every ModRM byte under opcodes `D8` to `DF` in both engines cover it. Not compared with x86 hardware; awaiting independent review.
- Added Phase II infrastructure CLIs under `scripts/qa` and `scripts/release` (#277): read-only RDNA2 expansion planning over live inventories, unified verification profiles with stale-evidence detection, CPU/runtime coverage scans, benchmark regression comparisons that reject incompatible identities, git rename/delete scope collision reports, and release-readiness reports with SBOM/checksum/bundle checks. Covered by `tests/qa` and `tests/release`; advisory until reviewed.
- QA verification records total and skipped test counts from completed Python unittest summaries (#1247).
- Added advisory infrastructure QA helpers under `scripts/qa/` and `scripts/release/` (issue #277): exit-status-preserving orchestration with JSON reports, PR scope/DCO/artifact checks, benchmark percentile analysis over existing samples, environment and repository health diagnostics, ARM64 Mach-O/bundle/codesign helpers, and checksum manifests. Covered by `tests/qa/` and `tests/release/`; checks stay advisory until reviewed.
- Recorded agent-queue live smoke evidence for issue #180 against the disposable private repository `ranveersoni98/xenora-agent-queue-smoke`, including claim grant, overlap refusal, release, not-ready denial, progress renew and a successful audit dispatch after fixing comment-only `apply_actions` and audit permissions/argparse issues.
- Added twelve gfx1030 VOP2 vector integer forms through the semantic registry: `v_mul_i32_i24`, `v_mul_hi_i32_i24`, `v_mul_u32_u24`, `v_mul_hi_u32_u24`, `v_min_i32`, `v_max_i32`, `v_min_u32`, `v_max_u32`, `v_xnor_b32`, `v_add_nc_u32`, `v_sub_nc_u32` and `v_subrev_nc_u32` (AMD guide section 12.7), with SRC0 a VGPR, an SGPR, `vcc_lo`, an inline integer or a literal. The registry gained a `vop2_vgpr` operand rule, the vector operations `mul24` and `mul_hi24`, a declared `source_order` for SUBREV, and a per-lane `VectorBinary` that selects one reusable MSL template per operation. Both reference interpreters, written separately from the guide, run the same twelve forms and are checked against 2,040 guide-derived cases, each asserting every lane of a 7-, 32- or 45-lane dispatch (partial, empty and full EXEC), on both CPU interpreters and on native Metal; 575 rejected programs are refused by both interpreters and by the compiler at the same word. A new LLVM-assembled fixture computes every lane from its own input. Part of #215.
- Moved the twelve Wave32 VOPC integer compares from #239 into the semantic registry (operand rule `vopc_vcc`, `vcc = "lane_mask"`, `wave = "wave32"`) with no behaviour change, and added `v_cmp_f_i32`, `v_cmp_t_i32`, `v_cmp_f_u32` and `v_cmp_t_u32` as registry forms under the same Wave32 VCC/EXEC contract, verified by an independent guide-derived oracle (`tests/validation/tests/vopc_f_t.rs`), a new LLVM-assembled fixture and native Metal (part of #215). `v_cmpx_*`, the VOP3 encoding and Wave64 stay unsupported.
- Split the gfx1030 semantic registry into one file per encoding family (`crates/isa/semantics/rdna2/{sop2,sopc,sop1,vop2,vopc,vop3}.toml`, included in order by `rdna2.toml`; the split left the generated tables byte-identical), and added registry encoding variants: another encoding of a declared form is pure data. `v_add_nc_u32_e64` is now the first VOP3 variant of `v_add_nc_u32` (operand rule `vop3_vgpr2`), replacing its hand-written decoder and instruction with no behaviour change (part of #215).
- Added guest mutexes, critical sections, SRW locks, condition variables, synchronous one-time initialization, interlocked SLists, and TLS and FLS slots. Ownership is per guest thread (TEB). Calls that would have to block stop the guest with an explicit runtime-limit fault, because there is no guest scheduler yet. An original PE32+ fixture calls every service through its import table, using two guest TEBs. See `docs/interfaces.md`.
- Added an MSVC decorated-name decoder (`xenora_import_gen::demangle`), and import manifests now show undecorated names for C++ imports that need manual engineering. Unsupported constructs return no result rather than a guess. Tests decode names mangled independently by clang for `x86_64-pc-windows-msvc`.
- Added a guest service dispatch benchmark (`cargo bench -p xenora-loader --bench service_dispatch`). It runs correctness-gated guest loops that call services through the import table under the DBT; see `docs/testing/benchmarks.md`.
- Added a `runtime_services` fuzz target (`scripts/fuzz.sh runtime_services`) and a stable-toolchain replay test sharing the same driver. Both call random sequences of the standard guest services with zero, all-ones, writable, read-only, executable, unmapped, raw and earlier-result arguments, and check after every call that read-only and code memory are unchanged and nonvolatile registers are preserved. Writable guest memory is filled from a deterministic pattern so corpus bytes are reserved for dispatch. An earlier 300-second campaign's input and edge counts are withdrawn: that run exhausted each input while filling the 65,536-byte writable region and never reached the dispatch loop. After the harness fix, a local 300-second campaign on Apple Silicon (`scripts/fuzz.sh runtime_services 300`) ran 96,589 inputs (4,008 coverage edges, 9,940 features) without a crash; the first minutes also found a ~3.7 GiB `XMemAlloc` host OOM, which is now fixed by failing closed on overflowing sizes and routing mappings through the virtual allocation budget. Services that wait on real time or reach native Metal are excluded.
- Added guest system information, memory status, calendar time conversion, interrupt time and sleeping. The guest sees a configurable simulated machine (`GuestSystemProfile`, one processor by default), kept separate from the detected host hardware (`HostCapabilities`). Sleeping goes through the injectable clock, so tests advance time deterministically. An original PE32+ fixture verifies `SYSTEM_INFO`, `MEMORYSTATUSEX` and `SYSTEMTIME` layouts and leap-year handling against dates computed independently.
- Added services that call guest code and continue when it returns. The import dispatcher can run a sequence of guest callbacks on a checked stack frame, verifying the Win64 nonvolatile registers after each one. The CRT uses this for `qsort`, `qsort_s`, `bsearch`, `bsearch_s`, `_initterm`, `_initterm_e`, onexit tables, `atexit` and `_cexit`. Kernel32 uses it for `InitOnceExecuteOnce` and `FlsFree` cleanup callbacks. Original guest comparators and initializers in a PE32+ fixture verify ordering, stop-on-failure and register preservation.
- Fixed the import generator classifying the synchronization API-set entries for `CreateSemaphoreA`, `CreateSemaphoreW` and `ReleaseSemaphore` as stubs, which overrode the runtime handlers. A CLI test now checks that every generator entry marked as a standard service resolves to a registered, non-stub loader handler.
- Added guest module lookup and named symbol resolution for built-in Kernel32 and UCRT services.
- Added process exit and the first Gate A milestone, A1 (#329). `kernel32.dll!ExitProcess` stops the guest with the new `ExitReason::ProcessExit(status)`, carrying all 32 bits of the status, and never ends the host; a returning entry point does the same with EAX. The exit closes every guest handle, including Winsock sockets and task-queue handles, and the engine that ran the guest executes nothing further. A TLS callback that exits ends startup with that exit as its outcome, and the remaining callbacks and the entry point do not run. Startup reserves the page holding the return addresses the engine intercepts, so an image mapped over them is refused. `atexit` functions are not run. A1 is an original C program with no C library linked (`tests/compat_fixtures/gate_a1.c`): `crates/loader/tests/gate_a1.rs` builds it from source with clang and an LLD on every run, executes it through the loader, the standard services and the DBT at `-O0`, `-O1`, `-O2` and `-Os`, and checks its exit status, its report, its files and its memory against values recomputed in Rust. `docs/testing/gate-a.md` records what A1 shows and that Gate A stays open until the hosted milestone, A2, passes. Verified locally with two compilers; awaiting independent review.
- Added same-process guest file handle duplication with a shared file position.
- Added guest file and directory enumeration with typed search handles.
- Added closed-file moves and file and directory attribute queries on the synthetic guest drive.
- Added nested guest directories and checked file deletion on the synthetic drive.
- Added the second Gate A milestone, A2 (#419): an original hosted C program, `tests/compat_fixtures/gate_a2.c`, built from source by the new test `crates/loader/tests/gate_a2.rs` with the mingw-w64 C runtime (UCRT) and run through the loader, the standard services and the ARM64 DBT. The runtime's own startup code runs before `main`. The program takes `argc` and `argv`, sorts heap data with `qsort`, prints with `printf`, writes a report with `fprintf` and reads it back with `fgets`, registers a function with `atexit` and returns from `main`. At `-O0`, `-O1`, `-O2` and `-Os` it ends with exit status 0, and its captured output and its report match, byte for byte, text recomputed in Rust. Seven more tests cover other arguments, four wrong command lines, a step budget that is too small, and control variants that end in a failed check, in `exit(42)` and in `abort()`. The test needs mingw-w64 on the host and fails, not skips, without it, so the CI workflow now installs it. Nothing from mingw-w64 is stored in the repository. Local runs used mingw-w64 14.0.0 with GCC 16.2.0. This is one program and one C runtime, compared by hand with a native build of the same source and not with Windows or x86 hardware; `docs/testing/gate-a.md` lists what it does not show. Awaiting independent review.
- Added file seeking and end-of-file resizing on the synthetic guest drive.
- Added a bounded synthetic guest drive with synchronous file open, read, write, and size queries.
- Added files for a hosted C program (#402, part of Gate A2): `fopen`, `fclose`, `fgets` and `perror`, and file streams for the output services from #400, so `fprintf`, `fwrite` and `fputs` write to a file `fopen` returned. The files are the ones on the in-memory `C:` drive behind `CreateFileW`, so a file written through a C stream is the file `ReadFile` reads, and the reverse. `fopen` takes `r`, `w` or `a` with `+`, `b` and `t` as Microsoft's page describes them; text mode, the default, stores a line feed as carriage return and line feed, reads the pair back as a line feed and ends input at `CTRL+Z`. Failures return their documented results; the `errno` values beyond `EINVAL` for a null or empty argument are Xenora's choice. Nothing is buffered, there is no seeking, a C stream takes no part in Win32 sharing, and the other mode characters are refused. All four services are `partial`. Eight tests in `runtime_services.rs`, four in the new `crt_files.rs` that cross-check with `ReadFile` and `WriteFile`, and a unit test of the mode strings cover it. Not compared with Windows; awaiting independent review.
- Added unnamed guest semaphores with checked release and immediate mixed-object waits.
- Added non-alertable extended event waits through both Win64 wait APIs.
- Added the C runtime's `exit`, `_exit` and `abort` (#395, part of Gate A2), on top of the process exit from #329. A C program ends through `exit`, not `ExitProcess`, and a program built with the mingw-w64 runtime imports all three; the loader refused it before its entry point because they did not resolve. `exit` calls the functions registered with `atexit` and `_crt_atexit`, most recently registered first, and then ends the guest with `ExitReason::ProcessExit(status)`; `_exit` ends it with its status and `abort` with exit code 3, and neither calls a registered function. All three go through the same cleanup as `ExitProcess` and never end the host. A function registered while `exit` runs is called next, as ISO C requires; `exit` called again from a registered function, which ISO C leaves undefined, runs the remaining functions once and ends with the later status. All three are partial: no stream is flushed because there are none, `abort` prints no message and calls no `SIGABRT` handler, and thread-local destructors are not run. Nine tests in `crt_exit.rs` call them from guest code. `docs/testing/gate-a.md` now describes A2 as in progress and not passing. Not compared with Windows; awaiting independent review.
- Added immediate wait-any and wait-all for guest event handles.
- Added guest CRT signed and unsigned 64-bit conversions for narrow and wide strings.
- Added command-line arguments for a hosted C program (#392, part of Gate A2): the C runtime services `__p___argc`, `__p___argv`, `__p__environ`, `_configure_narrow_argv` and `_initialize_narrow_environment`, and a host method, `ServicesState::set_program_arguments`, that supplies the program's `argv`. A program built with the mingw-w64 runtime gets `argc`, `argv` and `envp` for `main` through these five, and the loader refused it before its entry point because they did not resolve. After configuration the guest finds the host's arguments in `__argc` and `__argv`, each NUL-terminated, with a null pointer after the last; with no host input it gets one empty argument, as ISO C specifies. The host method refuses a NUL byte, more than 32,767 bytes in all, and a call after the guest has built its table. The three variables are documented and the two initialization functions are not, so their behaviour is Xenora's: no code page, no wildcard expansion, and an empty environment table. All five are `partial`. Four tests in `runtime_services.rs` call the services from guest code and compare what the guest sees with what the test supplied. Not compared with Windows; awaiting independent review.
- Added bounded guest CRT long-integer parsing for byte and wide strings.
- Added standard output for a hosted C program (#400, part of Gate A2): a `printf` formatting engine, the standard streams, and capture of what the guest writes to `stdout` and `stderr`. The services are `__acrt_iob_func`, `__stdio_common_vfprintf` (what `printf` and `fprintf` call in a program built with the mingw-w64 runtime), `fwrite`, `fputs`, `fflush` and `setvbuf`; a host reads the output through `ServicesState::standard_output` and `standard_error`. The engine handles the flags, width, precision and size prefixes of `d`, `i`, `u`, `o`, `x`, `X`, `c`, `s`, `p` and `%%` as Microsoft's format specification page and ISO C describe, reading arguments from the guest's `va_list`. The standard streams are text-mode streams, so a line feed is captured as carriage return and line feed. Floating-point and wide conversions, a locale object, other streams and files are not modelled and stop the guest with the runtime-limit fault instead of printing something wrong; `%n` and unknown conversions return -1 with `EINVAL`. All six services are `partial`. The engine's output matches the host C library's `snprintf` on 2,600 generated cases whose result ISO C defines (`crates/loader/tests/printf/reference.py`), with hand-written cases for the Windows-specific rules, and seven tests in `runtime_services.rs` call the services from guest code. Not compared with Windows; awaiting independent review.
- Added the floating-point conversions `%f %F %e %E %g %G %a %A` to the guest `printf` family (#454). A `double` is printed from its exact binary value, rounded correctly with ties to the even digit, with the flags, width and precision the integer conversions take; infinity and NaN print as `inf`, `nan`, `nan(snan)` and `nan(ind)`, `%a` has 13 digits by default, and `l` and `L` both name a `double`, each as Microsoft's format specification page gives it. The caller's option bits are honoured: with the three-digit exponent bit the `e` style has three exponent digits, and without the standard rounding bit, which asks for the rounding of older Windows, a floating-point conversion stops the guest instead of printing a differently rounded number. `crates/loader/tests/printf/vectors.txt` gains 2,400 cases from the host C library where ISO C defines the result. The wide-character conversions are still refused.
- Added guest CRT errno accessors and allocation failure reporting for the synthetic main thread.
- Added nine C runtime services that a C program's startup code calls or imports before `main`, and one alias (#382, part of Gate A2): `_set_app_type`, `_set_new_mode`, `_configthreadlocale`, `__setusermatherr`, `_set_invalid_parameter_handler`, `__p__fmode`, `__p__commode`, `signal` and `SetUnhandledExceptionFilter`, plus `memcpy` through `api-ms-win-crt-private-l1-1-0.dll`. A program built with the mingw-w64 runtime imports all of them, and the loader refused it before its entry point because they did not resolve. Each records what it is given and returns what its public documentation says: the previous mode, setting or handler, the documented failure value, or the address of the guest variables `_fmode` and `_commode`. All nine are declared `partial` in the typed registry because nothing acts on a recorded value: no handler or filter is ever called, no signal is raised, there is no locale, and nothing reads `_fmode` yet. `ServicesState` gains two read-only accessors, `crt_app_type` and `crt_user_math_error`. Five tests in `runtime_services.rs` call the services from guest code through a bound import table. Not compared with Windows; awaiting independent review.
- Added guest CRT allocation, zeroed array allocation, resizing, and release.
- Added private guest heap creation and destruction with per-heap allocation ownership.
- Added default guest heap reallocation with data preservation and an in-place-only option.
- Added the synthetic default process heap with allocation, size queries, and release.
- Added `VirtualProtect`, `VirtualQuery` and `__C_specific_handler` as `stub` services so that a C program built with the mingw-w64 runtime can bind its imports (#388, part of Gate A2). Such a program imports all three and does not call them on a normal run; without them the loader refused it before its entry point. A call to any of them stops the guest with the runtime-limit fault (`IllegalInstruction(0xFE)`) and writes nothing, so a program that needs one stops there and cannot run on with a made-up result. No page protection is changed, no region is described and no exception is dispatched. The service generator's API-set table gains `api-ms-win-crt-private-l1-1-0.dll` for `ucrtbase.dll`, which is inferred and not taken from a document that names it. Two tests in `runtime_services.rs` call the stubs from guest code and check how they resolve. Not compared with Windows; awaiting independent review.
- Added Win64 signatures for wide-string length and comparison and overlapping byte moves to the import catalog.
- Added guest CRT wide-string length and comparison using Windows 16-bit code units.
- Added checked guest CRT byte string comparison with `strcmp` and `strncmp`.
- Added bounded guest CRT byte fill, copy, move, and comparison services.
- Added guest CRT string length services for UCRT and its string API set.
- Added unnamed guest events with manual and automatic reset, signaling, immediate waits, and same-process handle duplication.
- Added same-process duplication of synthetic thread handles with independent closure.
- Added a rights-checked `GetThreadId` query for handles to the synthetic guest thread.
- Added 32-bit and 64-bit millisecond uptime queries for synthetic Windows guests.
- Added high-resolution elapsed-time queries for synthetic Windows guests through `QueryPerformanceCounter` and `QueryPerformanceFrequency`.
- Added audio PCM streaming and sandboxed virtual filesystem (VFS) integration to the native application runtime (Gate 6, #284). The C interface gains audio management functions (`xenora_session_audio_init`, `xenora_session_audio_submit`, `xenora_session_audio_read`, `xenora_session_audio_status`, `xenora_session_audio_set_volume`) and virtual filesystem functions (`xenora_session_vfs_set_root`, `xenora_session_vfs_open`, `xenora_session_vfs_read`, `xenora_session_vfs_seek`, `xenora_session_vfs_close`, `xenora_session_run_audio_vfs_fixture`). The audio subsystem implements a bounded ring buffer supporting configurable sample rates, channel configurations, PCM formats (S16LE, F32LE), volume attenuation, mute, and buffer underrun tracking. The virtual filesystem operates within an explicitly configured, sandboxed directory root (`fixtures/assets`), strictly rejecting path traversal attempts (`..`, absolute paths, null bytes) and invalid or stale handles, while supporting sequential and seekable file reads (`XENORA_SEEK_SET`, `XENORA_SEEK_CUR`, `XENORA_SEEK_END`). An original PE fixture (`fixtures/pe/audio_vfs.exe`, generated by `fixtures/pe/audio_vfs.py` using only the supported ARM64 DBT instruction subset) opens `asset.bin` (generated by `fixtures/assets/generate.py`), loads a 2x2 RGBA texture and 256 PCM audio samples via VFS, initializes audio, submits the PCM audio queue, and renders the loaded texture on Metal. Verified with unit tests, four Metal acceptance tests in `crates/ffi/tests/audio_vfs.rs`, UI controls and a `--smoke-audio-vfs` CLI in `Xenora.app`.
- Added persistent GPU resources, dynamic texture updates, and resource retirement to the native application (Gate 5, #279). The C interface gains `xenora_resource`, resource types (`XENORA_RESOURCE_TYPE_*`), `xenora_session_create_texture`, `xenora_session_update_texture`, `xenora_session_destroy_resource`, `xenora_session_resource_info`, `xenora_session_render_textured`, and `xenora_session_run_textured_fixture`. Persistent GPU resources (textures) are explicitly allocated and owned by the execution session, surviving across execution slices without re-allocation. Dynamic texture subregion updates modify GPU texture contents in-place on native Metal. Resource retirement is completion-aware: destroying a resource held by in-flight GPU execution marks it retired and safely defers destruction until in-flight work completes, while rejecting subsequent caller queries with typed error codes. An original PE fixture (`fixtures/pe/textured.exe`, generated by `fixtures/pe/textured.py` using only the supported ARM64 DBT instruction subset) creates a persistent 2x2 texture via `xenora.dll!texture_create`, renders frame 0, updates pixels via `xenora.dll!texture_update`, renders frame 1, and retires the resource via `xenora.dll!texture_destroy`. Xenora.app gains "Run textured fixture" controls and `--smoke-resources`. Six GPU acceptance tests with Metal validation verify persistent texture lifecycle across multiple frames, dynamic 1x1 and 2x1 subregion updates on native Metal, completion-aware deferred retirement, rejection of invalid/stale/double-destroyed handles, slot reuse across 200 cycles without leaking, and full guest fixture execution. Wired acceptance tests into `scripts/test-gpu.sh`.
- Added interactive guest execution with dynamic input handling and rendering to the native application (Gate 4, #276). The C interface gains `xenora_session_start_interactive_loop`, `xenora_session_send_input`, `xenora_session_queue_input`, and `xenora_session_get_recorded_frame`, along with input masks (`XENORA_INPUT_*`) and `xenora_input_state`. The original interactive guest fixture (`fixtures/pe/interactive.exe`, generated by `fixtures/pe/interactive.py` using only the supported ARM64 DBT instruction subset) polls host input via `xenora.dll!input_poll` and steers its rendered column position (0..3) on native Metal. Xenora.app gains interactive frame-loop controls ("Interactive (300 frames)", "◀ Left", "▶ Right", "Release") and `--smoke-interactive`. Four GPU acceptance tests with Metal validation verify that input events drive guest state and pixel geometry, deterministic input replay reproduces identical frame sequences across multiple sessions, key release and focus loss cleanly hold position without stuck keys, and destroying an interactive session joins promptly. Wired the interactive tests into `scripts/test-gpu.sh`.
- Added persistent guest rendering with pause, resume and stop to the native application (Gate 3, #266). The C interface gains `xenora_session_start_frame_loop`, `xenora_session_pause_frame_loop`, `xenora_session_resume_frame_loop`, `xenora_session_stop_frame_loop`, and `xenora_session_frame_loop_status`, plus new states (`XENORA_LOOP_*`). The guest fixture (`fixtures/pe/frame-loop.exe`, generated by `fixtures/pe/frame-loop.py` without external toolchains) runs on a session-owned thread and repeatedly calls `xenora.dll!frame_submit` until told to halt; each frame is rendered on native Metal, checked per pixel against geometric expectations, and returned via read-back RGBA8 buffers. Destroying a running or paused session safely stops its loop outside the global session lock. Xenora.app gains persistent frame-loop controls ("Start 300 frames", "Pause", "Resume", "Stop") and displays live frames with their frame index. Five GPU acceptance tests with Metal API and GPU validation verify frame ordering over 300 frames, live sampling across 2,000 frames without backwards progression, pause/resume/stop lifecycle, prompt join on session destruction, and stable memory footprint across repeated sessions. Added `--smoke-loop` to Xenora.app and wired the acceptance tests into `scripts/test-gpu.sh`.
- Added read-only executable inspection to the native app (#267). Xenora.app can open a PE file with Open Executable…, by dropping it on the window, or from Finder (it registers as an alternate viewer for Windows executables). The new C function `xenora_inspect_executable` returns a text report built from the existing static probe and loader validation: file size and SHA-256, header facts, whether `ParsedPe::parse` accepts the file, sections, imports not provided by Xenora's standard runtime services, the bounded static disassembly's count of instructions the ARM64 DBT does not support with the first one's address, and relocation and TLS counts. Nothing in the file is executed, and executing opened files remains unavailable pending #257. Inputs over 256 MiB are refused before reading. A panic inside the probe is reported as a Xenora defect instead of crashing the app; the new truncation test found one in `probe_pe_bytes` (truncations of `trusted-runner.exe` to 1,556–1,665 bytes slice past the end of the file while reading an import name), reported as #270 and not fixed here. Checked with the x1 executables in `experiments/x1/fixtures`, which the app does not embed, with malformed inputs, and in the window through the Finder open path and the Open panel; drag and drop was not exercised.
- Added eleven gfx1030 SOP1 unary forms through the semantic registry: `s_not_b32`, `s_brev_b32`, `s_bcnt0_i32_b32`, `s_bcnt1_i32_b32`, `s_ff0_i32_b32`, `s_ff1_i32_b32`, `s_flbit_i32_b32`, `s_flbit_i32`, `s_sext_i32_i8`, `s_sext_i32_i16` and `s_abs_i32` (AMD guide section 12.3). Searches that find nothing return -1, `s_abs_i32` of 0x80000000 stays 0x80000000, and only NOT, BCNT0, BCNT1 and ABS write SCC. The registry gained these primitives, a `sop1_sgpr` operand rule, and a declared `source_bits` for sign extension that is checked against the XML's 8- and 16-bit source operands. The reference and independent semantic-review interpreters, written separately from the guide, evaluate the same eleven forms and are checked against 4,126 guide-derived cases on both CPU interpreters and on native Metal with validation; 231 rejected programs are refused by both interpreters and by the compiler. A new LLVM-assembled fixture covers all eleven. Part of #215.
- Showed the first guest-driven frame in the native app (Gate 2, #263). The C interface gains `xenora_session_run_trusted_fixture`, which runs only the embedded trusted PE fixture: its x86-64 code is translated and executed, its `xenora.dll!fixture_draw` call compiles the x9 RDNA2 shader fixtures to MSL and renders on the native Metal device, and the 4×3 RGBA8 read-back is returned only if the guest halts with the CLI runner's expected results and every pixel equals the pixel shader's export, (1, 0, 0, 1) as opaque red. Xenora.app's "Run trusted fixture" button shows that frame, and `--smoke-frame` prints it. A `gpu-tests` test, run by `scripts/test-gpu.sh`, executes the fixture three times through the interface with Metal validation enabled. The frame is a read-back image, not drawable presentation, and no caller-supplied executable can run. Verified on one Apple Silicon Mac; the window was checked by screenshot.
- Added a minimal native macOS application shell and its Rust interface (Gate 1 of the native application work). `crates/ffi` builds a static library with a versioned C interface (`crates/ffi/include/xenora.h`, version 1): opaque, generation-checked 64-bit session handles (never pointers), at most 64 live sessions, stable status codes, and panics caught at the boundary. Version 1 can only create and destroy sessions and parse the bundled trusted PE fixture; it executes no guest code. `app/` is a SwiftUI app built with Swift Package Manager that shows the interface version and the fixture's section count and entry point. `scripts/build-app.sh` builds an ad-hoc-signed, arm64-only `build/Xenora.app` with no entitlements and runs its `--smoke` check. Six Rust tests cover invalid, stale and double-destroyed handles, version mismatch, null outputs, 4,000 concurrent create and destroy cycles, and header/constant agreement. The CLI and headless workflows are unchanged. Verified locally on one Apple Silicon Mac (macOS 27.2.1, Swift 6.4, Rust 1.100.0); not yet run in CI.
- Added the gfx1030 SOPC compares `s_cmp_{eq,lg,gt,ge,lt,le}_{i32,u32}` through the semantic registry, which replaces the hand-written `s_cmp_eq_u32` path. Each sets only SCC to whether the relation holds with SSRC0 on the left (AMD guide section 12.4); the registry gained a `compare` operation with a declared `relation` and a `sopc_scalar` operand rule. `Instruction::ScalarCompareEqU32` is now `Instruction::ScalarCompare { op: ScalarCompareOp, .. }`; `s_cmp_eq_u32` behaves as before. The reference and independent semantic-review interpreters, written separately from the guide, evaluate all twelve, checked against 7,824 guide-derived cases on both CPU interpreters and on native Metal with validation; 348 rejected programs are refused by both interpreters and by the compiler. A new LLVM-assembled fixture covers all twelve. Two literal selectors stay rejected. Part of #215, stage D.
- Added eight gfx1030 SOP2 forms through the semantic registry alone: `s_andn2_b32`, `s_orn2_b32`, `s_nand_b32`, `s_nor_b32`, `s_xnor_b32`, `s_lshl_b32`, `s_lshr_b32` and `s_ashr_i32`, each with SCC = result != 0. Each is one registry entry with no per-form Rust; the registry gained these primitives and a declared shift-count width (`shift_count_bits = 5`, so shifts use S1[4:0] as in the AMD guide, section 12.1), which the generator applies as a mask and checks against the XML's unsigned count operand. The reference interpreter and the independent semantic-review interpreter, written separately from the guide, now evaluate the same eight forms and are checked against 6,896 guide-derived cases; a new LLVM-assembled fixture (`fixtures/rdna2/scalar-logic.s`) runs on CPU and native Metal with validation. A NULL destination (s125) stays rejected. Part of #215, stage C.
- Added an independent operand-domain verification harness for the 9 supported SOP2 scalar ALU forms and 12 VOPC integer compares (`tests/validation/tests/operand_domains.rs`, part of #215 stage E): 4,788 generated cases (boundary values, 64-bit carry and borrow chains, aliased registers, every integer inline constant, literals, s105 and v255, partial and zero EXEC, VCCZ) and 498 rejections (missing literal words, and encodings outside Xenora's supported subset) run on `xenora_ref` and, as an ignored test picked up by `scripts/test-gpu.sh`, on native Metal. Expected values come from the public AMD RDNA 2 guide's pseudocode, written out in the test without Xenora code; this is agreement with a spec-derived reference, not with Xbox hardware. Local verification only: 32 deliberate code breaks were each caught; the guide leaves the width of `S1 + SCC` in `s_subb_u32` open, and those 8 cases are kept in their own family.
- Added a declarative semantic registry for gfx1030 instruction forms (`crates/isa/semantics/rdna2.toml`, schema 1) and its generator, `crates/isa/generate_semantics.py`, with `validate`, `generate` and `--check` modes. The generator checks every declaration against a closed vocabulary and the pinned AMD XML snapshot (opcode, family, SCC input and output, operand widths and signed formats), rejects contradictory, incomplete or duplicate definitions, and emits static Rust tables marked as generated. The nine SOP2 forms moved onto it with no change in behaviour: the decoder's SOP2 dispatch and `ScalarAluOp`'s mnemonic, SCC read and evaluation are now generated, and evaluation goes through shared primitives instead of per-opcode code. All existing SOP2 tests, including the native Metal known answers and the LLVM comparison, pass unchanged. Decoding speed is unchanged (10.2 ns before, 10.1 ns after, per SOP2 instruction, release build on an Apple M5 Pro). Also added `scripts/audit/semantic_coverage.py`, which generates `docs/shaders/semantic-coverage.md`: per-family counts of identified, declared, decoded, lowered, reference-verified and Metal-verified forms, taking evidence only from `docs/status.toml`. Part of #215, stages A and B.
- Added a native Metal blend pass, `NativeCompute::render_blend`: up to 16 flat-coloured triangles drawn in order into an RGBA8 target, each with its own colour write mask (any subset of R, G, B, A) and either blending disabled or separate RGB and alpha blend factors (Zero, One, source and destination colour and alpha, and their one-minus forms) and operations (Add, Subtract, ReverseSubtract, and Min and Max, which take the unweighted values). Checked on the GPU with Metal validation in 39 passes over two original overlapping triangles: a clear-only pass; blending disabled; each source factor with the destination term zeroed and each destination factor with the source term zeroed; every operation; additive clamping; separate alpha factors; a separate alpha operation; eight write masks (each channel alone, RGB, none, RGBA, and RG with blending); and a pass whose first draw is itself blended and masked. Colours are compared per channel against images derived independently (in exact fractions) from the public Metal blend equations, which a new CPU reference in `xenora-ref` also reproduces. The tolerance was fixed before measuring: channels whose exact result is a whole 8-bit value must match exactly, and channels that need rounding may differ by 1. On an Apple M5 Pro every rounded channel matched round-to-nearest exactly. Synthetic fixtures only; no console blend state is involved.
- Added indexed triangle draws. Native Metal: `NativeCompute::render_indexed` issues one real `drawIndexedPrimitives` call per draw (up to 16) on a 16- or 32-bit index buffer with a start index and a signed base vertex, into an RGBA8 target; a draw can sample an original BC1 texture uploaded natively. Before encoding anything it rejects the whole pass for a bad index count, an index range past the buffer, any `index + base vertex` outside the vertex buffer, and, as this API's policy, a raw all-ones index (the primitive-restart value, which Metal does not define for triangle lists). Loader: a synthetic, CPU-side index buffer binding (resource handle and offset, the view running to the end of the resource) with `cmd_set_index_buffer` and `cmd_draw_indexed_instanced`, which fetch one triangle, drawn once, through the index buffer, start index and base vertex and pass it to the existing one-triangle backend; each drawn triangle replaces the previous output. Recording rejects formats other than DXGI `R16_UINT` and `R32_UINT`, offsets not aligned to the index size or past the resource, and unknown resources. Execution checks each draw in turn, so earlier draws have already rendered when a later one fails: index counts other than 0 or 3, more than one instance or a nonzero start instance, a missing index buffer, indices past the buffer and an `index + base vertex` outside the vertex buffer are typed errors; a valid zero index or instance count draws nothing. All-ones indices are ordinary indices there. Checked on the GPU with Metal validation in 16 passes (both index sizes, 32-bit indices above 16 bits, odd 16-bit start, positive and negative base vertex, reversed winding, flat and textured two-triangle draws, draw order, BC1-textured draws), compared per pixel against images derived independently from the geometry, the public D3D12 and Metal index semantics and the public BC1 rules, which a new CPU reference in `xenora-ref` also reproduces; the loader's fetch is checked against literal positions with synthetic guest-backed buffers and through the native Metal renderer. Synthetic fixtures only; no console index-buffer views, guest programs or console draw state are involved.
- Added a `cpu_decode` cargo-fuzz target for the static x86-64 decoder used by the read-only PE probe. It places up to 4,096 fuzz bytes as the code section of a fixed, original PE32+ header and runs `probe_pe_bytes` twice with a bounded `ProbeConfig` (4,096 bytes, 2,048 instructions, 1,024 worklist entries); nothing is executed. It checks that the two reports are identical and that every decoded instruction is 1 to 15 bytes long, lies inside the code and matches the input bytes. A startup self-check aborts the run if the synthetic header stops reaching the decoder. A 600-second local campaign (nightly cargo-fuzz, one fork-mode worker, seeded from instruction bytes in the loader's probe tests; about 2.38 million executions, coverage 1,350 edges) found one decoder defect, reported to the CPU owner on #74 and not fixed here: the probe accepts unlimited FS/GS segment prefixes and reports instructions longer than 15 bytes (minimized input: 16 bytes of `0x65`). Run it with `rustup run nightly cargo fuzz run cpu_decode`; `scripts/fuzz.sh` does not list it yet.
- Added a `pe_parse` cargo-fuzz target that feeds malformed bytes to the PE32+ parser (`ParsedPe::parse`, `rva_to_file_offset`) and, only when the summed section mapping size and `SizeOfImage` are both at most 64 MiB, to the checked guest-memory mapping step (`load_into_memory`); nothing is executed. A 600-second local campaign (nightly cargo-fuzz, fork mode, seeded from the repository's synthetic PE fixtures, about 120,000 executions, coverage 267 edges) found two loader panics, reported to the CPU owner and not fixed here: truncated optional headers panic on out-of-range slices in `parse`, and `rva_to_file_offset` overflows `u32` when a section's address plus size exceeds 4 GiB. Run it with `rustup run nightly cargo fuzz run pe_parse`; `scripts/fuzz.sh` does not list it yet.
- Added `NativeCompute::run_words_with_group_width` and `max_group_width` to run a trusted kernel at an explicit threadgroup width, rejecting zero and widths above the device or pipeline limit. Native tests check 91 legal width and grid-size pairs (widths 1 to 1,024, including non-divisible grids) against independently computed outputs, and confirm the dispatched group sizes, including trimmed last groups. On an Apple M5 Pro, in three release runs of a 4,096-thread integer-mixing kernel (30 samples per width), widths 64, 128 and 256 were within 0.3 % of each other in two runs, at a median of 58.8 µs of GPU time. Width 512 was 5 to 6 % slower and width 1,024 about twice as slow in all three runs. The first run was about 4.7 times slower overall for reasons not determined, and in it 128 and 256 were 3 to 4 % faster than 64. The default width of 64 is unchanged. This was measured on one device and one workload.
- Added a native Metal depth pass, `NativeCompute::render_depth`: up to 16 triangles drawn in order into an RGBA8 target with an optional `Depth32Float` attachment, a chosen clear depth, a per-draw depth compare function (all eight) and depth write enable. A pass without an attachment accepts only `DepthState::DISABLED`. Colour and the stored depth are both read back; the depth values are returned as the texture read gives them, without numeric conversion. A draw can sample an original BC1 texture whose blocks are uploaded to a native `BC1_RGBA` texture without CPU decoding, gated on `supportsBCTextureCompression`. Checked on the GPU with Metal validation in 30 passes of original overlapping triangles: clear, every compare function at three depths, write enabled and disabled, depth test disabled (`Always` without writes) with an attachment and no attachment at all, and a BC1-textured draw. Colour and depth are compared per pixel against expectations derived independently from the geometry, the Metal compare semantics and the public BC1 rules, which a new CPU reference in `xenora-ref` also reproduces. These are synthetic fixtures only; no console depth formats or guest render state are involved.
- Added a CPU BC7 block decoder in `xenora-texture` for all eight modes, with explicit handling of the invalid all-zero mode byte. It is checked by hand-derived tests and 430 known-answer vectors from a separate clean-room reference written from the Khronos Data Format Specification (merged in PR #224 without a changelog entry).
- Added independent negative tests for gfx1030 extension words: truncated literal, SDWA, DPP16, DPP8 and MIMG NSA trailers (62 prefixes of 18 LLVM-assembled instructions), disallowed extensions, and length recognition kept apart from semantic validity. Tests only, with no decoder change (merged in PR #231 without a changelog entry).
- Added the gfx1030 Wave32 VOPC compares `v_cmp_{lt,eq,le,gt,ne,ge}_{i32,u32}_e32`. VCC_LO is EXEC_LO & the per-lane test, always fully written, so empty EXEC gives 0. A compare result can feed `s_cbranch_vccz`, `v_mov_b32_e32 vN, vcc_lo` and another compare's source; nothing else, so EXEC never becomes data-dependent. A data-dependent `s_cbranch_vccz` is a wave-uniform branch over integer vector ALU code, lowered to a select at the join. The Metal kernel builds each mask by recomputing the 32 lanes of its own RDNA wave, with no SIMD-group, threadgroup or barrier assumption. The reference now runs lockstep Wave32 waves. Verified on an LLVM-assembled fixture plus 251 original programs (boundary operands, partial and empty EXEC, both branch edges, a partial final wave) against exact integer definitions: translator, reference and second interpreter agree on CPU, and all 252 match on native Metal with validation. LLVM agrees on every encoding. VOP3, SDWA, DPP, `v_cmpx` and Wave64 stay rejected. See `docs/shaders/vector-compare.md`.
- Added the gfx1030 SOP2 forms `s_add_i32` and `s_sub_i32`, with SCC as signed overflow as defined in the AMD RDNA 2 ISA guide (sections 5.3 and 12.1). They are checked on CPU and on native Metal with validation on 400 boundary programs, four immediate-operand overflows and the scalar ALU fixture, plus eight hand-worked overflow and no-overflow cases on CPU.
- Added the gfx1030 SOP2 scalar forms `s_add_u32`, `s_sub_u32`, `s_addc_u32`, `s_subb_u32`, `s_and_b32`, `s_or_b32` and `s_xor_b32`. They are decoded, executed by the reference and independent interpreters, and resolved by the translator, with SCC as carry, borrow or nonzero result. `v_mov_b32_e32` can now read a normal SGPR. Verified on 1,400 original operand vectors plus an LLVM-assembled fixture, on CPU and on native Metal with validation. The other SOP2 forms stay unsupported. See `docs/shaders/scalar-alu.md`.
- Added `scripts/audit/test_inventory.py`, which lists the Cargo test inventory of two commits in temporary detached worktrees and reports removed, added, newly ignored and newly un-ignored tests, failing on any loss not explained in an `--allow` file. Run against the old PR #166 head 5450612 and main 951189c, it reports the 12 BC texture tests that head was missing (exit 1); the same commit against itself reports no change. Default features only; see `docs/testing/test-inventory.md`.
- Added complete gfx1030 instruction metadata generated from AMD's public RDNA 2 XML: 1,465 base forms across 21 encoding families with fields, operands, flags and allowed extension words. A committed, normalised snapshot lets `crates/isa/generate_rdna2_meta.py --check` verify the generated table offline; CI runs it.
- Added `xenora_isa::meta::identify`, which finds any gfx1030 instruction's form and exact length, including literal, SDWA, DPP and NSA words, and rejects truncated, unassigned and disallowed-extension encodings. It agrees with every LLVM-assembled fixture and with LLVM 23.1.6 on a probe set covering each family and extension word. Identification does not make an instruction executable: `SEMANTIC_FORMS` lists the forms with semantic decoding (46 as of the VOPC compares).
- Added `xenora shaders coverage [--json]` and `xenora shaders inspect ` for per-family coverage and stream listings that separate decoding failures from unsupported semantics. Each instruction is decoded at its stream offset and branch targets are checked against the whole stream's boundaries, so supported branches are no longer misreported as unsupported operands. `xenora_decoder::decode_at` decodes a single instruction for such callers.
- Added running any PE32+ executable to `xenora run` (#439, the maintainer's decision on #257), not only its two embedded fixtures: a program gets the arguments after `--`, its standard output and standard error go to the host's, and its exit status is the command's. An embedded fixture given as it is keeps its verified draw path. `--sha256` optionally pins the file. The worker process, the 15 second wall deadline and a bounded step limit stay; exit code 124 is the deadline and 125 any other failure. `crates/cli/tests/run_program.rs` runs the real binary on the Gate A programs.
- `xenora run` checks that an opened PE input is a regular file and refuses special files at admission without waiting for the guest deadline (#746).
- Added `--wall-seconds <1..=3600>` to `xenora run` and removed a program's default step limit (#448). A program was stopped after 1,000,000 steps by default and 50,000,000 at most, which is under a second of execution; it now has no step limit unless `--max-steps` gives one, and the wall deadline (15 seconds by default) is what bounds it. A program stopped at the deadline now shows what it had written before the command exits with 124. The embedded fixtures keep their limits. A new build of the Gate A2 program, `GATE_SPIN`, lets `crates/cli/tests/run_program.rs` test the deadline.
- Added an agent task queue for the cpu, gpu, runtime, shared and qa areas: an *Agent task* issue form with priority and interface fields, a workflow that decides `/claim`, `/release`, `/reassign`, `/progress`, `/blocked`, `/unblock` and `/approve-acceptance` comments one at a time (dependency, cycle and file-overlap checks, 24-hour leases renewed by progress), a pull request check (linked claimed task, file ownership, overlap with other pull requests, independent `/verified `), `scripts/agent-queue.sh` and `scripts/agent-sync.sh` (upstream fetch every 12 minutes, task branches in separate worktrees) and a machine-readable queue summary. The rules are standard-library Python in `scripts/agent_queue/` with unit tests in `tests/agent_queue/`; issue text is never executed and acceptance commands need maintainer approval. Only comments that start with a command start a job, so ordinary pull request comments never re-run verification, and only an accepted `/verified ` evaluates the check again; and each claim run decides every unanswered command in order, so commands whose pending runs GitHub cancelled are still answered. See `docs/coordination/agent-tasks.md`. Unit tests pass locally; the workflows have not run on GitHub yet, and the pull request check stays advisory (it never blocks a merge) until a live smoke test and the migration of existing issues are done.
- Added explicit claim-before-work rules for contributors and coding agents to `AGENTS.md`, `CONTRIBUTING.md` and the pull request template: check for existing claims, claim with `/claim`, keep a 24-hour lease alive with `/progress`, `/release` when stopping, and link the claimed issue. Without the claim workflow, the earliest valid claim comment wins.
- Added a CPU decoder for a bounded subset of BC6H (signed and unsigned HDR) in
`xenora-texture`: the four single-subset modes (Khronos modes 3, 7, 11 and 15, Microsoft
modes 11 to 14), listed in `BC6H_SUPPORTED_MODES`, plus the reserved modes, which decode to
zero as specified. The ten two-subset modes are rejected with `Bc6hError::UnsupportedMode`
and are not implemented. Tests check hand-derived values and 128 known-answer vectors from a
separate clean-room reference decoder.
- Added native Metal upload and readback of BC4 and BC5 textures (UNORM and SNORM):
`xenora-texture` gains a pitched `BcChannelUpload`, and `NativeCompute::read_bc_channel_upload`
sends the original blocks to `BC4_R*` or `BC5_RG*` textures when the device reports BC
support, failing with `supportsBCTextureCompression` otherwise. GPU tests cover six- and
eight-value interpolation, equal and extreme endpoints (signed -128 reads as -1.0), red-green
channel order, padded row and slice pitches, two layers and two mips against the CPU decoders
and hand-derived anchors. On an Apple M5 Pro interpolated codes were within 1.71 codes of the
exact values and up to two codes from the truncating CPU reference.
Edge levels of 5×3 and 1×1 and invalid payloads (zero extents, short, oversized or
block-count-mismatched buffers) are covered.
- Added native Metal upload and readback of BC2 and BC3 textures: `xenora-texture` gains a
pitched `BcAlphaUpload` for 16-byte blocks, and `NativeCompute::read_bc_alpha_upload` sends
the original blocks to `BC2_RGBA` or `BC3_RGBA` textures when the device reports BC support.
GPU tests cover explicit and interpolated (six- and eight-value) alpha, both colour endpoint
orders, padded row and slice pitches, two layers and two mips against the CPU decoders and
hand-derived anchors. On an Apple M5 Pro the native decoder's interpolated values were within
8/7 (about 1.14) codes of the exact values, so up to two codes from the truncating CPU reference.
Edge levels of 5×3 (one block row) and 1×1 are covered, invalid payloads (zero extents,
short, oversized or block-count-mismatched buffers, bad pitches) are rejected before upload,
and `MetalError::is_capability_unavailable` separates a device without BC support from an
implementation failure.
- Added CPU block decoders for BC2, BC3, BC4 and BC5 (UNORM and SNORM) in `xenora-texture`, with tests whose expected texels were derived by hand from the Microsoft and Khronos block-compression specifications. Interpolated values truncate toward zero, as the existing BC1 decoder does; GPU upload and sampling of these formats are not implemented yet.
- Added `dbt::tests::sib_store_executes_through_the_native_dbt`, an independent DBT execution
test that runs the SIB store form `mov [rsp + 0x20], rbx` through the native ARM64 DBT and
verifies the value lands in guest memory.
- Added 8/16-bit MOV memory-operand support (opcodes 0x88/0x8A, register-to-memory and
memory-to-register) to the native ARM64 DBT.
- Added GS/FS legacy segment prefix support to the native DBT and the bounded x86-64
interpreter, including `CpuState.gs_base`/`CpuState.fs_base` offsets added to the effective
address computation.
- Added Win64 TEB allocation and `gs_base` initialization to synthetic guest startup.
- The scalar BMI1 and BMI2 bit-manipulation forms ANDN, BLSI, BLSMSK, BLSR, SHLX, SHRX, SARX and RORX execute in the interpreter and the dynamic binary translator, in both 32 and 64-bit operand widths, register and memory forms. Semantics follow the Intel SDM operation sections exactly: the variable shifts and RORX write no flags, BLSI sets CF from a nonzero source, BLSR and BLSMSK from a zero one, and the undefined flags keep their values. LLVM-assembled fixtures with edge counts compare an independent bit-level reference against both engines (#1098).
- WinHTTP HTTP-date conversion utilities (#1109): `WinHttpTimeToSystemTime` parses the exact RFC 2616 RFC1123, RFC850 and asctime forms into bounded SYSTEMTIME values, including validated leap years, computed weekdays and a year-granularity rolling fifty-year RFC850 century window driven by the service clock. `WinHttpTimeFromSystemTime` validates input calendar fields and emits the RFC1123 generation form with a null terminator. The parser deliberately remains narrower than permissive legacy implementations: lowercase or whitespace-tolerant forms, leap seconds, non-GMT zone names and years above 9999 fail honestly. Direct service tests cover all three forms, round trips, malformed inputs and invalid guest memory on Apple Silicon; independent acceptance and real Xbox compatibility are not claimed.
### Fixed
- A Win32 file wrapped by the CRT keeps its shared file position and stays open until the last duplicated or inherited descriptor closes (#1301).
- XAudio2 source voice creation now accepts the documented 16-byte PCM header at the end of readable guest memory. IEEE float still requires its 18-byte header (#1472).
- Guest graphics readback returns `E_INVALIDARG` for a length beyond the resource and leaves the output unchanged. Valid reads copy the requested length (#1466).
- The import metadata generator skips unsupported C prototypes instead of guessing Win64 argument types. Header ingestion preserves reviewed signatures and can report skipped source lines (#1458).
- `GetTokenInformation(TokenUser)` returns the complete AMD64 header with zero attributes and the synthetic SID after it. Short buffers receive the required size without changing the token data buffer (#1456).
- Invalid XAudio2 `GetState` flags or output pointers no longer advance the synthetic audio clock or consume queued audio (#1394).
- The kernel32 path readers keep the anchor of a drive-rooted path: `c:\f` reads as the rooted `\f` rather than the relative `f`, so an absolute path no longer collapses into a working-directory-relative one at the point the guest passes it. `GetModuleFileName` answers the absolute drive form of the process image exactly as Windows always does, instead of the bare file name. Measured end-to-end on the public mingw64 BusyBox binary: the shell re-execution stats its own image through this path before every spawn, so spawning a command after `cd` failed with `unable to spawn shell` wherever the start directory did not hold the binary; commands now spawn after directory changes at any depth, and the tar extraction round trip keeps passing (#1342). Local verification only.
- Built-in interactive sessions now exit when the stdout reader disconnects while stdin stays open, including before the first direction and between frames (#1353).
- Run Program and header inspection now return after the runner exits even if a descendant holds an output pipe open. Run Program preserves the exact guest exit status from the captured startup report (#1371).
- The macOS Run Program panel uses the supervisor report to show the guest's full 32-bit exit status, even when the displayed stderr is truncated. Guest exit codes 2, 124, and 125 retain their guest meaning (#1346).
- CRT file services now resolve relative paths against the process working directory exactly as Windows shares one current directory between the CRT and the kernel: a `_mkdir("d")` or `fopen("f", ...)` after `_chdir("x")` creates `x\d` and `x\f`, absolute input passes through unchanged, and a spawned child inherits its own copy of the directory at spawn time. The one directory lives in the CRT stream state the child-copy already duplicates, so the CRT services, the kernel file surface and the shell stay consistent. Measured end-to-end on the public mingw64 BusyBox binary: `tar xf archive.tar -C dir` now extracts the archive members under the target directory where extraction previously wrote them at the drive root and reported spurious missing-directory errors (#1336). Local verification only.
- Narrow `strftime` preserves literal format bytes and counts them toward the output buffer capacity (#1326).
- `BCryptGenRandom` accepts writable buffers beyond 64 KiB, up to the 64 MiB guest dynamic memory budget. It checks the entire span before allocating a temporary buffer and writes it only after a complete entropy read (#1317).
- Guest-file export resolves `.` and `..` on the synthetic C: drive (#1316). The original guest verifies exact exported bytes for the equivalent paths.
- The UCRT math API set's `nextafterf` sets guest `errno` to `ERANGE` when a finite value steps to signed infinity. Other steps preserve `errno`. Floating-point exception flags remain unsupported (#1307).
- C-locale `wcstombs` stops at the destination capacity. It writes the valid prefix when it fills the destination and reports `EILSEQ` when it reaches an unrepresentable character. An original compiled C fixture also exercises heap allocation, locale and wide classification, thread-local `errno`, file I/O, and exit callbacks (#1284).
- The synthetic XAudio2 clock carries fractional frames between state queries, so slow voices make progress and fractional sample rates do not drift (#1428).
- XAsync reports overflowing guest addresses as guest memory faults. `XAsyncBegin` validates the complete block header and writes provider data before publishing the operation (#1285).
- `WriteConsoleOutputA` uses only the one-byte character member of each console cell, preserving ANSI characters when read back through `ReadConsoleOutputW` (#1444).
- Mark horizontal tab and Unicode C1 controls as controls in the bounded `GetStringTypeW` table, including whitespace for NEXT LINE. Return zero outside ASCII and the C1 range (#1433).
- Authored PE sessions validate the full guest input destination before announcing readiness. A malformed next-input call stops the session before the client sees a false ready signal or an unconfirmed frame (#1386).
- Escaped percent signs now count toward Xenora’s output limit in both narrow and wide CRT formatting. Original compiled guests check sizing at the limit and refusal one unit above it on Apple Silicon (#1379).
- `ExpandEnvironmentStringsA` now matches UTF-8 names and writes UTF-8 values using the process code page. The wide form recognizes UTF-16 surrogate pairs in names. An original compiled guest checks both forms and their buffer counts on Apple Silicon (#1363).
- `RaiseException` now delivers zero exception parameters to the guest filter when the optional argument array is null, even if the supplied count is nonzero. An original compiled C fixture exercises both null-array cases and a populated-array control on Apple Silicon (#1339).
- The macOS Authored PE Session panel keeps the launched executable, companion DLL paths and pins, and graphics backend with the result, including while you edit the next run's setup (#1333).
- A packaged PE that exits from a TLS callback reports the guest exit status and the last completed package stage (#1334). Loader diagnostics retain the actual callback index and prior initialization records.
- `xenora-pe-session` stops the guest when the macOS output consumer disconnects during a frame, startup, or shutdown (#1329). Actual worker stalls still use the configured phase deadline.
- UTF-8 conversion through `MultiByteToWideChar` now replaces each malformed Unicode maximal subpart with one U+FFFD. An original compiled guest checks replacement counts, UTF-16 output and strict-mode rejection on Apple Silicon (#1355).
- `FormatMessageA` and `FormatMessageW` now expand message escapes and stop at `%0`. Original compiled guests cover both widths, numbered inserts, and exact buffer sizing on Apple Silicon (#1348).
- `FormatMessageA` and `FormatMessageW` honor the minimum capacity in allocate-buffer mode. The size is in character units, the return count excludes the terminator, and the caller still frees the result with `LocalFree`. The synthetic allocation is bounded to 64 KiB (#1753).
- The release readiness bundle check now rejects missing or non-executable Xenora launch files and invalid app metadata (#1453).
- WinHTTP request headers support replacing or removing a specific duplicate by its occurrence index while leaving unrelated fields in wire order (#1410).
- `_open`, `_creat` and the `fopen` family now honor `_fmode` as the default translation exactly as the CRT documents: explicit `_O_BINARY`/`_O_TEXT` flags or `b`/`t` mode letters still win, but without them the variable decides. A binary that links the binary default or assigns the variable at startup - busybox-w32 defines `_fmode = _O_BINARY` in its own image for exactly this - then opens and writes exact bytes where newline pairs previously grew a carriage return no binary reader expected. Measured end-to-end on the public mingw64 BusyBox binary: redirected content is LF-only on the drive, and `tar` creation, listing and flat extraction round-trip correctly where creation died on a short read before (#1312). Local verification only.
- `_get_osfhandle` of a CRT-opened file now answers the kernel file object the real CRT always has behind its descriptors, synthesized the first time a guest asks: the CRT itself opens on top of CreateFile, so win32 compatibility layers that implement their `fstat` and `isatty` through the handle and the file-type queries complete instead of dying with `EBADF` before any file-type query (#1312). Measured end-to-end on the public mingw64 BusyBox binary: `tar` creation, which stats its archive through exactly this chain, now writes and lists correct archives. A text-mode translation divergence for newline-terminated content the measurement surfaced is tracked on the issue. Local verification only.
- `_fstat64` of a pipe end answers the FIFO mode and a zero size instead of failing `EBADF`, and one wrapping a kernel file object answers the regular-file mode with the content's length, as the CRT stats either arrangement of open file. busybox-w32 stats its standard output before writing an archive stream, so `tar cf - dir` piped onward now moves bytes where it previously died before the first one. Local verification only (public busybox mingw64 binary).
- Narrow CRT scanning now honors byte and wide destination modifiers for character, string and scanset input in the basic C locale. An original compiled guest checks destination widths, terminators and secure buffer counts on Apple Silicon (#1396).
- QA verification now fingerprints tracked and non-ignored checkout inputs, including binary fixtures. A source change detected during the suites makes the evidence stale even if the original files are restored later. Suite exit codes are preserved (#1237).
- `xenora-pe-session` refuses a DLL selected as the root before guest startup, including sessions without companion modules (#1275).
- `xenora run` rejects a DLL supplied as the root executable before standalone startup or package initializers can run (#1300). The admission check reads the PE header from the same snapshot used for execution.
- The typed CRT registry regenerates the existing `_locking` and `_commit` imports from its source catalog and checks both generated reports in the normal test suite (#1264). Both services are partial. The guest drive stores writes in memory, and lock conflicts return immediately.
- `fopen` now allocates the legacy CRT's full 48-byte `_iobuf`, zeroed, instead of 8 bytes: the mingw-w64 CRT real-world binaries link expands `getc`/`putc` as macros that decrement `_cnt` and step `_ptr` inside the object in place, so the first macro use faulted on the unmapped byte past the small allocation and applets reading a file by name (`wc`, `grep`, `sort`, `head`, `od`) died in the CRT exception filter before any read. A zero `_cnt` sends every byte through `_filbuf`/`_flsbuf`, exactly as the unbuffered stream behaves on Windows. Local verification only (public busybox mingw64 binary).
- A 67H address-size override before opcodes E0 through E3 is now refused rather than silently testing the full RCX. In 64-bit mode those opcodes select ECX under the override; Xenora does not model the narrow count, so the decoder fails closed in both engines while JRCXZ and LOOP without the override keep their verified 64-bit answers (#1168).
- The x86 known-answer suite no longer classifies the implemented 67H ModRM, LEA and 15-byte cases as refused after #1168. Their expected answers now run in both engines in the ordinary case sweep as well as in the dedicated address-size tests; the string and ECX-count forms remain explicit refusals. Local Apple Silicon verification only; no x86 hardware comparison or independent acceptance is claimed.
- File redirections a shell puts in place for a spawned program now reach that program: the C runtime inherits the file-backed descriptors into the child as position snapshots whose final positions write back into the parent when it finishes, and the standard output and error streams write through descriptors 1 and 2 when a redirection rewires them rather than bypassing the descriptor table, so BusyBox constructs such as `ls > f`, `seq 3 | wc -l > out` and `seq 3 | xargs echo` now answer correctly where the redirected output previously leaked into the console capture or never arrived. Local verification only (public busybox mingw64 binary).
- LOOP, LOOPE, LOOPNE and JCXZ now select their count register by the address-size attribute: with the 67H override the count is ECX rather than RCX, superseding the earlier decode-time refusal of the override on those opcodes. A LOOP form decrements ECX alone leaving the upper bits of RCX unchanged, and the test forms read ECX alone, as Intel SDM Vol. 2A states. New known-answer vectors pin the ECX count, the wrap at zero and the preserved upper bits at every engine, and `cpu_addrsize` now verifies the narrow-count branch behavior directly. Local verification only.
- Wide CRT formatting rejects oversized string output while preserving exact-limit values and explicitly bounded precision (#1082).
- Restartable C-locale wide conversions (#1088): `mbsrtowcs` and `wcsrtombs` now check output capacity before reading the next source unit, leave an unconverted terminator or unrepresentable wide unit as the next input, clear the source only after copying the terminator and preserve source position for sizing queries. `mbtowc` stores a zero wide character when converting a NUL byte. Dedicated service tests cover exact capacity, boundary reads, sizing and error progress; the original hosted `crt_wide` fixture now passes 25 checks at O0/O2. Local verification only.
- `_dup`/`_dup2` of a standard descriptor no longer fail EBADF: the duplication synthesizes a first-class table entry resolving back to the standard stream it copies, so the shell's save-redirect-restore frame works end to end - writes through the copy reach the captured stream, reads through a copy of stdin consume the standard input, closing the copy leaves the original open, and duplicating the copy back onto the descriptor restores it. A duplication of a duplication is an independent copy, as the CRT's entries are.
- The runtime robustness driver now recognizes context services structurally instead of applying the ordinary nonvolatile-register invariant to services whose contract is to replace control flow. `DebugBreak`, `RaiseException`, unwind dispatch, `__C_specific_handler` and `longjmp` therefore no longer break the seeded replay merely for changing RSP as designed, while ordinary services keep the memory and register invariants (#1003).
- `_close` of a standard descriptor now succeeds exactly as the CRT allows: descriptors 0-2 are ordinary table entries on Windows, so closing one marks the slot closed, a second close fails with EBADF, and every later operation on it - descriptor reads and writes, stream reads and writes, the terminal query - answers EBADF with nothing captured. The runtime previously stopped the guest, and busybox `dd`, which closes standard input as part of its pipeline frame, now runs to completion.
- `xenora run --export-guest-file` accepts guest paths with a single leading slash or backslash as paths from the synthetic `C:` root (#1058).
- Single-executable PE startup provisions the linker-declared main stack up to 8 MiB and reports the mapped range through the guest thread environment block (#1067).
- Executable static TLS now honors the PE directory's alignment through 8 KiB, including when startup moves the block beyond the reserved thread environment block (#977). Original PE tests check the guest-visible pointer, template bytes, zero fill and rejection of the reserved encoding.
- Packaged PE startup retries placement when a relocatable image blocks a fixed-address module, allowing packages that fit with the fixed module reserved first (#1081).
- Private guest heaps accept `HEAP_NO_SERIALIZE` at creation and on allocation, reallocation, size queries and freeing (#1057).
- `MapViewOfFile` and `MapViewOfFileEx` reject views that exceed their anonymous mapping's size (#1051). Guests can detect the failure before using the requested range.
- Empty console input peeks set the number of records read to zero through the Win64 count argument. Console rectangle reads and writes report only cells copied within both buffers and return an empty region when no cells transfer (#1059).
- Hosted PE guests can import the debugger-presence query and both debug-string forms from the Windows Debug API set. The ANSI entry point accepts an empty string at the last readable byte (#1064).
- CRT calendar conversions retain a separate broken-down time buffer for each guest thread. `gmtime`, `localtime` and `ctime` share that buffer within the calling thread (#1068).
- Module provisioning rejects incomplete import or export tables before consuming a module name or its byte budget (#1076).
- The static PE probe disassembles only file-backed executable bytes, honors its instruction-byte limit and rejects undersized PE32+ optional headers (#1075).
- Legacy CRT `rand` and `srand` maintain independent sequences for guest threads. A recycled worker starts from the default seed (#1080).
- A PE image loaded away from its preferred base no longer succeeds unrelocated when `NumberOfRvaAndSizes` declares the Base Relocation Table but `SizeOfOptionalHeader` ends before that directory entry (#1089). The relocation engine now fails with `TruncatedDirectoryEntry` before writing any target, rejects an optional header too short to hold `NumberOfRvaAndSizes` or headers outside the file, and still treats a count that stops below entry 5, or a zero entry, as an absent table. Loads at the preferred base are unchanged. Covered by original synthetic images in the loader's relocation tests, which fail against the previous lookup; locally tested on Apple Silicon only and not independently reviewed.
- `_dup2` over a standard descriptor now rewires it for real: the CRT descriptor table is authoritative for fds 0-2, so writes through a rewired stdout reach the file or pipe the duplication names, reads through a rewired stdin consume it, seeks and closes operate on it, and closing the duplication leaves the slot dead instead of resurrecting the console stream. The unduplicated standard streams behave exactly as before.
- Root-anchored guest paths (`/tmp/x`, `\tmp\x`) are no longer rejected as invalid: the leading separator anchors at the drive root, which the single-drive model already represents as the empty string, so the anchor is consumed in both the Win32 and CRT path conversions before component validation. The three spellings of the same object - anchored, drive-prefixed and relative - now resolve identically, while a `\\` UNC prefix and empty interior components stay rejected exactly as before.
- Contended, recursive or invalid `__cxa_guard_acquire` no longer answers `-1`: the Itanium C++ ABI gives acquisition no error channel, so compiler-generated callers read any nonzero result as permission to initialize, and the old answer authorized exactly the double initialization the guard exists to prevent. The refusal now stops the guest with the explicit fault, matching the release/abort contract of the same surface. The compiler-generated fixture gains reentrant, unmapped-acquire and unaligned-acquire controls proving no answer leaves the handler.
- The x64 unwinder now recognizes the epilog of a function whose frame register is R12 (#979). Its `lea rsp, [r12 + disp]` needs a SIB byte, which the epilog check refused, so an exception raised at that instruction was dispatched as if it came from the body and could call the function's handler. Both 8-bit and 32-bit displacements are decoded. Other `lea` forms, such as an index register, RSP as the base or a register other than the frame register, stay body code. Unit tests cover an original R12-framed function from its body and from each epilog instruction.
- QA benchmark statistics now reject NaN and infinite samples instead of producing meaningless ordering statistics or non-standard JSON evidence (#827).
- `_filbuf` and `_flsbuf` now honor the standard streams: the byte primitives resolved their stream through the opened-file table only, so the three standard streams failed with EBADF and every CRT small read on `stdin` ended before it began. `_filbuf` consumes the host-supplied input exactly as `fgetc` does, `_flsbuf` appends to the captured output with the same text-mode translation as every write, and a pointer that is no stream keeps its soft EOF/EBADF answer. Measured on the real mingw64 busybox probe: `wc -c` counts piped input correctly and `head` prints it, where both reported empty input before (#945).
- Runtime import coverage extraction now removes only the items a `#[cfg(test)]` attribute gates rather than truncating each source file at the first one (#845). The item shape is found structurally over a comment- and string-blanked copy of the source - brace-matched bodies and semicolon declarations at delimiter depth zero, so the semicolon of an array type such as `[u8; 1]` does not end the span - so production registrations after a test module or a test-only helper stay visible. Measured against the loader sources: 54 genuine registrations the truncated scan silently dropped are reported again, including most of the `ws2_32.dll` winsock surface, and nothing the old scan reported is lost. Regression tests cover production registrations after both forms of gated item and the nested-semicolon case.
- QA verification evidence is now bound to the selected checkout: profile suites run with that repository as their working directory, `qa verify` rejects a revision other than the checkout HEAD, and `--check-stale` requires matching profile and revision metadata and passing suites while reporting staleness separately (#277).
- QA environment diagnostics now measure the current branch against its upstream instead of hard-coding a synchronized result, and report an unavailable upstream honestly (#832).
- Refreshed the generated runtime inventory to match the registered services, restoring the inventory check on the current tree (#794).
- CPU coverage intelligence now derives interpreter and DBT operation coverage from semantic execution modules and native-eligibility logic instead of misleading helper-function names such as `emit_fault_guard` (#855). The comparison remains a heuristic operation summary rather than per-encoding semantic proof.
- The CPU coverage report derives opcode coverage from the declarative x86 registry rather than hexadecimal literals in implementation and fixture code (#850). Opcode identities retain encoding space, map and mandatory-prefix context, so internal error payloads are no longer reported as unsupported instructions.
- The CPU coverage report no longer treats arbitrary Rust string literals or unit-test registrations as guest runtime imports (#845). It extracts explicit registration and generated service-metadata forms, keeps identical symbols distinct across modules and records partial registrations honestly, and the blocker manifest no longer omits those incomplete services.
- COM GUID generation now sets the version bits in the correct byte of the Windows GUID memory layout. Translated-guest tests cover this and the existing partial COM services; independent acceptance is pending.
- The PE32+ base-relocation reader rejects a block whose image RVA is not four-byte aligned before reading its header, while still allowing an even-length final block. Focused synthetic tests cover misaligned initial and later block starts across contiguous and split raw section spans (#771).
- Transactional ordinary-IAT binding now rejects reservation artifacts that the mapper could not have produced: relocation-stripped images at nonpreferred bases and image bytes or bases failing nonmutating mapping validation are structured pre-mutation errors rather than bindable inputs. Original synthetic tests cover fixed-base mismatch, unmappable extents and unchanged memory; independent acceptance is pending.
- DIR64 relocation targets must now lie in continuously mapped image backing: committed header or section bytes, including zero-filled portions and adjacent intervals that jointly cover a crossing target. A target inside a logical `SizeOfImage` hole is rejected before the fixup even when unrelated memory has reused that hole, and transactional batch relocation still restores earlier images. Original synthetic tests cover header targets, crossing targets, reused holes, malformed tables and exact rollback on native ARM64; independent acceptance is pending.
- Consolidated the two parallel transactional module-relocation implementations into the validated `module_memory` API after their simultaneous merge produced duplicate loader exports. Reservation validation now also checks preferred-base metadata and overlap shape, while image-hole backing validation remains a separately tracked loader change.
- The semantic-generator regression test for a scalar integer-add form incorrectly marked float now expects the primitive-table rejection. The older operation-level expectation predated valid float vector arithmetic; validation still rejects the mutated registry.
- The multiplayer controller ordering no longer uses a nested helper closure that Swift 6.3 release-mode region isolation misclassifies as sending a non-Sendable `GCController` across isolation. The same priority and deduplication behavior is now explicit iterative code; no concurrency diagnostic is suppressed and no input behavior changes.
- The native GPU test gate now includes the existing loader fence, compiled guest and hosted frame, resource-lifetime and threaded guest targets (#817). Each target is built before its bounded serial run with Metal validation enabled. Audit regressions cover target selection and failure propagation; these orchestration checks are not GPU correctness evidence.
- A translated `IMAGE_SAMPLE_L` or `IMAGE_SAMPLE_LZ` no longer returns a result the CPU reference refuses (#818). An explicit LOD that is not a whole mip level of the bound texture, or a NaN or infinite coordinate, is guest data the compiler cannot prove, and Metal rounded or clamped it instead of failing. The generated MSL now checks each active lane's LOD and coordinates by their bits before the sample and sets a fault word at `[[buffer(2)]]`, and `NativeCompute::run_words_sampled` returns an `image sample domain` error when the word is nonzero. Inactive lanes do not fault. Native tests on an Apple M4 with Metal API and shader validation cover a per-lane runtime LOD under a partial EXEC (0.5, 1.5, just below 1.0, 2.0, 15.0, -1.0, NaN and both infinities) and non-finite coordinates; turning the check off or dropping its EXEC condition fails them. Independent acceptance is pending. ([MIMG sampling](docs/shaders/mimg.md))
- The MIMG T# and S# validators now account for every bit instead of checking only the fields they know (#818). The resource validator reads all eight resource SGPRs, refuses a nonzero 256-bit extension word and refuses the reserved bit 61, the reserved bit 94 and the BC swizzle field 123:121; the sampler validator refuses the LOD bias 75:64, the LOD bias high bits 77:76, the LOD bias sec 83:78, force degamma (20), trunc coord (27), bit 19 and the anisotropy, depth compare, filter mode, performance, border colour and reserved fields. A set bit among those changes what real hardware samples, so the reference refuses the descriptor and reports the offending bits as a mask instead of accepting it silently, and each refusal has its own error variant. The base-address field is read over its whole 40 bits; the eight high address bits were dropped before. The reference interpreter and the native Metal backend pass all eight resource SGPRs to the validator. A separately written every-bit test covers all 128 bits of both descriptors. Local unit and every-bit tests pass; independent acceptance is pending. ([MIMG sampling](docs/shaders/mimg.md))
- The RDNA 2 errata record now has the `DS_PERMUTE_B32`/`DS_BPERMUTE_B32` lane-index and collision contradictions and the FLAT `OFFSET` contradiction from the memory chapters, and lists the 64-bit float literal rule on page 43 as correct but easy to misread (#808).
- The RDNA 2 errata record named `V_FFBH`/`V_FFBL` as users of the undefined `FindFirst1fromLSB` helper and said its empty-mask result was missing. Its only user is `V_READFIRSTLANE_B32`, whose text gives that result; the row is corrected. `S_BFE_I32` now carries the SCC note its PR described, and the `S_BFE_*` SCC citation names pages 104 and 105 instead of 113.
- PE inspection and import binding now require the complete two-byte Hint before a named symbol in both ordinary and delayed import tables (#768).
- Native macOS CI now runs the Swift package tests and the frame-loop and Audio/VFS control smokes in addition to checking the app bundle (#753).
- Synchronous runtime tasks that unwind now retain their queue slot and deliver a `WorkerPanicked` completion, matching background work (#755).
- The synthetic registry returns Win32 status codes to guest callers and preserves the identity of predefined root handles, including the Win64 SDK constants (#760).
- `xenora shaders inspect` checks the opened file before decoding and enforces a 1 MiB read limit. It rejects special files and oversized streams before printing rows (#743).
- The PR template check ignores HTML-comment markers inside inline code and does not count checklist boxes that appear only inside fences (#725).
- The pull request template check ignores headings inside fenced code blocks, accepts fenced test output as verification evidence, and removes HTML comments only outside those fences (#522).
- The native CI semantics test now distinguishes an unknown signedness from a valid category used on the wrong operation. This restores the check after binary32 rounding added the float category (#728).
- PE startup and static inspection now keep ordinary import descriptors within the declared directory. Startup reports a missing in-range terminator at import binding, and static inspection retains the imports found before the error.
- The macOS app's interactive guest loop checks each frame against the direction sampled by the host. A guest frame for the wrong column leaves the last accepted image intact, even if its pixels match the column reported by the guest (#722).
- `_fstat64` answers under `api-ms-win-crt-filesystem-l1-1-0.dll` too: a real mingw-w64 binary imports it from there, not from the stdio api-set, which an end-to-end execution of one revealed. Locally tested on Apple Silicon only.
- `_mkdir` creates a directory whose parent exists and `_rmdir` removes an empty one, over the same drive the kernel32 directory services use; a missing parent is `ENOENT`, a taken name `EEXIST`, a directory still holding files or directories is not removed. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 175 to 173 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `_fstat64` fills the 56-byte legacy structure at the offsets the mingw cross-compiler confirms: the mode of a regular file, one link, the file's length at offset 24, and zero device, inode and times — the drive carries none, documented on the entry. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 176 to 175 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `_fdopen` wraps a descriptor in a stream: the descriptor's state moves to the open-stream table and the descriptor becomes the stream's own, so reads and writes through either share the one position and `fclose` takes the descriptor with it, as the CRT's does. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 178 to 176 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `_creat` opens a truncating writable descriptor as `_open` with exactly `_O_WRONLY | _O_CREAT | _O_TRUNC` does, and `_mktemp` rewrites the trailing `X` run of its template into a name no file of the drive carries — a letter, then the counter's digits — answering null with `EINVAL` for a template without the run. Both aliased for `msvcrt.dll`. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 180 to 178 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- `_strdup` duplicates a narrow string on the CRT heap as `_wcsdup` does the wide forms, and `ldexp` scales by a power of two through the host C library's exact IEC 60559 `scalbn` — both aliased for `msvcrt.dll`. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 182 to 180 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Descriptor duplication: `_dup` answers the lowest free descriptor sharing the file position as the CRT's duplication shares it, `_dup2` rewires its target — closing what it was, unless it already is the source — and closing the original keeps the file open through the duplication, the lowest alias inheriting the state. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 184 to 182 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- 64-bit descriptor operations: `_lseeki64` positions a descriptor anywhere the drive's bytes reach — the 32-bit form's range no longer binds — `_telli64` answers the position, and `_setmode` switches a descriptor's text or binary translation and answers the previous one (partial: the wide modes are invalid here, the hosted streams being byte-oriented). The legacy `_lseek` alias was missing; every descriptor service now resolves under `msvcrt.dll` as well. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 187 to 184 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Legacy CRT time, process and utility services: `_time64` answers the injected clock's seconds since the Unix epoch and stores them through its argument, `_tzset` is honestly empty in the documented UTC environment, `_umask` keeps the creation mask state (partial: hosted files carry no permission bits yet), `_getpid` answers the hosted process identifier, and `rand`/`srand` follow the CRT's documented multiplicative congruential recurrence, verified against the published reference sequence for seed 1. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 194 to 187 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Legacy CRT printf buffer forms: `_vsnprintf` terminates only when the text fits with room as the legacy contract says, `_vscprintf` answers the size query, and `sprintf` reads its variadic arguments straight from the calling convention — registers first, then the stack — so a legacy-linked binary formats text exactly as it does on Windows. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 197 to 194 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Legacy CRT compatibility mapping for the services that hand-written registrations serve: legacy-linked mingw binaries import `strlen`, `memcpy`, `memmove`, `memset`, `memcmp`, `memchr`, `strchr`, `strcmp` and their bounded forms, `malloc`, `calloc`, `realloc`, `free`, the `errno` accessors, `qsort`, `bsearch`, `abort` and `getenv` from `msvcrt.dll` directly, and the registry now resolves those imports to the same handlers as the modern runtime, verified end to end through the legacy module's import slots. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 217 to 197 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Console identity and environment queries (#459): `GetEnvironmentVariableA`/`W` miss every name with `ERROR_ENVVAR_NOT_FOUND` — the exact behavior of the empty process environment, no host variable passes through — and the hosted console answers its identity honestly: `GetConsoleWindow` is null, the title round-trips through `SetConsoleTitleA`/`W` and `GetConsoleTitleA`/`W` with the UTF-8 console code page converting the narrow forms and the full length answered even when the buffer holds less. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 221 to 217 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Data imports resolve to their CRT variable cells (#643): a PE import carries no function-or-data distinction, so the registry gained a data-service kind whose binding writes the variable's guest address into the IAT slot instead of a dispatch trampoline. The legacy CRT variables observed in the wild — `msvcrt.dll!__argc`, `__argv`, `_environ`, `__initenv`, `_fmode`, `_commode` and `_timezone` — bind the cells the modern accessors maintain, so the legacy data view and the function view cannot disagree; `_fmode` starts as `_O_TEXT` and `_timezone` stays zero with the documented UTC clock. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 227 to 221 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The legacy CRT startup path of `msvcrt.dll` (#632): `__getmainargs` builds the same argument table as the modern configuration and copies it through the caller's pointers, `__set_app_type` records in the shared startup state, `___mb_cur_max_func` answers the one byte of the C locale, and `_amsg_exit` ends the process keeping the first exit status. These are the entries the statically linked startup code of a legacy-linked mingw binary calls before `main`, under their legacy names rather than as API-set aliases. Measured with `xenora probe` on busybox64.exe: unresolved standard imports drop 231 to 227 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- The legacy `msvcrt.dll` module surface (#632): the CRT entry points that freestanding mingw-w64 binaries import from the legacy module — `fclose`, `feof`, `fwrite`, `clock`, the time64 forms, the descriptor layer and the rest of the 30 functions observed in the wild — now resolve to the same implementations as their `ucrtbase.dll` registrations. On real Windows `msvcrt.dll` is a separate CRT, not an API-set forwarder, so the resolution is implemented as a distinct compatibility-module concept in the generator, documented in `crates/import-gen/src/apiset.rs` as the approximation it is: the legacy `printf` is not C99-exact, and where a real divergence appears the entry point must grow its own implementation. Measured with `xenora probe` on busybox64.exe (a 690 KB legacy-linked mingw binary): unresolved standard imports drop 268 to 237 of 322. Locally tested on Apple Silicon only; not compared with Windows and not independently reviewed.
- Wide stream io in the guest C runtime (#459): `fputws`, `fgetws`, `fputwc`, `putwchar` and `getwchar` convert in the C locale (every byte is its wide character, nothing above 255), and streams carry the C orientation — the first io operation fixes byte or wide, and the other kind then fails, on the files and on the three standard streams.
- The wide buffer forms of printf in the guest C runtime (#459): `__stdio_common_vswprintf` formats the same conversions as the narrow engine, with the wide family's turned-around character and string types — `%s` is the wide string, `%S` the narrow one — counting in wide units, with the CRT's default legacy truncation behavior measured against a mingw-w64 binary: truncation writes the count characters without a terminator and answers -1, and there is no size query.
- `scripts/demo.sh` no longer requires GNU `timeout`. It sources the same fallback as `scripts/test-gpu.sh`, which now lives in `scripts/lib/timeout.sh`, and drops the `exec` that could not run a shell function. On a stock macOS host the documented demo stopped at `exec` with `timeout: not found` before running a fixture.
- Sampling the synthetic runtime task queue clock now makes expired queued operations available on the completion port. A background operation without a cancellation token reports an observed timeout once it exits (#621).
- The PE loader ignores thread-local storage directory bytes outside the optional header's declared directory count, so padding is not treated as TLS metadata (#573).
- The PE loader validates the declared TLS directory size and reads its fields by RVA, including across adjacent file-backed sections (#639).
- PE startup places a large main-thread static TLS block after the thread environment block when their usual addresses would overlap (#705).
- Sampler validation rejects texture metadata with more mip levels than its dimensions allow, including metadata constructed directly from public fields (#503).
- Import generation preserves names containing quotes when reading probe CSV and writing its manifest CSV (#538).
- The macOS interactive fixture combines on-screen directions with a connected gamepad's other buttons, axes, and triggers. Release restores the physical direction, starting a new fixture clears the on-screen direction, and a failed input update can be retried (#601).
- The macOS interactive fixture combines on-screen Left and Right with a connected gamepad's other buttons, axes, and triggers. Release restores the physical direction, starting a new fixture clears the on-screen direction, and a failed input update can be retried (#601).
- The macOS interactive fixture combines on-screen Left and Right with a connected gamepad's other buttons, axes, and triggers. Release restores the physical direction, starting a new fixture clears the on-screen direction, and a failed input update is retried. The input error clears once the requested snapshot is the accepted input (#601).
- Structured startup reports now preserve the guest exit status when a thread-local storage callback ends the process before the entry point. The report keeps TLS as the last completed stage (#483).
- `xenora run --startup-report` preserves piped guest input and applies the usual input size and deadline limits (#547).
- The macOS fixture loop now displays failed session commands with their status codes even when a frame is on screen. Both fixture modes share session replacement and cleanup, and a cancelled poll cannot touch a replacement session (#406).
- Hosted program arguments now also respect the 32,767-unit Windows UTF-16 command-line limit after quoting, including the terminator. A rejected replacement leaves the current arguments intact (#581).
- `GetStartupInfoA/W` releases an unpublished desktop string if allocating the title fails, so a failed call leaves the output and available guest heap unchanged (#636).
- The DBT no longer runs a stale translation after the guest rewrites its own code or runs against a different address space (#84). Each cached block now keeps the guest bytes it was translated from and is compared with the current executable bytes on every lookup; a mismatch, or bytes that are no longer readable, discards the block and translates it again, counted in the new `DbtMetrics::blocks_invalidated`. This makes the `cpu_known_answers` self-modifying-code case pass for the DBT, so it is no longer ignored as a known defect, and regression tests cover a rewritten block, a rewritten final byte, a budget-limited block and a second address space. The discarded native code stays in the JIT cache until cache reclamation exists (#99), and a store into a block's own later instructions during the same dispatch is not detected. Local verification only; not independently reviewed.
- `xenora inspect` reports filesystem errors separately from invalid PE headers and refuses special files such as FIFOs. Symlinks to regular files still work (#557).
- `xenora inspect` reads only declared PE metadata and checks raw section ranges against the opened file's size, so a large payload or sparse hole no longer has to be loaded (#700).
- The PE loader rejects images whose rounded header mapping or section data would exceed `SizeOfImage`. Static PE inspection can still report their headers (#706).
- Static PE inspection and guest startup now require an all-zero terminator in the ordinary import table (#629). A nonempty descriptor missing its DLL name or address table gets an explicit diagnostic, and inspection still reports the imports it read before the error.
- An instruction longer than 15 bytes now stops both engines with a general-protection fault instead of an illegal-instruction exit (#384; Intel SDM Vol. 3A, 7.15). The decoder still stops before fetching a 16th byte, and the DBT translates the faulting instruction on its own so the instructions before it in a block complete first. The `defect_overlong_instruction` known answer from #155 is now verified, with three more cases.
- The graphics shader compiler rejects image-sample coordinate and result spans that cross the VGPR limit (#569).
- Scheduled guest threads now run fiber-local storage callbacks before signaling their thread object on normal return or `ExitThread` (#596). The callback receives its slot value and executes on the exiting thread. Forced termination still discards the values.
- C header ingestion preserves pointer ABI types across equivalent declarator spellings, keeps postfix-qualified and unnamed scalar parameters typed, and records whether the immediate pointee is const-qualified. Single-level character pointers keep their string metadata, and indirect character pointers retain the generic pointer type (#574).
- Fixed the app's executable inspector so a late result from an earlier selection can no longer replace a newer one (#407). Each selection from the file picker, drag and drop or Finder Open With now takes a request number, and only the latest request may publish its report and status or clear the busy state. The previous report is cleared when a new file is chosen, and a failed inspection of the latest file is shown in red above its report. The read itself is unchanged: size checked before reading, balanced security-scoped access, nothing executed. `Xenora --smoke-inspection-order`, run by `scripts/build-app.sh`, drives the model with an injected slow and fast reader and checks a stale success, a stale failure and a busy state held for the newer request; all four checks fail without the change. Checked locally on Apple Silicon; not yet independently reviewed.
- The macOS inspector reads only regular files and enforces its existing byte limit on the opened file throughout the read (#733).
- The macOS Run panel waits for the active guest process to finish before starting another, even after selecting a different executable. Results from a previous selection stay hidden (#702).
- The relocation stage rejects nonpreferred placement for fixed-base PE images. The original delay-import fixture now provides the three fixups needed by the bundled worker smoke test (#570).
- The shader coverage and inspection commands reject unsupported arguments and report usage (#533).
- PE base relocation directories follow the image's RVA layout across section boundaries. If any directory byte lacks file backing, rebasing fails before changing guest memory (#635).
- Non-canonical 64-bit guest data addresses now raise `#GP` instead of a memory fault in both the interpreter and native DBT, including accesses that cross the canonical-address boundary. The synthetic architectural test is enabled again.
- Agent sync reports upstream changes on both the old and new paths of a rename (#558).
- The native audit uses dependency rows to detect Vulkan and MoltenVK linkage (#525).
- Made the native semantic-review timeout in `scripts/test-gpu.sh` configurable with `XENORA_SEMANTIC_TIMEOUT` and raised its default from 120 to 300 seconds, so cold Apple Silicon runs do not fail while the expanded Metal known-answer suite is still progressing.
- The CPU depth reference rejects clears outside the finite viewport depth range and caps targets at 4,096 pixels before allocation (#550).
- Added a Python 3 fallback for `timeout` in `scripts/test-gpu.sh`, so the native Metal suite runs on stock macOS without GNU coreutils while preserving bounded execution and the usual timeout exit status.
- RDNA2 fixture regeneration builds the entire batch before updating checked-in binaries. An assembly or extraction failure leaves existing binaries intact (#597).
- The semantic coverage audit rejects decoded status rows for forms missing from the decoder inventory, preventing stale verification counts (#607).
- The LLVM gfx1030 oracle disassembles zero padding and reports missing output for nonempty probes. It preserves LLVM's explicit undecodable results (#616).
- Fixed flat (untextured) guest `DrawInstanced` draws in the synthetic D3D12-style graphics context (#148). A draw with zero instances or fewer than three vertices now draws nothing. A non-zero start vertex or start instance, more than one instance or more than three vertices now fails with `GraphicsError::Unsupported` instead of drawing the view's first triangle. Vertex reads stay inside the vertex buffer, so a view past its end, or one whose guest address would overflow, fails with `IndexOutOfRange` instead of reading neighbouring guest memory or panicking. `crates/loader/tests/repeated_frames.rs` runs these through repeated reset, record, close and execute frames on the software reference backend, with hand-derived pixels; no native Metal result is claimed.
- Guest texture, descriptor heap and root signature creation now rejects an invalid handle output before creating a child object, so a failed call leaves the device destroyable (#606).
- `MockClock::advance` no longer wraps the FILETIME. A large advance made the synthetic wall clock run backwards while the performance count beside it stopped at its maximum; both now stop at their maximum (#204).
- Fixed `DuplicateHandle` and `GetThreadId` naming the main thread from other guest threads, `OwningThread` in critical sections always holding the main thread's ID, the callback-depth limit being shared by all guest threads, and pending one-time initializations being unbounded.
- Fixed the address reported when a guest memory access faults part-way across a 4 KiB page boundary (#175). An access that starts in a mapped page and runs into an unmapped or forbidden one now reports the first byte it may not touch; it used to report the start of the access. An access whose first byte fails reports the same address as before, and a failed access still reads and writes nothing. Three Intel SDM page-fault cases in `cpu_known_answers.rs` moved from open defect to verified on both engines. `crates/loader/tests/memory_page_boundaries.rs` checks permissions, adjacent pages, address overflow and the fault address at every 4 KiB guest boundary across two host pages (16 KiB each on Apple Silicon). Guest memory is checked in software, so the host page size does not affect these results. Four #82 expectations and one CRT `memmove` expectation that pinned the start address were corrected. Not compared with x86 hardware; awaiting independent review.
- The graphics dependency audit now checks the texture crate and detects direct or transitive dependencies on Xenora's guest CPU loader (#590).
- Fixed the native dependency audit reading Cargo JSON and inspection-tool output in the process locale encoding; it now reads and reports UTF-8 paths and diagnostics under an ASCII locale (#363).
- macOS bootstrap now rejects missing, incompatible or failing tools in an explicitly configured `LLVM_BIN`. It checks for an ARM64 Mach-O slice before launching each tool and keeps Homebrew discovery optional (#585).
- Fixed a latent ARM64 `LSLV` encoding bug that forced bit 1 of the shift-count register field (part of #131). The dynamic binary translator uses `X10` in its only call, which already has that bit set. `RBIT`, `CLZ` and `LSLV` now panic on out-of-range register numbers before emitting an instruction. Encoding tests use words checked against LLVM's assembler.
- Made the static probe and the binder share one bounded import parser, after the truncated-name fix for #270. Truncated, unterminated, empty or non-ASCII names, reserved bits and endless tables are reported by the probe and refused by the binder.
- PE import reports now retain printable spaces in ordinary and delayed module and symbol names. A missing runtime service is reported as unresolved instead of a malformed import table (#602).
- Fixed TLS callback metadata that was accepted or misread without an error (#78). A non-zero `AddressOfCallbacks` outside the image's sections, or 4 GiB or more above the image base, is now refused; it used to mean "no callbacks" or read the list from an unrelated place. The callback list must reach its null entry inside its section, where the section's zero-filled tail counts, and a list of more than 64 callbacks is refused where it used to be cut short. `execute_tls_callbacks` refuses a stack top that is not 16-byte aligned or cannot hold the entry frame, which used to overflow a subtraction, and a file cut inside the TLS data-directory entry no longer panics the parser. `TlsError` gains four variants for these cases. Twelve unit tests in `crates/loader/src/tls.rs` use original headers and code, and also check the argument registers, the stack pointer at entry and after return, callback order and the instruction budget. Expectations come from Microsoft's public PE Format and x64 calling convention pages; nothing ran on Windows, and independent review is pending.
- Fixed the thread's TLS pointer naming the TLS data itself (#76). Compiled code loads the pointer from the thread environment block, indexes it by the module's TLS index to get the address of the data block, and then adds a variable's offset; the loader had mapped the data where the pointer array belongs, so the first eight bytes of the template were used as the block address. `setup_tls` now maps a pointer array at the thread's TLS base and the data block one page above it, and stores the block address in the slot of the index it assigns. `crates/loader/tests/tls_layout.rs` follows that access sequence through guest memory for a template with zero fill, a rebased image and a zero-fill-only directory. The data block of the fixture harness can now be at most 60 KiB, down from 64 KiB, before it would meet the thread environment block. Alignment requests above 4 KiB and more than one module's TLS are not handled. The access sequence follows Microsoft's public PE Format page; nothing ran on Windows, and independent review is pending.
- Fixed the MXCSR flags of an unmasked floating-point overflow whose result is exact before the exponent is bounded, such as the largest binary32 value times two (#128). Only the overflow flag is set; the precision flag used to be set as well although nothing was rounded. A masked overflow still sets both flags and delivers infinity or the largest finite value, and an unmasked overflow that is also inexact still sets both. Five Intel SDM cases in `cpu_known_answers.rs` moved from open defect to verified on both engines, with three more for the other rounding modes, and the scalar and conversion sweeps now compare the precision flag in this case as well. Not compared with x86 hardware; awaiting independent review.
- Fixed the decoder refusing an instruction whose REX prefix is followed by a legacy prefix (#69). Such a REX is ignored, as the Intel SDM (Vol. 2A, 2.2.1) specifies, so `48 66 01 D8` now runs as `add ax, bx`; it used to stop the guest with an illegal-instruction exit. The ignored byte still counts toward the instruction's length, and a REX that directly precedes the opcode behaves as before. The interpreter, the DBT and the static probe share the decoder. One SDM-derived case in `cpu_known_answers.rs` moved from refused to verified and three were added, for an ignored REX.B, an ignored REX.W before a segment prefix, and a later REX that does apply. Two REX bytes in a row and the address-size prefix stay rejected. Not compared with x86 hardware; awaiting independent review.
- Fixed import binding writing some slots before finding an unresolved import, and service calls taking effect before an unreadable return address was noticed. A service that changes a nonvolatile register, including XMM6 to XMM15, now stops the guest (part of #201).
- Import generator manifests now preserve MSVC C++ return type qualifiers and display lvalue- and rvalue-qualified member function signatures (#595).
- Fixed older import-generator templates that reported success for unimplemented wrappers, used a nonexistent exit reason, and read floating-point arguments from integer registers.
- `xenora imports verify` runs both generated-binding test suites and fails when either produces no executed tests or inconsistent results (#580).
- Fixed guest flags in the native DBT (#64, #70). They lived only in host NZCV, so they were lost across helper calls and block boundaries and register ADD, SUB and XOR set none. JB, JAE, JBE and JA used ARM carry polarity, which is inverted for subtraction. Flags are now stored in the guest state.
- Fixed the static probe reporting support for forms an engine rejects, including NOP, TEST, most conditional branches and the FF group in the interpreter.
- Fixed the native DBT's `SXTW` encoding, which set bit 3 of the source register and was right only for registers that already had it set; the previous test used such a register by chance.
- Fixed 32-bit guest stores and loads in the native DBT (MOV 89/8B and C7 /0), which accessed eight bytes: stores overwrote the next four guest bytes and accesses at the end of a mapping faulted. RIP-relative operands of byte moves and extensions, which were read as RBP-relative, and LEA with a segment prefix, which added the segment base, are fixed too.
- Fixed an x86 prefix-length test that read an untracked fuzz artifact and so failed on every fresh checkout; its input is now inline.
- Fixed agent-queue `apply_actions` crashing on comment-only decisions (claim refusals) by skipping no-op `gh issue edit` calls; accept `summary --now` after the subcommand; grant the audit job `pull-requests: read` so live audits can list open PRs (issue #180).
- Fixed `scripts/audit/status.py` and the Python embedded in `scripts/audit/claims.sh` reading and writing tracked files in the process locale encoding instead of UTF-8: under an ASCII or cp1252 locale the status check crashed on `docs/claims.toml` or reported a spurious `xenora-progress.svg` difference. Both scripts now pass `encoding="utf-8"`, as the rest of `scripts/` does, the two write sites also pin `newline="\n"` so a Windows host cannot turn tracked LF files into CRLF when it regenerates them, and CI runs the two checks again under a non-UTF-8 locale so the requirement stays enforced.
- The claims audit now checks tracked and unignored source files in the working tree. Ignored local files and files deleted from the working tree no longer produce spurious claim errors (#582).
- Generated CRT adapters now report unsupported calls when the required guest ABI or runtime behavior is missing.
- Replaced binary insertion in guest `qsort` and `qsort_s` with a stable merge of original element indices (#589). Host index movement is now O(n log n) even for reverse-ordered inputs. Comparators still receive original guest element addresses, equal keys keep their order, and the sorted array is written only after all comparisons finish. The 1 MiB guest input limit still applies.
- Win64 service argument decoding reports a guest memory error when a stack argument offset overflows.
- Fixed `xenora_isa::meta::identify` reading six VOP3 interpolation forms (`v_interp_p1_f32_e64`, `v_interp_p2_f32_e64`, `v_interp_mov_f32_e64`, `v_interp_p1ll_f16`, `v_interp_p1lv_f16`, `v_interp_p2_f16`) as 12 bytes when SRC0 is 255. In these forms SRC0 holds attribute bit-fields, not an operand selector (AMD RDNA 2 ISA guide section 10.4.2; XML operand type `OPR_ATTR`), so SRC0 = 255 no longer adds a literal word. The six corpus probes are now 8 bytes, as LLVM 23.1.6 also decodes them. The six pinned `mismatch` rows in the LLVM corpus check are gone: one now agrees fully, and five are `operand_flagged` (same instruction and length; LLVM flags an operand).
- Updated `test_probe_static_analysis_does_not_execute_code`: the SIB store `mov [rsp + 0x20],
rbx` at RVA 0x1004 is now genuinely supported by the native DBT (verified by the independent
execution test above), so the probe reports no blocker for this program.
- Added `test_probe_static_analysis_detects_genuinely_unsupported_instruction` with a new
synthetic fixture containing an INT3 at RVA 0x1004, preserving blocker-detection coverage
for genuinely unsupported DBT instructions.
### Changed
- Explicit PE package TLS setup stages only new thread storage before publishing indexes and pointers. A failed preparation releases those allocations without copying the rest of the guest address space (#1356).
- Guest `qsort` and `qsort_s` skip copying the array when its final order matches the input and the full array is readable and writable (#1265). Comparator calls and memory faults are preserved. The service-dispatch benchmark now checks and times an ordered pair of 512 KiB records.
- The native GPU gate now checks that packed and aligned block-compressed texture uploads return the expected pixels with Metal validation enabled (#1238).
- The agent checks gather every open pull request's head commit date and changed files in one batched GraphQL request instead of three `gh` calls per pull request, and a focused pull request reuses the row already gathered. At 54 open pull requests the gather costs 3 calls instead of 163; a pull request whose file list the API truncates still falls back to the paginated call so the file sets stay complete.
- Package startup tests rebuild the original multi-DLL guest with native Clang and verify module initialization, teardown and the missing-export control. The fixture builder uses Xcode Clang when Homebrew LLVM is unavailable (#1066).
- The native ARM64 dynamic binary translator (DBT) links translated blocks directly (#94). A full block whose last instruction has a static successor (the next instruction after the 16-instruction quota, a relative `JMP` or `CALL`, either side of a `Jcc`) now ends in an exit stub that jumps straight to the successor's translation instead of returning to the dispatcher. It does so only when that translation starts at the guest RIP, was selected and byte-checked by the dispatcher in the current verification epoch, and enough budget is left that the dispatcher would also have picked a full block. Links are host data words, so emitted code is never rewritten and the W^X handling is unchanged. The epoch advances at every run, after each service call, trampoline and fault dispatch, and after any block that recorded an exit, stored into the address range of translated code or ran an instruction through the shared semantics. Loops containing such instructions, `RET` and indirect branches therefore still go through the dispatcher. New interpreter-versus-DBT tests run with linking on and off and cover every exact budget of a loop, slices, quota fallthrough, calls, self-modifying code, code rewritten by the host or by a service, another address space, services at linked addresses and faults inside a chain. `DbtEngine::link_metrics` counts installed and followed links, fallbacks, epochs, retired targets and bytes the dispatcher re-verified; `DbtEngine::set_block_linking(false)` restores the previous dispatch. On an Apple M1 Max under heavy unrelated load (macOS 27.2.1, Rust 1.100.0, bench profile), seven interleaved `dbt_bench` runs of 101 samples show the cost on its straight-line workload, which never follows a link: cold DBT median 878.8 to 915.2 µs (+4.1 %), warm DBT 119.0 to 123.5 µs (+3.8 %), 305,164 instead of 245,168 native bytes. On loop workloads written for this change and run outside the tree, with results checked against the interpreter, warm medians over three interleaved runs of 51 samples fell from 4.71 to 0.252 ms for a three-instruction counted loop, 1.68 to 0.375 ms for a 42-instruction loop body, 1.66 to 0.485 ms for a push and pop loop and 3.17 to 1.52 ms for a loop that calls a function. Measured locally only and not independently reviewed.
- Queued PCM applies the current gain and mute when frames are read or rendered, so controls affect audio already in the session queue. Oversized submissions keep the newest 256 KiB, and the C header documents the timing and reinitialization rules (#575).
- The research and testing notes no longer name or link emulator projects and asset tools that are tied to one specific commercial game. The clean-room statements stay, worded for other emulator projects in general, and the rule in `AGENTS.md` against copying emulator source still names KyTx and AnyPS5.
- Git now ignores the whole local `diagnostics/` folder instead of three named subfolders, so no local report or check output under it can be committed by accident.
- Removed the references to one specific commercial game from the research notes `docs/research/synthetic-integration.md` and `docs/research/phase02-collaboration.md`, including a link to a reverse-engineering index for it. The notes now say in general terms that commercial game startup and execution remain unsupported.
- Guest data reads, data writes and checked or split accesses find their memory region by binary search on the sorted region table instead of scanning it from the front (#102). Every heap block is a region, so an access in a program with many live allocations walked up to 4,096 entries. The first four regions are still checked in order, and the lookup returns the same region as the scan did, including zero-size regions, regions sharing a base and overlapping mappings, so permissions, split accesses and fault addresses are unchanged. In the opt-in `region_lookup_timing` run on an Apple M1 Max (medians of 5 alternating runs), a read among 4,096 heap blocks went from 1,215 to 26.5 ns, among 256 blocks from 71.8 to 14.7 ns, and in a three-region table from 2.58 to 2.15 ns; `dbt_bench` stayed within noise. Instruction fetch keeps the scan, because every search form tried there made cold DBT about 7-10 % slower; a fetch from code mapped above many regions still walks them. Contract tests and a randomized comparison with the previous lookup cover the change. Local verification only; not independently reviewed.
- The macOS persistent frame loop now loads one original guest that records four draw lists and reuses its graphics objects across frames (#623). The app shows the guest's checked render-target readback from Metal in both standard and interactive mode.
- The `xenora-session` worker checks the rendered pixels against each delivered direction and verifies that the original application closed its runtime handles before process exit (#732).
- Native CI runs the QA and release-tooling tests and checks both agent shell launchers for syntax errors (#545).
- The contributor setup documents the native mingw-w64 prerequisite for workspace tests and the Gate A1 clang and LLD setup (#694).
- The macOS app build locates the Rust library and bundled worker in Cargo's configured target directory (#513).
- `xenora run` now drives the entry point through the deterministic cooperative scheduler: a program that creates threads with `CreateThread` runs them all, one guest thread at a time, and a program that creates none behaves as before. The instruction count includes the two dispatch trampolines of the main thread. Verified by a mingw-w64 probe whose thread returns its exit code through `WaitForSingleObject` and `GetExitCodeThread` end to end.
- Removed a coding-agent session transcript that had been committed to the repository root (#463), and ignored `session-*.md` at the root so the next accidental transcript stays out of Git.
- The native fixture viewer reuses its frame readback buffer and republishes the image only when the fixture frame ID changes. Paused loops use a 250 ms polling interval, and Pause and Resume refresh native status immediately (#405).
- Stopping the macOS app's persistent guest loop keeps the interface responsive while the native worker finishes. The controls stay disabled until the final status and last frame are available (#729).
- The native app's original frame-loop guest keeps a synthetic journal across frames and pauses. The host verifies its records and explicit file closure before the app displays the count or C callers can read the bytes (#736).
- The decoder accepts `LOCK` on the memory-destination forms of ADD, OR, ADC, SBB, AND, SUB and XOR, as Intel SDM Vol. 2 lists them, not only on XADD and CMPXCHG (#447). libstdc++ uses `lock add` and `lock sub` for reference counts. `LOCK` on CMP, on a register destination and on XCHG is still refused. Locked instructions now always run on the shared semantics rather than native ARM64 code, so atomicity has one place to live once guest threads run concurrently; today they run one at a time, so a locked read-modify-write is already indivisible.
- Static probe exports now check every destination before writing, preserve the ignored development directories and publish complete files by rename. Future persistent caches use a separate per-user location outside Git checkouts (#413).
- 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.
- Guest `strlen`, `strnlen`, `wcslen` and `wcsnlen` scan memory in 256-unit blocks, falling back to single units at mapping boundaries so faults still report the first inaccessible unit. On Apple M2 Pro the 63-byte `strlen` workload went from 1,990 ns to 223 ns per call (median of 10 batches, on a machine that was not idle).
- The native ARM64 DBT now runs the 32- and 64-bit register and immediate forms of ADC and SBB itself instead of falling back to the shared interpreter (#195). The guest CF is moved into the host carry before ADCS or SBCS, inverted for SBB because SBCS subtracts NOT C while SBB subtracts CF. Memory forms and 8- and 16-bit forms still use the shared semantics. `tests/x86_carry_chain.rs` runs 256-bit add and subtract chains of 64- and 32-bit limbs, in one block and split one block per limb, against widening `u128`/`i128` reference arithmetic in both engines, plus immediate 128-bit increments and decrements and the `sbb reg, reg` carry mask. Locally verified on Apple M5 only.
- Removed the temporary region-list allocation from each instruction-byte fetch while preserving lookup order, execute-permission checks and error behavior (part of #104).
- Release and bench builds now use fat link-time optimization with one codegen unit (#116). On a local Apple M5, `dbt_bench` medians over five alternating runs dropped by about 6 % for the interpreter (903 to 845 µs) and about 9 % for cold DBT (1.155 to 1.046 ms), while warm DBT (cache hits) became about 2 % slower (21.83-22.08 to 22.29-22.54 µs over four further runs). The `xenora` binary shrank from 2.73 to 2.11 MB. A clean release build of the workspace takes about 14 s instead of 6 s. Debug and test builds are unchanged.
- The benchmark launcher runs the executable from Cargo's configured target directory (#509).
- The ARM64 assembler loads 64-bit constants with the fewest MOVZ or MOVN plus MOVK instructions (#92). It no longer emits MOVK for zero halfwords and starts from MOVN when more halfwords are 0xFFFF than zero, so small negative values take one instruction instead of four. On Apple M5 the DBT benchmark emits 245,168 instead of 290,184 native bytes for its 626 blocks (-15.5%) and the 1,048 integer fixture instructions 128,724 instead of 145,732 (-11.7%); benchmark run times did not change measurably. New tests check the sequences against LLVM encodings and execute 1,056 of them on the host through the JIT.
- Resolve the tiled BC1 mip and array layer once per linearization and copy contiguous block runs within each tile row. Partial edge blocks are retained and padding slots are skipped. Closes #349.
- Added module identity for guest programs (#487): `GetModuleHandleA/W` return the program's base address for a null name, and `GetModuleHandleExA/W`, `K32GetModuleInformation` and `GetModuleInformation` are implemented, with counted references, pinning and lookup by address. `GetProcAddress` now finds services registered after the module catalog, such as `ExitProcess`, and KernelBase is a module of its own. `GetModuleHandle`, `GetProcAddress`, `FreeLibrary` and `LoadLibrary` resolve through the API sets Microsoft lists. Original C and C++ programs built by the tests exercise them; nothing was compared with Windows, and independent review is pending.
- Changed the default report folder of `xenora probe` and `xenora imports sync` to `diagnostics/probe`, which Git ignores (#364). Anyone relying on the earlier default has to pass `--report`.
- Relocation reports now build their type histogram once per image, avoiding a tree lookup for every entry. Target checks and fixup order are unchanged; synthetic regressions and an opt-in relocation timing test cover the change (#109).
- Moved the six supported gfx1030 SOPP compute control forms into the semantic registry, preserving instruction decoding and shader lowering. Part of #215.
- Moved gfx1030 `s_mov_b32` (SOP1) into the semantic registry, preserving its existing decode domain and shader output. The move operand rule retains explicit VCC and EXEC half destinations. Part of #215.
- Moved the six hand-written gfx1030 VOP2 logical and shift forms (`v_and_b32`, `v_or_b32`, `v_xor_b32`, `v_lshlrev_b32`, `v_lshrrev_b32`, `v_ashrrev_i32`, AMD guide section 12.7) into the semantic registry under a new VGPR-only operand rule `vop2_vgpr2`, with no behaviour change: a sweep of 132,608 VOP2, VOP1 and SOP1 words decodes to the same text, length and error before and after, the MSL goldens are unchanged, and the runtime-region allowlist admits exactly the same six forms. The per-lane `VectorBinary` gained `And`, `Or`, `Xor` and the three shifts (count masked to S0[4:0]); 6 hand-written instruction variants and their decoder and lowering arms are gone (17 hand-written forms remain). Part of #215.
- Added non-blocking Metal compute submission through `submit_words` and `wait`, with completion-aware resource retirement and a sixteen-dispatch in-flight limit. Synchronous calls keep their existing behavior. The benchmark reports the host submission split and compares synchronous and pipelined batches.
- Native Metal compute submissions now recycle completed input/output shared buffers through a bounded exact-size pool instead of allocating two buffers per dispatch. Every checkout recopies the input and restores the output poison, and buffers return to the pool only after a terminal Metal command status. On Apple M1, a 31-sample release benchmark reduced median allocation time by 69.9-98.7% across 25 fixture/size combinations; host timings were noisy on battery power, so no end-to-end speedup is claimed (#134).
- Reuse up to 16 native Metal compute pipelines per context for repeated shader source and entry points. Pending dispatches retain their pipelines through completion, including after eviction. Dispatch profiles report zero library and pipeline setup time when a cached pipeline is reused. Closes #132.
- Avoided resolver allocations for permitted guest data reads and writes contained in one mapping, preserving checked fallback for split spans and faults (#105).
- Extended the read-only RDNA2 planning CLI (`python3 -m qa rdna2`) with family/status filters, compact summaries, Codex-ready manifests under `artifacts/`, active-claim exclusion (family claims exclude those families; path-only claims block overlapping permitted files), coverage reconcile against `semantic_coverage` without inflating counts, and inventory diffs. Covered by `tests/qa/test_rdna2_plan.py`; planning only, no GPU production edits.
- The macOS Run panel accepts one literal program argument per row, preserving order, spaces, and empty values. It also shows the final runner stage after CRLF guest output (#544).
- The macOS Run panel accepts an optional regular file up to 1 MiB as the guest's standard input. With no file selected, standard input is empty (#723).
- Registering an import key twice is now an error instead of silently replacing the first service, ordinals are distinct from names, and API sets in the import generator match exactly instead of by prefix.
- `GetSystemTimeAsFileTime` now stops the guest on a null pointer, as on any other invalid pointer, instead of setting the last error.
- Simplified the claim rules in `AGENTS.md`, `CONTRIBUTING.md` and the pull request template at the maintainer's request: claim an issue by replying on it in plain words, never claim over an existing claim, and treat a claim as stale only after about one week without a pull request. The task-queue lease (`lease_hours` in `.github/agent-queue.json`) is now 168 hours to match, and `docs/coordination/agent-tasks.md` marks the queue commands as optional.
- The static PE probe now marks x86-64 SIB memory addressing as DBT-supported, matching the
native DBT.
- Added a bounded guest `winmm.dll` multimedia surface for `timeapi.h`, `joystickapi.h` and `mmeapi.h` (#2933). `timeGetTime` and `timeGetSystemTime` read the injected guest clock and fill the documented 8-byte `MMTIME` (a buffer smaller than `MMTIME` is refused with `TIMERR_STRUCT` as a deliberate stricter differential), `timeGetDevCaps` publishes a 1-to-65535 millisecond `TIMECAPS`, and `timeBeginPeriod`/`timeEndPeriod` track balanced per-period counts without touching the host scheduler; an unmatched valid `timeEndPeriod` is refused as a deliberate stricter differential. `timeSetEvent`/`timeKillEvent` start and destroy one-shot or periodic function timers on the guest clock; a due callback runs cooperatively from the guest's own `timeGetTime`/`timeGetSystemTime` call, because Xenora has no multimedia timer thread, and receives its documented five arguments with `dw2` zero; the callback pointer is not pre-validated, so an invalid one is accepted and faults when the timer fires, as on Windows. `joyGetPosEx` serializes host-published `JoystickState` snapshots into the documented `JOYINFOEX` layout for four joystick slots, including the count of pressed buttons in `dwButtonNumber` and preserving the caller's `dwFlags`; a null info, a `dwSize` smaller than 52 or zero `dwFlags` is refused with `MMSYSERR_INVALPARAM`, deliberately stricter than Wine, which returns `JOYERR_PARMS` for a small size and accepts zero flags. The five wave, MIDI and auxiliary count queries answer zero because no such device class is modelled. A new `tests/winmm.rs` suite drives the production registry through translated guest code, including an original guest timer callback, and passes locally on Apple Silicon. Event-object timer callbacks, `joyGetDevCaps`, waveform/MIDI streaming, deadzone and centering processing, Windows comparison and independent acceptance remain unsupported or pending.
## [X18] - Automated Import Compatibility Generation & Metadata Ingestion
Guest execution uses original, purpose-built test programs. Commercial Xbox game execution
remains unsupported.
### Added
- ARM64 CI reassembles the checked-in `gfx1030` shader fixtures with native LLVM and checks that the resulting bytes match the binaries used by Xenora (#1241).
- Added `xenora-import-gen` deterministic code generation crate and `xenora imports generate <--pe | --csv > [--out ]` CLI command. Automatically extracts imported symbols from PE executables or CSV manifests, classifies them against a built-in offline database of documented public Win32/CRT and ISO C specifications without consuming AI tokens or network resources, maps compatible CRT functions to native macOS libc ABI adapters with guest memory bounds checking, generates logged Win32 service stubs, generates deterministic conformance test suites, and produces coverage reports in both Markdown and CSV format.
- Added automated metadata ingestion (`ingest_standard_system_headers`) and `xenora imports metadata sync` command capable of parsing real POSIX/C system headers into typed `MetadataCatalog` definitions (188 entries).
- Added `xenora imports verify` automated behavioral verification runner checking CRT math, string, and memory bounds invariants across 12 independent behavioral test cases.
- Added explicit failure semantics for unsupported stubs returning `ExitReason::IllegalInstruction(0xFE)` rather than fabricated success.
- Added public registration helper `ImportRegistry::register_with_status` and runtime integration test verifying generated bindings and stub failure semantics.
- Added 8-bit and 16-bit guest memory access helpers (`read_u8`, `write_u8`, `read_u16`, `write_u16`) to `xenora-loader::GuestMemory`.
- Added guest-facing D3D12-style graphics runtime interfaces (`GraphicsContext`, `GraphicsDevice`, `GraphicsCommandQueue`, `GraphicsCommandAllocator`, `GraphicsCommandList`, `GraphicsResource`) with explicit backend selection (`GraphicsBackendId::MetalNative` vs `GraphicsBackendId::SoftwareReference`). Original PE32+ integration tests verify device creation, generation-checked handle ownership, command recording, barriers, and presentation.
- Connected guest execution via ARM64 DBT and IAT dispatch to native Apple Silicon Metal rendering (`test_guest_dbt_graphics_pipeline_metal_render_dual_inputs`), proving that different guest vertex positions and clear colors produce distinct, verified GPU-rendered framebuffers with active Metal validation on Apple M5.
- Added explicit test graphics service exports (`xenora_fixture.dll!CreateGraphicsDevice`, `xenora_fixture.dll!SubmitGuestDraw`) cleanly separated from unsupported production Xbox ABI claims.
- Added control-flow-aware x86-64 static PE probe using worklist CFG traversal, eliminating false-positive startup blocker reports on unreachable INT3 padding.
- Added `xenora imports sync` command with `--check` verification mode for automated, idempotent import compatibility backlog generation.
- Added current-process handle and ID queries and a readable priority boost policy for the synthetic guest process. Original PE fixtures verify Win64 arguments, state changes and errors through imported calls.
- Static import reports identify canonical bindings, API-set aliases, implemented and partial handlers, existing stubs, and missing services.
- Added a single startup path for original PE32+ fixtures that maps and rebases the image, binds imports before running thread-local storage callbacks, then enters the guest.
- The static PE probe compares ordinary imports with the standard synthetic registry and exports unresolved DLL, symbol or ordinal, and import slot addresses to `missing_imports.csv`.
- Added synthetic PE32+ runtime support for 64-bit base relocations, thread-local storage setup and callbacks, Windows x64 calling convention arguments, and import binding to a limited service registry. The Xbox-style allocation service maps guest memory. Its free entry point remains a stub.
- Extended native ARM64 dynamic binary translation with selected memory addressing, immediate stores, register increments and decrements, and indirect control flow through guest import slots.
- Added runtime fixtures for rebasing, ordered callbacks, deterministic timing, guest memory allocation, and mock import dispatch. The GPU gate checks every pixel from a native offscreen draw through a synthetic import.
- Added a static PE compatibility probe that exports section, relocation, thread-local storage, import and bounded x86-64 entry-point analysis. Synthetic tests cover inspection and report export.
- Added native Apple Silicon ARM64 Dynamic Binary Translation (DBT) engine (`DbtEngine`) with basic block decoding, native ARM64 code lowering, and W^X-compliant JIT code cache (`JitMemory`) utilizing macOS `MAP_JIT` and `pthread_jit_write_protect_np`.
- Added a typed native ARM64 JIT branch-site primitive that reserves explicit NOP sites, checks allocation generations and target instruction ranges, and links or restores a single instruction under macOS JIT write protection. Native fixture coverage is separate from the pending DBT integration and return prediction (#2361).
- Added an ARM64 machine instruction assembler (`Arm64Assembler`) supporting register/immediate arithmetic, logical operations, memory loads/stores, branch/call/ret control flow, and calling convention preservation.
- Added synthetic guest graphics service dispatch connecting guest x86-64 execution through native ARM64 translated blocks directly to Xenora's Metal graphics pipeline (`NativeCompute::render_rgba8`), producing and independently checking the first guest-rendered frame.
- Added Scale-Index-Base (SIB) memory addressing mode support to `xenora-loader`'s x86-64 interpreter (`[base + index*scale + disp]`) for general-purpose memory operand resolution.
- Added synthetic test fixture `test_sib_addressing_mode` verifying SIB stack-relative memory loads and stores in software interpretation.
- Added `xenora-loader` crate providing standalone PE32+ (64-bit Portable Executable) parsing, isolated guest virtual memory with strict page permissions (Read/Write/Execute), bounded software x86-64 instruction interpreter (`CpuState`, `Interpreter`, `RFlags`), and read-only diagnostic triage (`triage_file`, `triage_bytes`).
- Added CLI inspect command (`xenora inspect `) for read-only PE32+ header and section structure examination.
- Added comprehensive integration tests verifying synthetic PE32+ image mapping, register arithmetic, stack push/pop, subroutine calls/returns, deterministic unsupported opcode rejection, memory fault on unmapped access, and execution budget enforcement.
- Added native Metal sampler abstraction (`MetalSampler`) supporting nearest-neighbor minification/magnification filtering, clamp-to-edge addressing, normalized coordinates, validated LOD bounds, and explicit `SamplerDesc` mapping.
- Added native Metal RGBA8 2D texture allocation, mip upload validation (`MetalRgba8Texture`, `Rgba8MipLevel`, `Rgba8TextureDesc`), and texture/sampler pipeline binding definitions (`BoundSampledTexture`, `BindingSlot`) for future translated shader stages.
- Added an independent pure-Rust CPU texture sampling reference for deterministic RGBA8 2D textures with nearest-neighbor filtering, normalized UV coordinates, clamp-to-edge addressing, explicit mip selection, and bounds validation.
- Added typed texture sampler descriptors and texture metadata validation supporting nearest filtering and clamp-to-edge modes for future pipeline integration.
- Added a persistent resource service for original fixed-base PE32+ fixtures. Generation-checked handles support buffer updates, checked submission views, and native Metal readback. Queued work captures its input across updates and slot reuse.
- Added translated gfx1030 vertex and pixel stages for a bounded graphics subset. Original shaders exercise position export, a vertex transform, constant color and perspective interpolation in offscreen Metal pixel comparisons on Apple M5.
- Added immutable guest texture handles for validated pitched BC1 uploads and native Metal readback. Tests cover mip levels, layers, partial edge blocks and transparency.
- Added an acceptance matrix for persistent resources and translated graphics, with a CPU test for explicit cross-lane instruction rejection.
- Added a synthetic PE32+ guest compute import. The guest submits a checked buffer and one-shot descriptor, then reports the result of an original gfx1030 XOR fixture translated to Metal. The Apple M5 gate checks repeatable readback, guest exit status, malformed requests and stale-handle rejection.
- Added native Metal upload and texel readback for validated synthetic BC1 subresources. The Apple M5 fixture checks 61 RGBA8 texels across mip levels and array layers using authored Metal Shading Language.
- Added statically known partial Wave32 execution masks for supported vector arithmetic and moves, with inactive-lane value preservation. An independent CPU decoder and an Apple M5 readback check exercise 67 values across wave boundaries.
- Added a CPU-only synthetic tiled texture reader with checked mip and array-layer addressing and BC1 block decoding.
- Added validated input buffer views for synthetic guest compute. An original translated gfx1030 shader read only the selected range and returned the expected bytes in a local Apple M5 test.
- Added forward Wave32 branches on statically known execution and vector condition masks. A local Apple M5 test checked that inactive vector operations preserve the input to a later arithmetic right shift.
- Added bounded named import resolution for an independently compiled synthetic PE32+ guest. The fixture checks guest memory transformation and guest exit status. An unresolved import fails before guest entry.
- Added synthetic guest fixtures for service dispatch and nested function calls. The X6 fixture checks both writable guest memory and instruction retirement after loading its fixed-base PE32+ image.
- Added a public documentation index for architecture, validation, and contributor references.
- Added a bounded x86-64 guest interpreter on native ARM64 macOS (X1), plus a loader for original fixed-base 64-bit Portable Executable (PE32+) fixtures and an experimental add-one service (X2).
- Added guest-to-GPU command submission for a validated synthetic compute workload (X3) and guest-driven Metal rendering to an offscreen 8×8 RGBA8 texture (X4). Independent review confirmed the compute output and every pixel for both rendering inputs on Apple M5.
- Added a typed shader intermediate representation and Metal Shading Language generation for a bounded subset of 32-lane AMD RDNA 2 compute on the desktop gfx1030 target, with fixture validation on Apple M5. Expanded the verified vector-register-only forms to include bitwise OR and logical shifts. Arithmetic right shift passed local CPU and Metal checks, with independent acceptance still open.
- Added independent CPU known-answer fixtures, LLVM decoder comparisons, and source and native semantic mutation checks.
- Added an arithmetic-right-shift (ASHR) entry to the synthetic fixture provenance manifest and extended the independent CPU oracle and known-answer suite with explicit checkpoints, a positive-value control, aliasing and malformed-stream coverage for `v_ashrrev_i32_e32`.
- Added a correctness-gated benchmark harness that records stage timings, power source, and thermal state.
- Repository contribution guidelines, issue forms, pull request checklist, community expectations and security reporting policy.
- Added native ARM64 CI and repository audits for dependency direction, claims, and generated status. Expanded CI to check the standalone guest experiment, synthetic PE fixture bytes, and progress asset consistency.
- Made reading and updating the changelog mandatory for engineering work.
### Fixed
- `fgets` and `fgetws` on stdin honor a redirection exactly as `fread` does: the line reads consumed the captured console input directly and never saw a descriptor-0 duplication, so any line reader fed through a pipe or redirect answered end-of-file immediately. Measured end-to-end with the public mingw64 busybox binary on Apple Silicon: `rev` reads piped, redirected and file-argument input identically, and the cat/sed/awk/grep stdin matrix is unchanged.
- Fixed the intermittent failure of the frame-loop memory-footprint test (#290). Each frame-loop session opened its own Metal command queue. The first command buffer on a queue makes the GPU driver allocate a working set for it (about 45 MiB on an Apple M5 with Metal validation), and the driver frees it asynchronously 10–50 ms after the queue is released, so the process footprint read right after a session ended depended on how far that release had got. Measured immediately after each of 50 destroys, it ranged from 45 to 96 MiB; the unchanged test failed 5 times in 30 runs, with up to 26 MiB of apparent growth. There was no leak: one second after each destroy the footprint was back at the same floor every time. Frame-loop sessions now share one process-wide Metal device and command queue, so the working set is allocated once and kept: the same readings stay within 93–98 MiB across 50 sessions, and the unchanged test passed 30 runs in a row (largest growth 0.31 MiB). The cost is that the process keeps that GPU memory (about 50 MiB with validation, 58 MiB total footprint without) after its first frame loop. A new 50-session test (normal completion, pause and resume, destroy while running) checks the readings stay within 16 MiB; it fails without the fix.
- Stop ignoring `fixtures/pe/trusted-runner.exe`. The runner embeds it with `include_bytes!`, so ignoring the file made a fresh checkout fail to compile.
- Corrected the ARM64 STP pre-index encoder, which had a hardcoded -32-byte immediate and therefore adjusted the host stack by the wrong amount once the translator frame grew to 48 bytes. The wrong frame silently corrupted the caller's stack and caused SIGSEGV in every native translation test. Emitter encodings are now checked against LLVM's assembler, and a test asserts that each translated block opens and closes the same 48-byte frame.
- Translated guest memory faults now stop the block before it commits further architectural effects. A faulting push, call or store leaves guest RSP and registers unchanged, the reported instruction count covers only completed work, and guest RIP identifies the faulting instruction. Previously the block continued after the helper recorded a fault, so later instructions and writes still took effect.
- Compute the static PE probe SHA-256 from the full input, including trailing bytes.
- Report TLS callbacks that halt or exhaust their execution budget as failures. Reject unsupported 32-bit increment and decrement forms in the native translator.
- Reject unknown guest experiment arguments with a nonzero exit status.
- Validate branch targets, buffer bindings, and program termination throughout a shader fixture, including instructions skipped by a resolved branch.
- Include arithmetic right shift in fixture reassembly checks and let bootstrap continue when optional LLVM discovery fails.
- Corrected the gfx1030 three-way comparison and rejection counts in the instruction-coverage documentation to match the current LLVM test output.
### Removed
- Retired the standalone X1 prototype workspace after mapping all 40 tracked files to production CPU, PE, memory, service, graphics and test coverage. Its byte-built PE images and generators moved to `fixtures/pe/x1-legacy/` and remain in the parser test and CI generator checks; the prototype driver, its X7–X9 verify scripts and the separate CI commands were removed. The historical synthetic results and coverage map are in `docs/testing/x1-retirement.md`. No Xbox hardware, game execution or independent acceptance is claimed.
- Consolidated the unused standalone `scripts/qa/repo_health.py` helper into the advisory PR artifact check. That helper had no CLI, CI, documentation or production consumer and was exercised only by its own test; the tracked build-artifact and generated-artifact checks it offered are now covered by `check_artifacts`, with the equivalent assertions retained in the active PR-validation test. No CI gate, test assertion or golden vector was weakened.
- Removed the superseded Phase 01 continuation prompt and redundant planning instructions. Candidate verification records remain in the assurance documentation.
- Removed the speculative seven-phase roadmap from the README.
- `fclose` of a standard stream no longer stops the guest: it closes the underlying descriptor exactly as `_close` of it does, as the CRT does not reserve the standard streams on Windows (#1273). BusyBox awk closes its input when stdin reaches EOF before exit — every awk construct reading stdin to end-of-file died with the refusal sentinel, while output was still correct. The full measured matrix now passes: pipelines, file redirection, numeric processing, early exit and subsequent spawns. Local verification only.