From 83dca0263a04838f34859124f62eb87e069a5d24 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 24 Sep 2026 15:45:44 +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 2a91b27..7a7020c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -98,6 +98,15 @@ docs(readme): document commit message types release: v1.0.6 ``` +- 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.