← Back to Pull requests

Update Docs about AI policy enforcement #1947

Merged
Mariatta merged 4 files (55 lines) on Oct 28, 2026 00:35 UTC
View on GitHub
Mariatta Mariatta commented on Oct 27, 2026 21:22 UTC
Author

Update AI policy guidelines doc to explain how we are enforcing this policy. Update triaging docs to add checklist and guidance on how to triage ai-assisted contributions.

Closes #1935

Diff: 55 lines (+53 / -2) across 4 files Reviewer: zanieb Review duration: 193m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.31) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 55 lines diff across 4 files
0.31
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 2 substantive comment(s)
0.77
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
80%
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.241
Real PR Conversation Timeline
5 items
zanieb zanieb approved these changes on Oct 27, 2026 21:25 UTC
Approved Reviewer

Approved these changes.

hugovk hugovk commented on code on Oct 27, 2026 22:05 UTC
Code Review
triage/triage-team.rst:1
@@ -56,6 +56,38 @@ the Python Software Foundation, always follow the `PSF Code of Conduct`_.
 .. _PSF Code of Conduct: https://policies.python.org/python.org/code-of-conduct/
 
 
+.. _triage-ai-labels:
+
+Applying the AI policy labels
+=============================
+
+Use the AI policy labels for issues and PRs that don't follow the
+:ref:`guidelines for using AI tools <ai-tools>`. Don't apply them only because
+AI tools were used, or because the author disclosed using them.
+
+Apply only one of these labels to an issue or PR. If you add one when the
+other is already there, remove the other label.
+
+* Start with :gh-label:`AI-needs-explanation`. The bot asks the author to
+  explain the work in their own words and leaves the issue or PR open.
+* Use :gh-label:`AI-guidelines-not-met` only for clear cases, such as a
+  low-effort submission where the author is unlikely to engage with feedback.
+  The bot posts a comment and closes the issue or PR. If you have any doubt,
+  use :gh-label:`AI-needs-explanation` instead, or consult a core developer.
+* If the author doesn't respond to :gh-label:`AI-needs-explanation`, or the
+  response doesn't address the concern (for example, it is more generated
+  text), remove :gh-label:`AI-needs-explanation` and add
+  :gh-label:`AI-guidelines-not-met`. The bot posts the closing
+  comment and closes the issue or PR. If you have any doubt, consult a core
+  developer first.

  team member first.

willingc willingc approved these changes on Oct 27, 2026 22:52 UTC
Approved Reviewer

@Mariatta Thank you for clearly documenting the process and helping the team apply the labels consistently.

Reviewers
Assignees
Mariatta Mariatta
Labels
risk: low confidence: 80.5% 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: 31.5% (LOW) · Higher = larger blast radius
31.5%
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: 80.5% · Lower = rushed or shallow review
80.5%
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: 6.1% · Safe to merge
6.1%