This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 7f0da7f8d8a AGENTS.md: require attribution footer on agent-drafted
GitHub messages (#65965)
7f0da7f8d8a is described below
commit 7f0da7f8d8a00288c6b06f7b6f0e2ae92d3d894d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Apr 27 21:51:43 2026 +0200
AGENTS.md: require attribution footer on agent-drafted GitHub messages
(#65965)
Adds a 'GitHub messages drafted by agents' subsection under 'Commits and
PRs' that requires any agent-drafted PR/issue comment, PR review, or line-level
review comment to end with a 'Drafted-by:' footer. Two forms — one for messages
posted without prior human review, one for messages reviewed and approved by a
named human maintainer before posting. The footer is in addition to existing
PR-body 'Generated-by:' disclosure, not a replacement.
---
AGENTS.md | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/AGENTS.md b/AGENTS.md
index 276448648bd..f960cd36537 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -331,6 +331,46 @@ tracking issue, add a PR comment referencing the issue
URL, and push a
follow-up commit that adds the tracking-issue URL as a comment at the
workaround site in the code.
+### GitHub messages drafted by agents
+
+Anything an agent drafts that ends up posted to GitHub on the user's
+account — PR / issue comments, PR-level reviews, line-level review
+comments, discussion replies — must end with an attribution footer.
+The footer is required whether or not a human reviewed the draft
+first; what changes between the two cases is the wording.
+
+Place the footer on its own paragraph at the end of the message,
+separated from the body by a blank line and a horizontal rule. Use
+the same agent name string used in `Generated-by:` on PR bodies (for
+example, `Claude Code (Opus 4.7)`).
+
+- **Agent draft, posted without prior human review** (autonomous /
+ routine work, scheduled triage, etc.):
+
+ ```
+ ---
+ Drafted-by: <Agent Name and Version> (no human review before posting)
+ ```
+
+- **Agent draft, reviewed and approved by a human maintainer before
+ posting:**
+
+ ```
+ ---
+ Drafted-by: <Agent Name and Version>; reviewed by @<github-handle> before
posting
+ ```
+
+ The `@<github-handle>` is the human who actually read the draft
+ and said "post it as-is" (or similar). It is not the user the agent
+ is "running on behalf of" if no review took place — that case is the
+ first form, not this one.
+
+This footer is in addition to, not a replacement for, any per-tool
+disclosure rules (the PR body still keeps its own `Generated-by:`
+block under the AI-disclosure checkbox; commit messages still follow
+the no-self-as-co-author rule above). Do not skip the footer to
+shorten a message — attribution applies regardless of message length.
+
## Boundaries
- **Ask first**