Big and small free/open-source projects have been fac­ing an avalanche of AI-gen­er­at­ed patch­es late­ly. Some patch­es are more or less OK, oth­ers have con­vo­lut­ed, bad­ly designed code. The net effect is that code review becomes more dif­fi­cult, to the point where numer­ous projects give up and intro­duce some form of pro­tec­tion against AI slop.

The team start­ed with a dis­cus­sion on GitHub and had a fur­ther con­ver­sa­tion at a recent bi-week­ly dev call. Fol­low­ing that, Reqre­fu­sion updat­ed the con­tri­bu­tion guide­lines to include two new claus­es around AI-gen­er­at­ed code. Here they are:

  • Con­tri­bu­tions must meet exist­ing qual­i­ty stan­dards. Raw AI out­put is not accept­ed under any cir­cum­stances. AI may be used only as an assis­tive tool; in all cas­es, the result­ing con­tent must be reviewed, val­i­dat­ed, and jus­ti­fi­able by the con­trib­u­tor. The con­trib­u­tor should be able to explain design and code deci­sions, answer review­ers’ ques­tions, and ensure that AI use does not waste review­ers’ time dur­ing review. That being said, the use of AI is not rec­om­mend­ed under any cir­cum­stances or in any manner.
  • The con­trib­u­tor pro­vides rea­son­able assur­ance that the con­tri­bu­tion does not infringe third-par­ty copy­rights or license terms.

All pull requests must meet these requirements.


Discover more from FreeCAD News

Subscribe to get the latest posts sent to your email.

4 responses to “Rules regarding AI-generated patches”

  1. AVTech Engineering Avatar
    AVTech Engineering

    Excel­lent call. AI is a good assis­tive tool, but not a solu­tion engine by any stretch of the imag­i­na­tion. We have been deal­ing with a sim­i­lar prob­lem with some clients- ones who think that now they have access to Chat­G­PT, that they are all of a sud­den a high­ly cre­den­tialed engi­neer and can call into ques­tion every engi­neer­ing deci­sion we make on a project, forc­ing us to waste time explain­ing things.

    Stand your ground, team…we stand with you.

  2. brokencow Avatar
    brokencow

    .. use of AI is not rec­om­mend­ed under any cir­cum­stances or in any manner”. 

    That is sim­ply unre­al­is­tic. Just about every dev and main­tain­er on the project, and indeed every project, is now flat out using AI. There were those that tried to stop the rail­ways once ..

    1. Aleksandr Prokudin Avatar
      Aleksandr Prokudin

      Wow, I’d love to meet a per­son who knows every sin­gle devel­op­er and main­tain­er in every project out there. What a life to live! 🙂

    2. Fred Avatar
      Fred

      I think the key word is “rec­om­mend­ed”.
      Con­text mat­ters. The full text makes it clear the devel­op­er can use AI but states the devel­op­er must be able to jus­ti­fy every­thing *they* put forward.
      For exam­ple, a devel­op­er might get an AI to gen­er­ate skele­ton code to imple­ment a math­e­mat­i­cal algo­rithm… a coder who might be a gun at cod­ing, but not full-bot­tle on the math­e­mat­ics of bicu­bic splines.

Discover more from FreeCAD News

Subscribe now to keep reading and get access to the full archive.

Continue reading