Skip to content

opt out of AI training per GitHub policy#1602

Merged
kbatuigas merged 1 commit intomainfrom
add-ai-opt-out
Mar 11, 2026
Merged

opt out of AI training per GitHub policy#1602
kbatuigas merged 1 commit intomainfrom
add-ai-opt-out

Conversation

@rpdevmp
Copy link
Contributor

@rpdevmp rpdevmp commented Mar 10, 2026

opt out of AI training per GitHub policy

@rpdevmp rpdevmp requested a review from a team as a code owner March 10, 2026 21:44
@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 205a650
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/69b090c909b01100084f5e63
😎 Deploy Preview https://deploy-preview-1602--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 10, 2026

📝 Walkthrough

Walkthrough

A new configuration file .github/ai-opt-out is added containing a single opt-out flag set to true. This file introduces a global opt-out mechanism for AI-related assistance in GitHub Actions workflows and related automation. The change consists of one new line with no modifications to existing files.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete and does not follow the required template structure, missing all standard sections including JIRA ticket, page previews, and checkbox items. Add a properly formatted description following the template: include the JIRA ticket link, review deadline, any relevant page previews, and select appropriate checkboxes (e.g., 'Small fix').
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding an AI opt-out configuration per GitHub policy, which matches the file addition (.github/ai-opt-out).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-ai-opt-out

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/ai-opt-out:
- Line 1: Delete the stray repository file that contains the single line
"opt-out: true" because it is not a recognized GitHub mechanism; remove the file
from the repo (delete the file and commit the change) and include a concise
commit message like "remove invalid ai-opt-out file" to clarify the fix.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d9e9493d-3d73-4c39-a3a8-fef77fc6c5c2

📥 Commits

Reviewing files that changed from the base of the PR and between 7b19439 and 205a650.

📒 Files selected for processing (1)
  • .github/ai-opt-out

@@ -0,0 +1 @@
opt-out: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

What is the official GitHub method for opting out of AI training in 2026?

💡 Result:

In 2026, GitHub’s official Copilot policy for individual accounts (Copilot Free/Pro/Pro+) is that your prompts, suggestions, and code snippets are not used for AI model training by default—and this “AI model training” setting can’t be enabled, so there’s nothing you need to do to “opt out.” [1]

If you want the closest related privacy control GitHub exposes (separate from model training), you can turn off prompt/suggestion collection for product improvements:

  • GitHub.com → click your profile picture (top-right) → Copilot settings → under prompt/suggestion collection, deselect “Allow GitHub to use my code snippets from the code editor for product improvements.” [1]

GitHub’s terms also note that Copilot data handling depends on settings, and (historically) that Copilot Free data may be used for model training if you allow it in settings—so the GitHub Docs page above is the authoritative place to confirm what controls are currently available. [2]

Sources: [1] GitHub Docs – Manage policies (individual Copilot settings), [2] GitHub Docs – GitHub Terms for Additional Products and Features


🌐 Web query:

GitHub ai-opt-out file format documentation

💡 Result:

GitHub does not document (and does not appear to support) any special repository file named ai-opt-out, .ai_exclude, etc. that changes whether your GitHub repository content can be used for AI training.

What GitHub does officially document instead:

  • Copilot training/data controls are settings/policies, not a repo “opt-out file”. For individual Copilot subscribers, GitHub documents policies to enable/disable prompt & suggestion collection (and related processing/sharing) in Copilot settings. [1]
  • GitHub’s Copilot positioning around model training is described in Copilot-related policy/docs (and referenced from those settings pages), not via a per-repo opt-out file. [1]

If what you want is a machine-readable opt-out signal for crawlers/dataset builders in general (not GitHub-specific), you’ll need a separate standard/spec, e.g.:

  • ai.txt (a proposed permissions/interaction file format) specification: [2]
  • TDM·AI “usage declarations” JSON format (another opt-out/permissions approach): [3]

Sources
[1] GitHub Docs – “Managing Copilot policies as an individual subscriber” (docs.github.com)
[2] AI Visibility – ai.txt specification (ai-visibility.org.uk)
[3] TDM·AI Protocol – JSON format for usage declarations (docs.tdmai.org)

Citations:


Remove this file — it is not an official GitHub mechanism and will not opt out of AI training.

GitHub does not document or support a .github/ai-opt-out file format for opting out of AI training. GitHub's Copilot controls are managed through the UI settings (Copilot settings → prompt/suggestion collection), not repository files. This file will have no effect on AI training policies and may create false confidence that the intended opt-out has been implemented.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/ai-opt-out at line 1, Delete the stray repository file that contains
the single line "opt-out: true" because it is not a recognized GitHub mechanism;
remove the file from the repo (delete the file and commit the change) and
include a concise commit message like "remove invalid ai-opt-out file" to
clarify the fix.

@kbatuigas kbatuigas merged commit f8d4bd6 into main Mar 11, 2026
7 checks passed
@kbatuigas kbatuigas deleted the add-ai-opt-out branch March 11, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants