Skip to content

Mesa

Open source implementations of OpenGL, Vulkan and other graphics APIs.

Mostly friendly. Welcome, with extra rules.

Homepage Repository

Mesa allows AI-assisted code of any size, but the submitter must understand and take responsibility for it, ensure MIT-license compatibility, review and oversee submission, and disclose creative AI involvement with an Assisted-by: LLM or Generated-by: LLM trailer; trivial non-copyrightable and obvious mechanical changes are exempt from mandatory disclosure. AI may be used for research, but code comments and project text must be the contributor's own words, autonomous tools may not submit contributions or interact with GitLab issues or MRs, review bots are forbidden, and Co-authored-by is reserved for humans.

Policy by area

Code contributionsPatches, pull requests and other changes written with AI tools.
Mostly friendly
  • AI use must be disclosed
  • Contributor takes full responsibility
  • A human must review the output
  • Output must be license-compatible
  • No autonomous agents
Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
Unfriendly
AI-written textPull request descriptions, issue comments and summaries written by AI.
Unfriendly

What is allowed and what is not

Code contributions

  • Autocomplete · Allowed with conditions

    Inline completion is permitted; obvious autocomplete falls under the mechanical-change disclosure exemption, with tool disclosure recommended but not required.

    • Disclose AI use: Creative AI involvement must be disclosed; obvious autocomplete is exempt, and in that exempt case naming the tool is recommended to ease review.
    • Take full responsibility: Understand the code and what the change does, justify it in the commit message, and remain responsible for it.
    • Review AI output first: Every contribution needs the submitter's explicit oversight and review.
    • License-safe output: Ensure the change can be submitted under Mesa's MIT license.
    • A person must drive: Do not use autonomously acting tools to submit contributions.
    8 quotes

    - It's up you what tools you use to write code (development environment, coding assistant, etc.), but keep in mind that no tool can substitute actual understanding.

    submittingpatches.rst

    The submitter is responsible for the code change, regardless of where that code change came from, whether they wrote it themselves, used an "AI" or other tool, or got it from someone else.

    submittingpatches.rst

    That responsibility includes making sure that the code change can be submitted under the MIT license that Mesa uses.

    submittingpatches.rst

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    Disclosure is always required when "AI" was involved in the creative process of coming up with the code, except in the following cases:

    submittingpatches.rst

    - Mechanical changes where the expected result is obvious and not up to interpretation, ie. when it would be the same regardless of what tooling was used. For example, autocomplete, refactoring the name of a variable and similar activities fit this category.

    submittingpatches.rst

    In these cases it is still recommended (but not required) to disclose the tool used, eg. "AI", "sed", "cocinelle", etc. in order to ease the review process.

    submittingpatches.rst
  • Small fixes · Allowed with conditions

    Small AI-assisted code changes are allowed, with a disclosure exemption for trivial or small changes that would not be copyrightable regardless of AI involvement.

    • Disclose AI use: Disclose creative AI involvement with Assisted-by: LLM or Generated-by: LLM as applicable; trivial or small changes that would not be copyrightable anyway are exempt.
    • Take full responsibility: Understand the code and what the change does, justify it in the commit message, and remain responsible for it.
    • Review AI output first: Every contribution needs the submitter's explicit oversight and review.
    • License-safe output: Ensure the change can be submitted under Mesa's MIT license.
    • A person must drive: Do not use autonomously acting tools to submit contributions.
    10 quotes

    - It's up you what tools you use to write code (development environment, coding assistant, etc.), but keep in mind that no tool can substitute actual understanding.

    submittingpatches.rst

    The submitter is responsible for the code change, regardless of where that code change came from, whether they wrote it themselves, used an "AI" or other tool, or got it from someone else.

    submittingpatches.rst

    That responsibility includes making sure that the code change can be submitted under the MIT license that Mesa uses.

    submittingpatches.rst

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    Disclosure is always required when "AI" was involved in the creative process of coming up with the code, except in the following cases:

    submittingpatches.rst

    - Trivial or small changes that wouldn't be copyrightable regardless of "AI" involvement. For example something like a "min" function fit this category.

    submittingpatches.rst

    We require the following scheme to disclose the level "AI" tooling was involved:

    submittingpatches.rst

    - ``Assisted-by: LLM`` for when "AI" was involved in making decisions or also generated parts of the code.

    submittingpatches.rst

    - ``Generated-by: LLM`` for when almost all the code was generated through "AI".

    submittingpatches.rst
  • Large or generated changes · Allowed with conditions

    Substantial or almost entirely AI-generated code is permitted under the general responsibility, review, licensing and non-autonomy requirements and the applicable disclosure trailer.

    • Disclose AI use: Use Assisted-by: LLM when AI made decisions or generated parts of the code, and Generated-by: LLM when almost all code was generated.
    • Take full responsibility: Understand the code and what the change does, justify it in the commit message, and remain responsible for it.
    • Review AI output first: Every contribution needs the submitter's explicit oversight and review.
    • License-safe output: Ensure the change can be submitted under Mesa's MIT license.
    • A person must drive: Do not use autonomously acting tools to submit contributions.
    9 quotes

    - It's up you what tools you use to write code (development environment, coding assistant, etc.), but keep in mind that no tool can substitute actual understanding.

    submittingpatches.rst

    The submitter is responsible for the code change, regardless of where that code change came from, whether they wrote it themselves, used an "AI" or other tool, or got it from someone else.

    submittingpatches.rst

    That responsibility includes making sure that the code change can be submitted under the MIT license that Mesa uses.

    submittingpatches.rst

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    Disclosure is always required when "AI" was involved in the creative process of coming up with the code, except in the following cases:

    submittingpatches.rst

    We require the following scheme to disclose the level "AI" tooling was involved:

    submittingpatches.rst

    - ``Assisted-by: LLM`` for when "AI" was involved in making decisions or also generated parts of the code.

    submittingpatches.rst

    - ``Generated-by: LLM`` for when almost all the code was generated through "AI".

    submittingpatches.rst
  • Mechanical changes · Allowed with conditions

    Obvious, tool-independent mechanical changes are allowed without mandatory AI disclosure, although naming the tool used is recommended.

    • Disclose AI use: For obvious mechanical changes whose result does not depend on the tooling, disclosure is not required, but naming the tool is recommended to ease review. (recommended, not required)
    • Take full responsibility: Understand the code and what the change does, justify it in the commit message, and remain responsible for it.
    • Review AI output first: Every contribution needs the submitter's explicit oversight and review.
    • License-safe output: Ensure the change can be submitted under Mesa's MIT license.
    • A person must drive: Do not use autonomously acting tools to submit contributions.
    8 quotes

    - It's up you what tools you use to write code (development environment, coding assistant, etc.), but keep in mind that no tool can substitute actual understanding.

    submittingpatches.rst

    The submitter is responsible for the code change, regardless of where that code change came from, whether they wrote it themselves, used an "AI" or other tool, or got it from someone else.

    submittingpatches.rst

    That responsibility includes making sure that the code change can be submitted under the MIT license that Mesa uses.

    submittingpatches.rst

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    Disclosure is always required when "AI" was involved in the creative process of coming up with the code, except in the following cases:

    submittingpatches.rst

    - Mechanical changes where the expected result is obvious and not up to interpretation, ie. when it would be the same regardless of what tooling was used. For example, autocomplete, refactoring the name of a variable and similar activities fit this category.

    submittingpatches.rst

    In these cases it is still recommended (but not required) to disclose the tool used, eg. "AI", "sed", "cocinelle", etc. in order to ease the review process.

    submittingpatches.rst
  • Tests · Allowed with conditions

    AI-written test code is covered by the general permission to choose coding tools and by the same responsibility, review, licensing, non-autonomy and disclosure rules.

    • Disclose AI use: Disclose creative AI involvement using Assisted-by: LLM or Generated-by: LLM as applicable, subject to the stated trivial and mechanical exceptions.
    • Take full responsibility: Understand the code and what the change does, justify it in the commit message, and remain responsible for it.
    • Review AI output first: Every contribution needs the submitter's explicit oversight and review.
    • License-safe output: Ensure the change can be submitted under Mesa's MIT license.
    • A person must drive: Do not use autonomously acting tools to submit contributions.
    12 quotes

    - It's up you what tools you use to write code (development environment, coding assistant, etc.), but keep in mind that no tool can substitute actual understanding.

    submittingpatches.rst

    The submitter is responsible for the code change, regardless of where that code change came from, whether they wrote it themselves, used an "AI" or other tool, or got it from someone else.

    submittingpatches.rst

    That responsibility includes making sure that the code change can be submitted under the MIT license that Mesa uses.

    submittingpatches.rst

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    Disclosure is always required when "AI" was involved in the creative process of coming up with the code, except in the following cases:

    submittingpatches.rst

    - Trivial or small changes that wouldn't be copyrightable regardless of "AI" involvement. For example something like a "min" function fit this category.

    submittingpatches.rst

    - Mechanical changes where the expected result is obvious and not up to interpretation, ie. when it would be the same regardless of what tooling was used. For example, autocomplete, refactoring the name of a variable and similar activities fit this category.

    submittingpatches.rst

    In these cases it is still recommended (but not required) to disclose the tool used, eg. "AI", "sed", "cocinelle", etc. in order to ease the review process.

    submittingpatches.rst

    We require the following scheme to disclose the level "AI" tooling was involved:

    submittingpatches.rst

    - ``Assisted-by: LLM`` for when "AI" was involved in making decisions or also generated parts of the code.

    submittingpatches.rst

    - ``Generated-by: LLM`` for when almost all the code was generated through "AI".

    submittingpatches.rst
  • Build and CI · Allowed with conditions

    AI-written infrastructure code is covered by the general permission to choose coding tools and by the same responsibility, review, licensing, non-autonomy and disclosure rules.

    • Disclose AI use: Disclose creative AI involvement using Assisted-by: LLM or Generated-by: LLM as applicable, subject to the stated trivial and mechanical exceptions.
    • Take full responsibility: Understand the code and what the change does, justify it in the commit message, and remain responsible for it.
    • Review AI output first: Every contribution needs the submitter's explicit oversight and review.
    • License-safe output: Ensure the change can be submitted under Mesa's MIT license.
    • A person must drive: Do not use autonomously acting tools to submit contributions.
    12 quotes

    - It's up you what tools you use to write code (development environment, coding assistant, etc.), but keep in mind that no tool can substitute actual understanding.

    submittingpatches.rst

    The submitter is responsible for the code change, regardless of where that code change came from, whether they wrote it themselves, used an "AI" or other tool, or got it from someone else.

    submittingpatches.rst

    That responsibility includes making sure that the code change can be submitted under the MIT license that Mesa uses.

    submittingpatches.rst

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    Disclosure is always required when "AI" was involved in the creative process of coming up with the code, except in the following cases:

    submittingpatches.rst

    - Trivial or small changes that wouldn't be copyrightable regardless of "AI" involvement. For example something like a "min" function fit this category.

    submittingpatches.rst

    - Mechanical changes where the expected result is obvious and not up to interpretation, ie. when it would be the same regardless of what tooling was used. For example, autocomplete, refactoring the name of a variable and similar activities fit this category.

    submittingpatches.rst

    In these cases it is still recommended (but not required) to disclose the tool used, eg. "AI", "sed", "cocinelle", etc. in order to ease the review process.

    submittingpatches.rst

    We require the following scheme to disclose the level "AI" tooling was involved:

    submittingpatches.rst

    - ``Assisted-by: LLM`` for when "AI" was involved in making decisions or also generated parts of the code.

    submittingpatches.rst

    - ``Generated-by: LLM`` for when almost all the code was generated through "AI".

    submittingpatches.rst
  • Documentation · Not allowed

    The policy's requirement that all text be in the contributor's own words excludes AI-written documentation and other submitted prose.

    Quote

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Research and learning · Allowed

    AI may be used for research, but project text must still be written in the contributor's own words.

    Quote

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • AI as author · Not allowed

    The Co-authored-by trailer must not be used for an AI tool because it is reserved for human co-authors.

    Quote

    Do not advertise the model. Do not use the ``Co-authored-by`` tag as this one is reserved for human co-authors.

    submittingpatches.rst
  • Autonomous agents · Not allowed

    Autonomously acting tools may not submit contributions; every contribution requires explicit human oversight and review.

    Quote

    It is not allowed to use autonomously acting tools to submit any contributions, that is every contributions needs explicit oversight and your review.

    submittingpatches.rst
  • Other code contributions rule · Not allowed

    AI should not be used to generate code comments.

    Quote

    "AI" shouldn't be used to generate code comments, commit messages, and Gitlab comments.

    submittingpatches.rst
  • Other code contributions rule · Not allowed

    Do not wire up any review bot or similar tools under any circumstances.

    Quote

    Do not under any circumstances wire up any review bot or similar tools.

    submittingpatches.rst
  • Other code contributions rule · Not allowed

    Do not advertise the model when disclosing AI involvement.

    Quote

    Do not advertise the model. Do not use the ``Co-authored-by`` tag as this one is reserved for human co-authors.

    submittingpatches.rst
Not covered by the policy (3)

Translating the software, Images and media, Checking own work.

Issues & bug reports

  • AI-written reports · Not allowed

    Under the policy's all-text own-words rule, AI-written issue or bug-report prose is not permitted, although AI research is allowed.

    2 quotes

    Every contributor should communicate with the community directly without other people or tools in the middle.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Bots filing issues · Not allowed

    Autonomous interactions with GitLab issues through such tools are prohibited.

    Quote

    This includes interactions with GitLab issues or MRs in any autonomous way through such tools.

    submittingpatches.rst
Not covered by the policy (2)

Finding bugs with AI, Security reports.

AI-written text

  • Pull request descriptions · Not allowed

    The all-text own-words and direct-communication rules exclude AI-generated merge request descriptions.

    2 quotes

    Every contributor should communicate with the community directly without other people or tools in the middle.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Commit messages · Not allowed

    AI should not generate commit messages; the submitter must understand and justify the change in the commit message using their own words.

    3 quotes

    The submitter needs to understand what code they are changing, what the change does, and justify that change in the commit messages. Using coding assistants or "AI" or other tools does not grant additional privileges or reduce our expectations.

    submittingpatches.rst

    "AI" shouldn't be used to generate code comments, commit messages, and Gitlab comments.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Comments · Not allowed

    AI should not generate GitLab comments, and contributors should communicate directly in their own words.

    3 quotes

    "AI" shouldn't be used to generate code comments, commit messages, and Gitlab comments.

    submittingpatches.rst

    Every contributor should communicate with the community directly without other people or tools in the middle.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Answering reviewers · Not allowed

    Answers to maintainers and reviewers must be direct and in the contributor's own words, not AI-generated GitLab comments.

    3 quotes

    "AI" shouldn't be used to generate code comments, commit messages, and Gitlab comments.

    submittingpatches.rst

    Every contributor should communicate with the community directly without other people or tools in the middle.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Reviewing others' work · Not allowed

    AI-generated review comments are covered by the GitLab-comment and own-words rules, and wiring up review bots is expressly prohibited.

    4 quotes

    Do not under any circumstances wire up any review bot or similar tools.

    submittingpatches.rst

    "AI" shouldn't be used to generate code comments, commit messages, and Gitlab comments.

    submittingpatches.rst

    Every contributor should communicate with the community directly without other people or tools in the middle.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Forum and list posts · Not allowed

    Community communication should be direct and in the contributor's own words, excluding AI-generated project posts.

    2 quotes

    Every contributor should communicate with the community directly without other people or tools in the middle.

    submittingpatches.rst

    Consequentially, contributors can use "AI" for research etc., but all text should be their own words. They should get to know the community through normal communication and the community should be able to get to know them.

    submittingpatches.rst
  • Bots posting · Not allowed

    Autonomous interactions with GitLab issues or MRs are prohibited, and review bots or similar tools must not be wired up.

    2 quotes

    This includes interactions with GitLab issues or MRs in any autonomous way through such tools.

    submittingpatches.rst

    Do not under any circumstances wire up any review bot or similar tools.

    submittingpatches.rst
Not covered by the policy (4)

Translating own text, Proofreading, Quoting AI output, Summarizing discussions.

General

  • The community and maintainers will decide which such tooling is used within Mesa and how; it may be made available to other contributors through Mesa's GitLab.

    “It will be decided by the community and maintainers which and how such tooling will be used within the Mesa project and might be made available for other contributors to use through our GitLab instance.” (submittingpatches.rst)

Sources

  • submittingpatches.rstgitlab.freedesktop.org/mesa/mesa/-/blob/main/docs/submittingpatches.rstSnapshot 25 Oct 2026