You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
local-strict-review Should Check Prose and Comment Shape Before the Push #2293
The local-strict-review brief quotes fleet-code-review "Review the Change" plus three traps: unguarded type coercions, TOCTOU, and platform differences. It doesn't carry the comment-and-doc-style rules, and it doesn't have the reviewer run scripts/prose_lint.py. The reviewer judges code and facts, but nothing in its brief asks it to check prose and comment shape. The PR-hosted reviewer then finds those problems after the push.
Evidence
In one homeassistant-purpleair round, three changes each passed every recorded local pass:
the reconfigure fix
the migration fix
the CI matrix change
Copilot then raised three prose findings on the develop -> main promotion pull request:
sentences over 25 words in WORKFLOW.md and OPERATIONS.md
comment sentences wrapped across lines in code and workflow comments
historical framing in a comment rationale
Fixing them took two extra feature pull requests and two more review rounds on the promotion (ptr727/homeassistant-purpleair#368, ptr727/homeassistant-purpleair#369). prose_lint.py --diff origin/main with --check comment-wrap flagged 30 of those comment lines at once, which was available before the first push.
Fix
Two options, which can be combined:
Run the linter in the brief. Have the local pass run prose_lint.py --diff "$(git merge-base refs/remotes/origin/<target> HEAD)", with the default checks plus --check sentence-length and --check comment-wrap, over the changed files. Report its output as findings.
Quote the rules in the brief. Add the comment-and-doc-style sentence and comment rules to "Rules that bind this task", at least these:
one sentence per comment line, never wrapped
at most 25 words per sentence
only the non-obvious why, with no historical narrative
The first is mechanical and cheap. The second covers what the linter can't judge, such as historical framing.
Related: #2292 (sentence-length misses wrapped sentences), which the first option would otherwise inherit.
Activity
Make the Dispatcher Own the Strict-Review Pass for Seats That Cannot …