After considering your feedback and reviewing some common policies of other open source projects, this is my suggestion:
Gramps source code is released under the GPLv2 or later license (see 1). In order for code submissions to be accepted, they must conform to this license. Here is some additional guidance:
General
-
Contributors must add their real name and contact information at the top of any file they wish to contribute.
-
The contributor attests that they wrote the code and release the code under the Gramps license.
Third-party code
-
Contributors are responsible for disclosing any copyrighted materials in their code.
-
Third-party code can be used with the permission of the copyright holder and in compliance with the other source license terms. This license must be compatible with the Gramps license (GPL v2, MIT, public domain, etc.)
-
Third-party code must be properly attributed and a source license included where applicable.
-
When using code from sites such such as StackOverflow, a link to the answer used should be included in the commit message. Small code snippets that are non-copyrightable can be included without attribution.
AI generated code
-
AI code assistants and generators can be used, but their use must be disclosed.
-
Contributors should ensure that the terms and conditions of the AI tool do not place any restrictions on the use of the code that is inconsistent with the Gramps license.
-
Contributors should include a statement in the commit message to include the AI tool and version used.
-
Code substantially written by an AI tool should use the āGenerated-by:ā tag and include an indication of the prompts used to generate the code.
-
When a commit includes assistance from an AI tool, such as a GitHub CoPilot review, then the āCo-authored-by:ā tag should be used.
-
Contributors should use features of their AI tool that suppress code that is similar the training data and/or employ code scanning to avoid unintentionally including copyrighted material.
These guidelines may be subject to change as the technology advances and copyright law is clarified.
As usual comments are welcome.