Skip to content

[FEATURE] AI policy in the repos #678

Open

Description

@navneet1v

Is your feature request related to a problem?

This is not a feature but something in general I want to start a discussion on which is should OpenSearch project adopt an AI usage policy? I came across Lucene AI policy: https://github.com/apache/lucene/blob/c94ed045b8a107aef4c2c07eafad42e7b82dbda6/AI_POLICY.md#L20, which I feel is very interesting and awesome.

What solution would you like?

Have an AI policy may be similar to Lucene. https://github.com/apache/lucene/blob/c94ed045b8a107aef4c2c07eafad42e7b82dbda6/AI_POLICY.md#L20

What alternatives have you considered?

None

Do you have any additional context?

The main reason for AI policy to avoid the slop of PRs and github comments that comes through AI and makes it very hard to review the code and have a healthy discussion

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. peterzhuamazon commented on Oct 12, 2026

    @peterzhuamazon
    Member

    We already have it in contributing.md @navneet1v .

    It is approved by both TSC and LF.

    Thanks.

  3. navneet1v commented on Oct 12, 2026

    @navneet1v
    Author

    @peterzhuamazon I think the ai policy needs to be added in the repos so that LLMs can read it when they are opened in a repo. Also the current policy needs update.

  4. peterzhuamazon commented on Oct 12, 2026

    @peterzhuamazon
    Member

    Adding @andrross @msfroh @getsaurabh02 @krisfreedain @cwperks on this thread.
    We have just added the AI policy a few months ago.

    Given the current circumstances, and our prior discussion already regarding AI slop, do we think it is a time to introduce slop detector or similar?

    We already use AI to scan PRs for malicious code and review.
    Open to discussion.
    Thanks.

  5. krisfreedain commented on Oct 13, 2026

    @krisfreedain
    Member

    @navneet1v - given that we have a policy as @peterzhuamazon pointed out - what very specific sections of it do you feel need the improvement? We are alway open to discuss updates, but I would like to request what specific updates you feel would improve - thanks

    Also, I would worry about a policy in each repo getting out of sync very quickly across the project - maybe a link to the policy? That way the content of the policy could be updated and the link to it across 150+ repos could stay the same.

  6. andrross commented on Oct 14, 2026

    @andrross
    Member

    Agree with @krisfreedain, we're always happy to review suggestions to policy changes, @navneet1v feel free to open a PR with your suggestions! As for a mechanism for agents to get the information, I wonder if we can standardize on using AGENTS.md in the root of each repo that could link to relevant project-wide guidance (like the contributing doc under discussion here). The rest of the file could then have whatever content is appropriate for that repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions