Skip to content

docs(release-skill): sync the release branch before drafting the changelog - #728

Merged
max-sixty merged 1 commit into
mainfrom
release
Jun 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
release

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Problem

The release skill drafted the changelog from git log <last-version>..HEAD. The release branch is long-lived, so when it sits behind main — any PR merged after the branch was last realigned — those commits are silently dropped from the release notes.

This bit the 0.1.7 release: #721 (a Fixed-scope nightly change) merged to main after the release branch was cut, so git log 0.1.6..HEAD didn't surface it. It was caught only because the tend review bot diff-checked the changelog against main and flagged the omission.

Fix

Close the loop at both ends — step 11 already reset --hard origin/main on the way out; step 1 now realigns on the way in:

  • Step 1 brings the branch current first: git fetch origin && git merge origin/main (or reset --hard origin/main when release has no commits of its own).
  • Step 3 and the CHANGELOG drafting query target origin/main instead of HEAD, so the commit range reflects exactly what the release ships.

Docs-only change to .claude/skills/release/SKILL.md.

🤖 Generated with Claude Code

…gelog

The release skill drew the changelog from `git log <last-version>..HEAD`,
but the `release` branch is long-lived and can sit behind `main` — any PR
merged to `main` after the branch was last realigned was silently dropped
from the notes. In the 0.1.7 cut this missed #721; only the tend review
bot's diff check caught it.

Close the loop at both ends (step 11 already resets to origin/main on the
way out): step 1 now realigns the branch with `git fetch && git merge
origin/main` before anything else, and the commit-range queries target
`origin/main` instead of `HEAD` so they reflect what the release actually
ships.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 8eaf1c2 into main Jun 23, 2026
7 checks passed
@max-sixty
max-sixty deleted the release branch June 23, 2026 17:31
@max-sixty max-sixty mentioned this pull request Jun 25, 2026
max-sixty added a commit that referenced this pull request Jun 25, 2026
Release 0.1.8.

Bumps the generator to 0.1.8, syncs the lockfile, and adds the `##
0.1.8` CHANGELOG section (published verbatim as the GitHub Release
notes).

### Fixed
- **Bundled skills configure a git identity before committing in fresh
worktrees.** The `nightly`, `running-in-ci`, and `review-runs` skills
now set `git config --global user.name/email` before the bot's first
commit, so a `/tmp` worktree (which inherits no identity) no longer
fails with `Author identity unknown`, push an empty branch, and break
`gh pr create`. ([#730](#730))

#728 (release-skill docs) and #727 (workflow regen) are internal and
omitted from adopter-facing notes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
max-sixty pushed a commit that referenced this pull request Aug 11, 2026
Since [#819](#819) made
`/tend-ci-runner:code-review` reachable again, **every** `tend-review`
session on `numbagg/numbagg` has still skipped the mandated second pass
— 4 of 4 reviews that reached step 4, zero counter-examples. The reviews
still get posted and still read as complete, so the missing pass is
invisible from the outside; only the session logs show it.

The reachability bug
([#817](#817)) is fixed — the
skill is in the available-skills listing in every one of these sessions,
and no session got a tool-use error. The agent simply never reaches for
it, and in all four sessions never even mentions it in its reasoning.

## Why the text permits the skip

Step 4 opens with `Scale depth to the change… Don't over-analyze trivial
changes.` Three lines later the second-pass mandate says `Scale its
depth to how core the change is, **the same way you scale the manual
depth above**`. That back-reference ties the pass to a scale whose
bottom rung is explicitly "skim, not the full checklist" — so for a
lockfile-only dependency bump, "scale it to nothing" is a defensible
reading of the instruction as written. The pass is never stated to be
unconditional.

This change says it is: the depth-scaling sets how deep the pass goes,
never whether it happens. The peripheral bullet already names dependency
bumps and gives them the short angle set in one pass, so the always-run
reading is what the rest of the paragraph already assumes.

## Evidence

Run
[31365030481](https://github.com/max-sixty/tend/actions/runs/31365030481).
Full log: https://gist.github.com/19b5ab297bb7ac7e1e9a44d595ccde0f

`tend-ci-runner:code-review` first appears in a numbagg session's
available-skills listing between 2026-08-06 and 2026-08-08 (absent in
[31113573735](https://github.com/numbagg/numbagg/actions/runs/31113573735),
present in
[31246101561](https://github.com/numbagg/numbagg/actions/runs/31246101561)).
Sessions before that are excluded — the skill was genuinely unreachable,
and one of them
([31088428562](https://github.com/numbagg/numbagg/actions/runs/31088428562))
says so in as many words: *"I skipped the `/code-review` pass the
workflow calls for. It isn't in this environment's available-skills
list."* That agent checked, found it missing, and named the deviation —
which is the behavior we want, and the reason the four sessions since
are worth acting on.

| Review session | PR | Date | `code-review` reachable | Second pass run
|
|---|---|---|---|---|
|
[31246101561](https://github.com/numbagg/numbagg/actions/runs/31246101561)
| #727 | 2026-08-08 | yes | no |
|
[31258607744](https://github.com/numbagg/numbagg/actions/runs/31258607744)
| #726 | 2026-08-08 | yes | no |
|
[31360815248](https://github.com/numbagg/numbagg/actions/runs/31360815248)
| #729 | 2026-08-10 | yes | no |
|
[31361090036](https://github.com/numbagg/numbagg/actions/runs/31361090036)
| #728 | 2026-08-10 | yes | no |

Each row is a session that read the diff (`gh pr diff`) and so reached
step 4; none contains a `Skill` call for `tend-ci-runner:code-review`,
and none mentions it in assistant reasoning.

## Gate assessment

- **Evidence level**: High — consistent across 4 sessions spanning 3
days and 4 distinct PRs, with zero counter-examples since the skill
became reachable. Bar for High is 2–3.
- **Structural vs stochastic**: structural contributor in the skill
text. The omission is a model behavior, but the text itself licenses it:
the mandate delegates its own applicability to a scale that bottoms out
at "skim". The same trivial-diff conditions read against the same
paragraph produce the same skip, which is what 4/4 shows.
- **Change type**: targeted fix — one sentence, in place, no new
section. Normal Gate 1 thresholds apply.
- **Passes both gates**: yes.

Honest limit: the evidence is from one adopter repo, and I can't prove
wording alone fixes what is partly a salience problem. If a later cycle
finds sessions still skipping the pass with this text in place, the next
step is a harder mechanism (a distinct numbered step, or a step-5
pre-post check that the pass ran) rather than more wording.

---------

Co-authored-by: tend-agent <[email protected]>
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