exe_checklist: handle bare list markers, nested item continuations, and code fences (OLD-8385) #1280

Closed
wetw0rks-c0ding wants to merge 3 commits from upstream-pr/1280 into main
wetw0rks-c0ding commented 2026-11-24 21:14:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wetw0rks-c0ding on 2026-11-24T21:14:19Z.


Claimed in the coordination issue as: OLD-8385

What and why

tools/exe_checklist.py truncated notes at bare list markers, treated nested list items as sibling delimiters, and let + or numbered markers inside fenced code blocks create false notes. Bare markers are now matched only at end-of-line, nested items are kept as continuations using their base indentation, and fenced code blocks are skipped.

Tested

  • python3 -I tests/test_exe_checklist.py -> 16 tests OK
  • python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py -> clean
  • Environment: Linux (CachyOS), CPU-only tests, no GPU required

AI-assisted: Yes. This work was done with OpenCode agents.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5480445853 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1280). Originally posted by [wetw0rks-c0ding](https://github.com/wetw0rks-c0ding) on 2026-11-24T21:14:19Z. --- Claimed in the coordination issue as: OLD-8385 ### What and why `tools/exe_checklist.py` truncated notes at bare list markers, treated nested list items as sibling delimiters, and let `+` or numbered markers inside fenced code blocks create false notes. Bare markers are now matched only at end-of-line, nested items are kept as continuations using their base indentation, and fenced code blocks are skipped. ### Tested - `python3 -I tests/test_exe_checklist.py` -> 16 tests OK - `python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py` -> clean - Environment: Linux (CachyOS), CPU-only tests, no GPU required AI-assisted: Yes. This work was done with OpenCode agents.
PierreEbele commented 2026-11-25 14:49:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T14:49:18Z.


Reviewed d5ed9725: ran tests/test_exe_checklist.py on the PR tree (16/16) and on main with the PR's test file: the two new tests fail there, as the fixes expect (bare markers truncate items, fenced fake notes no longer count, nested items stay continuations). Both tool versions over the repo's docs: all 7 existing notes identical and every fence count even, so no on-repo change. Two reproduced edges, not on repo docs and not blocking: a marked nested sub-item's text is also glued into the parent note's checklist entry, and an unclosed ``` fence silently skips every later note in that file (main still listed them) -- worth deciding whether wanted. Fixtures synthetic, no game data. AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7165867260 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1280#issuecomment-7165867260). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T14:49:18Z. --- Reviewed d5ed9725: ran tests/test_exe_checklist.py on the PR tree (16/16) and on main with the PR's test file: the two new tests fail there, as the fixes expect (bare markers truncate items, fenced fake notes no longer count, nested items stay continuations). Both tool versions over the repo's docs: all 7 existing notes identical and every fence count even, so no on-repo change. Two reproduced edges, not on repo docs and not blocking: a marked nested sub-item's text is also glued into the parent note's checklist entry, and an unclosed ``` fence silently skips every later note in that file (main still listed them) -- worth deciding whether wanted. Fixtures synthetic, no game data. AI-assisted review. **Recommendation:** Merge
wavehs commented 2026-11-26 18:48:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-26T18:48:14Z.


Related to #703 (abnalstlll-byte, 2026-11-24 12:24, ~8h50m earlier): same exe_checklist.doc_notes fix, same two files, different completeness.

  • #703 adds closed_code_fences(), which recognises ~~~ as well as ``` and only skips closed fences (an unclosed fence does not hide every later note), and has tests for nested list markers and tilde fences.
  • This PR toggles on stripped.startswith("```") only, so ~~~ fences are not skipped and an unclosed fence hides the rest of the document; its extra tests are correspondingly fewer.

Both changes are otherwise the same idea (marker/continuation parsing). #703 is the more complete implementation and has the larger regression set, so I would land that one and close this; if this one is preferred, it needs the ~~~/unclosed-fence handling and those two tests.

AI-assisted (review only).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7200868984 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1280#issuecomment-7200868984). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-26T18:48:14Z. --- Related to **#703** (abnalstlll-byte, 2026-11-24 12:24, ~8h50m earlier): same `exe_checklist.doc_notes` fix, same two files, different completeness. - #703 adds `closed_code_fences()`, which recognises `~~~` as well as ``` and only skips **closed** fences (an unclosed fence does not hide every later note), and has tests for nested list markers and tilde fences. - This PR toggles on `stripped.startswith("```")` only, so `~~~` fences are not skipped and an unclosed fence hides the rest of the document; its extra tests are correspondingly fewer. Both changes are otherwise the same idea (marker/continuation parsing). #703 is the more complete implementation and has the larger regression set, so I would land that one and close this; if this one is preferred, it needs the `~~~`/unclosed-fence handling and those two tests. AI-assisted (review only).
MoonEyes commented 2026-11-27 23:36:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:36:21Z.


Thanks for this, @wetw0rks-c0ding. The item (OLD-8385) was restored first by abnalstlll-byte in #703 (their done: is in #14 before this claim). #703 has the same fix, including the tilde fences, the unclosed fence and the marked nested sub-item, with the same three test scenarios; this pull request keeps two of its commits and re-implements the last two.

To avoid two pull requests for one item I am closing this one in favor of #703. If a case from your tests is missing there, please say so on #703.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230268886 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1280#issuecomment-7230268886). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:36:21Z. --- Thanks for this, @wetw0rks-c0ding. The item (OLD-8385) was restored first by `abnalstlll-byte` in #703 (their `done:` is in #14 before this claim). #703 has the same fix, including the tilde fences, the unclosed fence and the marked nested sub-item, with the same three test scenarios; this pull request keeps two of its commits and re-implements the last two. To avoid two pull requests for one item I am closing this one in favor of #703. If a case from your tests is missing there, please say so on #703. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

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!1280
No description provided.