exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) #632

Merged
hamdog0203 merged 1 commit from upstream-pr/632 into main 2026-12-02 00:29:59 +00:00
hamdog0203 commented 2026-11-24 10:28:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by hamdog0203 on 2026-11-24T10:28:39Z.


Claimed in the coordination issue as: EXE-CHECKLIST-PARSE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128650930)

AI-assisted: yes
No game files touched or included.

Summary

Three small parsing and input-validation fixes in tools/exe_checklist.py:

  1. doc_notes() list boundaries and prefix stripping: stop continuation lines on all list items matched by LIST_ITEM (including + and numbered 1. / 1) items) instead of only - and * , and strip LIST_ITEM from the first line instead of ^[-*] .
  2. without_marker() on colon-less markers: match bold markers up to their closing ** and plain comment markers up to an optional parenthetical + : or whitespace, so markers without an immediate colon no longer eat prose up to a later colon or leave VERIFY unstripped.
  3. called_classes() BOM and JSON shape validation: open --gdk-calls files with utf-8-sig and validate object/list/string shapes, raising ValueError (handled by main() with exit code 1) instead of letting TypeError escape as a traceback.

Verification

  • python -I tests/test_exe_checklist.py -v -> Ran 18 tests ... OK (14 existing + 4 new regression tests in ExeChecklistEdgeCases)
  • Negative control: running ExeChecklistEdgeCases against unpatched main failed (FAILED (failures=4, errors=2))
  • python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py -> OK
  • python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py -> exit 0
  • python -I tests/test_text_write_line_endings.py -v -> Ran 3 tests ... OK
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5470411230 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/632). Originally posted by [hamdog0203](https://github.com/hamdog0203) on 2026-11-24T10:28:39Z. --- Claimed in the coordination issue as: EXE-CHECKLIST-PARSE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128650930) AI-assisted: yes No game files touched or included. ### Summary Three small parsing and input-validation fixes in `tools/exe_checklist.py`: 1. **`doc_notes()` list boundaries and prefix stripping:** stop continuation lines on all list items matched by `LIST_ITEM` (including `+` and numbered `1.` / `1)` items) instead of only `- ` and `* `, and strip `LIST_ITEM` from the first line instead of `^[-*] `. 2. **`without_marker()` on colon-less markers:** match bold markers up to their closing `**` and plain comment markers up to an optional parenthetical + `:` or whitespace, so markers without an immediate colon no longer eat prose up to a later colon or leave `VERIFY ` unstripped. 3. **`called_classes()` BOM and JSON shape validation:** open `--gdk-calls` files with `utf-8-sig` and validate object/list/string shapes, raising `ValueError` (handled by `main()` with exit code `1`) instead of letting `TypeError` escape as a traceback. ### Verification - `python -I tests/test_exe_checklist.py -v` -> `Ran 18 tests ... OK` (14 existing + 4 new regression tests in `ExeChecklistEdgeCases`) - Negative control: running `ExeChecklistEdgeCases` against unpatched `main` failed (`FAILED (failures=4, errors=2)`) - `python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py` -> OK - `python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py` -> exit `0` - `python -I tests/test_text_write_line_endings.py -v` -> `Ran 3 tests ... OK`
PierreEbele commented 2026-11-25 00:58:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T00:58:28Z.


Reviewed 10856a3: python3 -I tests/test_exe_checklist.py passes on the PR (18 tests) and on main (14); the PR's test file run against main's tool fails exactly the new cases (4 failures + 2 errors: numbered/+ list items merged into the previous note, colon-less markers, the BOM'd --gdk-calls report, and an uncaught TypeError on {"images": null} / {"classes": null}, plus class_id: true accepted). Running the tool over the repository on both trees gives 25 notes each, and apart from line numbers (the branch is behind main) only three texts change: gameinput.cpp:30 and :1106 lose a doubled VERIFY, and runtime/src/xdxr_build.h:7 now reads ASSUMPTION: there: a shader reaches... (the source says "an ASSUMPTION there: a shader..."; main printed a shader reaches...), a small cosmetic step back for that one note, not a blocker. check_no_game_data.py is clean on both files and the branch merges cleanly into current main (b4b7756e). Run in a network-less sandbox on Linux. No blocking findings.

AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149078394 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/632#issuecomment-7149078394). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T00:58:28Z. --- Reviewed 10856a3: `python3 -I tests/test_exe_checklist.py` passes on the PR (18 tests) and on `main` (14); the PR's test file run against `main`'s tool fails exactly the new cases (4 failures + 2 errors: numbered/`+` list items merged into the previous note, colon-less markers, the BOM'd `--gdk-calls` report, and an uncaught `TypeError` on `{"images": null}` / `{"classes": null}`, plus `class_id: true` accepted). Running the tool over the repository on both trees gives 25 notes each, and apart from line numbers (the branch is behind `main`) only three texts change: `gameinput.cpp:30` and `:1106` lose a doubled `VERIFY`, and `runtime/src/xdxr_build.h:7` now reads `ASSUMPTION: there: a shader reaches...` (the source says "an ASSUMPTION there: a shader..."; `main` printed `a shader reaches...`), a small cosmetic step back for that one note, not a blocker. `check_no_game_data.py` is clean on both files and the branch merges cleanly into current `main` (b4b7756e). Run in a network-less sandbox on Linux. No blocking findings. AI-assisted review. **Recommendation:** Merge
MoonEyes commented 2026-11-28 17:59:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:59:05Z.


Hi @hamdog0203, thanks for this pull request. It currently conflicts with main (conflicting file(s): tools/exe_checklist.py), 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243438474 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/632#issuecomment-7243438474). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:59:05Z. --- Hi @hamdog0203, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `tools/exe_checklist.py`), 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 commented 2026-12-01 11:52:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:52:14Z.

Review: CHANGES_REQUESTED


Reviewed against current main: this branch conflicts with main in tools/exe_checklist.py and has failing CI. Please rebase onto current main so CI runs cleanly.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130699290 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/632#pullrequestreview-6130699290). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:52:14Z. **Review:** CHANGES_REQUESTED --- Reviewed against current `main`: this branch conflicts with `main` in `tools/exe_checklist.py` and has failing CI. Please rebase onto current `main` so CI runs cleanly. *(AI-assisted review.)*
MoonEyes commented 2026-12-01 22:38:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T22:38:05Z.


This PR has not moved since 24 November and conflicts with main, whose doc_notes() was rewritten since (it covers your first fix). I opened #2992, which is main merged with this head: your commit and your two other fixes are kept. This PR stays open until a maintainer decides. If you rebase it yourself, say so and I will close #2992.

AI-assisted (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328125560 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/632#issuecomment-7328125560). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-01T22:38:05Z. --- This PR has not moved since 24 November and conflicts with `main`, whose `doc_notes()` was rewritten since (it covers your first fix). I opened #2992, which is `main` merged with this head: your commit and your two other fixes are kept. This PR stays open until a maintainer decides. If you rebase it yourself, say so and I will close #2992. AI-assisted (Claude Code)
Sign in to join this conversation.
No reviewers
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
ProjectLeonida/mandy!632
No description provided.