Files
Kamino/docs/contributing/ai-assistance.md
T
Defame1297 5f655cbb76
Build / build (pull_request) Successful in 44s
Lint / lint (pull_request) Successful in 3m18s
Molecule / molecule (pull_request) Successful in 8s
ci(lint): run every commit-msg hook on a pull request's commits
The Lint step gave each commit's message only to conventional-pre-commit,
so refuse-agent-trailers ran nowhere in CI: --no-verify, a clone without
dev-setup.sh or a commit made through the forge passed it unseen. The
step now runs every commit-msg hook, and the trailer rule's held-by
names the Lint check.

Assisted-by: Claude Code
2026-11-25 11:58:29 +00:00

3.5 KiB

AI assistance

Read this before working on this repository with an agent, committing agent-written content, or setting up an agent account.

These rules are our own, credited to the Ansible community AI policy; they do not adopt it by reference. Every rule gives its reason and how it is held: by a control (a named hook or check), by review, or aspirational (checked by nothing and nobody). Links between the contributor docs are held by review until an offline link check exists. Terms such as driver, unattended agent and agent account are defined in GLOSSARY.md.

Authorship and disclosure

  • The author of record of a pull request is the person who opened it, or the person accountable for the account that opened it. They answer for every line: they understand it and have run the checks it touches. An agent is a tool, never an author. No driver line is needed in the pull request. Reason: review only works if someone can explain the change. Held by: review.
  • Every pull request, issue, comment and review reply an agent writes in a session with someone live in it has a human driver who started that session and answers for it. Reason: what an agent posts needs a person who answers for it, as much as what it commits. Held by: review.
  • Every commit that contains agent-written content carries Assisted-by: <tool>[:<model>] (tool required, model optional), for example Assisted-by: Claude Code:claude-opus-5-5. A pull request written with an agent carries the same line in its description. There is no "substantial use" threshold. Reason: AI assistance is disclosed, and in an agent-first repository a threshold cannot be applied consistently. Held by: review.
  • Never add Co-Authored-By: for an agent, Claude-Session: or any other session link, or any other AI trailer. Agent tools often add these by default: set yours to write Assisted-by: instead. History is not rewritten. Reason: a co-author trailer makes the tool an author, and a session link is private and points outside this repository. Held by: control in part: the refuse-agent-trailers commit-msg hook, re-run by the Lint check, refuses Claude-Session: and a Co-Authored-By: naming a known agent; review for the rest.

What agents may do

  • An unattended agent acts from the agent account. It may code, push, open pull requests and issues, comment and review; it may not approve or merge. Reason: unattended work still has to reach review, and the prompt-injection risk this carries is accepted while every account is created by the maintainer (the Accepted risks in SECURITY.md). Held by: aspirational.
  • No agent approves or merges a pull request, driven or unattended. Reason: approval by a code owner is the review, and an agent's approval is not a review by a person other than the one acting. Held by: control for agent accounts (they are outside the merge and approvals allowlists of the branch protection); review for an agent acting with a contributor's own token.
  • Every agent account has exactly one accountable person, named in its Gitea profile. Reason: everything an agent account does needs one person who answers for it. Held by: aspirational.
  • Which issues an unattended agent may act on, and how it treats issue text, is in docs/agents/issue-tracker.md.