Skip to content

docs: add centralized AI usage policy - #1

Open
glours wants to merge 2 commits into
moby:mainfrom
glours:ai-policy
Open

glours wants to merge 2 commits into
moby:mainfrom
glours:ai-policy

Conversation

@glours

@glours glours commented Sep 17, 2026

Copy link
Copy Markdown

As more contributions across moby/docker repos are AI-assisted, each project would otherwise end up writing its own version of the same disclosure and quality rules. This adds a single, project-agnostic AI_POLICY.md to moby/.github that repos can reference instead of reinventing it.

It covers:

  • disclosure of AI usage in issue/PR descriptions
  • no Co-Authored-By trailers for AI tools in commits (disclosure belongs in the description, not the commit)
  • human-in-the-loop review for any AI-generated content before it gets posted (issues, PR descriptions, review replies)
  • concision guidance (short summary up top, detail in a collapsible <details> section)
  • scope discipline (fix the bug, not drive-by refactors/typos)
  • a "no contribution farming" section
  • a generic "approved issue before AI-assisted PR" guideline repos can adopt and tighten on their own

This generalizes a draft policy first proposed for a single repo in docker/compose#13550; that PR's review thread is where most of these requirements were worked out, and is a useful reference for the reasoning behind each rule. This PR doesn't touch docker/compose — that repo should switch to referencing this doc separately, once it lands.

How should consuming repos reference this?

Two options came up in that discussion:

  1. Straight markdown link from each repo's CONTRIBUTING.md/AGENTS.md to this document, similar to how containerd links out to its docs/security docs. Zero maintenance, always up to date, but a link can go unread, and a repo can't easily layer project-specific additions onto it without duplicating text.
  2. Synced copy, kept current via a scheduled workflow or a dependabot/renovate-style job that pulls this file into the consuming repo (optionally between <!-- do not edit between these lines --> markers so repo-specific additions can sit alongside it). Content lives in the repo itself and is more likely to be read, at the cost of sync tooling and the risk of copies drifting if the job breaks or gets ignored.

Each repo can pick whichever fits its own workflow; this PR doesn't build the sync tooling for option 2, just documents the tradeoff.

Generalizes an AI usage policy so other moby/docker repositories can
link to or sync a shared version instead of maintaining their own.
Covers disclosure in PR/issue descriptions only, no AI Co-Authored-By
trailers in commits, human-in-the-loop review for any AI-generated
content that gets posted, concision via a short summary plus a
collapsible details section, scope discipline, no contribution
farming, and an adoptable approved-issue requirement for AI-assisted
PRs.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
Comment thread AI_POLICY.md Outdated
AI_POLICY.md should contain only the policy itself, so repos can link
to it or keep a synced copy without carrying instructions meant for
consumers of the document. Moves the guidance on linking, syncing, and
tightening rules into README.md instead.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
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.

2 participants