Topic 4 of 4 · 4 min read
Release notes drafted from merged changes
Goal: Check an agent-drafted changelog against the merged changes and remove every claim the diff does not support.
Let an agent draft the release notes from the merged changes, then check every line against the diff and delete any claim the diff does not prove. The draft saves the typing. You provide the truth.
Check yourself · 1 of 3
What should every line of an agent-drafted changelog be tied to?
Why it matters
Release notes are a promise to users and support staff. If a note says "faster search" and nothing in the code speeds up search, someone will rely on it. Models write fluent, upbeat prose and fill gaps with plausible guesses. They also read commit messages as facts, and commit messages are often wrong, vague or about a change that was later reverted.
How to do it
- Give the agent the real sources: the list of merged PRs, their diffs and linked issues for this release. Not "what changed since last time" from memory.
- Ask for a fixed format. Keep a Changelog groups entries under Added, Changed, Fixed, Removed and Security, which makes gaps easy to see.
- Require a source for every line: a PR number next to each entry. A line with no PR gets cut.
- Check each line against the diff. Does the code do this? Does it do it for all users or only behind a flag? Was it reverted?
- Check what is missing. Look for breaking changes, removed options, changed defaults, migrations and security fixes that the draft left out.
- Write for readers. Say what users can now do, not which function changed.
Before and after
Agent draft:
- Faster search across the whole product (#481)
- Improved security
- Fixed all checkout bugs (#492)
After checking: #481 only adds an index for the orders page, #492 fixes one rounding error, and a default export limit dropped from 10,000 to 5,000 rows with no mention.
### Changed
- Orders page search uses an index and returns results sooner (#481)
- Export is now limited to 5,000 rows, down from 10,000 (#497)
### Fixed
- Order totals no longer round down by one cent for some discounts (#492)
What goes wrong
- Inflated claims. "Faster everywhere" from a narrow change.
- Invented items. A feature that was planned, started and never merged.
- Silent breaking changes. Users learn about a changed default from a support ticket.
- Flagged work announced as live. The note says users have it, but the flag is off.
Examples
Cutting the invented line
The draft says "Added CSV export for invoices (#503)". The diff for #503 only adds a button label behind a disabled flag. The line moves to a "coming soon" note for the team, not the public changelog.
Prompt that keeps it honest
Draft release notes in Keep a Changelog format from the attached merged PRs.
One line per user-visible change, each ending with its PR number.
If you cannot tell from the diff what changed for users, list it under "Unclear" instead of guessing.
List any removed options or changed defaults separately.
The "Unclear" list shows you where to look.
Key points
- Give the agent the merged PRs and diffs as its source, not memory or a vague request.
- Require a PR number on every line, and cut any line without one.
- Check each claim against the code, including whether it is behind a flag or was reverted.
- Look for what is missing: breaking changes, changed defaults, removals and security fixes.
- Write for readers by describing what changed for them, not which file changed.
Common mistakes
- Pasting the draft into the release page without reading the diffs.
- Trusting commit messages as proof of what the code does.
- Letting broad claims such as "improved performance" stay without a measurement or a specific change.
- Announcing a feature that is still behind a flag.
Check yourself · 2 of 3
A draft says "Faster search everywhere", but the PR only adds one database index for the orders page. What should you do?
Check yourself · 3 of 3
Which item is most important to look for that a draft may have left out?
Practice items, not counted towards your mastery.
Start here
- Feature Toggles (martinfowler.com) (opens in a new tab)ArticleFree
The standard taxonomy of toggles (release, ops, experiment, permission) and why short-lived ones must be removed.
- Canarying releases (Google SRE Workbook) (opens in a new tab)BookFree
How to release to a small slice, pick metrics to compare and decide when to roll back.
- Parallel Change (martinfowler.com) (opens in a new tab)ArticleFree
The expand, migrate, contract pattern behind reversible schema and API changes.
More for this topic
- Keep a Changelog (opens in a new tab)DocsFree
A plain format for changelogs written for humans: Added, Changed, Fixed, Removed.