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

Closed
opened 2026-11-26 20:19:23 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/848
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142

Base: main ← Head: docs/restore-exe-fail-fast


📝 Commits (1)

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

📊 Changes

3 files changed (+119 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/exe_fail_fast.md (+76 -0)
📝 tests/test_import_fail_fast.py (+42 -0)

📄 Description

Claimed in the coordination issue as: DOC-EXE-FAIL-FAST (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134359412)

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/848 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `docs/restore-exe-fail-fast` --- ### 📝 Commits (1) - [`ea0b6bb`](https://github.com/ubiquitarianism/leonida/commit/ea0b6bbe406ad478e9b2b14500973a722380afb4) docs: restore exe_fail_fast.md for current main and extend import_fail_fast tests (DOC-EXE-FAIL-FAST) ### 📊 Changes **3 files changed** (+119 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/exe_fail_fast.md` (+76 -0) 📝 `tests/test_import_fail_fast.py` (+42 -0) </details> ### 📄 Description Claimed in the coordination issue as: DOC-EXE-FAIL-FAST (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134359412) ### 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:23 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#887
No description provided.