Skip to content

docs: one yes at the release trigger covers its notes - #435

Merged
somanshreddy merged 3 commits into
mainfrom
10-08-release_notes_in_trigger_yes
Oct 8, 2026
Merged

somanshreddy merged 3 commits into
mainfrom
10-08-release_notes_in_trigger_yes

Conversation

@somanshreddy

Copy link
Copy Markdown
Collaborator

Scope

Surfaces: Repo docs and maintainer skills | Module: Developer tooling

Part of PRINFRA-1671

Summary

The release-cli skill asked for two yeses on the same notes. Stop 4 (triggering the release) shows the changelog. Then, after the release, stop 5 asked again before publishing those notes, with nothing new to decide. One yes at stop 4 now covers publishing the notes it showed. Stop 5 fires only if the notes changed after that yes.

How it works

The skill's general rule is that each action needs its own yes, and a yes at an earlier stop does not carry over. That rule now admits exceptions only where a stop says so, and stop 4 is the only one that does. "Edited notes" joins the examples of an action that changed after its yes, so editing the notes after stop 4 brings back the stop 5 question.

Stop 4 now shows the notes exactly as they will be published, not a draft changelog, so the yes is given for the published text.

Testing

Docs-only. A Codex review caught the first draft contradicting the general rule, which still said an earlier yes never counts. The opening rule now names the exception.

Running the skill for the v0.10.0 release is what prompted this: the release notes had already been approved at the trigger.

🤖 Generated with Claude Code

Stop 4 already shows the changelog, so asking again before publishing the
same notes adds a round-trip without new information. Stop 5 now applies
only when the notes changed after stop 4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@terencechotai2-commits terencechotai2-commits left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed at a39482dd. It's based on current main (d19ba0c, after #432, #433 and #434 merged), so nothing is stacked under it. The change does what it says, and the other stops are untouched. I have one Low on how stop 5 detects "changed" and one nit on the exception's wording.

Low: "differ from what the user approved" has no check behind it

Stop 5 now fires only if the notes "differ from what the user approved at stop 4". The only way an agent can tell is by comparing the text it publishes against its memory of what it showed, possibly a long changelog shown several minutes and a workflow run earlier. That fails in three ways:

  • The approved text is gone. If the session compacts or restarts while waiting on the run, the text shown at stop 4 is no longer in context. The general rule wants the yes "in this session", but stop 5 doesn't say what happens when the yes came from an earlier session. An agent can read that either way.
  • Small edits are easy to miss. A re-run of changelog-cli, a hand edit that adds a step 4 finding, or a fix to a version number in the notes can produce a near-identical file that a from-memory comparison calls "the same".
  • The notes aren't tied to a release. Recovery (stop 6) can end in a dispatch for a different release than the one approved. The yes says "publishing those notes at step 9" but not on which release.

A byte check makes "changed" mechanical and covers edits, regenerated notes and a lost session at once. A different version or RELEASE_COMMIT already forces a fresh stop 4 under the general rule, and that stop records a new hash. The suggestion is inline on stops 4 and 5.

Nit: name the one exception instead of opening a class

"Unless a stop below says its yes covers a later action" leaves the list of exceptions open. Today only stop 4 says so, so it's correct. But the rule invites a later edit to add one in passing, and an agent could stretch similar words (stop 4's "Dispatch with…", stop 6's "dispatching again"). Naming stop 4 closes the list. The suggestion is inline.

Verified

  • Unchanged stops: stops 1, 2, 3 and 6, the "Anything else visible outside this machine is a stop" paragraph and step 8 are byte-identical to main. I diffed the stop list block; only 4 and 5 changed.
  • Scope: stop 4's exception names step 9 and "those notes" only. Nothing in tag, publish-release, cleanup or recovery wording now reads as covered.
  • Edits after the yes: "edited notes" is now one of the examples that forces a re-ask, and stop 5's condition matches it.
  • What the yes covers: stop 4 now shows the notes "exactly as you will publish them" rather than a draft changelog. Step 7 still saves them to a file before step 8, so the yes is on the published text.
  • RELEASE.md doesn't conflict: "Post-release" step 2 (gh release edit --notes-file) needs no approval of its own, so the skill's "RELEASE.md wins" rule doesn't override this.
  • AGENTS.md still lists six stops and matches.
  • Release-run marker: replacing the body drops #427's <!-- release-run --> marker, as it did before. That's harmless because publish-release has already run by step 9.

— tai2

Comment thread .agents/skills/release-cli/SKILL.md Outdated
Comment on lines +29 to +31
stop, or silence does not count, unless a stop below says its yes covers a later
action. If the action changes after the yes (a new head after a rebase, a
different commit on `main`, edited notes), ask again.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggest naming the one exception so the list is closed:

Suggested change
stop, or silence does not count, unless a stop below says its yes covers a later
action. If the action changes after the yes (a new head after a rebase, a
different commit on `main`, edited notes), ask again.
stop, or silence does not count. The one exception is stop 4, whose yes also
covers publishing the notes it showed. If the action changes after the yes (a
new head after a rebase, a different commit on `main`, edited notes), ask again.

Comment thread .agents/skills/release-cli/SKILL.md Outdated
Comment on lines +39 to +44
4. **Triggering the release workflow.** Show the version, `RELEASE_COMMIT`,
and the changelog first. Dispatch with `-f commit=<that SHA>` so the
workflow releases exactly that commit.
5. **Replacing the published release notes** (step 9): show the final notes.
and the release notes exactly as you will publish them. Dispatch with
`-f commit=<that SHA>` so the workflow releases exactly that commit. A yes
here also covers publishing those notes at step 9.
5. **Replacing the published release notes** (step 9), only if they differ from
what the user approved at stop 4: show the final notes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Make "changed" a byte check rather than a from-memory comparison. It survives a compact or restart during the run, catches a regenerated or hand-edited file, and ties the yes to the release it was given for:

Suggested change
4. **Triggering the release workflow.** Show the version, `RELEASE_COMMIT`,
and the changelog first. Dispatch with `-f commit=<that SHA>` so the
workflow releases exactly that commit.
5. **Replacing the published release notes** (step 9): show the final notes.
and the release notes exactly as you will publish them. Dispatch with
`-f commit=<that SHA>` so the workflow releases exactly that commit. A yes
here also covers publishing those notes at step 9.
5. **Replacing the published release notes** (step 9), only if they differ from
what the user approved at stop 4: show the final notes.
4. **Triggering the release workflow.** Show the version, `RELEASE_COMMIT`,
and the release notes exactly as you will publish them, and record
`shasum -a 256 <notes file>` with them. Dispatch with
`-f commit=<that SHA>` so the workflow releases exactly that commit. A yes
here also covers publishing those notes on that version's release at step 9.
5. **Replacing the published release notes** (step 9), unless the notes file
still has the hash recorded at a stop 4 yes given in this session for this
version: show the final notes.

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approving at a39482dd. I'm adding to tai2's review, not repeating it.

I'd take both of tai2's suggestions before merging:

  • The hash check (L44). It's the right fix for "changed". It also fails safe. If a compact or restart loses the hash recorded at stop 4, the condition "hash recorded at a stop 4 yes given in this session for this version" can't be met, so stop 5 asks again rather than publishing. One more detail would help: hash the same file that step 9 passes to gh release edit --notes-file, not a copy or a regenerated version of it. That way the bytes the user approved are the bytes that get published.
  • Naming stop 4 (L31). "Unless a stop below says its yes covers a later action" leaves room for other exceptions. I checked the other stops (1, 2, 3, 6) and the catch-all paragraph, and nothing in them claims to cover a later action today. But the next edit to this file could add one without anyone noticing. Naming stop 4 rules that out.

Nit (dev release, L133-135). "Triggering it is stop point 4" now brings in stop 4's "release notes exactly as you will publish them" and its notes coverage. A dev release has neither, since RELEASE.md's dev steps have no notes or post-release step. The dev section already says what to show (the commit), so this mostly resolves itself. Still, a short "(no notes for a dev release)" would stop an agent from inventing some to show.

Verified. Stops 1, 2, 3 and 6, the catch-all paragraph and step 8 are unchanged from main. AGENTS.md matches the new stop 5 wording. RELEASE.md's post-release step 2 (gh release edit --notes-file notes.md) asks for no approval of its own, so the skill doesn't conflict with it.

— Rames

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-review at 6ba4e1b4: still approved. All three changes landed as described.

Stop 5's skip condition, read literally, the way an agent will apply it:

  • "The file" is pinned. Step 9 publishes "the notes file from stop 4" with --notes-file <file>, so the file that was hashed is the file that gets published.
  • Session and version binding. A yes from an earlier session, or one given for a different version, can't satisfy it. If the notes are edited before the dispatch, the general rule makes stop 4 ask again. If they're edited after it, the hash no longer matches and stop 5 asks.
  • Losing the hash fails safe. "A lost hash means asking" covers a compact or restart.
  • Closed exception list. The general rule now names stop 4 as the only exception, and none of stops 1, 2, 3 or 6 claims to cover a later action.
  • Dev releases. "(a dev release has none)" fixes the dev-release nit.

Optional nit: "still matches" assumes the agent hashes the file again at step 9. An agent could instead compare the recorded hash against itself. Something like "re-run shasum -a 256 on the file at step 9 and compare" would rule that reading out. Not a blocker.

— Rames

@terencechotai2-commits terencechotai2-commits left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Re-reviewed at 6ba4e1b. All three changes landed as described, and my Low and nit from a39482d are resolved. I have one nit left, on the exact wording of stop 5's skip condition.

Stop 5's skip condition, applied literally

unless the file's hash still matches one recorded at a stop 4 yes in this session for this version: show the final notes. A lost hash means asking.

How it plays out:

  • Normal run: the hash is recorded at the stop 4 yes, the file is unchanged at step 9, so stop 5 is skipped. ✓
  • Notes edited after the yes, including a one-byte or trailing-newline change: the hash differs, so stop 5 asks. ✓
  • changelog-cli re-run with byte-identical output: skipped. That's correct, because it's the same text the user approved.
  • Compact or restart where the hash didn't survive: "a lost hash means asking". ✓
  • Yes given in a previous session: "in this session" excludes it. ✓
  • Different version: "for this version" excludes it. ✓ A different commit already forces a fresh stop 4.
  • Dev release: stop 4 says it has no notes, and step 9 is stable-only, so there's nothing to skip. ✓

Nit: "matches one recorded at a stop 4 yes … for this version" is satisfied by any earlier stop 4 yes for the same version, not only the one that dispatched this release. That only matters if stop 4 runs twice for the same version with different notes. For example, step 8's tag check fails, and the user re-approves stop 4 at commit B with notes regenerated from B (hash H2). The older file from commit A (H1) still meets the condition as written. Step 9's "the notes file from stop 4" means the agent probably picks the right file anyway, but "the hash recorded at the stop 4 yes that dispatched this release" leaves no choice. Suggestion inline. It's unlikely in practice, and fine to skip if you'd rather not lengthen the line.

Verified

  • General rule: it now names stop 4 as "the one exception", so the list is closed.
  • Unchanged stops: stops 1, 2, 3 and 6 and the "visible outside this machine" paragraph are still byte-identical to main. I diffed the block, and only 4 and 5 differ.
  • Step 9 publishes "the notes file from stop 4" with gh release edit <version> --notes-file <file>, which matches RELEASE.md's Post-release step 2.
  • AGENTS.md is unchanged since a39482d and still matches the six stops.

— tai2

Comment thread .agents/skills/release-cli/SKILL.md Outdated
Comment on lines +44 to +46
5. **Replacing the published release notes** (step 9), unless the file's hash
still matches one recorded at a stop 4 yes in this session for this version:
show the final notes. A lost hash means asking.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: "one recorded at a stop 4 yes … for this version" also matches an earlier stop 4 yes for the same version, for example after a re-approval at a new commit. Pinning it to the yes that dispatched this release leaves no choice:

Suggested change
5. **Replacing the published release notes** (step 9), unless the file's hash
still matches one recorded at a stop 4 yes in this session for this version:
show the final notes. A lost hash means asking.
5. **Replacing the published release notes** (step 9), unless the file's hash
still matches the one recorded at the stop 4 yes, in this session, that
dispatched this release: show the final notes. A lost hash means asking.

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-review at c6fa0cfd: approved. The only change is stop 5's skip condition, and it reads right:

  • Step 9 now hashes the file again and compares it, so the agent can't just compare the saved hash with itself.
  • Taking the hash from the most recent stop 4 yes rules out an older yes once the user approves a new commit at stop 4.
  • A stop 6 re-dispatch passes the same commit (step 8), so it doesn't need a new stop 4 yes and doesn't trigger a needless ask. Your reasoning against "the yes that dispatched this release" holds.

— Rames

@terencechotai2-commits terencechotai2-commits left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Re-reviewed at c6fa0cf. No findings. The only change is stop 5's skip condition, and it reads right.

  • Re-running shasum -a 256 at step 9 compares the file as it is at publish time, so a value carried over from memory can't stand in for the check. ✓
  • "Most recent stop 4 yes" is better than my wording. A stop 6 re-dispatch adds no new stop 4 yes, so "the yes that dispatched this release" would have been unclear there and forced an ask. "Most recent" still rules out an older yes once the user re-approves at a new commit. ✓
  • Other cases: an edit after the yes asks, a lost hash asks, and a yes from another session or another version asks. ✓
  • Unchanged: stops 1–4 and 6, the "visible outside this machine" paragraph, step 9 and AGENTS.md are the same as 6ba4e1b. The commit touches only those four lines of stop 5.

— tai2

@somanshreddy
somanshreddy merged commit 8cda12d into main Oct 8, 2026
9 checks passed
@somanshreddy
somanshreddy deleted the 10-08-release_notes_in_trigger_yes branch October 8, 2026 02:31
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.

3 participants