From 93c0a4402745742f77be07643e29e723ddd3b534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Thu, 1 Oct 2026 22:20:27 +0200 Subject: [PATCH] docs: require Co-authored-by trailer in commit messages for AI agents --- AGENTS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index b04e5c8..1e7f560 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -211,3 +211,17 @@ The repository includes preconfigured tasks in [`.vscode/tasks.json`](.vscode/ta 5. **Code Style:** - Follow the naming and check options specified in [`.clang-tidy`](.clang-tidy) (functions/variables in `snake_case`, classes/structs in `CamelCase`). - Run `cmake --build build` to verify clean compilation without warnings or errors. +6. **Commit Message Attribution:** + - Every commit message generated by an AI agent **must** include a `Co-authored-by` trailer, separated from the subject/body by a blank line. Each agent should substitute its own name and contact address: + ``` + Co-authored-by: + ``` + - Example commit message format: + ``` + feat: add cursed apple spawn rate tuning + + Expose CURSE_SPAWN_CHANCE constant in consts.h so it can be adjusted + without touching game logic. + + Co-authored-by: + ```