VTK AI Policy

Hi VTK community

We (VTK maintainers) have been trying to figure out how to adapt VTK contribution and community guidelines to the new workflow where many developers and users rely an generative AI in their workflow.

In that regards, here is a first version of the VTK AI policy:
https://gitlab.kitware.com/vtk/vtk/-/blob/master/AI_POLICY.md?ref_type=heads

TLDR: Disclose and review what you generate.

It’s associated with a merge request template that ask developers to disclose how AI was used:
https://gitlab.kitware.com/vtk/vtk/-/blob/master/.gitlab/merge_request_templates/default.md?ref_type=heads

Of course, this is an changing technology and as usage evolve over time, so may the AI policy as well.

Feel free to provide feedback and potential improvements suggestions, that will be considered by VTK maintainers.

Please note that some people feel very strongly about generative AI, the objective here is to ensure VTK quality keep increasing and VTK community keep being as awesome and welcoming as it already is!

>When commiting, use your own name or alias and do not add an AI tool as a co-author

Why not add AI tool as co-author in commit messages? This seems to be common practice in many other projects. I’m curious what you thought the pros/cons of doing that are?

This was deemed noisy and seen as a free ads for AI companies.
It also ensure the contributor assume its own work and do not hide behind generative AI choices.

Hmm, I see. The gitlab MR requires AI disclosure though. Is it better to have that info in git or gitlab?

I suspect git will outlast gitlab. VTK has used mantis in the past, ITK used gerrit in the past, I could well imagine gitlab one day being replaced, and I suspect git history will be better preserved than gitlab history.

When we migrate from one project/issue/review management system to another then we usually lose some of the information, so I agree that any information that we want to preserve in the long term should be in the revision control system.

Recording model usage in co-authored-by trailer is indeed a free gift to AI companies, and co-authorship may make some people feel that the responsibility is shared. However, it is useful for the community to record this information and the most common practice is to use these standard trailers. So, overall it makes sense to me to accept this convention and follow it.

My opinion was different a few months ago, so I completely understand if not everyone agrees. Regardless of what we choose to do now, we could agree to review the policy in every 3 months to see what adjustments are needed.

As stated in the AI policy, the AI disclosure in merge requests is about review.