← Back to Pull requests

Tighten the AI guidelines and rules for new contributors #1956

Open
picnixz opened this pull request with 51 lines diff across 2 files
View on GitHub
picnixz picnixz commented on Oct 31, 2026 16:19 UTC
Author

First draft of a stricter AI policy for newcomers. Like the other PR, I also used Opus 5.5 for the text and reading the existing parts of the devguide and to polish the tone in a more... diplomatic way I would have said.

I think it grasps my main intent at least: we want newcomers to learn something, not to farm contribution points.

Diff: 51 lines (+46 / -5) across 2 files Reviewer: willingc Review duration: 46165m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.35) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 51 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.92 · 5 substantive comment(s)
0.92
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
89%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.236
Real PR Conversation Timeline
7 items
read-the-docs-community[bot] read-the-docs-community[bot] commented on Oct 31, 2026 16:20 UTC
Bot

<!-- readthedocs-55693 -->

Documentation build overview

📚 CPython devguide | 🛠️ Build #35547177 | 📁 Comparing 90417ff02666ec5b73db87a9cc895364709298d8 against latest (a4da55860a469b4e4453f7c3cb2553ce4e38d03f)

<kbd> &nbsp; 🔍 Preview build &nbsp; </kbd>

<details open>
<summary>2 files changed</summary>
<br>
<code>±</code> <a href="https://cpython-devguide--1956.org.readthedocs.build/getting-started/ai-tools/index.html"><code>getting-started/ai-tools/index.html</code></a><br>
<code>±</code> <a href="https://cpython-devguide--1956.org.readthedocs.build/triage/triage-team/index.html"><code>triage/triage-team/index.html</code></a><br>
</details>

willingc willingc commented on code on Nov 03, 2026 00:05 UTC
Code Review
getting-started/ai-tools.rst:1
@@ -59,9 +77,30 @@ If a contributor repeatedly opens unproductive issues or PRs, they may be
 blocked from contributing to the project because it is disruptive and
 disrespectful of the maintainers time.
 
-It is not acceptable to alter or bypass existing tests, or remove desired
-functionality, in order to make a failing test pass. Such changes are not
-a real fix.
+Other unacceptable uses include:
+
+- Communicating only through an AI tool, for example by passing reviewers'
+  questions to it and posting its answers as your own. Apart from
+  translating text you wrote, reviewers expect to discuss the change with
+  you. If you do not know the answer to a question, say so.
+- Altering or bypassing existing tests, or removing desired functionality,
+  in order to make a failing test pass. Such changes are not a real fix.
+
+.. _ai-tools-new-contributors:
+
+Additional rules for new contributors

Shouldn't these rules apply to all contributors?

picnixz picnixz commented on code on Nov 03, 2026 00:16 UTC
Code Review
getting-started/ai-tools.rst:1
@@ -59,9 +77,30 @@ If a contributor repeatedly opens unproductive issues or PRs, they may be
 blocked from contributing to the project because it is disruptive and
 disrespectful of the maintainers time.
 
-It is not acceptable to alter or bypass existing tests, or remove desired
-functionality, in order to make a failing test pass. Such changes are not
-a real fix.
+Other unacceptable uses include:
+
+- Communicating only through an AI tool, for example by passing reviewers'
+  questions to it and posting its answers as your own. Apart from
+  translating text you wrote, reviewers expect to discuss the change with
+  you. If you do not know the answer to a question, say so.
+- Altering or bypassing existing tests, or removing desired functionality,
+  in order to make a failing test pass. Such changes are not a real fix.
+
+.. _ai-tools-new-contributors:
+
+Additional rules for new contributors

I want to allow "regular" contributors use of AI because of the trust they built, even if they are neither triagers nor core devs. But I don't want that the first contributions of users is solely AI. But if you want a stronger policy where this applies to everyone, I'm fine as well, though I think it's sad that core devs can't use what the AI generated for them.

It's hard to convene that but informally:

  • Newcomers: please don't use AI, you need to prove yourself.

  • Others: we can trust your judgment more so you also generate your PRs with AI. But please, make it so that it's not annoying to read.
  • Mariatta Mariatta commented on code on Nov 03, 2026 14:10 UTC
    Code Review
    getting-started/ai-tools.rst:1
    @@ -59,9 +77,30 @@ If a contributor repeatedly opens unproductive issues or PRs, they may be
     blocked from contributing to the project because it is disruptive and
     disrespectful of the maintainers time.
     
    -It is not acceptable to alter or bypass existing tests, or remove desired
    -functionality, in order to make a failing test pass. Such changes are not
    -a real fix.
    +Other unacceptable uses include:
    +
    +- Communicating only through an AI tool, for example by passing reviewers'
    +  questions to it and posting its answers as your own. Apart from
    +  translating text you wrote, reviewers expect to discuss the change with
    +  you. If you do not know the answer to a question, say so.
    +- Altering or bypassing existing tests, or removing desired functionality,
    +  in order to make a failing test pass. Such changes are not a real fix.
    +
    +.. _ai-tools-new-contributors:
    +
    +Additional rules for new contributors

    I agree that llm-based contributions are annoying, and I agree that we need a way to trust the new contributos and for the new contributors to earn our trust.
    But I disagree with this particular approach of creating yet another class of contributors: those who are allowed to use AI and those who are not.

    I've been asking myself what I want to know from contributors when they use AI. I still don't have answers or solutions, but these are the things I've been thinking about:I want to know what is their contribution to the PR, did they simply point the agent to the issue and click accept? Did they ask the agent first to explain and clarify? Did they try to verify, replicate, weigh the options from the agents. Did they make any judgement calls, was there a time that they went against the agents recommendations, if so what was that? These are the things that would help me gain trust in the contributor, not the number of PRs they've made and not their status or core dev or not. (I've shared a long form reflection on my personal blog)

    willingc willingc commented on code on Nov 03, 2026 15:39 UTC
    Code Review
    getting-started/ai-tools.rst:1
    @@ -59,9 +77,30 @@ If a contributor repeatedly opens unproductive issues or PRs, they may be
     blocked from contributing to the project because it is disruptive and
     disrespectful of the maintainers time.
     
    -It is not acceptable to alter or bypass existing tests, or remove desired
    -functionality, in order to make a failing test pass. Such changes are not
    -a real fix.
    +Other unacceptable uses include:
    +
    +- Communicating only through an AI tool, for example by passing reviewers'
    +  questions to it and posting its answers as your own. Apart from
    +  translating text you wrote, reviewers expect to discuss the change with
    +  you. If you do not know the answer to a question, say so.
    +- Altering or bypassing existing tests, or removing desired functionality,
    +  in order to make a failing test pass. Such changes are not a real fix.
    +
    +.. _ai-tools-new-contributors:
    +
    +Additional rules for new contributors

    It's hard to convene that but informally:

    Newcomers: please don't use AI, you need to prove yourself.

    Others: we can trust your judgment more so you also generate your PRs with AI. But please, make it so that it's not annoying to read.

    The examples and additional text in the first two sections make sense. Thanks for taking the time to add additional detail.

    I wasn't clear earlier that my question was in the "Additional rules for new contributors" section. I do want PRs from the core team, triagers, and contributors to be used responsibly. I don't think that we should have a different process for first-time contributors. To me, it feels elitist and creates an additional barrier for contributors.

    I believe that it would be most effective to guide the first-time contributor (or their AI tool) to create a well-scoped PR. Basically, helping the AI tool follow a template for a valuable contribution:

  • the length of the PR message

  • tests

  • avoid unnecessary churn, etc.
  • For the human, strengthening the wording to respect maintainers' time and "demonstrating commitment to the project".

    "Demonstrating commitment to the project" could encourage most of what you suggested.

    picnixz picnixz commented on code on Nov 03, 2026 16:47 UTC
    Code Review
    getting-started/ai-tools.rst:1
    @@ -59,9 +77,30 @@ If a contributor repeatedly opens unproductive issues or PRs, they may be
     blocked from contributing to the project because it is disruptive and
     disrespectful of the maintainers time.
     
    -It is not acceptable to alter or bypass existing tests, or remove desired
    -functionality, in order to make a failing test pass. Such changes are not
    -a real fix.
    +Other unacceptable uses include:
    +
    +- Communicating only through an AI tool, for example by passing reviewers'
    +  questions to it and posting its answers as your own. Apart from
    +  translating text you wrote, reviewers expect to discuss the change with
    +  you. If you do not know the answer to a question, say so.
    +- Altering or bypassing existing tests, or removing desired functionality,
    +  in order to make a failing test pass. Such changes are not a real fix.
    +
    +.. _ai-tools-new-contributors:
    +
    +Additional rules for new contributors

    I want to know what is their contribution to the PR, did they simply point the agent to the issue and click accept?

    With the new AI labels, the answers still ring LLM-isque and I still don't know whether I can trust the answer of "yes I did it myself" (I have no way to judge how good they are at evaluating the LLM output and whether they just trust it because it's used in XHIGH effort). OTOH, most of the time the change _is_ correct and that's what bothers me principally. I want the change to be done, but I don't think this qualifies as a "contribution", at least not to me here.

    That being said, I believ https://github.com/python/devguide/pull/1957 could help agents refuse openingsuch PRs so that would still be useful.
    I also think encouraging posting the original text when AI is used for translation is worthwhile and keeping the updated unacceptable uses that apply to everyone (and telling triagers how to block someone as I don't think it's actually mentioned).

    Reviewers
    Assignees
    picnixz picnixz
    Labels
    risk: low confidence: 89.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.1% (MEDIUM) · Higher = larger blast radius
    35.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 89.7% · Lower = rushed or shallow review
    89.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.6% · Safe to merge
    3.6%