Skip to content

Add ai usage policy - #585

Merged
ctymoszek merged 2 commits into
ml-explore:mainfrom
ctymoszek:add-ai-usage-policy
Aug 27, 2026
Merged

ctymoszek merged 2 commits into
ml-explore:mainfrom
ctymoszek:add-ai-usage-policy

Conversation

@ctymoszek

Copy link
Copy Markdown
Collaborator

This adds an AI usage policy, with three components: an updated contributing guide, agent instructions, and issue and PR templates.

This policy states that AI-generated code is allowed, and AI-drafted prose is allowed. What is disallowed is submitting either one without the human contributor understanding it.

You must be able to explain the code you submit, you must disclose how you used AI, and you must read (and ensure that you approve) any prose you submit. AI agents may not autonomously create PRs or other reviewer-facing text (bug reports, replies to reviewers) without a human in the loop.

Do not make reviewers read prose (PR descriptions, issue descriptions, PR comments) that you, the human, didn't bother to read.

AGENTS.md is intended to help agents create a PR that has a better chance of being accepted, and includes some helpful information about running tests and formatting commands.

Updates

  • CONTRIBUTING.md gains an AI Usage Policy section — the policy itself,
    addressed to human contributors, including what can happen when it is not followed.
  • AGENTS.md, with CLAUDE.md as a symlink to it, gives coding agents the same
    rules plus the local conventions and CI mechanics they need to produce
    a complete submission: where CI's swift-format pin lives, the DocC check, the
    fact that swift test does not work here, and where the API documentation
    lives.
  • The pull request template asks the author to confirm they read the description
    and that it matches the code, and leaves a line for an AI usage disclosure. All submitters are expected to fill in this disclosure.
  • The issue templates carry the same acknowledgment. Blank issues are now disabled, so
    every path to create an issue will include this acknowledgement (this required the creation of an Other
    template to allow feature requests, questions, etc.).

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

AI usage

  • I have read this PR description in full and approve it as my own, and it
    accurately describes the code changes.
  • AI usage disclosure: An AI agent was used in the creation of this PR. All prose has been edited and reviewed by a human prior to submission.

Adopt mlx's AI usage policy (ml-explore/mlx#4331) with one change: AI-drafted
prose is allowed as long as the contributor has read every word of it and stands
by it. The PR template asks the author to confirm that for the description;
commit messages and smaller summaries are on the honor system.

Add AGENTS.md with the agent-facing rules, plus CLAUDE.md as a symlink to it.
Disable blank issues so every issue path carries the acknowledgment.
Clarified policies to govern submitted code/prose rather than working processes. Added some practical tips for agents. Moved violation penalties to CONTRIBUTING.md
@ctymoszek
ctymoszek force-pushed the add-ai-usage-policy branch from f5f8723 to a931aaa Compare August 27, 2026 16:56

@davidkoski davidkoski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this looks good: we want to make sure that people filing issues and PRs understand what they are filing. We haven't had much issue with AI slop here and hopefully it stays that way.

@ctymoszek
ctymoszek merged commit 68e89f9 into ml-explore:main Aug 27, 2026
3 checks passed
djandrewgibbons pushed a commit to djandrewgibbons/mlx-swift-lm that referenced this pull request Sep 1, 2026
AI-generated code is allowed, and so is AI-drafted prose. What is not allowed is submitting either one without the human contributor understanding it. You must be able to explain the code you submit, you must disclose how you used AI, and you must read and approve any prose you submit. Agents may not autonomously create PRs or other reviewer-facing text without a human in the loop.

Do not make reviewers read prose that you, the human, did not bother to read.

The policy itself has been added to CONTRIBUTING.md, addressed to human contributors, including possible penalties if it is not followed. AGENTS.md is intended to help agents produce a submission with a better chance of being accepted. It contains the same rules, plus helpful local conventions and CI mechanics such as where CI's swift-format pin lives, the DocC check, and the fact that `swift test` does not work here. CLAUDE.md is a symlink to it. The pull request template asks the author to confirm they read the description and that it matches the code, and adds an AI usage disclosure that all submitters are expected to fill in. The issue templates now include the same acknowledgment.
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