From f4bf4724f1406ac9f1503aea3f2f4fe5e90bbdf5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 29 Mar 2026 12:56:48 -0600 Subject: [PATCH] [docs] Add never-amend rule to AGENTS.md Co-Authored-By: Claude Opus 4.6 (1M context) --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index b1cceb934..62df13f8b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -94,6 +94,7 @@ For API work: - Before any commit, run the entire test suite with `meson test -C build`. - Exception: simple documentation-only or CI-only changes may be committed without running tests if they do not affect code, build logic, generated outputs, or test inputs. +- Never amend commits unless explicitly asked. Always create new commits. - Use descriptive commit messages with consistent bracketed subsystem prefixes such as `[subset]`, `[raster]`, `[util]`, or `[meson]`. - Wrap commit message bodies to about 70 columns. - For multi-line commit messages, write the message from a file or editor-backed input. Do not pass escaped `\n` sequences via shell `-m` arguments.