Files
betterxen/CHANGELOG.md
T
2026-11-25 14:48:58 -06:00

127 KiB
Raw Blame History

Changelog

Notable changes are grouped using Keep a Changelog. Experimental interfaces may change. Authorized releases should identify their exact revision and known limitations.

[Unreleased]

Guest execution uses original, purpose-built test programs. Commercial Xbox game execution remains unsupported.

Added

  • Added the upstream research registry and component reuse matrix (docs/research/), a public-documentation review (evidence class D, nothing executed) of CrossOver, Wine, DXMT, DXVK, VKD3D-Proton, MoltenVK, FEX, VIctory, VIctory-macOS and PortWatch. VIctory-family projects are excluded from reuse on provenance grounds. The GitHub project board is not yet configured because the token lacks the project scope (#346).
  • Added hybrid research records: docs/research/hybrid-backlog-research-2026-11-25.md (findings and registry candidates, from search summaries) and docs/research/primary-source-verification-2026-11-25.md (re-check against CodeWeavers, Apple, DXMT and Wine primary pages). It confirms CrossOver's backend list, finds no public documentation of CX_GRAPHICS_BACKEND, and records that two Apple notices on Rosetta's end disagree; D3DMetal's license text and CrossOver's Rosetta and ARM64 plans remain unverified. Eleven issues created from the research were reviewed the same day: #364 and #365 stay in Phase 1, the others are parked and recorded under "Parked ideas" in the roadmap. Rust 1.100.0 (already installed) is the required toolchain; the default stable was 1.94.1. Planning only; nothing was installed or run.
  • Added File > Open Executable… with Command-O to the app (#252). It opens the focused window's read-only file importer, the same one as that window's button, and is disabled when no window can present it; each window keeps its own importer, so with several windows only the focused one shows the picker. The chosen file goes through the same inspection path as the button, drag and drop and Finder Open With; nothing is executed. A file-importer failure is now shown in red with the system's description instead of being ignored, a cancelled picker shows nothing, and the message clears on the next selection. BetterXen --smoke-import-result, run by scripts/build-app.sh, checks cancellation, a shown failure and its clearing; it fails on the previous importer handling. Checked locally on Apple Silicon in the running app (Command-O and the menu item open the picker, cancel shows no error, a second Command-O opens it again, with two windows only the focused one presents it, and with every window closed the menu item is disabled); not yet independently reviewed.
  • Added docs/research/texture-formats.md, an inventory of the texture formats and layouts BetterXen handles (#260). For BC1–BC7, RGBA8 and Depth32Float it separates container recognition, CPU decoding, layout conversion, native Metal upload and readback, translated sampling, the host-side D3D12-shaped API (called from Rust, not wired to guest imports) and guest reachability through imported services, and links each cell's implementing files and tests and each format's exact public specification sections, including the packed BC footprints from #241. It cross-references #208 and #209 instead of opening duplicate tasks, lists console layouts, console descriptors and asset or audio containers as unknowns, and ranks three proposed follow-ups with fixture recipes and owners. Research only; no implementation changed.
  • Rewrote the README around the six development phases and the first-launchable-application target (#311), with colour-coded Mermaid diagrams (system flow, milestone roadmap, CPU, runtime-service and shader-form charts built from the generated registries), badges, a repository overview, a contributing section and corrected texture-sampling wording. The older X1–X25 capability map is kept in a collapsible section. The diagrams were not render-tested locally.
  • Added a fast "Repository hygiene" check (.github/workflows/hygiene.yml, scripts/audit/docs_hygiene.py). It runs on Ubuntu without a Rust toolchain or network access and fails only on merge-conflict markers, broken relative Markdown links and invalid workflow YAML in tracked files. A separate advisory step warns, without failing, when source or script changes have no changelog entry. A local run over the 626 tracked files found no problems, and planted failures of each kind were caught; it has not yet run on GitHub.
  • Documented the proposed guest AVX/AVX2 state and decoding contract and specified an original integer fixture with known results and fault controls (#299).

Removed

  • Removed the "Agent PR checks" workflow (.github/workflows/agent-pr-checks.yml), its section in docs/coordination/agent-tasks.md and the four workflow tests in tests/agent_queue/test_workflows_cli.py that only exercised it. Pull requests are no longer checked for Closes #N, task file patterns or /verified comments; the claims workflow and its tests are unchanged. The agent queue Python tests pass locally (85 tests).
  • Removed the "PR template" check (.github/workflows/pr-template.yml, scripts/pr_template_check.py and its tests) and its CI test step. Also removed .github/PULL_REQUEST_TEMPLATE.md. Pull request descriptions are no longer validated or pre-filled; CONTRIBUTING.md still asks for the same information and the claim-first rule still applies.

Changed

  • Replaced the native-first development plan with a CrossOver-based hybrid roadmap (docs/roadmap.md: five provisional phases, only Phase 1 active; the earlier H0 to H7 breakdown is archived) and an accepted-direction ADR 0005. No hybrid component exists yet and no Xbox title is shown to run; this is planning and research scheduling only, and no phase is verified complete.
  • Rewrote the engineering rules in AGENTS.md (CLAUDE.md is a symlink to it) to permit CrossOver, Wine-based infrastructure, Rosetta 2 and D3DMetal subject to licensing, while keeping the honesty, independent-verification, provenance and clean-room rules and adding dependency and reuse rules. Resolves #345.
  • Native work is preserved and paused: tag native-first-final marks the last main commit before this change, docs/research/native-roadmap.md, and archived native-first plan and milestones under docs/archive/. GitHub backlog: all native issues except four with assigned contributors and open pull requests were closed as not planned and indexed in docs/research/native-issue-archive.md; future-phase issues were parked in the roadmap; only the Phase 1 milestone is open.
  • Replaced the issue templates with hybrid task, bug, research, performance, validation and documentation forms and added a pull request template. Fixed invalid YAML in the agent-task template. README, CONTRIBUTING and the docs index now describe the hybrid direction.
  • Replaced our own references to a specific commercial game title (README non-affiliation line, research and integration notes, ignored diagnostics folder names) with generic "commercial title" wording. The ignored folder names are now diagnostics/title-candidate-* and diagnostics/title-check. Third-party repository names, URLs and code-span paths in research notes are unchanged so their provenance stays accurate. Our own prose references to the upstream project formerly named in the research notes now read "PE-Vulkan project". Added the PortWatch native-macOS research notes. No behavior change.
  • TLS setup now copies templates from 64 KiB up to 1 MiB straight into the zeroed thread data block, after checking that every template byte is readable, instead of staging them in a second buffer (#111). The pointer array and data block layout, the TLS index write and the error for an unreadable template are unchanged, and nothing is mapped when the template cannot be read. On an Apple M2 Pro, median setup time for original synthetic templates over 31 interleaved samples fell by 21.7 % at 64 KiB, 19.0 % at 256 KiB and 14.2 % at 768 KiB. Smaller and larger templates keep the single staged read and showed no change beyond run-to-run variation.
  • Removed the contributor avatar section from the README.
  • Added .github/CODEOWNERS so pull requests request review from the MacosPorters/maintainers team. With the main branch rule that requires code-owner review, a maintainer must approve each change before it merges.
  • Repaired destination issue links in 20 migrated PR descriptions while retaining the imported text, attribution and contributor certifications. Template and review requirements remain in place.
  • Moved 163 unused migration PR refs from branches to verified archive tags, retaining the 22 open-PR branches. Historical refs no longer clutter the branch list or produce recent-push PR prompts.
  • Renamed the project branding and native app and primary CLI package/binary to BetterXen (betterxen), and updated active repository links to MacosPorters/betterxen. Legacy xenora-* library packages and synthetic guest ABI names remain for compatibility. Upstream licenses, notices and historical evidence are retained.
  • 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 ARM64 assembler uses one 32-bit MOVN for zero-extended constants such as 0xFFFF1234 that previously took two wide moves (#89). On an Apple M1 Pro, a synthetic workload with 4,096 affected loads emitted 163,920 native bytes, down from 180,304 (9.1%). The native tests verify the encoding and the full 64-bit register result.
  • 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.
  • 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.
  • 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.

Fixed

  • Fixed the app's executable inspector so a late result from an earlier selection can no longer replace a newer one (#251). 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. BetterXen --smoke-inspection-order, run by scripts/build-app.sh, drives the model with an injected reader that blocks until the check releases each file, so the check (not timing) decides which read finishes first; it checks a stale success, a stale failure and a busy state held for the newer request, and all four checks fail without the change. Checked locally on Apple Silicon; not yet independently reviewed.
  • Startup reports now reject existing destinations before guest execution, surface journal write failures, and preserve late errors alongside signal termination.
  • Restored the DBT benchmark report-test fixture after the cache-invalidation counter was added. Its existing percentile, JSON and comparison tests now run in ordinary workspace CI instead of requiring a separate benchmark test-harness command.
  • DBT cache hits now compare an executable-generation token instead of rereading every instruction byte. Address-space or executable-memory changes trigger byte and execute-permission revalidation before a translation can be reused; changed code is retranslated. Ordinary data writes retain the fast path. Tests cover cloned spaces, loader bypass writes, split writes, remapping and bounded cache exhaustion. Same-dispatch self-modification and discarded-code reclamation remain unsupported.
  • Gate A2 checks the cross-compiler driver before invoking it, then checks its helpers before fixture compilation. CI also verifies the driver architecture before requesting its version.
  • 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.
  • 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.
  • 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.
  • 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.

Added

  • Added opt-in betterxen run --startup-report <path> JSON diagnostics with the last observed startup stage, fixture verification outcome and preserved failure or termination detail (#255).

  • Added a Native app build and smoke CI job (#248). 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 C ABI library and the Swift app together, bundles and ad-hoc signs BetterXen.app, and runs its --smoke check, so a Swift compile, link or smoke failure is designed to fail CI (implemented and verified locally; not yet shown on a CI run). scripts/build-app.sh also prints file and a single otool -L listing for the executable, fails if that listing fails or is empty, and fails if the executable links any library outside /System/Library/ and /usr/lib/, naming bundle-relative (@rpath, @executable_path, @loader_path) entries separately (checked locally against stubbed failing, empty, bundle-relative and non-system listings). The job is an app build and smoke result; it runs no Metal fixture and is not GPU verification.

  • Added a CPU and loader coverage map (#154) with decoder inventory, native and shared execution paths, and test counts from a pinned Apple M5 run.

  • Recorded the migrated PR integration decisions, native verification and scope exclusions in the testing documentation.

  • 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 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.

  • The gfx1030 identification benchmark fixture now runs as an ordinary integration test, so workspace tests check LLVM-derived names, families, lengths and byte boundaries without invoking a timing run.

  • 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 Win64 ABI regression showing that a service may write the caller-allocated shadow space. Existing negative controls cover nonvolatile XMM-register corruption; the unchanged-home-slot test now describes its handler rather than implying an ABI preservation requirement.

  • Added a BetterXen development phase plan based on current source, pending PRs and existing acceptance records, linked from both contributor entry points. It separates baseline reconciliation, hosted C execution, guest threading, translated rendering, application integration and measured optimization; no new runtime or compatibility acceptance is claimed.

  • 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.

  • 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 stack alignment before CALL and at callee entry (RSP % 16 == 8), accessibility of the caller-allocated 32-byte shadow space, 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.

  • dbt_bench can compare two of its JSON documents when XENORA_DBT_BENCH_COMPARE=<baseline.json>,<candidate.json> 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.

  • 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.

  • 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 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).

  • dbt_bench can also write its results as one JSON document when XENORA_DBT_BENCH_JSON=<path> 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.

  • 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 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 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. Critical sections, SRW locks, condition variables and Sleep do not block per thread yet. See docs/runtime/threads.md.

  • 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 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.

  • 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 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 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 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 <file> 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 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 <head sha>), 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 <full head sha> 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.

Changed

  • 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.

Fixed

  • 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.

  • 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).

  • 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.

  • 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.

  • 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.

  • 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).

  • Fixed older import-generator templates that reported success for unimplemented wrappers, used a nonexistent exit reason, and read floating-point arguments from integer registers.

  • 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.

  • Generated CRT adapters now report unsupported calls when the required guest ABI or runtime behavior is missing.

  • 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.

[X18] - Automated Import Compatibility Generation & Metadata Ingestion

Guest execution uses original, purpose-built test programs. Commercial Xbox game execution remains unsupported.

Added

  • Added xenora-import-gen deterministic code generation crate and xenora imports generate <--pe <exe> | --csv <file>> [--out <dir>] 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 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 <path>) 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.

Changed

  • 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

  • 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

  • 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.