docs: restore exe_fail_fast.md for current main and extend import_fail_fast tests (DOC-EXE-FAIL-FAST) #848

Manually merged
github merged 1 commit from gh-pr/848/head into gh-pr/848/base 2026-11-26 09:24:24 +00:00
Owner

@⁠Taffyyy-ops on GitHub · 2026-11-24 14:31 UTC · original
Taffyyy-ops:docs/restore-exe-fail-fast → main · +119 −0 · 3 files · 1 commits · merged 2026-11-24 20:31 UTC

Claimed in the coordination issue as: DOC-EXE-FAIL-FAST (#14)

What and why

Restores docs/exe_fail_fast.md (originally authored by TreXito in ancestor commits c6f15b162..07e818b40 before merge 6dece9231 dropped it; left unclaimed after RT-RESTORE-6DECE-XS was released and #709 took only pc_checker.py) and brings it up to date for current main (d0da7dad):

  • Updated import-binding status for main d0da7dad: all 6 formerly-unbound fatal-checked imports (xmem.dll!XMemMapPhysicalPages, xmem.dll!XMemAllocatePhysicalPages, xmem.dll!XMemMapPhysicalPagesScatter, xmem.dll!XMemIsToolsMemAvailable, AcpHal.dll!ApuCreateHeap, and GameInput.dll!#1) now bind to shims in runtime/shims/{xmem,acphal,gameinput}.cpp (0 fatal-checked imports remain unbound).
  • Updated WS2_32.dll!#115 (WSAStartup) note to match runtime/shims/ws2_offline.cpp (host-owned with partial loopback overrides).
  • Removed dead private-repo #N citations per AGENTS.md, linking [docs/retail_boot_chain.md](retail_boot_chain.md) for real-run boot stops instead.
  • Re-indexed exe_fail_fast.md in docs/README.md.
  • Extended tests/test_import_fail_fast.py with 2 synthetic tests (10 tests total) covering the documented --dll xmem.dll --all --json CLI invocation (including empty filter behavior) and additional x86-64 result-copy/mask/width encodings (0x89 reg-to-reg copy, 0xF7 test eax, imm32, 0x66 16-bit test ax, ax, and 0x3D cmp eax, imm32).

Tested

  • python -m compileall -q tools/import_fail_fast.py tests/test_import_fail_fast.py (pass)
  • python -I tests/test_import_fail_fast.py -v (10/10 OK)
  • python -I tests/test_text_write_line_endings.py (3/3 OK)
  • All 12 tests/test_docs_*.py suites (cli_flags 4/4, design_rows 5/5, encoding 1/1, env_vars 4/4, links 16/16, list_items 3/3, pr_template 2/2, python_deps 3/3, repeated_lines 2/2, repo_paths 3/3, table_ids 2/2, table_rows 2/2 — all OK)
  • python -I tests/test_i18n_index.py (9/9 OK)
  • python -I scripts/check_no_game_data.py docs/exe_fail_fast.md docs/README.md tests/test_import_fail_fast.py (pass)
  • git diff --check (clean)

GPUs tested: n/a (documentation and stdlib Python unit tests only; Windows 11, Python 3.12+)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs 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)
**@⁠Taffyyy-ops** on GitHub · 2026-11-24 14:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/848) `Taffyyy-ops:docs/restore-exe-fail-fast` → `main` · +119 −0 · 3 files · 1 commits · merged 2026-11-24 20:31 UTC Claimed in the coordination issue as: DOC-EXE-FAIL-FAST (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Restores `docs/exe_fail_fast.md` (originally authored by TreXito in ancestor commits `c6f15b162`..`07e818b40` before merge `6dece9231` dropped it; left unclaimed after `RT-RESTORE-6DECE-XS` was released and `#709` took only `pc_checker.py`) and brings it up to date for current `main` (`d0da7dad`): - Updated import-binding status for `main` `d0da7dad`: all 6 formerly-unbound fatal-checked imports (`xmem.dll!XMemMapPhysicalPages`, `xmem.dll!XMemAllocatePhysicalPages`, `xmem.dll!XMemMapPhysicalPagesScatter`, `xmem.dll!XMemIsToolsMemAvailable`, `AcpHal.dll!ApuCreateHeap`, and `GameInput.dll!#1`) now bind to shims in `runtime/shims/{xmem,acphal,gameinput}.cpp` (0 fatal-checked imports remain unbound). - Updated `WS2_32.dll!#115` (`WSAStartup`) note to match `runtime/shims/ws2_offline.cpp` (host-owned with partial loopback overrides). - Removed dead private-repo `#N` citations per `AGENTS.md`, linking `[docs/retail_boot_chain.md](retail_boot_chain.md)` for real-run boot stops instead. - Re-indexed `exe_fail_fast.md` in `docs/README.md`. - Extended `tests/test_import_fail_fast.py` with 2 synthetic tests (`10` tests total) covering the documented `--dll xmem.dll --all --json` CLI invocation (including empty filter behavior) and additional x86-64 result-copy/mask/width encodings (`0x89` reg-to-reg copy, `0xF7` `test eax, imm32`, `0x66` 16-bit `test ax, ax`, and `0x3D` `cmp eax, imm32`). ### Tested - `python -m compileall -q tools/import_fail_fast.py tests/test_import_fail_fast.py` (pass) - `python -I tests/test_import_fail_fast.py -v` (10/10 OK) - `python -I tests/test_text_write_line_endings.py` (3/3 OK) - All 12 `tests/test_docs_*.py` suites (`cli_flags` 4/4, `design_rows` 5/5, `encoding` 1/1, `env_vars` 4/4, `links` 16/16, `list_items` 3/3, `pr_template` 2/2, `python_deps` 3/3, `repeated_lines` 2/2, `repo_paths` 3/3, `table_ids` 2/2, `table_rows` 2/2 — all OK) - `python -I tests/test_i18n_index.py` (9/9 OK) - `python -I scripts/check_no_game_data.py docs/exe_fail_fast.md docs/README.md tests/test_import_fail_fast.py` (pass) - `git diff --check` (clean) GPUs tested: n/a (documentation and stdlib Python unit tests only; Windows 11, Python 3.12+) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:24:23 +00:00
github manually merged commit ea0b6bbe40 into gh-pr/848/base 2026-11-26 09:24:24 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:39 UTC · original · approved these changes

Audited and verified. Documentation in docs/exe_fail_fast.md is fully synchronized with current main (all 13 non-host imports verified bound to shims, zero unbound), and new unit tests in ests/test_import_fail_fast.py thoroughly validate CLI JSON filtering and instruction decode variants (0x89 register copy, 0xF7 imm32 mask, 0x66 16-bit test, 0x3D cmp). Clean-room compliant with no game data. Approved.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/848#pullrequestreview-6041266350) · **approved these changes** Audited and verified. Documentation in docs/exe_fail_fast.md is fully synchronized with current main (all 13 non-host imports verified bound to shims, zero unbound), and new unit tests in ests/test_import_fail_fast.py thoroughly validate CLI JSON filtering and instruction decode variants (0x89 register copy, 0xF7 imm32 mask, 0x66 16-bit test, 0x3D cmp). Clean-room compliant with no game data. Approved.
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:39 UTC · original · approved these changes

Clean-Room Audit & Documentation Review — PR #848 (DOC-EXE-FAIL-FAST)

Great documentation restoration and test extension.

Technical Verification

  1. Documentation Accuracy (docs/exe_fail_fast.md):
    • Restores the 78 fatal result check sites across 27 imports from import_fail_fast.py, correctly mapped to the current main (d0da7dad) bindings.
    • Accurately groups shim results to preserve (e.g. XMemVirtualAlloc, GameInput.dll!#1, ApuCreateHeap) vs host CRT abort paths.
    • Index updated in docs/README.md.
  2. Tooling & Test Coverage:
    • Added test_cli_dll_all_json_matches_documented_invocation and test_additional_result_copy_width_and_mask_encodings in tests/test_import_fail_fast.py.
    • Tested locally: all tests pass.
  3. Clean-Room Compliance:
    • Measured structural metadata only; zero executable bytes or proprietary code quoted.

Verdict: APPROVED

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/848#pullrequestreview-6041275305) · **approved these changes** ### Clean-Room Audit & Documentation Review — PR #848 (`DOC-EXE-FAIL-FAST`) Great documentation restoration and test extension. #### Technical Verification 1. **Documentation Accuracy (`docs/exe_fail_fast.md`)**: - Restores the 78 fatal result check sites across 27 imports from `import_fail_fast.py`, correctly mapped to the current `main` (`d0da7dad`) bindings. - Accurately groups shim results to preserve (e.g. `XMemVirtualAlloc`, `GameInput.dll!#1`, `ApuCreateHeap`) vs host CRT abort paths. - Index updated in `docs/README.md`. 2. **Tooling & Test Coverage**: - Added `test_cli_dll_all_json_matches_documented_invocation` and `test_additional_result_copy_width_and_mask_encodings` in `tests/test_import_fail_fast.py`. - Tested locally: all tests pass. 3. **Clean-Room Compliance**: - Measured structural metadata only; zero executable bytes or proprietary code quoted. **Verdict: APPROVED**
Author
Owner

@⁠Taffyyy-ops on GitHub · 2026-11-24 20:08 UTC · original

Rebased onto main 6293c1c4f in commit ea0b6bbe40. On Windows, the full python -I tests/test_tool_startup.py passed (2/2), as did python -I tests/test_import_fail_fast.py (10/10), python -I scripts/check_no_game_data.py, and git diff --check. The previous native_pso_hashes.py --help failure is fixed on main; CI has been retriggered.

**@⁠Taffyyy-ops** on GitHub · 2026-11-24 20:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/848#issuecomment-7143092604) Rebased onto main 6293c1c4f in commit ea0b6bbe406ad478e9b2b14500973a722380afb4. On Windows, the full python -I tests/test_tool_startup.py passed (2/2), as did python -I tests/test_import_fail_fast.py (10/10), python -I scripts/check_no_game_data.py, and git diff --check. The previous native_pso_hashes.py --help failure is fixed on main; CI has been retriggered.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 20:31 UTC · original

Merged. Nothing blocks this: the claim is valid and first, every changed statement in exe_fail_fast.md matches current main, and the doc has no game data.

  • Local (Linux), on main and main + this PR: test_import_fail_fast (10/10 with the PR), all 12 test_docs_*, test_i18n_index, the line-endings and no-game-data tests, test_tool_startup and check_no_game_data.py pass.
  • The rebase to ea0b6bbe4 left the doc and the test byte-identical to the reviewed f0c8d7474.
  • The earlier red stdlib-tests-linux was native_pso_hashes, which this PR doesn't touch and main has fixed since.

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 20:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/848#issuecomment-7143689466) Merged. Nothing blocks this: the claim is valid and first, every changed statement in `exe_fail_fast.md` matches current `main`, and the doc has no game data. - **Local (Linux), on `main` and `main` + this PR:** `test_import_fail_fast` (10/10 with the PR), all 12 `test_docs_*`, `test_i18n_index`, the line-endings and no-game-data tests, `test_tool_startup` and `check_no_game_data.py` pass. - The rebase to `ea0b6bbe4` left the doc and the test byte-identical to the reviewed `f0c8d7474`. - The earlier red `stdlib-tests-linux` was `native_pso_hashes`, which this PR doesn't touch and `main` has fixed since. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.