Skip to content

docs(agents): short titles, short bodies and result-first replies - #2586

Merged
dan-petty merged 2 commits into
mainfrom
docs/1803-commit-message-shape
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/1803-commit-message-shape

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The pull request title is the squash subject and the changelog line, and the body is the squash message. Both had grown long: on the 188 recent squash commits, the median title summary has 77 characters, and the median body has 1,287 before the trailers.

  • The summary after <type>(<scope>): has at most 60 characters. The Semantic PR title check refuses a longer one with the action's own subjectPattern.
  • The body states what and why in at most 1,000 characters before the trailers. The change folder holds the evidence. A reviewer checks the body.
  • No hook checks commits on a branch, because the squash merge replaces them.
  • Agent prose puts the result and the decision first (style_ste100.md, the rules of AGENTS.md rule 9).
  • CONTRIBUTING.md section 4 holds the rules. The duplicate rules in docs/SDLC.md and docs/ROUTINE_TASKS.md now point to it.

Closes #1803

Change: openspec/changes/archive/2026-10-29-1803-commit-message-shape/

A pull request title is the squash subject and the changelog line, and
its body is the squash message. Both had grown long: the summary of a
title has a median of 77 characters, and a body 1,287 before the
trailers.

- The summary after `<type>(<scope>): ` has at most 60 characters. The
  `Semantic PR title` check refuses a longer one with the action's own
  `subjectPattern`.
- The body says what and why in at most 1,000 characters before the
  trailers, and leaves the evidence to the change folder.
- No hook checks commits on a branch: the squash merge replaces them.
- Agent prose puts the result and the decision first.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • tests/test_workflow_contracts.py::test_a_pull_request_title_summary_has_at_most_60_characters failed first (KeyError: 'with': the step had no inputs), then passed. It applies the action's own rule: the first match of subjectPattern covers the whole summary. 60 characters pass, 61 fail.
  • tests/test_ai_client_style_request.py: 4 snapshots updated. The only difference is the new paragraph of style_ste100.md.
  • The 12 test files that load task prompts, and tests/test_docs.py: 610 passed. uv run devops docs check passes.
  • Measurements and method: the Feasibility section of the archived change.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 01:26
@dan-petty
dan-petty merged commit b32348a into main Oct 29, 2026
17 checks passed
@dan-petty
dan-petty deleted the docs/1803-commit-message-shape branch October 29, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(agents): decide a concise shape for commit messages and agent-written text, and what enforces it

1 participant