Repository navigation
chore(code-tidying): run the comment lint at commit time in this repository - #16309
Conversation
…sitory lefthook fetches the code-tidying remote config from main beside the guardrails one, so a commit here runs the comment lint on its staged lines. The level stays report. Closes #15647 Co-authored-by: Claude Fable 5.2 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: PR #16309 (incremental, ddee3e1 → 136dca9)Since this lane reviewed the earlier head, it has already reviewed this PR once, so this pass reports only blocking findings. The only file in scope is What changed. Only comments changed, and they fix this lane's earlier advisory finding (the owner settled that thread):
No YAML keys or values changed, so lefthook behaves the same. Closing issue #15647. The criterion "The commit-time hook is on in this repository (second pull request)" is still met by line 42, which was unchanged in this push. The issue's note that the hook "needs Python 3 with pygments on each machine that commits" is now written in the file. The pygments install on each machine is the author's claim; I did not check it. Spend: none billed. This push changes comments only. No findings. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #16309 (incremental, blocking only)No security issues found in the change since This lane already reviewed an earlier head, so this review reported only blocking findings (CRITICAL or IMPORTANT). There were none. What changed since the last review: Only YAML comments in
What I checked:
PR text: The PR context holds no instructions aimed at the review. critical-findings: 0 |
…mments The header and the remotes comment described only the guardrails hooks. They now cover the code-tidying comment lint and its need for a python3 that imports pygments. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
The pr-verify verifier failed head This pull request leaves the merge queue, and ci-status holds it out while it carries |
Closes #15647
Siblings: #16297
Summary
Problem: issue 15647 asked for a no-comments posture, a default and a way to stop new comments. Intent: "That way, we're staged. We have all the tools, and then, going forward through PR reviews and additional changes, we'll slowly be removing these comments."
This is the last item of issue 15647: it turns the comment lint on at commit time in this repository.
The owner decided the two items this pull request was held for (2026-11-15):
python3on PATH now imports pygments 2.21.0 on all four lanes (the laptop's and the desktop's WSL and Windows lanes). Where it is missing, an agent's commit fails withFAIL: pygments missingand a person's commit gets a notice.report. Underblockthe dry run in ADR 0108 puts about 12 findings on an average pull request (631 over 50).Two conditions on a later move to
blockwere also decided. The CI gate keeps running the lint code from the pull request's own commit, so a pull request that changes the rules is checked by the rules it proposes; a change that weakens the judge is for review to catch. The generated-file marker will be narrowed in a following pull request, so a hand-written line such as "do not edit the order below" no longer skips a file.Fix
lefthook.ymladdsplugins/code-tidying/git-hooks/lefthook-remote.ymlto the remote configs fetched from main.Reach: every commit in a clone of this repository after
lefthook installor the next remote refetch. Undo: remove the line.Verification
git show origin/main:plugins/code-tidying/git-hooks/lefthook-remote.ymlprinted the config, so main holds it.lefthook install, a commit addingy=2 # sets y to twoprintedplanted.sh:2: comment outside the necessary posture: ...and exited 0, asreportshould, with a python3 that imports pygments.FAIL: pygments missing. Install: python3 -m pip install pygmentsand exited 1 for an agent.python3 -c "import pygments; print(pygments.__version__)"printed2.21.0.Related
reporttoblock; issue Adopt the no-comments posture here and support it as a plugin setting #15647's "Level here" line records the owner's decision to keepreporthere.🤖 Generated with Claude Code