Hello Ryan,
thank you for your interest in Genode.
I am not sure of what the stance is on AI generated code [...]
This question was recently raised in the context of a pull request [1].
[1] https://codeberg.org/genodelabs/genode/pulls/5853
Citing my own comment from this issue:
---
Genode is not open for AI-generated code contributions due to the legal uncertainties of such code. In order to incorporate code into genuine Genode components (those that are marked by the license headers as being part of Genode) we must ensure that such code does not violate rights of third parties. On this account, the Genode contributor's agreement [2] states "You certify and warrant that your Contributions to Genode Labs’s Products do not violate the intellectual property rights of third parties [...]". This cannot be assumed for code generated by AI models without legal records of their training material. As far as I know, AI service providers do not provide such evidence.
[2] https://genode.org/community/gca.pdf
I'm not a lawyer. But I consider learning from any source (book, teacher, experience, internet search engine, AI model) as fine as long as the information source is legal (think of trade secrets).
Code generation is different matter. Legally, regardless of whether running the model locally or as a service, unless you created the model yourself, you cannot know from which data the model parameters had been derived. So one should assume the worst. Common sense. The obvious way to stay safe is to craft code by hand, driven by human intent.
At the end of the day, someone has to assert responsibility, for both technical and legal risks. A maintainer becomes responsible for the code whenever accepting a contribution. Accepting the risks of AI-generated artifacts would be irresponsible for Genode Labs. Hence, we have to keep our code untainted.
---
On a further personal note, as a matter of conduct, please keep in mind that the copy-pasting of text generated by an AI agent may be perceived as impolite.
Best regards Norman