Skip to content

Refer to an Enumeration Instead of Stating an Incidental Count - #3168

Merged
ptr727 merged 5 commits into
developfrom
feature/incidental-count-rule-3160
Oct 17, 2026
Merged

ptr727 merged 5 commits into
developfrom
feature/incidental-count-rule-3160

Conversation

@ptr727

@ptr727 ptr727 commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Summary

Refs #3160.

  • Adds GOVERNANCE.md "Documentation Style Conventions" > "Incidental Counts". Text refers to an enumeration ("the following checks", "each case", "the rows below") rather than stating its size. The rule says outright that it holds in every fleet repository, for docs, code and workflow comments, and docstrings. A count stays only where the number is what the reader needs, such as a limit, a threshold, or a measured result, and it then names its source. A wrong incidental count is removed rather than corrected.
  • comment-and-doc-style carries the subsection whole as a generated include under "Quantitative claims", and its description gains a trigger for text that states how many items a list holds.
  • fleet-code-review gains one line: a finding that a stated count is wrong suggests removing it where it is incidental.
  • Sweeps the incidental counts out of AGENTS.md, GOVERNANCE.md, CODESTYLE.md, WORKFLOW.md, the skill sources, and the hub-only scripts/README.md and scripts/handoff.py docstring, which repeated one of the same sentences.

Deliberately left as they are:

  • Counts that are the contribution: caps, timeouts, limits.
  • Pairs fixed by construction, such as the workflow models and the .editorconfig and .gitattributes pair.
  • Counts an ordinal structure later in the paragraph relies on ("the first two ... the third").
  • Counts inside section titles other text links to, which need a heading rename. The rest of the sweep and those renames go to a follow-up issue.

CODESTYLE.md "General" and pr-review-conduct are unchanged, since the GOVERNANCE.md section already governs code comments and the rule itself states how a wrong count is fixed.

Verification

  • scripts/build_dist.py --check, scripts/prose_lint.py --diff, scripts/repo_gate.py --check eol, spec/validate.py: clean.
  • markdownlint, cspell, and editorconfig-checker through scripts/docker_lint.py: clean.
  • python3 -m unittest discover -s tests: 2887 tests OK, 7 skipped.
  • The opt-in sentence-length check reports only sentences that were over the cap before this branch and sit on a touched one-line paragraph. None of them is new wording.
  • local-strict-review ran three recorded passes. The first raised 14 findings and the second raised 1, almost all antecedents left dangling by a removed count. All were fixed, and the final pass raised none.

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 16, 2026 16:33
Add an "Incidental Counts" rule to GOVERNANCE.md "Documentation Style
Conventions", carried whole into comment-and-doc-style as a generated
include, and point fleet-code-review at it. Remove the incidental counts
the carried text already held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebind pronouns that pointed at the wrong noun once a count was gone,
finish the half-removed counts later in the same paragraphs, keep the
ordinal-structured count in backlog-burndown, apply the rule to the
References carve-outs, and drop "a version" from the rule's list of
counts the reader needs, since a version is not an enumeration size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 17, 2026 00:30
@ptr727 ptr727 added documentation Improvements or additions to documentation skills Agent skill prose A defect in rule or procedure text labels Oct 17, 2026
@ptr727

ptr727 commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head e01150a633d7de3d0790a3a6776ab55c70dc0413, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d0b57e5-8302-4c13-a856-32b20b1a0fa9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Remaining incidental counts, a grammar error, and incomplete fleet-wide cleanup must be addressed.

No open issues 🎉

What changed in this PR

This documentation-focused PR introduces a fleet-wide rule against incidental enumeration counts and updates canonical and generated skill content.

Changes:

  • Adds the Incidental Counts governance rule.
  • Removes stale incidental counts across documentation, scripts, and skills.
  • Regenerates skill distributions and source digests.
File Reviewed change
WORKFLOW.md Updates workflow enumeration wording.
scripts/​README.md Updates handoff documentation.
scripts/​handoff.py Updates the module docstring.
GOVERNANCE.md Adds the canonical rule.
CODESTYLE.md Removes incidental count wording.
AGENTS.md Updates agent guidance.
.github/​skills/​workflow-ci-contract/​SKILL.md Updates generated workflow guidance.
.github/​skills/​workflow-ci-contract/​references/​test-methodology.md Updates generated methodology guidance.
.github/​skills/​unattended-handoff/​SKILL.md Updates generated handoff guidance.
.github/​skills/​session-handoff/​SKILL.md Updates generated session guidance.
.github/​skills/​repo-worktree/​SKILL.md Updates generated worktree guidance.
.github/​skills/​python-codestyle/​references/​code-style.md Updates generated Python guidance.
.github/​skills/​merge-and-release/​SKILL.md Updates generated release guidance.
.github/​skills/​local-strict-review/​SKILL.md Updates generated review guidance.
.github/​skills/​git-commit-conventions/​references/​history-rewrite.md Updates generated Git guidance.
.github/​skills/​fleet-code-review/​SKILL.md Adds generated count-review guidance.
.github/​skills/​dotnet-codestyle/​SKILL.md Updates generated .NET guidance.
.github/​skills/​comment-and-doc-style/​SKILL.md Carries the generated rule.
.github/​skills/​comment-and-doc-style/​references/​carried-doc-references.md Updates generated reference guidance.
.github/​skills/​carried-instruction-file-guard/​SKILL.md Updates generated guard guidance.
.github/​skills/​branching-and-release-model/​references/​release-publish-mechanics.md Updates generated release guidance.
.github/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Updates generated promotion guidance.
.github/​skills/​backlog-burndown/​SKILL.md Updates generated backlog guidance.
.github/​skills/​audit-a-repo/​SKILL.md Updates generated audit guidance.
.github/​skills/​agent-conduct/​SKILL.md Updates generated conduct guidance.
.claude-plugin/​fleet-skills/​skills/​workflow-ci-contract/​SKILL.md Updates generated plugin workflow guidance.
.claude-plugin/​fleet-skills/​skills/​workflow-ci-contract/​references/​test-methodology.md Updates generated plugin methodology guidance.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Updates generated plugin handoff guidance.
.claude-plugin/​fleet-skills/​skills/​session-handoff/​SKILL.md Updates generated plugin session guidance.
.claude-plugin/​fleet-skills/​skills/​repo-worktree/​SKILL.md Updates generated plugin worktree guidance.
.claude-plugin/​fleet-skills/​skills/​python-codestyle/​references/​code-style.md Updates generated plugin Python guidance.
.claude-plugin/​fleet-skills/​skills/​merge-and-release/​SKILL.md Updates generated plugin release guidance.
.claude-plugin/​fleet-skills/​skills/​local-strict-review/​SKILL.md Updates generated plugin review guidance.
.claude-plugin/​fleet-skills/​skills/​git-commit-conventions/​references/​history-rewrite.md Updates generated plugin Git guidance.
.claude-plugin/​fleet-skills/​skills/​fleet-code-review/​SKILL.md Adds generated plugin count-review guidance.
.claude-plugin/​fleet-skills/​skills/​dotnet-codestyle/​SKILL.md Updates generated plugin .NET guidance.
.claude-plugin/​fleet-skills/​skills/​comment-and-doc-style/​SKILL.md Carries the generated plugin rule.
.claude-plugin/​fleet-skills/​skills/​comment-and-doc-style/​references/​carried-doc-references.md Updates generated plugin references.
.claude-plugin/​fleet-skills/​skills/​carried-instruction-file-guard/​SKILL.md Updates generated plugin guard guidance.
.claude-plugin/​fleet-skills/​skills/​branching-and-release-model/​references/​release-publish-mechanics.md Updates generated plugin release guidance.
.claude-plugin/​fleet-skills/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Updates generated plugin promotion guidance.
.claude-plugin/​fleet-skills/​skills/​backlog-burndown/​SKILL.md Updates generated plugin backlog guidance.
.claude-plugin/​fleet-skills/​skills/​audit-a-repo/​SKILL.md Updates generated plugin audit guidance.
.claude-plugin/​fleet-skills/​skills/​agent-conduct/​SKILL.md Updates generated plugin conduct guidance.
.claude-plugin/​fleet-skills/​.source-digests/​workflow-ci-contract Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​session-handoff Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​repo-worktree Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​python-codestyle Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​merge-and-release Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​local-strict-review Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​git-commit-conventions Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​fleet-code-review Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​dotnet-codestyle Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​comment-and-doc-style Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​carried-instruction-file-guard Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​branching-and-release-model Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​backlog-burndown Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​audit-a-repo Updates the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​agent-conduct Updates the source digest.
.agents/​skills/​workflow-ci-contract/​SKILL.md Updates workflow guidance.
.agents/​skills/​workflow-ci-contract/​references/​test-methodology.md Updates methodology guidance.
.agents/​skills/​unattended-handoff/​SKILL.md Updates handoff guidance.
.agents/​skills/​session-handoff/​SKILL.md Updates session guidance.
.agents/​skills/​repo-worktree/​SKILL.md Updates worktree guidance.
.agents/​skills/​python-codestyle/​references/​code-style.md Updates Python guidance.
.agents/​skills/​merge-and-release/​SKILL.md Updates release guidance.
.agents/​skills/​local-strict-review/​SKILL.md Updates review guidance.
.agents/​skills/​git-commit-conventions/​references/​history-rewrite.md Updates Git guidance.
.agents/​skills/​fleet-code-review/​SKILL.md Adds count-review guidance.
.agents/​skills/​dotnet-codestyle/​SKILL.md Updates .NET guidance.
.agents/​skills/​comment-and-doc-style/​SKILL.md Carries the new rule.
.agents/​skills/​comment-and-doc-style/​references/​carried-doc-references.md Updates reference guidance.
.agents/​skills/​carried-instruction-file-guard/​SKILL.md Updates guard guidance.
.agents/​skills/​branching-and-release-model/​references/​release-publish-mechanics.md Updates release guidance.
.agents/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Updates promotion guidance.
.agents/​skills/​backlog-burndown/​SKILL.md Updates backlog guidance.
.agents/​skills/​audit-a-repo/​SKILL.md Updates audit guidance.
.agents/​skills/​agent-conduct/​SKILL.md Updates conduct guidance.

Review effort: Lite

@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.97%. Comparing base (a152f47) to head (7ccdd59).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3168   +/-   ##
========================================
  Coverage    63.97%   63.97%           
========================================
  Files           17       17           
  Lines         9151     9151           
========================================
  Hits          5854     5854           
  Misses        3297     3297           
Flag Coverage Δ
python-3.13 63.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ptr727 and others added 2 commits October 16, 2026 17:36
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 7ccdd594a49ecf32743f3e5d4a5b3af4b3545591, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727

ptr727 commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

Answering the Copilot round on e01150a, whose headline flagged three things without opening a thread: remaining incidental counts, a grammar error, and incomplete fleet-wide cleanup.

  • Remaining incidental counts and incomplete fleet-wide cleanup: deferred to Finish the Incidental Count Sweep, Including Counted Section Titles #3169, filed before this reply. The sweep here was a first pass by design. Its unjudged hits, and the counts inside section titles that other text quotes by name, need their own change with a heading rename and an untruncated reference search. This PR states that scope in its body.
  • Grammar error: not located by the round, so the fix covers every sentence this branch rewrote. 6ff068a gives the verbless fragments a verb, in GOVERNANCE.md "The conditions below must hold together" and in carried-doc-references.md "The following are banned in the files above:". 7ccdd59 rebinds session-handoff's "between those steps" and "on each subcommand that accepts it", which the count removals had left without a matching antecedent. A local strict pass over the full diff at 7ccdd59 found no further grammar error.

@ptr727
ptr727 merged commit 3bb8896 into develop Oct 17, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/incidental-count-rule-3160 branch October 17, 2026 00:50
ptr727 added a commit that referenced this pull request Oct 17, 2026
…3177)

## Summary

Removing the incidental count in #3168 left "These kinds of group are
never tiered below `frontier`" in `backlog-burndown`, which Copilot
flagged on the promotion #3175 as an incorrect singular noun. It now
reads "Groups of these kinds are never tiered below `frontier`", which
still introduces the bullets that each open on "One touching" or "One
whose". The generated distributions are regenerated.

## Verification

- `scripts/build_dist.py --check` reports the distributions current.
- `prose_lint.py --diff` (default rules and `--check sentence-length`)
and markdownlint are clean.
- Local strict review: 0 findings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
ptr727 added a commit that referenced this pull request Oct 17, 2026
…r to Main (#3175)

- #3168 adds `GOVERNANCE.md` "Documentation Style Conventions" >
"Incidental Counts", carried whole into `comment-and-doc-style`, and
removes the incidental counts from the carried canonicals, the skill
sources, `scripts/README.md`, and the `scripts/handoff.py` docstring.
The rest of the sweep is #3169.
- #3172 teaches `pr_review.py` Copilot's count-first overview summaries,
`N previously missed issues`, `N open issue(s)`, and the `**No open
issues**` stated zero, which each stopped the loop with exit 43. It
reads a section heading's count in one place and reports a vetted
previously-missed summary no reader finds. Its deferred local-review
findings are #3173 and #3174.
- #3177 names the never-tiered-down groups in `backlog-burndown` in the
plural, the noun Copilot flagged on this promotion's first round.

After this merges, `comment-and-doc-style` changes, so this machine's
installed Skills are refreshed at release.

Closes #3160
Closes #3167
Closes #3170

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation prose A defect in rule or procedure text skills Agent skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants