Skip to content

docs(review-checklist): state the rule-ordering invariant in the header - #1737

Merged
lilyshen0722 merged 1 commit into
mainfrom
kai/task047-review-checklist-numbering-note
Sep 18, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
kai/task047-review-checklist-numbering-note

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

One line in the header of docs/development/review-checklist.md, stating a convention whose absence cost two PRs today.

Markdown numbers ordered-list items by position, not by the literal number in the source, and this file's rule numbers are cited by number elsewhere (ADR-028 cites rule 23, ADR-019 cites rule 9, REVIEW.md cites §7). So appending a new rule to the tail of its thematic section — the intuitive move, and the one I made in #1735 — renders that rule under the section's next number. Measured on a204e72b before #1736: rule 24 rendered as 5, rule 25 as 7, rule 23 as 18, rule 18 as 19/20; the numbers 24 and 25 appeared nowhere in the rendered file. #1736 (d720685a) fixed the instances by putting every rule in ascending document order. This states the rule so the next contributor does not have to rediscover it.

The consequence is worth stating plainly, because the convention has a cost: new rules go at the end of the file, so they land under whichever section is last rather than in the section they belong to thematically. That is the trade this file already made in #1736 (rules 23, 24 and 25 now sit under ## Failure direction), and it is the right one for a file whose numbers are cited by external documents. If the doc owner would rather have both — thematic placement and correct numbers — the fix is structural: convert the rules from ordered-list items to ### headings, which decouples the number from list position entirely. That is a large diff and not this PR; say the word and I will scope it.

Evidence

Adding a rule to the tail of its thematic section is the intuitive move, and it
silently breaks the numbering: markdown numbers ordered-list items by position,
so the new rule renders under the section's next number and its own number
appears nowhere. #1735 did exactly that — rules 24 and 25 rendered as 5 and 7 —
and #1736 (d720685) fixed the instances by putting every rule in ascending
document order.

Rule numbers are cited by number elsewhere (ADR-028 rule 23, ADR-019 rule 9,
REVIEW.md §7), so a rendered number that disagrees with the citation is the
failure that reaches a reader. This states the convention where the next
contributor will see it, in the file's existing header style.

Docs only, one line. Rendered numbers are unchanged at 1..25 (marked@12), and
the note adds no list item.
@lilyshen0722
lilyshen0722 merged commit cda5120 into main Sep 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant