Modern Apps git

← Modern-Apps.git

general: commit messages carry a full body after the summary line

Commit
d79dcf4c3c684862902847719c8d4ba38e438afd
Author
Vayun Mathur <[email protected]>
When
2026-10-30 00:51 UTC (1 month ago)
Parents
ef00c6d
Commit messages were limited to a single line of at most 80 characters,
both in the AI agent rules (AGENTS.md) and the contributor guide
(CONTRIBUTING.md). That left no room to explain why a change was made,
and the one-liners are a poor input for the release notes, which are now
written by an LLM from the commit log between releases (see
location_share_server scripts/release-build.sh).

The first line keeps the existing rules unchanged: at most 80 characters
in the form "appname: short description (#iss)". After a blank line, the
message now has a full body, wrapped at ~72 characters, covering what
changed and why, the context (bug or symptom, root cause, constraints,
rejected alternatives), notable implementation details, the user-visible
effect, and how the change was verified.

AGENTS.md states this directly for AI agents and tells them never to
stop at one line; CONTRIBUTING.md gives contributors the same guidance.
The unrelated 80-character limit on store listing summaries
(CONTRIBUTING.md, metadata section) is unchanged.

Documentation only; no code or build changes.

Diff

AGENTS.md
diff --git a/AGENTS.md b/AGENTS.mdindex b0b16f6a59..0243a1b561 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -128,5 +128,5 @@ Findings fail the task. Only `notes/`, `backup/`, `library/ui/`, `games/voxels/`  ## 5. Git / safety - Other agents share the tree. Prohibited except reading state: `stash/revert/reset/checkout . /clean` etc. Only `add` + `commit` allowed, and only paths you changed — check `git status` first, never `add -A/.`, never stage without committing instantly.-- Commit: one line ≤80 chars always following the format: `appname: short description (#iss)`.+- Commit message: line 1 is ≤80 chars, always in the format `appname: short description (#iss)`. Then a blank line and a full body: what changed and why, the context (bug/symptom, root cause, constraints, alternatives rejected), notable implementation details, user-visible effect, and how it was verified. Write in plain prose/bullets, wrapped at ~72 chars. The body feeds AI-written release notes, so make it complete; never stop at one line. - LF only; never commit line-ending churn. `FAIL_ON_PROJECT_REPOS` — never add repos in modules. Read `SUPPLY_CHAIN_RISKS.md` before new third-party dep.
CONTRIBUTING.md
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 73535ecd40..bbae84e4a2 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -613,7 +613,7 @@ CI does not run tests. Run them locally.  ## Git -**Commit messages are one line**, at most ~80 characters:+**The first line of a commit message** is at most ~80 characters:  ``` appname: feature description in a few words (#123)@@ -621,6 +621,11 @@ appname: feature description in a few words (#123)  Drop the issue number if there isn't one. Use the module or area as the prefix. +After the first line, leave a blank line and write a full body, wrapped at ~72 characters: what+changed and why, the context (the bug or symptom, root cause, constraints, alternatives you+rejected), notable implementation details, the user-visible effect, and how you verified it.+Release notes are generated from commit messages, so a complete body makes for better notes.+ `.gitattributes` normalises the whole tree to LF, so you should never see a line-ending diff. If `git diff --stat` reports far more changed lines than you actually touched, your editor rewrote the file's line endings — fix that rather than committing the churn.