On Fri, 13 Feb 2026 at 23:51, Robert Kern via NumPy-Discussion <
[email protected]> wrote:

> On Wed, Feb 11, 2026 at 6:26 PM Matthew Brett via NumPy-Discussion <
> [email protected]> wrote:
>
>>
>> Just to clarify - in case it wasn't clear, what I'm floating as a
>> proposal, would be something like this, as a message to PR authors:
>>
>> Please specify one of these:
>>
>> 1) I wrote this code myself, without looking at significant AI-generated
>> code OR
>> 2) The code contains AI-generated content, but the AI-generated code is
>> sufficiently trivial that it cannot reasonably be subject to copyright OR
>> 3) There is non-trivial AI-generated code in this PR, and I have
>> documented my searches to confirm that no parts of the code are subject to
>> existing copyright.
>>
>> So - the burden for the reviewer is just to confirm, in case 3, that the
>> author has documented their searches.   We take the word of the contributor
>> for the option they have chosen.   Obviously, the documentation requirement
>> of case 3 is somewhat of a burden for the contributor, and may therefore
>> encourage them to write the code themselves, to avoid that burden.  That
>> might not be a bad thing, long term, for the project, and it seems
>> reasonable to me as some defence against copyright violation, and a message
>> that the project cares about such violation.
>>
>
> For Case 3, I would love to see an example of the search that you would
> accept. If you could take a recent PR (human or AI, doesn't really matter
> for this purpose), and show the search that would satisfy you, that would
> go a long way towards clarifying what you are asking for here. We'd need a
> worked example or two before adopting this policy because if I don't know
> what you are asking for, no new contributor will, either.
>
> --
> Robert Kern
> _______________________________________________
> NumPy-Discussion mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3//lists/numpy-discussion.python.org
> Member address: [email protected]


Here is an example right now in NumPy. Apparently someone is deep diving
into performance edge cases. They (most likely with the help of ai or
totally by ai) submitted a three line PR
https://github.com/numpy/numpy/pull/30810 to speed up np.array_equal. Now
the same author submitted a much bigger PR to speed up np.isin
https://github.com/numpy/numpy/pull/30828. Is the work the product of ai?
Yes, but the author claims to have verified the code. Is the author ai or
not? Should we proceed with the PR?
Matti
_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]

Reply via email to