diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-02-12 09:50:53 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-02-21 06:34:58 -0800 |
commit | 024496a8236e51c71577240562af26d19be85bbd (patch) | |
tree | 2019f3049058f5f56f7234cc39ce33b3a5c85705 /documentation | |
parent | 30c0b1b7182fbd77bc24171bdf2595b304a62675 (diff) | |
download | poky-024496a8236e51c71577240562af26d19be85bbd.tar.gz |
contributor-guide/submit-changes: add policy on AI generated code
Based on message by Richard Purdie on the yocto-docs list:
https://lists.yoctoproject.org/g/docs/message/6300
Re-formatted for the Yocto Project documentation syntax.
(From yocto-docs rev: 843078e4bd97a5bedf121e0e0105fd20162a25d8)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit a72dd13e6841b621c9e8f904dfaa440c186d2959)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/contributor-guide/submit-changes.rst | 49 |
1 files changed, 49 insertions, 0 deletions
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 | |||
832 | requirement or standard for these so please check the documentation for the | 832 | requirement or standard for these so please check the documentation for the |
833 | layers you are contributing to. | 833 | layers you are contributing to. |
834 | 834 | ||
835 | Acceptance of AI Generated Code | ||
836 | =============================== | ||
837 | |||
838 | The Yocto Project and OpenEmbedded follow the guidance of the Linux Foundation | ||
839 | in regards to the use of generative AI tools. See: | ||
840 | https://www.linuxfoundation.org/legal/generative-ai. | ||
841 | |||
842 | All of the existing guidelines in this document are expected to be followed, | ||
843 | including in the :doc:`recipe-style-guide`, and contributing the changes with | ||
844 | additional requirements to the items in section | ||
845 | :ref:`contributor-guide/submit-changes:Implement and commit changes`. | ||
846 | |||
847 | All AI Generated Code must be labeled as such in the commit message, | ||
848 | prior to your ``Signed-off-by`` line. It is also strongly recommended, | ||
849 | that any patches or code within the commit also have a comment or other | ||
850 | indication that this code was AI generated. | ||
851 | |||
852 | For example, here is a properly formatted commit message:: | ||
853 | |||
854 | component: Add the ability to ... | ||
855 | |||
856 | AI-Generated: Uses GitHub Copilot | ||
857 | |||
858 | Signed-off-by: Your Name <your.name@domain> | ||
859 | |||
860 | The ``Signed-off-by`` line must be written by you, and not the AI helper. | ||
861 | As a reminder, when contributing a change, your ``Signed-off-by`` line is | ||
862 | required and the stipulations in the `Developer's Statement of Origin | ||
863 | 1.1 <https://developercertificate.org/>`__ still apply. | ||
864 | |||
865 | Additionally, you must stipulate AI contributions conform to the Linux | ||
866 | Foundation policy, specifically: | ||
867 | |||
868 | #. Contributors should ensure that the terms and conditions of the generative AI | ||
869 | tool do not place any contractual restrictions on how the tool's output can | ||
870 | be used that are inconsistent with the project's open source software | ||
871 | license, the project's intellectual property policies, or the Open Source | ||
872 | Definition. | ||
873 | |||
874 | #. If any pre-existing copyrighted materials (including pre-existing open | ||
875 | source code) authored or owned by third parties are included in the AI tool's | ||
876 | output, prior to contributing such output to the project, the Contributor | ||
877 | should confirm that they have permission from the third party | ||
878 | owners -- such as the form of an open source license or public domain | ||
879 | declaration that complies with the project's licensing policies -- to use and | ||
880 | modify such pre-existing materials and contribute them to the project. | ||
881 | Additionally, the contributor should provide notice and attribution of such | ||
882 | third party rights, along with information about the applicable license | ||
883 | terms, with their contribution. | ||