A1, A11: audit tools/ and docs/evidence #359

Open
opened 2026-11-28 02:03:06 +00:00 by NickStallman · 2 comments
NickStallman commented 2026-11-28 02:03:06 +00:00 (Migrated from github.com)
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T02:03:06Z.


Taking audits A1 (tools/) and A11 (docs/ and evidence/) from ROADMAP.md, following "How an audit runs".

  • A1: which of the 159 check scripts and 31 tools/reference/ patch files still run, which the check runners call, and which are one-title or dead.
  • A11: per-fix notes that are history rather than guidance, and evidence nothing regenerates.

The findings list comes here first, under the roadmap's headings, with no changes. Then small cleanup PRs, one kind of change each. Every removal is proven: nothing references it and the part's checks pass on both cards.

<!-- greyfinch-sync:brcly/TuxBox:issue:6657544966 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/359). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T02:03:06Z. --- Taking audits A1 (`tools/`) and A11 (`docs/` and `evidence/`) from [ROADMAP.md](../blob/main/docs/ROADMAP.md#part-2-the-audit), following "How an audit runs". - **A1:** which of the 159 check scripts and 31 `tools/reference/` patch files still run, which the check runners call, and which are one-title or dead. - **A11:** per-fix notes that are history rather than guidance, and evidence nothing regenerates. The findings list comes here first, under the roadmap's headings, with no changes. Then small cleanup PRs, one kind of change each. Every removal is proven: nothing references it and the part's checks pass on both cards.
NickStallman commented 2026-11-28 02:19:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T02:19:42Z.


These are the findings for A1 and A11. Nothing is changed yet, per the roadmap. They were measured read-only on main at 29a79825.

What runs

  • check.py calls two tools: check_d3d12_regressions.py and check_translator_gpu.py. The translator runner calls 39 more. CI runs only the unit tests and cargo.
  • 151 of the 226 tool files are reached by neither a runner nor a test.
  • All 202 command-line tools pass --help. check_scalar_encodings.py also ran for real and passed (77 encodings).
  • Every Frosty check reads the archive through global_archive(), which requires the exact SHA-256.

Generated evidence

  • tuxbox.py status reads 93 of the 535 evidence files. RESULTS.md and progress.svg regenerate byte for byte.
  • 90 evidence files are referenced by nothing. 307 of the 488 JSON receipts don't name the script that wrote them.

Findings per heading

Heading A1 (tools/) A11 (docs/, evidence/)
Dead code 5 4
Two answers to one problem 7 2
Title-specific code 4 2
Vendor checks 2 (none choose a code path by vendor) 0
Tests 6 3
Documentation 4 7
Rules 3 4

Proposed first cleanups, safest first, each its own small PR

  1. Orphaned receipts that nothing reads or references:
    • evidence/rx6950xt-gpu-controls/ (6);
    • evidence/providers/: pixevt-*, pixlivemerge-*, xdxr-factory-abi and xtf-assert-* (8);
    • evidence/matrix-awakens/ (76), after a git log -S check for docs that once cited them.
  2. Four receipts naming scripts never on main (tools/homebrew/*, tools/rdna2spirv.py, tools/shader_disasm.py).
  3. tools/reference/tombox-state-object-diagnostic.patch and tools/trace_wine_exports.py, which nothing references.
  4. Docs:
    • ENVIRONMENT.md lists TUXBOX_PROVIDER as an environment variable, but it's a Python constant;
    • TUXBOX_TRACE_XMEM_BACKING (runtime/xmem/src/physical_pages/backing.rs:253) is undocumented.
  5. Merges:
    • the 21 check_xg_texture*.py scripts into one table-driven script (each copy differs in only 24–28 lines);
    • the 8 check_xmem_*_native.py scripts into one (81–90% alike).
  6. The 18 SCARLETT_*.md per-fix notes, about 2,500 lines with no inbound links. Their "how to run" text moves into the tools' --help, and the rest stays in git history.
  7. Two renames:
    • frosty_gpu_guest.py becomes gpu_guest.py, since 61 tools use it, including title-neutral translator checks;
    • the constant-buffer Vulkan layer, which the launcher builds for every title from tools/reference/cbv-layer, moves under runtime/.

For you to decide

  • The TomBox patch stack doesn't apply to brcly/TomBox ca6cf6a6 (= master). The documented git apply loop stops at patch 3, raytracing-batch. With fuzz, 26 of 27 apply and media-copy fails. Remove the 30 patches and their scripts, or fix them against a published commit?
  • Matrix Awakens: is that work still active? It decides the 58 check_frosty_* scripts.
  • Title screenshots: 45 of them (7.7 MB) sit in evidence/matrix-awakens/, while AGENTS.md says not to commit captures. Does the rule cover screenshots?
  • The Proton fork path for constant-buffer offsets: does it still have users, or is the Vulkan layer enough?
  • The ScarlettX patch targets a repository with no licence.

Not checked: the Rust-backed scalar oracles, whether the two Proton patches still apply, and GPU timing.

I'll start with items 1–4 unless you'd rather we didn't.

<!-- greyfinch-sync:brcly/TuxBox:comment:7232287744 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/359#issuecomment-7232287744). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T02:19:42Z. --- These are the findings for A1 and A11. Nothing is changed yet, per the roadmap. They were measured read-only on `main` at `29a79825`. **What runs** - `check.py` calls two tools: `check_d3d12_regressions.py` and `check_translator_gpu.py`. The translator runner calls 39 more. CI runs only the unit tests and cargo. - 151 of the 226 tool files are reached by neither a runner nor a test. - All 202 command-line tools pass `--help`. `check_scalar_encodings.py` also ran for real and passed (77 encodings). - Every Frosty check reads the archive through `global_archive()`, which requires the exact SHA-256. **Generated evidence** - `tuxbox.py status` reads 93 of the 535 evidence files. `RESULTS.md` and `progress.svg` regenerate byte for byte. - 90 evidence files are referenced by nothing. 307 of the 488 JSON receipts don't name the script that wrote them. **Findings per heading** | Heading | A1 (`tools/`) | A11 (`docs/`, `evidence/`) | |---|---:|---:| | Dead code | 5 | 4 | | Two answers to one problem | 7 | 2 | | Title-specific code | 4 | 2 | | Vendor checks | 2 (none choose a code path by vendor) | 0 | | Tests | 6 | 3 | | Documentation | 4 | 7 | | Rules | 3 | 4 | **Proposed first cleanups, safest first, each its own small PR** 1. Orphaned receipts that nothing reads or references: - `evidence/rx6950xt-gpu-controls/` (6); - `evidence/providers/`: `pixevt-*`, `pixlivemerge-*`, `xdxr-factory-abi` and `xtf-assert-*` (8); - `evidence/matrix-awakens/` (76), after a `git log -S` check for docs that once cited them. 2. Four receipts naming scripts never on `main` (`tools/homebrew/*`, `tools/rdna2spirv.py`, `tools/shader_disasm.py`). 3. `tools/reference/tombox-state-object-diagnostic.patch` and `tools/trace_wine_exports.py`, which nothing references. 4. Docs: - `ENVIRONMENT.md` lists `TUXBOX_PROVIDER` as an environment variable, but it's a Python constant; - `TUXBOX_TRACE_XMEM_BACKING` (`runtime/xmem/src/physical_pages/backing.rs:253`) is undocumented. 5. Merges: - the 21 `check_xg_texture*.py` scripts into one table-driven script (each copy differs in only 24–28 lines); - the 8 `check_xmem_*_native.py` scripts into one (81–90% alike). 6. The 18 `SCARLETT_*.md` per-fix notes, about 2,500 lines with no inbound links. Their "how to run" text moves into the tools' `--help`, and the rest stays in git history. 7. Two renames: - `frosty_gpu_guest.py` becomes `gpu_guest.py`, since 61 tools use it, including title-neutral translator checks; - the constant-buffer Vulkan layer, which the launcher builds for every title from `tools/reference/cbv-layer`, moves under `runtime/`. **For you to decide** - **The TomBox patch stack** doesn't apply to brcly/TomBox `ca6cf6a6` (= `master`). The documented `git apply` loop stops at patch 3, `raytracing-batch`. With fuzz, 26 of 27 apply and `media-copy` fails. Remove the 30 patches and their scripts, or fix them against a published commit? - **Matrix Awakens:** is that work still active? It decides the 58 `check_frosty_*` scripts. - **Title screenshots:** 45 of them (7.7 MB) sit in `evidence/matrix-awakens/`, while AGENTS.md says not to commit captures. Does the rule cover screenshots? - **The Proton fork path for constant-buffer offsets:** does it still have users, or is the Vulkan layer enough? - **The ScarlettX patch** targets a repository with no licence. **Not checked:** the Rust-backed scalar oracles, whether the two Proton patches still apply, and GPU timing. I'll start with items 1–4 unless you'd rather we didn't.
brcly commented 2026-11-30 11:37:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T11:37:55Z.


@NickStallman, sorry these sat without an answer. The findings look right, so please go ahead with the cleanup PRs as the roadmap describes: one kind of change each, and every removal proven unreferenced with the checks for that part passing.

Since there are 151 unreached tool files, I'd start with the ones that are clearly one-off or dead (patch files and scripts for fixes that have landed). Before removing a check script that no runner calls but that a doc or an evidence file names, check whether the evidence still needs regenerating from it. Anything RESULTS.md derives from must keep a way to be rebuilt.

<!-- greyfinch-sync:brcly/TuxBox:comment:7277301091 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/359#issuecomment-7277301091). Originally posted by [brcly](https://github.com/brcly) on 2026-11-30T11:37:55Z. --- @NickStallman, sorry these sat without an answer. The findings look right, so please go ahead with the cleanup PRs as the roadmap describes: one kind of change each, and every removal proven unreferenced with the checks for that part passing. Since there are 151 unreached tool files, I'd start with the ones that are clearly one-off or dead (patch files and scripts for fixes that have landed). Before removing a check script that no runner calls but that a doc or an evidence file names, check whether the evidence still needs regenerating from it. Anything `RESULTS.md` derives from must keep a way to be rebuilt.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox#359
No description provided.