From 9eb4ad59fd7af3e4321a1770c2bddc66038f91bd Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 24 Sep 2026 15:45:48 +0000 Subject: [PATCH] docs(agents): forbid self co-author trailers in commits --- AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 1c9153c..2c499a9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -84,6 +84,15 @@ chore(ci): cache gradle wrapper in workflow docs(readme): document commit message types ``` +- Never add a `Co-authored-by` / `Signed-off-by` trailer for the same identity + that authors the commit — a self co-author is a redundant duplicate. Only + credit a genuinely different human co-author, and only when asked. No AI + co-author trailers in commits either; AI attribution stays only in the PR body. +- Keep the body free of trailers entirely unless explicitly asked for one. + When squash-merging via `gh pr merge --squash`, pass an explicit + `--subject` and an empty `--body ""` so GitHub doesn't re-inject branch + trailers or auto-credit the branch author as a co-author. + ## Agent Guardrails - Never commit or push directly to `main`; all changes land through pull requests.