Synced from Hive. This page is pulled from hivecommons/hive@v5 during the docs build. Edit the canonical source in the Hive repository.

AI contribution policy template

Last reviewed: 2026-11-30

Hive ships a template that any project can use to write its own AI contribution policy, whether or not it runs a hive. Hive Commons uses the same structure for its own org-wide policy.

Why have one

The Linux Foundation’s 2026 report Navigating Open Source Software Development in the Generative AI Era found that only about a third of open source projects have a formal policy permitting AI-assisted contributions. Where projects do have policies, most cover disclosure and contributor review responsibility (76% each). Far fewer cover licensing and copyright (39%), and almost none cover required tooling (6%). The report recommends that projects:

  • write the policy down rather than rely on informal norms;
  • require disclosure, and make it consistent rather than left to each contributor;
  • make contributors review and test AI output before they submit it.

The template covers all of these and adds a section on agent autonomy. Agent autonomy is what changes most between a project that only accepts AI-assisted human PRs and a project that runs agents itself.

What is in the template

The template is at src/docs/templates/AI_POLICY.template.md. Its eleven short sections are:

  1. Scope
  2. What is allowed
  3. Disclosure: a note in the PR description, with an optional commit trailer
  4. Human responsibility
  5. DCO and sign-off
  6. Licensing and copyright, stated as facts and pointing to the LF guidance
  7. Security reports
  8. Quality expectations
  9. Handling non-compliant PRs
  10. Agent autonomy: choose one ACMM block
  11. Review cadence

How to use it

  1. Copy the template. Save it as AI_POLICY.md in your repository root, or in your organization’s .github repository so it applies to every repository.

  2. Replace each placeholder written in double curly braces, such as the project name, license and security policy link.

  3. In section 10, keep the one block that matches how you run agents and delete the others:

    • Option A: you run no agents of your own.
    • Option B: ACMM L1 or L2. Agents only observe, advise and post comment-only reviews.
    • Option C: ACMM L3 to L5. Agents open PRs, every agent PR is held, and a person releases the hold and merges.
    • Option D: ACMM L6. Eligible agent PRs merge on green CI in the repositories you list.

    See the ACMM policy matrix for what each level enables in Hive.

  4. In section 5, choose how agents sign off. Either agents sign only their own commits under a bot identity, as Hive does, or a person reviews and signs every agent commit.

  5. Link the policy from CONTRIBUTING.md.

  6. Revisit it when you change your hive’s ACMM level. Moving from option C to option D changes who is accountable for merges.

Disclosure in Hive

Both the Hive Commons policy and the template put disclosure in the PR description. A hive’s agents open PRs through the hive’s GitHub App (see hive-open-pr), so agent authorship is visible on every PR. The PR description ends with a footer naming the agent, backend and model, for example -- hive: agent=quality backend=claude model=MODEL. The governor.attribution_trailer setting controls the footer, and it is on by default. PRs sent through the contributor relay carry the same footer. Comments and review replies an agent posts (gh pr comment, a reply in a review thread, a review body) end with the same trailer, applied by the GitHub proxy from the calling agent’s identity. A trailer the agent wrote itself is replaced, and the trailer sits above the identity footer when there is one. Each agent signs off only the commits it authored, and credits issue authors with Co-authored-by, never with a sign-off.

A project may also choose a commit trailer. The template’s disclosure section has an optional line for one. For context: in 2026 the Linux kernel documented an Assisted-by: commit trailer, later dropped the model name from it, and then removed it in favor of disclosure in the cover letter or PR description. Kubernetes asks for disclosure in the PR description and does not use AI trailers.

Sources