diff --git a/documentation/contributor-guide/submit-changes.rst b/documentation/contributor-guide/submit-changes.rst index 85ca987df2..0675aac984 100644 --- a/documentation/contributor-guide/submit-changes.rst +++ b/documentation/contributor-guide/submit-changes.rst @@ -832,3 +832,52 @@ Other layers may have similar testing branches but there is no formal requirement or standard for these so please check the documentation for the layers you are contributing to. +Acceptance of AI Generated Code +=============================== + +The Yocto Project and OpenEmbedded follow the guidance of the Linux Foundation +in regards to the use of generative AI tools. See: +https://www.linuxfoundation.org/legal/generative-ai. + +All of the existing guidelines in this document are expected to be followed, +including in the :doc:`recipe-style-guide`, and contributing the changes with +additional requirements to the items in section +:ref:`contributor-guide/submit-changes:Implement and commit changes`. + +All AI Generated Code must be labeled as such in the commit message, +prior to your ``Signed-off-by`` line. It is also strongly recommended, +that any patches or code within the commit also have a comment or other +indication that this code was AI generated. + +For example, here is a properly formatted commit message:: + + component: Add the ability to ... + + AI-Generated: Uses GitHub Copilot + + Signed-off-by: Your Name + +The ``Signed-off-by`` line must be written by you, and not the AI helper. +As a reminder, when contributing a change, your ``Signed-off-by`` line is +required and the stipulations in the `Developer's Statement of Origin +1.1 `__ still apply. + +Additionally, you must stipulate AI contributions conform to the Linux +Foundation policy, specifically: + +#. Contributors should ensure that the terms and conditions of the generative AI + tool do not place any contractual restrictions on how the tool's output can + be used that are inconsistent with the project's open source software + license, the project's intellectual property policies, or the Open Source + Definition. + +#. If any pre-existing copyrighted materials (including pre-existing open + source code) authored or owned by third parties are included in the AI tool's + output, prior to contributing such output to the project, the Contributor + should confirm that they have permission from the third party + owners -- such as the form of an open source license or public domain + declaration that complies with the project's licensing policies -- to use and + modify such pre-existing materials and contribute them to the project. + Additionally, the contributor should provide notice and attribution of such + third party rights, along with information about the applicable license + terms, with their contribution.