Skip to content

Refer to an Enumeration Instead of Stating an Incidental Count in Prose and Comments #3160

Closed

Description

@ptr727

Context

PR reviews keep raising the same kind of finding: text that states a count or other absolute value that has gone stale. "There are four cases" becomes wrong when a fifth case lands. The fix round corrects the number, and the next change makes it wrong again. In most of these sentences the number adds nothing. The reader needs to know which cases there are, not how many, and the list or table right beside the sentence already shows that.

No rule covers this today. GOVERNANCE.md "Documentation Style Conventions" and the comment-and-doc-style Skill say nothing about incidental counts. Nothing in CODESTYLE.md "General" covers them for code comments either.

Gap

An incidental count is a second copy of a fact the text already shows, and nothing keeps the two copies in sync. Every edit to the enumeration then owes an edit to the sentence. When that edit is missed, it surfaces as a review finding, a fix round, and sometimes a new finding on the fix.

Constructed examples:

  • "The following four checks run on every push:" followed by a list. Write "The following checks run on every push:".
  • "Both helpers below parse the header" where a third helper is later added. Write "The helpers below parse the header".
  • A comment saying "handles the three shapes the reader accepts" above a match statement. Write "handles each shape the reader accepts".
  • "See the five rows in the table under Layout." Write "See the table under Layout."

Possible Direction

Add a rule to GOVERNANCE.md "Documentation Style Conventions", carried into comment-and-doc-style and stated for code comments under CODESTYLE.md "General" where that's the right home. Text refers to the enumeration ("the following", "each", "the cases below") rather than stating its size. A count is written only when the number is itself the contribution, for example a limit, a threshold, a version, or a measured result the reader acts on. A count that is the contribution names its source, so a reader can re-derive it.

Also consider a line in fleet-code-review and pr-review-conduct: a reviewer finding that a stated count is wrong is best fixed by removing the count where it is incidental, rather than by correcting the number, since the corrected number goes stale the same way. Settling this means sweeping every surface that states the rule, plus the existing carried text that already carries incidental counts.

Activity

  1. added
    documentation
    skills
    prose
    on Oct 16, 2026
  2. added a commit that references this issue on Oct 17, 2026
    b6c53db
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

    documentationproseskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions