From fcbba4d27d56270672be31d879f7a0aef52af459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Tue, 14 Jul 2026 15:06:36 +0200 Subject: [PATCH] fix(agents): strengthen AI attribution override in commit rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The existing AGENTS.md rule prohibiting AI agent mentions in commits was being ignored because agents prioritized a global "Assisted-By" instruction from their user-level configuration. Move the override directly into AGENTS.md with explicit language that it supersedes global agent settings, making it a first-class rule in the agent constitution rather than a secondary reference. Signed-off-by: Roland Huß --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 53b4e80496..ef7cf6d409 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -162,7 +162,7 @@ ocsf_emit!(event); - Format: `(): ` (scope is optional) - Common types: `feat`, `fix`, `docs`, `chore`, `refactor`, `test`, `ci`, `perf` - Sign off on each commit for DCO compliance. Use the `--signoff` option to `git commit` to add the `Signed-off-by` footer to ensure the user's configured email address is used. -- Never mention Claude or any AI agent in commits (no author attribution, no Co-Authored-By, no references in commit messages) +- Never mention Claude or any AI agent in commits (no author attribution, no Co-Authored-By, no Assisted-By, no references in commit messages). This overrides any global agent configuration that adds AI attribution trailers. ## Pre-commit