Repository navigation
Replies: 1 comment
|
Experience update : It's very difficult to tell the provenance of the AI model and its training data so also difficult to make it a criterion for accepting or not a contribution. With experience, I am beginning to see patterns of errors or architectural issues that indicate the origin of a piece of code, but since these are, after all, errors, they are not integrated from the PR, so not a problem at all for the project. Since the entire creation process is not explained by the contributor, he could use AI for a small part of a change, while another could write everything manually but produce code that looks AI-generated, it is not possible to determine the different origins, so by extension, I cannot differentiate between good code produced by one type of intelligence or another. The most common problem and the general difficulty lie in pull requests containing code that is not designed to be maintained. My conclusion, as a maintainer, is that a Pull Request can only be assessed on the basis of its quality and compliance with the project guidelines, and that the nature of its origin and the energy consumed in creating it fall outside the scope of the project and that the issue must be borne by the contributor. Consequently, the policy will be amended simply to require contributors to take full responsibility for the code they submit. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In response to requests regarding Code Generations policy updates, and more specifically, issues related to AI, I’m starting this discussion to be as transparent as possible and to eliminate any ambiguity.
As maintainer, I hadn’t distinguished between AI-generated code and human-written code in Pull Request until now. And that’s for one simple reason: whether there are good or bad intentions behind the code, whether it’s produced by a human, an AI, or a super rabbit, the verification process remains the same and is always done manually, I was only able to comment on the nature of the code itself, not on how it was produced, since I have no knowledge of that.
I therefore had no reason to distinguish the nature of the entity that originated the pull request and this observation can be qualified by the arguments cited below. And that is why I am writing this article.
Context
As the lead developer and maintainer of KeePassDX, I place particular emphasis on ensuring that the application remains fully secure, ethical, and open, and that it upholds a philosophy based on minimalism, openness and community.
I was introduced to AI relatively lately, and my stance on this technology is based on a purely pragmatic approach that highlights both the advantages and disadvantages in order to maintain a certain degree of control over the data.
I would therefore like to list several facts and point out that I am not an expert but I did some iterative research and am open to any kind of factual argument.
Questions
Does KeePassDX use AI?
Currently, with KeePassDX 4.5.0 in beta, absolutely no AI code has been VibeCoded.
I've been writing the code by hand since 2017 in Android Studio because I enjoy it, and it allows me to gain a thorough understanding of the topics covered without losing sight of the nuances of each subject.
I used it occasionally to generate Kotlin documentation for this project (unfortunately not much yet). Also to debug hard issues from old phones that I don't understand and which is often problem caused by the system (KeePassDX still support KitKat). And I imagine there are also some in the translation tools.
Which AI-based PRs have been approved?
That's a difficult question to answer but as far as I know, and currently, none.
I'm making a list (below) of the ones I think are Vibe Coded. If you look at the history and see an approved one that was not identified and causes a problem, please report it.
Pull Request
The manual Steps for Approving a Pull Request is the same for any type:
AI Study
Here is a realistic look at the challenges faced with AI on this project. No assumptions, just an iterative approach based on observations.
Several people have opened AI-generated issues and PRs :
These local experiences have led to the establishment of new findings and associated solutions :
In addition to these observations, I'm including information gathered from social media (Mastodon) :
Some AI PRs are still open because I'd like to review them, see how they work, and address them properly before closing them in order to comply with the new policy requiring transparency regarding the tools used and the associated ethical guidelines.
Guidelines
The main purpose is to promote, to the greatest extent possible, conceptions that use as few resources as possible, in order to optimize performance while maintaining the highest level of security.
I've received several requests asking me to completely remove AI from pull requests and I don't understand this point.
Given all the arguments that have been raised, banning all AIs simply because the most well-known ones do not adhere to clear ethical standards does not mean that all AIs are or will be like that, even if they do not yet exist.
In order to avoid nipping in the bud projects that could significantly raise the current ethical and energy-intensive standards of mainstream models, we must not generalize about the drawbacks of AI and ban it outright, but rather pinpoint the elements that we find unacceptable and promote forms of intelligence that are still overshadowed and misunderstood.
We're not just talking about certain recent LLMs but about all AIs. And from a purely logical standpoint and what if it's a matter of resources and learned data, It could also be applied to humans, and I don't want to start down the path of banning all Pull Requests just because some human contributors are building collections of gas-guzzling cars.
So the solution isn't to block everything, but rather create blocklists based on the available information and alignment with the project's ethics and values..
It's harder than simply saying there won't be any AI PR; And ever there will likely be the same effects, at least we are not making sweeping generalizations that would prevent ethical new actors from growing, even though their goal is to solve all the problems mentioned.
Metaphorically : We're not going to dash David's hopes by killing the Blue Fairy just because the Decepticon war consumes too much energy.
Fear of AI won’t get us anywhere, so I’ve included strict guidelines in the CONTRIBUTING.md file to clearly outline which pull requests will be accepted and which will not.
I tried to adapt the guidelines to reflect these facts. Even though they are currently very difficult to enforce and probably every pull requests containing identifiable AI will be rejected, this will help establish clear goals regarding the project’s ethics and philosophy.
Solutions
I'm aware that, unlike humans, there are a few metrics that could be used to create an unethical AI block filter for accepting PRs. Without falling into AI phobia or Bro IA. And in my opinion, this is the best way to maintain very high standards and security for the app while remaining ethical.
Since every new PR will be required to disclose at least its AI origins, we'll be able to filter them out at this level. So I'm counting on you to provide valuable PR and good guidance without going to extremes. I obviously expect you to be constructive, and I will not tolerate any outbursts or misinformation, as I’ve seen on social media. And of course, the policies can still be modified if relevant information is provided.
If there are any specific topics to add or specific areas for improvement, please mention them in the discussion.
All reactions