From 95243330d66e5b55b4648080941e44ad0244fb39 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Wed, 28 Oct 2026 17:27:34 +0000 Subject: [PATCH 1/2] docs: stop saying CPython refuses AI co-authors CPython's AI tools guide asks for no commit trailers: disclosure is appreciated, not required. Name pip and attrs, whose policies do refuse an LLM co-author, as the example for the warn-CC014 setup, and say a CPython-style policy needs no check. --- docs/guides/policies.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/guides/policies.md b/docs/guides/policies.md index 8d48cbc..8ff9238 100644 --- a/docs/guides/policies.md +++ b/docs/guides/policies.md @@ -246,12 +246,13 @@ Suggest: Write the Assisted-by value so that it matches ^\S+/\S+$ (set by ai_dis That failure carries no correction, because the tool should not guess which model or format you meant. -### Disclosure that is appreciated, not required +### Refusing the tool as a co-author, without asking for disclosure -Some projects — [CPython](https://devguide.python.org/getting-started/generative-ai/) -among them — welcome disclosure without demanding it, while still refusing the -tool as a co-author. Put CC014 in the top-level `warn` list and the other two -keep enforcing: +[pip](https://github.com/pypa/pip/blob/main/AI_POLICY.md) and +[attrs](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) +close any pull request that lists an LLM as a co-author, but they don't ask +contributors to disclose AI use. Put CC014 in the top-level `warn` list and +the other two keep enforcing: ```toml title="cchk.toml" warn = ["ai_disclosure"] @@ -271,6 +272,12 @@ This rule is set to warn in the config; it does not fail the run. The run still passes. See [Report a rule without enforcing it](../configuration.md#report-a-rule-without-enforcing-it). +[CPython](https://devguide.python.org/getting-started/ai-tools/) sets no rule +for commits at all: disclosing AI use is appreciated but not required, and +triagers judge each contribution by whether its author can explain it in their +own words. A policy like that leaves nothing for commit-check to enforce, so +keep `ai_attribution` at its default, `"ignore"`. + ### Exempting automation Bots that legitimately carry AI trailers can be excluded: From 26b3e9081d6f83844baae8f52dcc14ab043ee8bb Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Wed, 28 Oct 2026 17:34:58 +0000 Subject: [PATCH 2/2] docs: say the CC014 warning still suggests a disclosure pip and attrs don't ask for --- docs/guides/policies.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guides/policies.md b/docs/guides/policies.md index 8ff9238..a542d7b 100644 --- a/docs/guides/policies.md +++ b/docs/guides/policies.md @@ -269,7 +269,9 @@ Docs: https://commit-check.com/rules/#cc014 This rule is set to warn in the config; it does not fail the run. ``` -The run still passes. See +The run still passes. The warning still suggests a disclosure that pip and +attrs don't ask for: commit-check has no switch that turns off a single rule, +so reporting CC014 is as quiet as it gets. See [Report a rule without enforcing it](../configuration.md#report-a-rule-without-enforcing-it). [CPython](https://devguide.python.org/getting-started/ai-tools/) sets no rule