docs/mobile: record retail 1.0.2.1 recomp_census.py measurements (RECOMP-CENSUS-RETAIL-EXE) #1776

Closed
leonida/mandy
Ch1mpleo wants to merge 0 commits from docs/recomp-census-retail-exe into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Ch1mpleo commented 2026-11-25 11:53:32 +00:00

Claimed in the coordination issue as: RECOMP-CENSUS-RETAIL-EXE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161422476)

Depends on: #1121

What and why

Records the full ools/recomp_census.py measurement over the retail 1.0.2.1 executable (game_scarlett_master.exe, 120,181,760 bytes) in docs/mobile.md (completing Next step 1) and updates the summary row in docs/README.md. Aggregate counts only; no game bytes or code.

Running the full census on main (caa13dad) hits the truncated VEX-prefix IndexError fixed by #1121; applying #1121 in an out-of-tree scratch copy lets the census complete cleanly over all 299,257 .pdata functions (21,518,571 decoded instructions, 84.77% translated).

Tested

  • python -I tools/recomp_census.py (with #1121 applied in an out-of-tree scratch copy) on game_scarlett_master.exe (Windows 11 x64, Python 3.14.7): 299,257 .pdata functions, 21,518,571 instructions, 84.77% covered, 0 crashes.
  • python -I scripts/check_no_game_data.py docs/mobile.md docs/README.md (exit 0).
  • python -I tests/test_recomp_census.py (11/11 OK).

GPUs tested: n/a (CPU-only documentation & census measurement)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — documentation only)
Claimed in the coordination issue as: RECOMP-CENSUS-RETAIL-EXE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161422476) Depends on: #1121 ### What and why Records the full ools/recomp_census.py measurement over the retail 1.0.2.1 executable (game_scarlett_master.exe, 120,181,760 bytes) in docs/mobile.md (completing Next step 1) and updates the summary row in docs/README.md. Aggregate counts only; no game bytes or code. Running the full census on main (caa13dad) hits the truncated VEX-prefix IndexError fixed by #1121; applying #1121 in an out-of-tree scratch copy lets the census complete cleanly over all 299,257 .pdata functions (21,518,571 decoded instructions, 84.77% translated). ### Tested - python -I tools/recomp_census.py (with #1121 applied in an out-of-tree scratch copy) on game_scarlett_master.exe (Windows 11 x64, Python 3.14.7): 299,257 .pdata functions, 21,518,571 instructions, 84.77% covered, 0 crashes. - python -I scripts/check_no_game_data.py docs/mobile.md docs/README.md (exit 0). - python -I tests/test_recomp_census.py (11/11 OK). GPUs tested: n/a (CPU-only documentation & census measurement) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — documentation only)
PierreEbele commented 2026-11-25 18:56:43 +00:00

Reviewed 07f59ca73: ran tests/test_recomp_census.py (11 OK on both trees) plus probes over the census tooling: the table is internally consistent, but decode:op_90 is a bare nop (0x90 is missing from PRIMARY: the xchg loop starts at 0x91) and the census stops decoding a function there, so the instruction count and coverage undercount the affected functions - worth a word in the doc. Blocker: "at main bcaa13dad with PR #1121 (X64-RECOMP-VEX-BOUNDS)" is unreadable - #1121 in this repository is the merged tools/hashdict.py PR, the cited patch is under no branch or commit in this clone, and main cannot regenerate the run (a "c4 " function tail aborts the census with IndexError, and vzeroupper desyncs as a 4-byte v77). Please cite the real branch/PR or attach the patch.

AI-assisted review.

Recommendation: Fix first

Reviewed 07f59ca73: ran tests/test_recomp_census.py (11 OK on both trees) plus probes over the census tooling: the table is internally consistent, but decode:op_90 is a bare nop (0x90 is missing from PRIMARY: the xchg loop starts at 0x91) and the census stops decoding a function there, so the instruction count and coverage undercount the affected functions - worth a word in the doc. Blocker: "at main bcaa13dad with PR #1121 (X64-RECOMP-VEX-BOUNDS)" is unreadable - #1121 in this repository is the merged tools/hashdict.py PR, the cited patch is under no branch or commit in this clone, and main cannot regenerate the run (a "c4 <one byte>" function tail aborts the census with IndexError, and vzeroupper desyncs as a 4-byte v77). Please cite the real branch/PR or attach the patch. AI-assisted review. **Recommendation:** Fix first
Ch1mpleo commented 2026-11-25 19:39:02 +00:00

Thanks @PierreEbele — linked PR #1121 (old-pr/9855) explicitly and added a note in docs/mobile.md that decode:op_90 is bare nop (0x90) and stops per-function decoding early, so affected functions are undercounted.

Thanks @PierreEbele — linked [PR #1121](https://github.com/ubiquitarianism/leonida/pull/1121) (`old-pr/9855`) explicitly and added a note in `docs/mobile.md` that `decode:op_90` is bare `nop` (`0x90`) and stops per-function decoding early, so affected functions are undercounted.
MoonEyes commented 2026-11-28 18:02:19 +00:00

Hi @Ch1mpleo, thanks for this pull request. It currently conflicts with main (conflicting file(s): docs/mobile.md), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

Hi @Ch1mpleo, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `docs/mobile.md`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 reviewed 2026-12-01 10:58:11 +00:00
aslan2142 left a comment
No description provided.
Requesting changes before this can land: 1. **Merge conflict:** `docs/mobile.md` currently conflicts with `main`. 2. **Unmerged dependency:** This PR explicitly depends on `#1121`, which is still open. Please rebase onto current `main` (and wait for/align with `#1121` as needed) so docs CI runs green. *(AI-assisted review.)*
MoonEyes commented 2026-12-02 11:49:00 +00:00

Closing: this pull request no longer applies to current main (merge conflict in docs/mobile.md), and open pull requests that have fallen out of step with main are being closed so the list stays workable. If you still want this change, rebase it on current main and reopen it (or open a new pull request); it will be looked at again.

AI-assisted (Claude Code).

Closing: this pull request no longer applies to current `main` (merge conflict in `docs/mobile.md`), and open pull requests that have fallen out of step with `main` are being closed so the list stays workable. If you still want this change, rebase it on current `main` and reopen it (or open a new pull request); it will be looked at again. AI-assisted (Claude Code).
Sign in to join this conversation.
No description provided.