Skip to content

AGENTS.md: golden rule — no newsfragment unless certain a change is user-facing#67982

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:agents-newsfragment-golden-rule
Jun 4, 2026
Merged

AGENTS.md: golden rule — no newsfragment unless certain a change is user-facing#67982
potiuk merged 1 commit into
apache:mainfrom
potiuk:agents-newsfragment-golden-rule

Conversation

@potiuk

@potiuk potiuk commented Jun 3, 2026

Copy link
Copy Markdown
Member

Agents (and contributors) keep adding newsfragments for changes that are not user-facing — build/release tooling, CI, internal refactors — which then have to be removed during review (e.g. on the reproducible-build dirty-check fix).

This makes the expectation explicit in AGENTS.md (and via the CLAUDE.md symlink): a newsfragment is only for changes that are certainly visible to users; when in doubt, omit it and let a maintainer request one in review. Strengthens the two existing newsfragment mentions into a clear golden rule rather than the previous "do not add by default" phrasing.

No behavior change — documentation/agent-guidance only.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

…is user-facing

Agents (and contributors) have been adding newsfragments for changes that
are not user-facing — build/release tooling, CI, internal refactors —
which then have to be removed in review. Make the expectation explicit: a
newsfragment is only for changes certainly visible to users; when in
doubt, omit it and let a maintainer request one during review.

@jscheffl jscheffl left a comment

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.

Thanks, hoping this improves a lot in regards of false-positive newsfragments flooding PRs recently...

@potiuk potiuk merged commit c1d99ec into apache:main Jun 4, 2026
66 checks passed
@potiuk potiuk deleted the agents-newsfragment-golden-rule branch June 4, 2026 13:33
@potiuk

potiuk commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Thanks, hoping this improves a lot in regards of false-positive newsfragments flooding PRs recently...

To be honest, this was quite interesting, I do not remmeber exactly how it came to being but it looks like I asked it for the newsfragment separately because it was separate commit. But definitely there is something with newsfragments that agents add them more often than needed - so being pretty explicit about it might help.

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