Dart
Client-optimized language for apps on any platform.
Friendly. Welcomes AI-assisted work.
Dart permits AI-assisted contributions, but contributors must review all generated code, ensure it meets standards and compiles and passes at least their added tests, and understand and be able to discuss it. AI-generated text in change descriptions and review discussions must be verified for accuracy; reviewers are advised to consider closing changes with listed AI-related red flags.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Friendly
- Contributor takes full responsibility
- A human must review the output
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- No policy
- AI-written textPull request descriptions, issue comments and summaries written by AI.
- Friendly
- Contributor takes full responsibility
- A human must review the output
What is allowed and what is not
Code contributions
Autocomplete · Allowed with conditions
Code inserted through AI completion is subject to the same requirements as other AI-generated code: personal review, standards and compile/test checks, and sufficient understanding to discuss it.
- Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.
- Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must review all AI-generated code before uploading it for review, and before requesting re-review of any updates to the uploaded change.
Contributing feedback You are responsible for ensuring that code you submit meets coding standards.
Contributing feedback Unmodified AI output generally does _not_ meet those standards.
Contributing feedback You must ensure that uploaded code compiles and passes at least the tests you have yourself added as part of the change.
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback Small fixes · Allowed with conditions
Small AI-written changes may be submitted only after full review and the required checks, and the contributor must understand and be able to discuss the code.
- Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.
- Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must review all AI-generated code before uploading it for review, and before requesting re-review of any updates to the uploaded change.
Contributing feedback You are responsible for ensuring that code you submit meets coding standards.
Contributing feedback Unmodified AI output generally does _not_ meet those standards.
Contributing feedback You must ensure that uploaded code compiles and passes at least the tests you have yourself added as part of the change.
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback Large or generated changes · Allowed with conditions
Substantial AI-written code is subject to the same review, verification and understanding requirements, and submitting hundreds of lines the contributor does not understand is explicitly identified as a problem.
- Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.
- Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback.
8 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must review all AI-generated code before uploading it for review, and before requesting re-review of any updates to the uploaded change.
Contributing feedback You are responsible for ensuring that code you submit meets coding standards.
Contributing feedback Unmodified AI output generally does _not_ meet those standards.
Contributing feedback You must ensure that uploaded code compiles and passes at least the tests you have yourself added as part of the change.
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback Submitting a change containing hundreds of lines of code that the contributor doesn't understand is always a problem.
Contributing feedback Mechanical changes · Allowed with conditions
AI-generated mechanical or repetitive code edits must be reviewed and verified before upload and re-review, and the contributor must understand and be able to discuss them.
- Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.
- Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must review all AI-generated code before uploading it for review, and before requesting re-review of any updates to the uploaded change.
Contributing feedback You are responsible for ensuring that code you submit meets coding standards.
Contributing feedback Unmodified AI output generally does _not_ meet those standards.
Contributing feedback You must ensure that uploaded code compiles and passes at least the tests you have yourself added as part of the change.
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback Tests · Allowed with conditions
AI-written tests must be personally reviewed, the uploaded code must compile and pass at least the contributor's added tests, and the contributor must understand and be able to discuss the change.
- Review AI output first: Review AI-written test code like all other AI-generated code, and ensure the uploaded code compiles and passes at least the tests added in the change.
- Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must review all AI-generated code before uploading it for review, and before requesting re-review of any updates to the uploaded change.
Contributing feedback You are responsible for ensuring that code you submit meets coding standards.
Contributing feedback Unmodified AI output generally does _not_ meet those standards.
Contributing feedback You must ensure that uploaded code compiles and passes at least the tests you have yourself added as part of the change.
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback Build and CI · Allowed with conditions
The blanket rules for all AI-generated code also cover AI-written build, CI and other infrastructure code, requiring review, verification and personal understanding before submission.
- Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.
- Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must review all AI-generated code before uploading it for review, and before requesting re-review of any updates to the uploaded change.
Contributing feedback You are responsible for ensuring that code you submit meets coding standards.
Contributing feedback Unmodified AI output generally does _not_ meet those standards.
Contributing feedback You must ensure that uploaded code compiles and passes at least the tests you have yourself added as part of the change.
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback Other code contributions rule · Discouraged
Reviewers are advised to be selective and consider immediately closing changes with these red flags: a description wholly replacing the template with AI output, a description that does not match the change, or irrelevant AI-generated files such as agent planning .md files.
5 quotes
Because the Dart team’s time is limited, and the capacity for people outside the team to generate plausible-looking code is unlimited, be mindful as a reviewer about what code you choose to review.
Contributing feedback Consider immediately closing changes that have any of the following red flags:
Contributing feedback The change description has entirely replaced our template with AI-generated output.
Contributing feedback The change description does not match the changes.
Contributing feedback The change contains irrelevant AI-generated files, such as agent planning .md files.
Contributing feedback Other code contributions rule · Not allowed
Failing to review the change and description enough to catch a mismatch, or to notice and remove irrelevant AI-generated files, is explicitly treated as not following the AI contribution policy.
4 quotes
The change description does not match the changes.
Contributing feedback If the contributor did not review both the changes and the description enough to notice this, they have not followed the AI contribution policy.
Contributing feedback The change contains irrelevant AI-generated files, such as agent planning .md files.
Contributing feedback If the contributor did not review the changes enough to notice and remove these files, they have not followed the AI contribution policy.
Contributing feedback Other code contributions rule · Allowed with conditions
Whenever reviewers close a change, they must explain why and provide next steps.
Quote
As always when closing a change, explain why and provide next steps.
Contributing feedback
Not covered by the policy (7)
Documentation, Translating the software, Images and media, Research and learning, Checking own work, AI as author, Autonomous agents.
Issues & bug reports
The policy does not cover this area.
AI-written text
Pull request descriptions · Allowed with conditions
AI-generated change-description text must be verified for accuracy and match the changes, while entirely replacing the project template with AI output is a red flag that reviewers are advised to consider closing.
- Review AI output first: Verify the accuracy of AI-generated text in the change description and review the description against the actual changes.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must verify the accuracy of any AI-generated text you include in the change description or review discussion comments.
Contributing feedback If an AI provides you incorrect information, it is just hallucinating; if you choose to paste that text into GitHub, you are misrepresenting your change to your reviewer.
Contributing feedback Consider immediately closing changes that have any of the following red flags:
Contributing feedback The change description has entirely replaced our template with AI-generated output.
Contributing feedback The change description does not match the changes.
Contributing feedback If the contributor did not review both the changes and the description enough to notice this, they have not followed the AI contribution policy.
Contributing feedback Comments · Allowed with conditions
AI-generated text in review discussion comments must be checked for accuracy, and pasting incorrect AI output is treated as misrepresenting the change to its reviewer.
- Review AI output first: Verify the accuracy of any AI-generated text included in review discussion comments.
3 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must verify the accuracy of any AI-generated text you include in the change description or review discussion comments.
Contributing feedback If an AI provides you incorrect information, it is just hallucinating; if you choose to paste that text into GitHub, you are misrepresenting your change to your reviewer.
Contributing feedback Answering reviewers · Allowed with conditions
AI assistance with review responses requires accuracy verification and personal understanding; uncritically reposting an agent's output is discouraged, and claiming feedback is addressed merely because AI says so is prohibited.
- Review AI output first: Verify the accuracy of AI-generated text used in review discussion comments.
- Take full responsibility: Understand and discuss the code, and personally ensure review feedback has actually been addressed rather than trusting an AI statement that it has.
7 quotes
PRs prepared using AI tools must follow these requirements:
Contributing feedback You must understand and be able to discuss the code you are uploading for review.
Contributing feedback Non-trivial changes require discussion and iteration during review. If you do not understand the code, you cannot meaningfully respond to review feedback.
Contributing feedback In our experience, simply feeding review feedback into an AI agent and uncritically reposting its output will not lead to a constructive review.
Contributing feedback You must verify the accuracy of any AI-generated text you include in the change description or review discussion comments.
Contributing feedback If an AI provides you incorrect information, it is just hallucinating; if you choose to paste that text into GitHub, you are misrepresenting your change to your reviewer.
Contributing feedback In particular, do not tell a reviewer that you have addressed their feedback just because AI output says so. It is your responsibility to make sure that review feedback has actually been addressed.
Contributing feedback
Not covered by the policy (8)
Commit messages, Reviewing others' work, Forum and list posts, Translating own text, Proofreading, Quoting AI output, Summarizing discussions, Bots posting.
General
Reviewers are told that reviewing apparent unfiltered or minimally filtered AI code or comment responses is not a good use of time unless they would both fix the issue themselves and use such a high-latency agent, even after multiple review rounds.
“As a guiding principle, if at any point in the process you feel that you are getting unfiltered or minimally filtered AI output as code and/or comment responses, ask yourself:” (Contributing feedback)
“If this change weren’t here, would I choose to spend my time fixing this issue?” (Contributing feedback)
“Would I choose to fix it using an AI agent that took hours or days to respond to every prompt?” (Contributing feedback)
“Unless the answer to both questions is yes, the review is not a good use of your time.” (Contributing feedback)
“This applies even if you are multiple rounds into the review: if the contributor closed the change, would you take it over using an extremely high-latency agent? Beware the sunk cost fallacy.” (Contributing feedback)
Sources
- Contributing feedbackgithub.com/dart-lang/sdk/blob/main/CONTRIBUTING.mdSnapshot 25 Oct 2026