DOC: AI Usage Policy (draft for discussion)#363
Draft
aladinor wants to merge 3 commits intoopenradar:mainfrom
Draft
DOC: AI Usage Policy (draft for discussion)#363aladinor wants to merge 3 commits intoopenradar:mainfrom
aladinor wants to merge 3 commits intoopenradar:mainfrom
Conversation
Adds docs/ai_policy.md, adapted from xarray's policy (doc/contribute/ai-policy.md) with attribution, and xradar-specific additions: - "CI, Packaging, and Dependency Changes" subsection requiring an issue-first discussion before any AI-assisted PR touches GitHub Actions, dependencies, pyproject/environment files, pre-commit config, or security-sensitive areas. Rationale: supply-chain risk, raised by @zssherman in openradar#354. - "Disclosing AI Usage" section recommending (not requiring) that PR descriptions note the tool/model and version when AI was used. Also: - Short "AI Usage Policy" pointer section in CONTRIBUTING.md linking to the full policy. - Adds ai_policy to docs/index.md toctree. - History entry (PR number placeholder). Discussed in openradar#354.
Reframe "Large AI-Assisted Contributions" -> "Prefer Small PRs and Open an Issue First". Drop the absolute 2,000-line example in favor of review burden as the criterion (a 100-line change can also be too dense to review in isolation). Add an explicit "strongly encouraged" issue-first step so maintainers can validate scope and structure before any code is written.
This was referenced Apr 20, 2026
Merged
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #363 +/- ##
=======================================
Coverage 93.85% 93.85%
=======================================
Files 28 28
Lines 6165 6165
=======================================
Hits 5786 5786
Misses 379 379
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Opens for community discussion an AI Usage Policy for xradar, adapted from xarray's AI Usage Policy with two xradar-specific additions.
This is a draft so the whole community can chime in before we merge. Continues the discussion started in #354.
What's in the draft
docs/ai_policy.md— full policy (attribution to xarray in the preamble).CONTRIBUTING.md— short pointer section between "Types of Contributions" and "Get Started!" linking to the full doc.docs/index.md— newai_policyentry in the toctree.docs/history.md— Development entry (PR-number placeholder to update once this lands).Structure
The policy mirrors xarray's structure so folks coming from that ecosystem find it familiar:
pyproject.toml/environment.yml/pre-commitconfig, and security-sensitive areas require an issue-first discussion; AI is not a reliable guide to the security or maintenance implications of a new dependency. Raised by @zssherman in MNT: Improve Contributing Guide #354.Discussion points
This is a policy document — language matters more than usual. Feedback especially welcome on:
docs/ai_policy.mdor somewhere else (e.g. a newdocs/contribute/subfolder to mirror xarray's layout).CC: @kmuehlbauer @syedhamidali @mgrover1 @egouden @zssherman @scollis @rcjackson @jrobrien91
Test plan
ai_policyin the toctree (cd docs && make html).