Skip to content

A checklist id with an underscore leaves close_issue.py reporting an open line no commit can prove #15

Closed

Description

@CheckPickerUpper

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.py reads - [ ] 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 by LINE_ID, ID_PREFIX and PROOF_LINE on 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 _ to ID so 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 in SKILL.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.

Proof

  • 6ea1605
  • test_an_underscore_id_is_proved_by_the_commit_claiming_it passes on main at 0050569 (76 close-issues and audit-issues tests pass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions