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

Closed
leonida/mandy
wetw0rks-c0ding wants to merge 0 commits from feat/exe-checklist-list-items into main

Pull request closed

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

wetw0rks-c0ding commented 2026-11-24 21:14:19 +00:00

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.

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

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

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

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).

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

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)

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)
Sign in to join this conversation.
No description provided.