Skip to content

docs: add Commit and PR Format section to AGENTS.md#26070

Open
He-Pin wants to merge 1 commit into
scala:mainfrom
He-Pin:improve-agents-md-commit-pr-format
Open

docs: add Commit and PR Format section to AGENTS.md#26070
He-Pin wants to merge 1 commit into
scala:mainfrom
He-Pin:improve-agents-md-commit-pr-format

Conversation

@He-Pin
Copy link
Copy Markdown
Contributor

@He-Pin He-Pin commented May 16, 2026

How much have you relied on LLM-based tools in this contribution?

Moderately, for drafting the new section text from the existing project conventions (CONTRIBUTING.md, LLM_POLICY.md, .github/pull_request_template.md) and recent commit history. All wording was reviewed and edited by hand.

How was the solution tested?

Non-code change, no tests needed


Motivation

AGENTS.md currently has no guidance on commit message bodies or PR descriptions, so LLM-assisted contributions tend to drift from the project's existing PR template and LLM policy.

Modification

Add a "Commit and PR Format" section to AGENTS.md that:

  • Defers to CONTRIBUTING.md, LLM_POLICY.md, and .github/pull_request_template.md as authoritative.
  • Provides a Motivation / Modification / Result / Tests / References commit-body shape, with explicit rules for the Tests and References footers.
  • Adds a checklist for the PR body that mirrors the existing template (issue link, exactly one LLM-usage line, exactly one testing line, doc/API parity, regression tests for bug fixes, etc.).
  • Notes that unrelated community-build/ submodule pointer drift must not be staged.

Result

Agents and contributors have a single scoped reference for commit and PR shape that does not duplicate or conflict with the authoritative docs.

Tests

  • Not run - docs only

References

None - documentation improvement to AGENTS.md

Motivation:
AGENTS.md previously had no guidance on commit message bodies or PR
descriptions, so LLM-assisted contributions tended to drift from the
project's existing PR template and LLM policy.

Modification:
Add a "Commit and PR Format" section that defers to CONTRIBUTING.md,
LLM_POLICY.md, and .github/pull_request_template.md, and provides:
- a Motivation/Modification/Result/Tests/References commit-body shape,
- explicit rules for the Tests and References footers,
- a checklist for the PR body that mirrors the existing template.
Also note that unrelated community-build submodule pointer drift must
not be staged.

Result:
Agents and contributors have a single, scoped reference for commit and
PR shape that does not duplicate or conflict with the authoritative
docs.

Tests:
- Not run - docs only

References:
None - documentation improvement to AGENTS.md
@SolalPirelli SolalPirelli requested a review from bracevac May 18, 2026 07:24
Comment thread AGENTS.md
- Pick exactly one testing line (new tests, covered by existing tests, non-code, or manual with detail).
- Bug-fix PRs should add a regression test that fails before the fix.
- Behavior, public API, language, or operator-visible changes must update the matching docs under `docs/_docs/`.
- Scala and Java DSL changes must keep API, docs, and tests in parity.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are examples of "Scala DSL" respectively "Java DSL"?

Comment thread AGENTS.md
Follow `.github/pull_request_template.md` verbatim. In particular:

- Start the PR description with `Fixes #XYZ`, or explain why no issue exists.
- Pick exactly one LLM-usage line (`Extensively`, `Moderately`, `Minimally`, `Not at all`) per `LLM_POLICY.md`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm somewhat conflicted about this, because it sends the wrong signal. We are on the slippery slope to encourage more AI slop. A contributor is supposed to reflect on their changes and put thought into their PRs. Our stance should remain that this should be done manually.

I'm of course aware that this wouldn't prevent anyone from letting the agent fill it in for them. But at least it makes clear where we stand, and we'll use that against pure slop posters.

Comment thread AGENTS.md
Fixes #1234, Refs #1234, or `None - <short context>`
```

- Never omit `Tests`. Use `Not run - docs only` for documentation-only commits. Record any required tool that was missing (e.g. `scalafmt: not installed - skipped`).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I make non-code changes? E.g., docs?

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.

2 participants