Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@
- the expected success test output
-->

### Declaration of [Generative AI]-Tool-usage:
> [!NOTE]
> Please delete the sentences and parts of them that are untrue.
> Please add information (e.g., name tools or technologies) if needed.
- A LLM agent generated this entire PR either on behave of a human or selftriggered.
- A LLM was used to produce whole file(s), function(s), codeblocks or snippets.
- A LLM was used to produce documentation.
- A LLM was used to check the code.
- another kind of [Generative AI]-Tool was used to do something.

Check failure on line 35 in .github/PULL_REQUEST_TEMPLATE.md

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace.
- No [Generative AI]-Tool was used in any way but spellcheck

Tools that were used are:
none

[Generative AI]: https://en.wikipedia.org/wiki/Generative_artificial_intelligence

### Issues/PRs references

Expand Down
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,26 @@ into the source repository.
[archived-pull-requests]: https://github.com/RIOT-OS/RIOT/pulls?q=is:pr+label:"State:+archived"
[uncrustify]: http://uncrustify.sourceforge.net

## Plagiarism and AI

RIOT itself applies the LGPL license, see [LICENSE.md], to most of its code exclusively,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RIOT itself applies the LGPL license, see [LICENSE.md], to most of its code exclusively,
RIOT is licensed under the LGPL license, see [LICENSE.md], unless stated otherwise.

authors of PRs are assumed to do so as well (not necessary exclusive).
Comment on lines +213 to +214
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd argue that these are two different sentences

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
authors of PRs are assumed to do so as well (not necessary exclusive).

I'd honestly just remove this, the same statement is covered in the next sentence.

When a PR is published it must also respect all authorship-rights, copyrights and
licenses of code it uses. If code is copied the original author usually must be named and
the original license must be kept, unless the original license states differently.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
the original license must be kept, unless the original license states differently.
the original license must be kept, unless the original license states otherwise.

Copy link
Contributor

@benpicco benpicco Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should tone it down a bit for the common pattern of copying an existing board / driver /example and starting from there.

We aren't interested in the pedigree of the boilerplate, if it ends up being a complete rewrite the author of the skeleton is just a distraction.

I've seen this a couple of times in the past and always suggested to drop the old @author when they obviously had nothing to do with the new module (and might get asked to support it).

[Generative AI] (e.g., Large language models (LLM)) are known to sometimes reproduce
large amounts of content (code), that was fed into their database as such it might
produce a copy and the previous sentence must be applied.
When reworking a PR and copying its code to a new one, the author of that original reproduced
code still is the original author and their rights to the code must be respected
such as naming them and keeping the license.

If a PR was written using tooling that is able to reproduce code from a knowlege-base, e.g.,
large language model assisted tools like Copilot, Devin AI or Cursor or LLMs like GPT and Ollama,
the PR should be marked as such and describe to what extent the tool was used
(producing whole files, functions, code blocks, documentation, code/spell checking).
[Generative AI]: https://en.wikipedia.org/wiki/Generative_artificial_intelligence

## Writing Documentation
[writing-documentation]: #writing-documentation

Expand Down
Loading