2026-11-24 20:51:08 -06:00
# BetterXen documentation
2026-11-23 11:08:43 +05:30
## Getting started
Start with the [project README ](../README.md ) for scope and build commands,
then read the [interface contracts ](interfaces.md ). Reproduce an
[original guest test program ](../experiments/x1/README.md ) or run the
[independent validation suite ](../tests/validation/README.md ) before changing
either path. The [changelog ](../CHANGELOG.md ) records notable changes.
## Architecture and technical design
2026-11-24 14:59:33 +05:30
- [Interface contracts ](interfaces.md ) — Translated shader stages, guest services, native command submission, and synthetic textures.
2026-11-23 11:08:43 +05:30
- [Fixture memory model ](adr/0003-demo-memory-model.md ) and [CPU boundary ](adr/0004-cpu-boundary.md ) — Buffer bindings, guest address translation, and dependency direction.
2026-11-24 14:59:33 +05:30
## Native Metal graphics
- [Translated offscreen stages ](interfaces.md#translated-offscreen-stages ) — Translated vertex and pixel stages for the bounded gfx1030 subset.
- [Blend and depth passes ](interfaces.md ) — Native blend and depth graphics passes with per-draw state.
- [Apple GPU evidence ](research/apple-gpu.md ) and [host lab record ](research/host-lab.md ) — Observed behavior and historical floating-point results.
2026-11-23 11:08:43 +05:30
## RDNA 2 decoding and shader translation
- [Instruction coverage ](shaders/instruction-coverage.md ) — Desktop gfx1030 instruction forms, operand limits, and CPU and GPU results.
2026-11-24 03:32:41 -06:00
- [Semantic coverage ](shaders/semantic-coverage.md ) — Generated per-family counts of identified, declared, decoded, lowered and verified gfx1030 forms.
2026-11-24 01:35:53 -06:00
- [SOP2 scalar ALU ](shaders/scalar-alu.md ) — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
2026-11-24 03:39:17 -06:00
- [Semantic registry ](shaders/semantic-registry.md ) — How to add an instruction form: registry fields, validation, generation and the independence rule.
2026-11-24 09:41:08 -06:00
- [VOP1 vector unary and swap ](shaders/vector-unary.md ) — Wave32 integer bit operations, register exchange, and operand limits.
2026-11-24 10:06:08 -06:00
- [VOP2 select and carry ](shaders/vector-vcc.md ) — Wave32 lane selection, carry and borrow through the vector condition code.
2026-11-24 02:22:19 -06:00
- [VOPC integer compares ](shaders/vector-compare.md ) — Wave32 compare forms, the VCC/EXEC contract, runtime `s_cbranch_vccz` and the Metal mapping.
2026-11-23 11:08:43 +05:30
- [Metal Shading Language generation ](shaders/msl.md ) and [independent CPU reference ](shaders/reference-interpreter.md ) — Translation rules and separate CPU execution models.
## Guest CPU and runtime experiments
- [Guest experiment guide ](../experiments/x1/README.md ) — Bounded x86-64 execution, executable loading, experimental services, native compute, and offscreen rendering.
2026-11-24 12:36:52 +01:00
- [x86-64 instruction registry ](cpu/instruction-registry.md ) — Shared decoder, generated tables, semantics, native lowering and how to add a verified instruction form.
2026-11-24 13:29:40 +01:00
- [Runtime service registry ](runtime/registry.md ) and [generated coverage ](runtime/services.md ) — Import resolution, typed Win64 adapters and how to add a tested service.
2026-11-24 17:47:01 +01:00
- [Guest threads ](runtime/threads.md ) — Deterministic scheduler, thread services, limits and tests.
2026-11-23 11:08:43 +05:30
- [Guest CPU research ](research/cpu-boundary.md ) — Public specifications and unresolved console requirements.
2026-11-23 17:11:02 +05:30
- [Synthetic import fixtures ](../tests/compat_fixtures/README.md ) — Reproducible PE32+ builds and expected service behavior.
2026-11-23 11:08:43 +05:30
## Testing, validation, and benchmarks
2026-11-24 22:24:18 +05:30
- [Testing and acceptance index ](testing/README.md ) — Entry point for test procedures, evidence and review records.
2026-11-24 23:11:55 +05:30
- [AMD RDNA2 desktop GPU (gfx1030) form acceptance ](testing/shader-form-acceptance.md ) — Independence, command, log and promotion rules for fixture-verified instruction forms.
2026-11-23 11:08:43 +05:30
- [Engineering progress ](progress.md ) — Verification commands, metric definitions, and open release gates.
2026-11-24 23:11:07 +05:30
- [CPU test runtime and shard selection ](testing/cpu-coverage.md ) — Measured CPU gate cost and deterministic test-target shards.
2026-11-24 01:12:29 -06:00
- [Test inventory comparison ](testing/test-inventory.md ) — Detect missing or newly ignored Cargo tests across commits.
2026-11-23 17:11:02 +05:30
- [Persistent resource and translated rendering acceptance ](testing/x9-acceptance.md ) — Pinned upstream tests, native ARM64 results and unsupported cases.
2026-11-23 11:08:43 +05:30
- [Baseline acceptance ](testing/phase-02-baseline.md ), [Phase 01 assurance ](testing/phase01-assurance.md ), and [independent reviews ](testing/review-log.md ) — Candidate-specific results and release findings.
2026-11-24 17:42:04 +01:00
- [Gate A: a compiled C program ](testing/gate-a.md ) — The two milestones, what the A1 test checks and what it does not show.
2026-11-23 11:08:43 +05:30
- [Mutation testing ](testing/mutation.md ) and [benchmark protocol ](testing/benchmarks.md ) — Test sensitivity, benchmark inputs, and timing requirements.
## Research and engineering decisions
- [Public sources ](research/sources.md ), [RDNA 2 notes ](research/rdna2.md ), and [Xbox GPU evidence ](research/xbox-gpu.md ) — Specifications, evidence scope, and unknown console behavior.
- [Shader inputs ](research/shader-containers.md ) and [risk register ](risk-register.md ) — Input provenance and unresolved engineering risks.
2026-11-23 17:11:02 +05:30
- [Synthetic integration and upstream evidence ](research/synthetic-integration.md ) — Audited source snapshots and remaining commercial startup prerequisites.
2026-11-23 11:08:43 +05:30
## Security, licensing, and contributions
- [Threat model ](threat-model.md ) and [security reporting ](../SECURITY.md ) — Execution limits and disclosure instructions.
- [Legal scope ](legal.md ), [dependency licensing ](licenses.md ), and [third-party notices ](../THIRD_PARTY_NOTICES.md ) — Input policy, attribution, and redistribution findings.
- [Contribution guidelines ](../CONTRIBUTING.md ) — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements.
2026-11-24 00:09:38 -06:00
- [Agent task queue ](coordination/agent-tasks.md ) — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents.
2026-11-24 20:51:08 -06:00
- [CPU/runtime expansion campaign ledger ](coordination/cpu-campaign-ledger.md ) — Progress ledger for the BetterXen native CPU and runtime compatibility campaign: starting/current commits, completed batches, new forms, verification evidence and the next implementation target.
2026-11-24 17:08:19 +05:30
- [Infrastructure QA ownership ](coordination/infrastructure-qa-ownership.md ) — Non-overlapping paths for infrastructure and QA tooling.
- [Agent queue smoke evidence ](coordination/agent-queue-smoke.md ) — Live Actions results from the disposable smoke repository.
- [Infrastructure QA tooling ](testing/infrastructure/README.md ) — Advisory orchestration, PR validation, benchmark analysis and release checks.
2026-11-24 20:51:08 -06:00
- [Migration to BetterXen ](migration.md ): source attribution, imported history and compatibility names.