mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 23:30:44 +00:00
docs: overhaul project documentation and maintenance checks
Signed-off-by: Ranveer Soni <git@ranveersoni.me>
This commit is contained in:
29 files changed
+365
-814
No files matched your search
@@ -1,12 +1,12 @@
|
||||
# Dual-track baseline
|
||||
# GPU and guest execution evidence
|
||||
|
||||
The resumed checkout started clean on main at
|
||||
`4b9a4cecf35c8d4d90d8ecdb9c1510e7bd260102`, tracking origin/main.
|
||||
The diff since `5c479005b0e0631a608a369b9e41327da61bb61e` contains three
|
||||
documentation files. The baseline reuses the implementation evidence from
|
||||
that commit and retains the original attribution for every run. The
|
||||
[Phase 01 continuation](phase01-continuation.md) records G1–G15 individually.
|
||||
R1 has also [signed off G8 for Phase 01](review-log.md#phase-01-evidence-recheck-at-4b9a4ce). G9 passed for the Phase 01 candidate. G10–G12 and G15 remain open. Phase 01 is not release-ready.
|
||||
[Phase 01 assurance checkpoint](phase01-assurance.md) records the original release-gate definitions and results.
|
||||
The [independent claims audit (G8)](review-log.md#phase-01-evidence-recheck-at-4b9a4ce) and parser fuzzing (G9) passed for the Phase 01 candidate. Controlled benchmarks (G10), redistribution rights (G11), repository hygiene and contributor attestations (G12), and final independent acceptance (G15) remain open. Phase 01 is not release-ready.
|
||||
|
||||
The resumed host reported arm64, 16 GiB RAM, 276 GiB available disk,
|
||||
macOS 27.3 (26C5047e), Xcode 27.2 (27B52) and Rust 1.100.0.
|
||||
@@ -22,64 +22,26 @@ closes G5 and G7 for the Phase 01 candidate.
|
||||
|
||||
## Track A — GPU engineering
|
||||
|
||||
The [status manifest](../status.toml) enumerates 15 recognized and
|
||||
decoded gfx1030 forms. All 15 contribute to the verified fixture path.
|
||||
At the Phase 01 baseline, 15 recognized and decoded gfx1030 forms
|
||||
contributed to the verified fixture path. See the [current inventory](../shaders/instruction-coverage.md) for later additions.
|
||||
Forward scalar control is resolved when lifting to IR. The generated MSL
|
||||
embodies that resolution without emitting a dynamic GPU branch. The
|
||||
translated stage is compute, with lane-indexed 32-bit reads and writes to
|
||||
two disjoint buffers. The original native offscreen render test provides
|
||||
separate backend evidence. Preserve the [FP32 host evidence](../research/host-lab.md)
|
||||
and the exact positive normal FP32 subset.
|
||||
|
||||
Candidate first slice, pending Phase 01 decoder/compiler assurance:
|
||||
add the desktop gfx1030 VGPR-only integer OR form to the existing compute
|
||||
path. An original fixture can take inputs
|
||||
`[0x00000000, 0xffffffff, 0xaaaaaaaa, 0x80000000]`, OR each with
|
||||
`0x55555555`, and expect
|
||||
`[0x55555555, 0xffffffff, 0xffffffff, 0xd5555555]`.
|
||||
Homebrew LLVM 23.1.6 `llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx1030
|
||||
-show-encoding` assembled `v_or_b32_e32 v1, v2, v3` to bytes
|
||||
`02 07 02 38` and the all-`v255` form to `ff ff ff 39`. This is
|
||||
class E tool evidence. Before implementation, ISA and R2 must check the
|
||||
AMD definition and independently derive encoding and operand expectations.
|
||||
Use existing buffer bindings and negative operand tests. Acceptance
|
||||
requires decoder/IR/MSL integration, independent CPU and GPU readback,
|
||||
original regressions, changed-code assurance and matched measurements.
|
||||
Keep the work in a reversible patch with the baseline fixtures available
|
||||
unchanged. See the implementation checkpoint below for the resulting verification.
|
||||
separate backend evidence. The [host evidence](../research/host-lab.md) records why translation is limited to the documented subset of 32-bit floating-point operations (FP32).
|
||||
|
||||
## Track B — guest execution
|
||||
|
||||
| Milestone | Baseline status |
|
||||
| --- | --- |
|
||||
| X0 Native host bootstrap | Native host and Metal capability evidence exists in Phase 01. A standalone guest runtime driver is proposed. |
|
||||
| X1 First x86-64 instruction | Demonstrated on ARM64 macOS with both known-answer traces and six fault tests. |
|
||||
| X2 Executable and synthetic service | Independently demonstrated on ARM64 with the original fixed-base PE32+ fixture and synthetic add-one service. |
|
||||
| X3 Guest GPU command | Independently verified from the original PE through the shared loader, interpreter and native Metal. |
|
||||
| X4 Guest-driven Metal frame | Independently verified on Apple M5 from original guest PE through RGBA8 texture readback. |
|
||||
| X5 Authentic Xbox boundaries | Blocked on public or authorized interfaces and test inputs. |
|
||||
| X6 First real-title validation | Blocked on X5 and suitable project test inputs. User import follows the [game file policy](../legal.md#user-provided-game-files). |
|
||||
| X7 Genuine GTA VI intro/title screen | Blocked. The runtime path and suitable project test inputs are unavailable. |
|
||||
|
||||
Track B research can proceed while Phase 01 gates remain open. The
|
||||
[CPU feasibility report](../research/phase02-cpu-feasibility.md) proposes
|
||||
an original interpreter with a 16-instruction budget, two branch paths
|
||||
and exact register, flag and memory expectations. Keep the original
|
||||
CPU test independent of graphics crates until the CPU, loader and
|
||||
synthetic service contracts are verified.
|
||||
|
||||
The [KyTx and Leonida review](../research/phase02-collaboration.md)
|
||||
pins the inspected sources and proposes an original Wave64/EXEC
|
||||
fixture as the first collaboration. It is a separate fixture proposal
|
||||
from the initial Track A OR slice. Acceptance requires file-level
|
||||
provenance and independent lane expectations. Leonida's decoder and
|
||||
loader are design references. No upstream component was adopted.
|
||||
|
||||
The [ecosystem shortlist](../research/phase02-ecosystem.md) screens
|
||||
eight additional upstream repositories and ranks five original
|
||||
experiments. Its highest-ranked differential compute experiment can
|
||||
use the selected OR slice with a bitwise mutation and independently
|
||||
derived lane outputs. Emulator code, ports, tables and internal metadata are outside scope.
|
||||
| Native host bootstrap (X0) | Phase 01 recorded native host and Metal capability evidence. |
|
||||
| Native guest instruction execution (X1) | Demonstrated on ARM64 macOS with both known-answer traces and six fault tests. |
|
||||
| Executable loading and synthetic service dispatch (X2) | Independently demonstrated on ARM64 with the original fixed-base PE32+ fixture and synthetic add-one service. |
|
||||
| Guest-to-GPU command submission (X3) | Independently verified from the original PE through the shared loader, interpreter and native Metal. |
|
||||
| Guest-driven Metal rendering (X4) | Independently verified on Apple M5 from original guest PE through RGBA8 texture readback. |
|
||||
| Authentic Xbox interfaces (X5) | Blocked on public or authorized interfaces and test inputs. |
|
||||
| Commercial title validation (X6) | Blocked on authentic Xbox interfaces and suitable project test inputs. User import follows the [game file policy](../legal.md#user-provided-game-files). |
|
||||
| Historical stretch goal for a commercial title (X7) | Blocked. The runtime path and suitable project test inputs are unavailable. |
|
||||
|
||||
## Phase 02 acceptance
|
||||
|
||||
|
||||
@@ -68,3 +68,21 @@ shaders and required a completed output mismatch after a matching unmodified
|
||||
baseline. Compile errors, crashes, validation failures and timeouts cannot
|
||||
count as semantic kills. Game execution, proprietary console containers,
|
||||
full guest execution-mask divergence and a guest CPU runtime are unsupported.
|
||||
|
||||
## Follow-up evidence at 5c47900
|
||||
|
||||
The affected campaign finished with exit 0 after 601 seconds and
|
||||
244,422,168 executions. No crash, hang or sanitizer failure was recorded.
|
||||
It used native nightly Rust and cargo-fuzz 0.13.2. The transcript SHA-256
|
||||
is `ea81caf9495b57fc617d6470d3cac0488e59d1d727f16bbe8eda470987333a28`. It ran at aff46b0 with the same fuzz inputs as 5c47900.
|
||||
|
||||
### Integrated candidate checks
|
||||
|
||||
All commands in `artifacts/assurance-5c47900/commands.log` completed with
|
||||
exit 0. This includes 54 workspace tests, the separate LLVM oracle, 12
|
||||
validated GPU tests, three end-to-end demos, 12 semantic mutant kills,
|
||||
native and dependency audits, and claims and generated status checks.
|
||||
The oracle-only campaign killed 44/44 in 23 seconds. Each outcome has
|
||||
a named Rust test failure. All seven prior oracle survivors were killed.
|
||||
This closes the observed oracle test gaps. The full source score stays
|
||||
attached to aff46b0 and G7 was open at this checkpoint. The later [integrated campaign](mutation.md#integrated-source-campaign-at-4b9a4ce) records its closure.
|
||||
@@ -1,115 +0,0 @@
|
||||
# Xenora Phase 01 continuation for Sol
|
||||
|
||||
This historical handoff records Phase 01 at the prior checkpoint. The
|
||||
[dual-track baseline](phase-02-baseline.md) records the active scheduling
|
||||
and preserves the gates below. See the [integrated R2 review](mutation.md#integrated-source-campaign-at-4b9a4ce) for the subsequent G5 and G7 closure.
|
||||
|
||||
Continue Phase 01 only in `~/Developer/Xenora`. Read the current AGENTS.md,
|
||||
the Master Engineering Prompt V3 including section 40, and the
|
||||
[assurance record](phase01-assurance.md). Preserve local commits and ignored
|
||||
evidence. Do not push, publish, rewrite history, or start Phase 02.
|
||||
|
||||
**NOT RELEASE-READY.** Latest validated implementation candidate
|
||||
`5c479005b0e0631a608a369b9e41327da61bb61e` was clean on main, four commits
|
||||
ahead of origin/main before this documentation handoff. Run
|
||||
`git status --short --branch` and `git rev-parse HEAD` first.
|
||||
|
||||
| Gate | Status | Evidence or blocker |
|
||||
| --- | --- | --- |
|
||||
| G1 | PASS | Native audit at aff46b0 checked 15 ARM64 workspace binaries/dependencies, no translation or Vulkan/MoltenVK. Exact integrated rerun in `artifacts/assurance-5c47900/native.log` when available. |
|
||||
| G2 | PASS | Integrating 5c47900 passed format, all-target/all-feature Clippy with warnings denied, 54 default tests, two LLVM tests opt-in. Logs under `artifacts/r2-review-aff46b0/integrated-*` and exact candidate rerun under `artifacts/assurance-5c47900/`. |
|
||||
| G3 | PASS | On aff46b0, Apple M5 passed 12 native tests with zero skips and both validation layers active. `artifacts/assurance-aff46b0/gpu.log`. |
|
||||
| G4 | PASS | All three unchanged original shaders matched CPU reference and known answers on aff46b0. `artifacts/assurance-aff46b0/demo.log`. |
|
||||
| G5 | BLOCKED | Integrated second-oracle suite passed 13 tests. R1 independently verified the integer FP32 proof and 20 rational boundary expectations. The latest locked candidate and oracle-only checks passed. Record final R2 sign-off. |
|
||||
| G6 | PASS | R2 signed off on 303 comparisons across 15 forms, three malformed and six subset probes using Homebrew LLVM 23.1.6. Oracle inputs unchanged in 5c47900. |
|
||||
| G7 | BLOCKED | Full source result applies only to aff46b0. The latest independent oracle-only rerun killed 44/44. The full source campaign on the integrated candidate remains pending. |
|
||||
| G8 | BLOCKED | Claims lint passed with 20 entries, A4/B6/D7/E2/U1. Register AMD branch displacement and correct interpreter evidence scope, then finish independent prose audit. |
|
||||
| G9 | BLOCKED | Historical three campaigns totaled 435,803,394 executions in 1,803 seconds. Refreshed fixture passed 244,422,168 executions in 601 seconds. Decoder/reference historical logs lack full candidate provenance. |
|
||||
| G10 | BLOCKED | Exploratory AC run used cc0daa7, two warmups, 21 reps per size, release and validation off. Idle state unestablished. Complete corpus, stage and cold/warm timings, tool/capability metadata and variability protocol. |
|
||||
| G11 | BLOCKED | SDK-derived binding redistribution and pinned attribution unresolved. Preserve objc2 and notices. No licensing clearance or binary publication. |
|
||||
| G12 | BLOCKED | Strict fsck and scoped secret, path and build-artifact scans passed. Post-policy DCO attestations remain outstanding. See latest `hygiene.log`. |
|
||||
| G13 | PASS | R1 passed generated status and claims consistency checks at 5c47900. CI invokes the check. |
|
||||
| G14 | PASS | CPU boundary ADR and transitive check across five graphics crates passed. |
|
||||
| G15 | BLOCKED | R1 and R2 reported independently. Open source revalidation, claims, benchmark and licensing findings prevent final closure. |
|
||||
|
||||
## G7 evidence
|
||||
|
||||
The independently audited aff46b0 campaign generated 399 mutations. Raw
|
||||
counts were 360 caught, 13 missed, 25 unviable and one timeout. The 13
|
||||
misses are proven equivalents and the 25 unviables are rustc failures.
|
||||
One raw caught mutant was a reference non-progress SIGKILL without a
|
||||
behavioral assertion. Count 359/361 = **99.45%**, retaining both
|
||||
non-progress cases in the denominator. Read
|
||||
[the full report and per-mutant proofs](mutation.md). Raw ledger and
|
||||
outcomes are in `artifacts/mutation/source-aff46b0/`.
|
||||
|
||||
The 12 semantic GPU mutations returned different outputs by design.
|
||||
Every unmodified shader matched its independent known answers. The
|
||||
aff46b0 oracle-only campaign caught 37 of 44. New independent witnesses
|
||||
for all seven gaps are committed at 5c47900. Do not transfer the old
|
||||
source score to the changed test suite.
|
||||
|
||||
## Resume in this order
|
||||
|
||||
1. Inspect `artifacts/assurance-aff46b0/fuzz/{environment.log,fixture.log,fixture.exit,fixture.finished}`.
|
||||
The 600-second fixture job started on clean aff46b0. The relevant
|
||||
source, dependency, fixture and fuzz inputs are identical at 5c47900
|
||||
as checked in `artifacts/assurance-5c47900/fuzz-input-diff.log`.
|
||||
Preserve raw historical logs under `artifacts/g9/`.
|
||||
2. Inspect `artifacts/assurance-5c47900/{commands,exits,oracle}.log`
|
||||
and `artifacts/mutation/oracle-5c47900/mutants.out/`. The oracle-only
|
||||
campaign and exact-candidate checks were queued after fuzz. If already
|
||||
complete, use the logs. Preserve both candidate epochs.
|
||||
3. Run the complete source campaign once against the integrated candidate.
|
||||
Independently inspect every survivor, timeout, invalid and non-assertion
|
||||
failure. Close G5/G7 only after appropriate candidate review.
|
||||
4. Finish G9 provenance, G8 prose audit, G10 protocol and G15 sign-off.
|
||||
Keep G11 blocked until actual resolution.
|
||||
|
||||
```sh
|
||||
cd ~/Developer/Xenora
|
||||
git status --short --branch
|
||||
git rev-parse HEAD
|
||||
export CARGO_BUILD_JOBS=2
|
||||
export LLVM_BIN="$(brew --prefix llvm)/bin"
|
||||
export PATH="$LLVM_BIN:$PATH"
|
||||
candidate="$(git rev-parse --short HEAD)"
|
||||
cargo test --locked -p xenora-semantic-review
|
||||
cargo mutants --file crates/ref/src/lib.rs \
|
||||
--re ' in (vector_alu|execute_lane)$|replace (vector_alu|execute_lane) ->' \
|
||||
--test-package xenora-semantic-review --jobs 2 --timeout 60 \
|
||||
--output "artifacts/mutation/oracle-$candidate"
|
||||
scripts/mutation.sh "artifacts/mutation/source-$candidate"
|
||||
```
|
||||
|
||||
Perform needed campaigns serially. If affected fixture evidence is
|
||||
missing, use `scripts/fuzz.sh fixture 600`. For exact candidate provenance
|
||||
of the other two targets, use `scripts/fuzz.sh instruction_stream 600`
|
||||
then `scripts/fuzz.sh reference 600`, capturing individual exit codes.
|
||||
For remaining short integration and native checks use the commands in
|
||||
[the assurance checkpoint](phase01-assurance.md).
|
||||
|
||||
The AC report is
|
||||
[run 1795352394](../../benchmarks/results/apple-m5/run-1795352394/report.md).
|
||||
Binding rights and notice blockers are in [the license inventory](../licenses.md).
|
||||
Only original bounded synthetic gfx1030 compute fixtures are supported.
|
||||
Game execution, proprietary guest containers, full guest mask divergence
|
||||
and a guest CPU runtime remain unsupported.
|
||||
|
||||
## Completed fixture refresh
|
||||
|
||||
The affected campaign finished with exit 0 after 601 seconds and
|
||||
244,422,168 executions. No crash, hang or sanitizer failure was recorded.
|
||||
It used native nightly Rust and cargo-fuzz 0.13.2. The transcript SHA-256
|
||||
is `ea81caf9495b57fc617d6470d3cac0488e59d1d727f16bbe8eda470987333a28`. It ran at aff46b0 with the same fuzz inputs as 5c47900.
|
||||
|
||||
## Exact integrated candidate results
|
||||
|
||||
All commands in `artifacts/assurance-5c47900/commands.log` completed with
|
||||
exit 0. This includes 54 workspace tests, the separate LLVM oracle, 12
|
||||
validated GPU tests, three end-to-end demos, 12 semantic mutant kills,
|
||||
native and dependency audits, and claims and generated status checks.
|
||||
The oracle-only campaign killed 44/44 in 23 seconds. Each outcome has
|
||||
a named Rust test failure. All seven prior oracle survivors were killed.
|
||||
This closes the observed oracle test gaps. The full source score stays
|
||||
attached to aff46b0 and G7 remains open for the integrated candidate.
|
||||
Reference in new issue
Block a user