Repository navigation
Description
Outcome
Writing a checklist line whose id contains an underscore, - [ ] all_or_none: Declare every generated struct #all_or_none, makes close_issue.py ready report the issue as having an open line forever. A commit saying Part of #N: all_or_none never proves it, and nothing says why: the message names the line's text, not the id it could not read.
checklist_proof.py's ID pattern is [a-z0-9][a-z0-9-]*, so all_or_none: is not read as an id at all and the line is treated as an id-less line. Either an underscore is a legal id character, or an unreadable id is refused by name when the line is first read, so the author fixes it instead of re-running a close that can never pass.
What changes
- An agent that writes a checklist id with an underscore is told so. When
close_issue.pyreads- [ ] all_or_none: ..., it either accepts the id and lets a commit prove it, or refuses the line naming the id and the characters allowed, instead of reporting an open line no commit can close.
Cause and required change
- Written at:
skills/productivity/close-issues/scripts/checklist_proof.py:26,ID = r"[a-z0-9][a-z0-9-]*", read byLINE_ID,ID_PREFIXandPROOF_LINEon the next three lines. - Class: a line the tool cannot parse is reported as a line it can, so its author is told the wrong thing.
- Required change: decide the one spelling of an id and make the other impossible to miss. Either add
_toIDso an underscore id parses everywhere the pattern is used, or keep the pattern and have the reader refuse a checklist line that looks like<word>: <text>whose leading word is not a legal id, naming the line and the allowed characters. Not both, and not a note inSKILL.md: the tool is what reads the line.
Different cause from #13: #13 is an id-less line that gains an id and is reported lost by reworded(); this is an id the ID pattern cannot read at all, so the line never has an id to match.
Done when
- parses-or-refuses: A checklist line with an underscore id is either proved by a commit claiming that id, or refused with a message naming the id and the legal characters.
- hyphen-unchanged: A hyphen id still parses and is still proved by its commit.
- refusal-is-tested: A test covers the chosen behaviour for an underscore id and fails on the pre-fix code.
Evidence
Read on 2026-11-06 on main.
$ python3 -c "import checklist_proof as c; print(c.LINE_ID.match('all_or_none: Declare every generated struct'))"
None
$ python3 -c "import checklist_proof as c; print(c.LINE_ID.match('all-or-none: Declare every generated struct'))"
<re.Match object; span=(0, 14), match='all-or-none: D'>
Seen while closing CheckPickerUpper/sqlc-gen-odin#1, whose two checklist lines were first written all_or_none and require_results: close_issue.py ready reported only "#1 has an open line" for each, with no mention of the id. They were reworded to all-or-none and require-results to close the issue.
Activity
close-issues: accept underscores in checklist line ids