AI-assistance policy and commit trailer #94

Closed
opened 2026-11-11 22:02:57 +00:00 by Claude · 3 comments
Owner

Part of #87

Question

What does this repository ask of a contributor who uses an AI agent, and which commit trailer records it?

Decide: accountability wording; whether and when disclosure is required; whether autonomous submissions are accepted; whether agents may write review replies; Assisted-by: versus Co-Authored-By:; whether any of it is checked.

Context

  • Public policies converge on: the human is the author and accountable, must understand and test the change, discloses substantial AI use, and no autonomous agent submissions. The Ansible community AI policy says this and could be adopted by reference.
  • The policies surveyed use Assisted-by:; none recommended Co-Authored-By: for AI, which is a tool default.
  • The maintainer works agent-first, so the policy must fit heavy agent use by trusted people.
Part of #87 ## Question What does this repository ask of a contributor who uses an AI agent, and which commit trailer records it? Decide: accountability wording; whether and when disclosure is required; whether autonomous submissions are accepted; whether agents may write review replies; `Assisted-by:` versus `Co-Authored-By:`; whether any of it is checked. ## Context - Public policies converge on: the human is the author and accountable, must understand and test the change, discloses substantial AI use, and no autonomous agent submissions. The Ansible community AI policy says this and could be adopted by reference. - The policies surveyed use `Assisted-by:`; none recommended `Co-Authored-By:` for AI, which is a tool default. - The maintainer works agent-first, so the policy must fit heavy agent use by trusted people.
Claude added the
Wayfinder
Grilling
label 2026-11-11 22:02:57 +00:00
Claude added a new dependency 2026-11-11 22:03:14 +00:00
Defame1297 was assigned by Claude 2026-11-15 09:23:15 +00:00
Author
Owner

Resolution

Decided with the maintainer (grilling session, 2026-11-15).

  1. Source. Our own short rules (rule, reason, how it is held), credited to the Ansible community AI policy (https://docs.ansible.com/projects/ansible/13/community/ai_policy.html). Not adopted by reference: the guidance must stand alone.
  2. Accountability. The person who opens a pull request is its author and answers for every line: they understand it and have run the checks it touches. An agent is a tool, never an author. Reason: review only works if someone can explain the change. Held by: review.
  3. Disclosure. Every commit containing agent-written content carries Assisted-by: <tool>[:<model>] (tool required, model optional). A pull request written with an agent carries the same line in its description. No "substantial use" threshold: in an agent-first repository it cannot be applied consistently. Held by: review.
  4. Excluded. Co-Authored-By: for an agent (it makes the tool an author, against 2), Claude-Session: and other session links (private, and against standing alone), and any other AI trailer. History is not rewritten. Held by: review.
  5. Driven sessions. Every pull request, issue, comment and review reply has a human driver who started that session and answers for it.
  6. Unattended agents (scheduled, nobody live in the session) may post comments and reviews that comment or request changes, from the agent account, with the person who scheduled them as driver. They may not open pull requests or issues, push, approve or merge. Reason: a comment can be ignored; a pull request or a push runs workflows with secrets (Threat model).
  7. No agent approves or merges, driven or unattended. Reason: with CODEOWNERS blocking on review, approval is the gate; an agent approving passes its own gate. Held by: review, until repository settings take the agent account's owner role away and keep it out of CODEOWNERS.
  8. Controls: none, by the maintainer's choice. A trailer denylist hook was offered and declined; rules 2–7 are held by review.
  9. Tool setup. A tracked .claude/settings.json holds only attribution: commit and pr set to Assisted-by: Claude Code, sessionUrl false. Claude Code accepts only a fixed string, so the model is not filled in. Other agent tools get the rule from AGENTS.md.
  10. No ADR. Cheap to reverse and follows public practice.

Glossary terms (land with the rules): Driver (the person who starts an agent session and answers for what it produces); Unattended agent (an agent running with no driver live in the session).

Backlog: the tracked settings file is filed as a ready issue. The rules and the glossary terms wait on Contributor doc set for where they live (map: Implementation owed).

## Resolution Decided with the maintainer (grilling session, 2026-11-15). 1. **Source.** Our own short rules (rule, reason, how it is held), credited to the Ansible community AI policy (https://docs.ansible.com/projects/ansible/13/community/ai_policy.html). Not adopted by reference: the guidance must stand alone. 2. **Accountability.** The person who opens a pull request is its author and answers for every line: they understand it and have run the checks it touches. An agent is a tool, never an author. *Reason:* review only works if someone can explain the change. *Held by:* review. 3. **Disclosure.** Every commit containing agent-written content carries `Assisted-by: <tool>[:<model>]` (tool required, model optional). A pull request written with an agent carries the same line in its description. No "substantial use" threshold: in an agent-first repository it cannot be applied consistently. *Held by:* review. 4. **Excluded.** `Co-Authored-By:` for an agent (it makes the tool an author, against 2), `Claude-Session:` and other session links (private, and against standing alone), and any other AI trailer. History is not rewritten. *Held by:* review. 5. **Driven sessions.** Every pull request, issue, comment and review reply has a human driver who started that session and answers for it. 6. **Unattended agents** (scheduled, nobody live in the session) may post comments and reviews that comment or request changes, from the agent account, with the person who scheduled them as driver. They may not open pull requests or issues, push, approve or merge. *Reason:* a comment can be ignored; a pull request or a push runs workflows with secrets ([Threat model](https://git.rkdr.net/Mortis/Kamino/issues/99)). 7. **No agent approves or merges**, driven or unattended. *Reason:* with CODEOWNERS blocking on review, approval is the gate; an agent approving passes its own gate. *Held by:* review, until repository settings take the agent account's owner role away and keep it out of CODEOWNERS. 8. **Controls: none, by the maintainer's choice.** A trailer denylist hook was offered and declined; rules 2–7 are held by review. 9. **Tool setup.** A tracked `.claude/settings.json` holds only attribution: `commit` and `pr` set to `Assisted-by: Claude Code`, `sessionUrl` false. Claude Code accepts only a fixed string, so the model is not filled in. Other agent tools get the rule from `AGENTS.md`. 10. **No ADR.** Cheap to reverse and follows public practice. **Glossary terms** (land with the rules): *Driver* (the person who starts an agent session and answers for what it produces); *Unattended agent* (an agent running with no driver live in the session). **Backlog:** the tracked settings file is filed as a ready issue. The rules and the glossary terms wait on [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) for where they live (map: Implementation owed).
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • Item 9 is superseded by Agent guard hook and permission allowlist. Item 9 says the tracked .claude/settings.json "holds only attribution". The later resolution, point 2: it holds attribution, the hooks apm writes, and possibly later hand-written hooks, never permissions.
  • Item 7 is partly a control now, through Recommended repository settings and branch protection. Item 7 says "No agent approves or merges ... Held by: review". The settings decision leaves the agent account off the merge allowlist and off the approvals allowlist, so for that account the rule becomes a branch-protection control. It stays review-held for an agent acting with a contributor's own token.
  • Who may use the agent account, and whether unattended agents get a token that cannot push, is open in Agent credentials and what unattended agents can do.
Review of the map (2026-11-15): corrections to this issue. - **Item 9 is superseded by [Agent guard hook and permission allowlist](https://git.rkdr.net/Mortis/Kamino/issues/195).** Item 9 says the tracked `.claude/settings.json` "holds only attribution". The later resolution, point 2: it holds `attribution`, the `hooks` apm writes, and possibly later hand-written hooks, never `permissions`. - **Item 7 is partly a control now, through [Recommended repository settings and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/179).** Item 7 says "No agent approves or merges ... *Held by:* review". The settings decision leaves the agent account off the merge allowlist and off the approvals allowlist, so for that account the rule becomes a branch-protection control. It stays review-held for an agent acting with a contributor's own token. - Who may use the agent account, and whether unattended agents get a token that cannot push, is open in [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209).
Author
Owner

Review of the map (2026-11-17).

The question the last note left open is closed by Agent credentials and what unattended agents can do: it rewrites item 2 (the author of record is the opener, or the person accountable for the opening account) and item 6 (unattended agents act from the agent account and may code, push and open pull requests and issues; aspirational), and it makes "agent accounts do not approve fork runs" a control.

Making sure an agent actually loads the guidance re-confirmed that the trailer rules stay held by review. Whether the trailer rule sits in the root AGENTS.md or behind a pointer is open in Where the last unplaced rules live: architecture, the three positions and the trailer rule.

Review of the map (2026-11-17). The question the last note left open is closed by [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209): it rewrites item 2 (the author of record is the opener, or the person accountable for the opening account) and item 6 (unattended agents act from the agent account and may code, push and open pull requests and issues; aspirational), and it makes "agent accounts do not approve fork runs" a control. [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213) re-confirmed that the trailer rules stay held by review. Whether the trailer rule sits in the root `AGENTS.md` or behind a pointer is open in [Where the last unplaced rules live: architecture, the three positions and the trailer rule](https://git.rkdr.net/Mortis/Kamino/issues/258).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#94