diff --git a/AGENTS.md b/AGENTS.md index 0e50364..ab38f70 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,6 +21,24 @@ release notes. Write it for that reader: `feat` has to be a word, so `Fix the feature flag leak` is a patch. Only the subject line is read; the body is not. +## Commit as the work lands + +Commit each step as soon as it is finished rather than leaving it in the tree +until the end. Two reasons, and the second is the one that bites: + +- An uncommitted change has no release note at all. The subject is the sentence a + user reads, so work that never becomes a commit never becomes a sentence. +- A tree carrying four unrelated changes cannot be split into four honest + subjects after the fact — the reasoning behind each one is only in the + transcript by then, and the range picks its bump from whatever subjects it + ends up with. One `feat:` batched in with a handful of fixes is a minor bump + for all of them. + +Keep a subject to one change and the version follows from it. + +A commit here is local. Pushing to `master` is what releases, so it stays a +separate, deliberate step. + ## The release job owns the version and the changelog `package.json`'s `version` and `CHANGELOG.md` are the job's to write, derived