Skip to content

Add Spack AI usage policy - #7

Open
becker33 wants to merge 1 commit into
mainfrom
ai-policy-minimal
Open

Add Spack AI usage policy#7
becker33 wants to merge 1 commit into
mainfrom
ai-policy-minimal

Conversation

@becker33

@becker33 becker33 commented Aug 5, 2026

Copy link
Copy Markdown
Member

The goal of this policy is to be lightweight and neutral. AI is a tool, and like all tools it can be used well or poorly. We aim to prohibit the most antisocial uses of AI without being unfriendly to people using it effectively.

Summary:

  1. Don't submit slop.
  2. You are the author of your contributions, not the AI.
  3. Don't automate your responses to maintainers.

Assisted-by: Claude Fable 5

Signed-off-by: Gregory Becker <becker33@llnl.gov>
Assisted-by: Claude Fable 5
@becker33
becker33 requested a review from a team August 5, 2026 21:58
@becker33 becker33 changed the title Draft Spack AI usage policy Add Spack AI usage policy Aug 5, 2026

@wdconinc wdconinc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) I might have included a reference to Nadia Eghbal's Working in Public where I think the terminology of "extractive contributions" was first introduced.

@eugeneswalker

Copy link
Copy Markdown

I think this policy is succinct, clear, and covers the bases.

Comment thread AI-POLICY.md
@@ -0,0 +1,26 @@
Spack AI Usage Policy

1. Extractive contributions

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting doesn't look great at the moment: https://github.com/spack/governance/blob/ai-policy-minimal/AI-POLICY.md

I think the following paragraphs need to be indented one more space, or just convert the list to section headers like ###

Comment thread AI-POLICY.md

1. Extractive contributions

AI tools lower the cost of producing plausible-looking contributions. At best, the maintainer cost to review these contributions is mostly unchanged. Without effort from the user, AI-generated contributions can be verbose and difficult for maintainers to review.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we clarify that just because something looks plausible or succinct doesn't mean it's correct? Hallucinated code is the most extractive of all.

Comment thread AI-POLICY.md
- You are responsible for everything you submit, however it was produced.
- Understand every component of your contribution well enough to discuss and revise technical details.
- Maintainers may close any PR or issue they judge to be extractive.
- Contributors who repeatedly submit extractive contributions will be suspended or banned.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this include maintainers? 😉

Seriously though, some of my maintainers have violated this policy many times already.

Comment thread AI-POLICY.md
Every contribution must have a human author of record. AI tools may not be listed as authors or co-authors.

- The human author's Signed-off-by: (DCO) certifies that they have the right to submit the work.
- If you are not claiming full authorship of your AI-assisted contribution, use an Assisted-by: commit trailer to give credit, e.g. Assisted-by: Claude Fable 5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would broaden this. Even if you want to "claim" full authorship, if something is AI-assisted, that should be documented.

I would also propose a bot that adds an "AI-assisted" label to all PRs that have this commit trailer. This would help me decide which PRs to review and which to ignore. Every maintainer should have the right to decide whether or not to review AI-assisted PRs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not willing to add contribution friction over whether someone properly credits AI on a PR that is already below the threshold of originality, and I want to make sure that our policy doesn't sign us up to enforce something that is painful for no benefit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about something above the threshold of originality?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally? I don't think it matters, and would not want to require a new commit for them to fix it. Assisted-by doesn't mean the author can't hold copyright, and it doesn't provide us anything to go by in determining whether they can. The only context in which it matters to me is something over the threshold for which they didn't make substantial enough changes to hold copyright. Squashing commits only adds to the confusion -- we will list an entire PR as AI-assisted because the contributor used AI to help write unit tests.

From a project policy perspective: I think we should wait and implement whatever LF eventually determines to be our legal requirements, but I don't think we know what that is yet and we're just guessing at it.

I also think making a policy that we can't enforce is counterproductive to maintaining the community atmosphere that we want. We have enough trouble merging things in a timely manner as-is.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a project policy perspective: I think we should wait and implement whatever LF eventually determines to be our legal requirements, but I don't think we know what that is yet and we're just guessing at it.

Agreed with this. Does our LF contact have any contact with LF legal? Would be nice to know a timeline.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can ask @christopherclark about it on HPSF slack, I don't know whether he gets notifications from here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently we have a lot of leeway to set our own policy, at least for now: https://www.linuxfoundation.org/legal/generative-ai

Comment thread AI-POLICY.md

3. Human interaction

Review comments and questions are addressed to you, not your tooling. You may use AI to help draft a reply, but a human must understand and post it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this apply to issue/PR/discussion descriptions as well? This was divisive in my other org. I'm on the fence, but a verbose description is definitely extractive (takes me longer to read than it took the author to write).

@tgamblin
tgamblin requested a review from haampie August 14, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants