pre-commit run --all-files runs only the pre-commit stage, so Lint gives each pull request commit's message to commit-msg hooks in a separate step. That step named conventional-pre-commit only, so refuse-agent-trailers ran nowhere in CI. It was skipped unseen by --no-verify, by a clone without scripts/dev-setup.sh, and by a commit made through the forge.
lint.yml: the step runs pre-commit run --hook-stage commit-msg with no hook id, so every commit-msg hook in the config runs. The step is renamed from "Check Conventional Commits" to "Check commit messages". Branch protection requires the job, not the step, so the rename changes nothing there.
AGENTS.md and docs/contributing/ai-assistance.md: the trailer rule's Held by now says the hook is re-run by the Lint check.
The hooks come from the pull request's own .pre-commit-config.yaml. A pull request that removed a hook would therefore pass its own commits. That file is under CODEOWNERS, so it is held by review, the same as for every other hook.
No changelog fragment: CI and contributor docs only.
Verified
I ran the loop's command, pre-commit run --hook-stage commit-msg --commit-msg-filename <f>, locally on three messages. Both hooks ran each time:
feat: ok with Assisted-by: Claude Code passed, exit 0.
feat: bad with Co-Authored-By: Claude <[email protected]> failed on refuse-agent-trailers, exit 1.
not conventional failed on Conventional Commit, exit 1.
pre-commit run --all-files passes, including actionlint and zizmor on the changed workflow.
ansible-test sanity passed through the pre-push hook.
No file refers to the old step name.
Not verified
The step in CI itself, until Lint runs on this pull request. This pull request's own commit carries no agent trailer, so it only shows the passing path. The failing path was shown locally only.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Follow-up to #272 (#365); no separate issue.
`pre-commit run --all-files` runs only the `pre-commit` stage, so Lint gives each pull request commit's message to `commit-msg` hooks in a separate step. That step named `conventional-pre-commit` only, so `refuse-agent-trailers` ran nowhere in CI. It was skipped unseen by `--no-verify`, by a clone without `scripts/dev-setup.sh`, and by a commit made through the forge.
- `lint.yml`: the step runs `pre-commit run --hook-stage commit-msg` with no hook id, so every `commit-msg` hook in the config runs. The step is renamed from "Check Conventional Commits" to "Check commit messages". Branch protection requires the job, not the step, so the rename changes nothing there.
- `AGENTS.md` and `docs/contributing/ai-assistance.md`: the trailer rule's *Held by* now says the hook is re-run by the Lint check.
The hooks come from the pull request's own `.pre-commit-config.yaml`. A pull request that removed a hook would therefore pass its own commits. That file is under CODEOWNERS, so it is held by review, the same as for every other hook.
No changelog fragment: CI and contributor docs only.
## Verified
- I ran the loop's command, `pre-commit run --hook-stage commit-msg --commit-msg-filename <f>`, locally on three messages. Both hooks ran each time:
- `feat: ok` with `Assisted-by: Claude Code` passed, exit 0.
- `feat: bad` with `Co-Authored-By: Claude <[email protected]>` failed on `refuse-agent-trailers`, exit 1.
- `not conventional` failed on Conventional Commit, exit 1.
- `pre-commit run --all-files` passes, including actionlint and zizmor on the changed workflow.
- `ansible-test sanity` passed through the pre-push hook.
- No file refers to the old step name.
## Not verified
- **The step in CI itself**, until Lint runs on this pull request. This pull request's own commit carries no agent trailer, so it only shows the passing path. The failing path was shown locally only.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the Open to contributors milestone 2026-11-25 11:59:32 +00:00
Defame1297
was assigned by Claude2026-11-25 11:59:32 +00:00
The Lint step gave each commit's message only to conventional-pre-commit,
so refuse-agent-trailers ran nowhere in CI: --no-verify, a clone without
dev-setup.sh or a commit made through the forge passed it unseen. The
step now runs every commit-msg hook, and the trailer rule's held-by
names the Lint check.
Assisted-by: Claude Code
CODEOWNERS rules
requested review from Defame1297 2026-11-25 11:59:32 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Follow-up to #272 (#365); no separate issue.
pre-commit run --all-filesruns only thepre-commitstage, so Lint gives each pull request commit's message tocommit-msghooks in a separate step. That step namedconventional-pre-commitonly, sorefuse-agent-trailersran nowhere in CI. It was skipped unseen by--no-verify, by a clone withoutscripts/dev-setup.sh, and by a commit made through the forge.lint.yml: the step runspre-commit run --hook-stage commit-msgwith no hook id, so everycommit-msghook in the config runs. The step is renamed from "Check Conventional Commits" to "Check commit messages". Branch protection requires the job, not the step, so the rename changes nothing there.AGENTS.mdanddocs/contributing/ai-assistance.md: the trailer rule's Held by now says the hook is re-run by the Lint check.The hooks come from the pull request's own
.pre-commit-config.yaml. A pull request that removed a hook would therefore pass its own commits. That file is under CODEOWNERS, so it is held by review, the same as for every other hook.No changelog fragment: CI and contributor docs only.
Verified
pre-commit run --hook-stage commit-msg --commit-msg-filename <f>, locally on three messages. Both hooks ran each time:feat: okwithAssisted-by: Claude Codepassed, exit 0.feat: badwithCo-Authored-By: Claude <[email protected]>failed onrefuse-agent-trailers, exit 1.not conventionalfailed on Conventional Commit, exit 1.pre-commit run --all-filespasses, including actionlint and zizmor on the changed workflow.ansible-test sanitypassed through the pre-push hook.Not verified
NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code