Commit Graph

15 Commits

Author SHA1 Message Date
c18437b32c exe_checklist: a bold marker run without a colon keeps its words; reject class_id 0
Independent verdict on the carry PR: '**VERIFY the stride on a real exe**' became an
empty entry and '**Unverified fixed quota** on hardware' lost its words. With no colon
to say where a label ends, the bold words may be the note, so they stay. The
class_id string check also gets a payload (0) that kills its mutation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 00:50:01 +01:00
97868b9ce8 exe_checklist: keep the note when a bold marker run closes after it
**VERIFY: check the stride** before release lost its whole note (the bold branch
of without_marker() dropped everything up to the closing **). A bold run that is
only the label still goes whole; a bold run that holds the note keeps it.
Reported by andrew-ai on the carry PR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 00:05:00 +01:00
56e112a060 Merge main into #632: keep main's doc_notes list handling, the PR's other fixes apply
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:37:05 +01:00
35bae64b5a exe_checklist: recognize ~~~ code fences and preserve notes after unclosed fences (OLD-8385)
Address review feedback from @PierreEbele:
1. Support ~~~ fenced code blocks alongside \\\ in closed_code_fences().
2. Ensure unclosed code fences do not hide later notes in the file.
3. Add regression unit tests in tests/test_exe_checklist.py; 19/19 tests pass.

AI-assisted (Claude Code)
2026-11-26 00:31:22 +03:00
e207ebf257 exe_checklist: stop item continuation when a nested item starts its own marker
Address review feedback from @PierreEbele:
When a list item contains indented sub-items, stopping continuation only at
curr_indent <= base_indent caused nested items starting their own marker
(e.g. - **VERIFY:** child note under a parent note) to be included in the
parent note text as well as being parsed as an independent note.

Check DOC_MARK.match() on the nested item body so continuation stops when
a nested note begins. Add regression unit test in tests/test_exe_checklist.py.

AI-assisted (Claude Code)
2026-11-26 00:31:22 +03:00
d6d161c38d exe_checklist: handle bare list markers, nested item continuations, and code fences
Address reviewer feedback from @tupacfan04:
1. Allow bare empty markers at end-of-line by matching (?:\s+|$) in LIST_ITEM.
2. Track list item base indentation so nested sub-items (e.g. '  + ...' or '  1. ...') under a note are retained as continuations rather than falsely treated as sibling delimiters.
3. Skip fenced code blocks (`) so code containing '+' or numbered markers does not truncate notes or trigger false notes.
4. Add synthetic unit tests for bare markers, nested items, prose continuations, and code fences.

No game data. AI-assisted (Gemini).
2026-11-26 00:31:22 +03:00
a6ee9c028e exe_checklist: stop multi-line doc notes at ordered and plus list items
In tools/exe_checklist.py:doc_notes(), LIST_ITEM defines regex
^(?:[-*+]|\d+[.)])\s+ for list items. However, the continuation loop
that collects multi-line notes only checked startswith(("- ", "* ", "#", "|")).

When a document used ordered numbered lists (e.g. '1. ', '2. ', '3) ')
or '+ ' list items, the loop failed to stop at subsequent items,
concatenating them into the prior note text and leaving leading item
numbers in the note text.

Align the continuation termination check to not LIST_ITEM.match(lines[end].lstrip())
and strip prefixes using LIST_ITEM.sub("", ...).

Cover with unit tests in tests/test_exe_checklist.py.
No game files. AI-assisted (Gemini).
2026-11-26 00:31:21 +03:00
10856a3c06 exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) 2026-11-24 11:23:59 +01:00
47428cc225 exe_checklist: collect // VERIFY notes and refuse an unusable --root/--out (CLAIM 7100960043) (#5875)
Squash-merged after diff review of PR #5875
2026-11-23 12:27:18 -06:00
b2801e26e6 exe_checklist: a --out that cannot be written is one line, not a traceback (#4938)
Squash-merged after diff review of PR #4938
2026-11-23 10:38:59 -06:00
e839f40ea5 exe_checklist: read the docs notes in any case and the plural spelling (#5579)
Squash-merged after diff review of PR #5579 - exe_checklist: read the docs notes in any case and the plural spelling
2026-11-23 09:41:09 -06:00
8798c64741 exe_checklist: parse a file's served classes once, not once per note (#6575)
Squash-merged after diff review of PR #6575 - exe_checklist: parse a file's served classes once, not once per note
2026-11-23 09:40:24 -06:00
14e3cfc472 docs: point exe_checklist at its --help usage line (#6538)
Squash-merged after diff review of PR #6538 - docs: point exe_checklist at its --help usage line
2026-11-23 09:39:08 -06:00
fee813695d exe_checklist: prevent overwriting an input call report (#6897)
Squash-merged after diff review of PR #6897 - exe_checklist: prevent overwriting an input call report
2026-11-23 09:35:38 -06:00
902358c8aa tools/exe_checklist.py: every ASSUMPTION / UNVERIFIED / VERIFY note in one list for the exe's first look
Collects the marked notes of runtime/src, runtime/shims and docs/*.md with file
and line, each from its marker to the end of its comment run or list item
(trailing 'see the header' comments are left out). Given gdk_runtime_calls'
JSON, a shim's notes are marked called / not called by whether the executable
calls a class that file serves, called first. first_look.ps1 writes
reports/exe/<name>/checklist.md. tests/test_exe_checklist.py: 6 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:00:14 -05:00