From 0149baa37549aa5577d343e771c6e24989a8ec8d Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:07:09 +0100 Subject: [PATCH 01/14] AI-3562: release skill; a release is the whole repo's, not Python's Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 95 +++++++++++++++++++++++++++++++++ AGENTS.md | 15 +++--- 2 files changed, 102 insertions(+), 8 deletions(-) create mode 100644 .claude/skills/release/SKILL.md diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md new file mode 100644 index 0000000000..8681270198 --- /dev/null +++ b/.claude/skills/release/SKILL.md @@ -0,0 +1,95 @@ +--- +name: release +description: Cut a release of the whole repo - write its section of the root CHANGELOG.md, tag `vX.Y.Z` on main and publish the GitHub release, which publishes the Python packages. Read before tagging a release, or when asked to update CHANGELOG.md. Not for router deploy tags (`accelerate-v*`, the `deploy` skill) or SDK tags (each `sdk-` skill). +--- + +# Release + +A release is one version of the whole repo: the router, the SDKs, the Python packages and the +apps. It is a tag `vX.Y.Z` on a `main` commit and a GitHub release for that tag. The GitHub +release starts `.github/workflows/release.yml`, which publishes the Python packages to PyPI. +Router deploy tags (`accelerate-v*`) and SDK tags (`sdk-js-v*`, `sdks/go/v*`) are not releases +here and get no CHANGELOG section. + +A version uploaded to PyPI can never be uploaded again. Ask the human before step 5. + +## 1. Find the previous release and choose the version + +```bash +gh release list -R GetStream/Agents --limit 50 --json tagName,publishedAt \ + --jq '[.[] | select(.tagName | test("^v?[0-9]+\\.[0-9]+\\.[0-9]+$"))] | sort_by(.publishedAt) | last | .tagName' +``` + +This prints the newest release whose tag is a bare version. Tags are `vX.Y.Z`; `0.7.0` is the +one exception, with no `v`. While the version is 0.x, a breaking change bumps the minor and +anything else bumps the patch. No file holds the version: the Python packages read it from the +tag (`sdks/python/pyproject.toml`, `[tool.hatch.version] source = "vcs"`). + +## 2. Write the CHANGELOG section in a PR + +On a branch from `origin/main`, list what merged since the previous release: + +```bash +git log ..origin/main --first-parent --oneline +``` + +In the root `CHANGELOG.md`: + +- Rename `# Unreleased` to `# vX.Y.Z`, and add a new, empty `# Unreleased` above it. +- Keep three sections, in this order: `## Breaking Changes`, `## New Features`, `## Bug Fixes`. + Merge sections that appear twice or under another name (`## Features`). The `# Unreleased` + written before AI-3557 has both problems. +- A line that starts with `# ` inside the section is a stray heading, such as a YAML comment + outside a code fence (`# agents/customer_support/agent.yaml`). Put it in a fence or remove it. +- Add an entry for each user-facing PR that has none: a `###` title and one or two sentences, + ending with the PR number, e.g. `(#2207)`. Since AI-3557, PRs add only breaking-change lines, + so most of the entries are written here. Skip docs-only, CI-only, test-only and skill-only PRs. + +Open the PR with the title `Release vX.Y.Z: CHANGELOG`. It needs one approving review. Merge it +before you tag. + +## 3. Tag the merge commit + +```bash +set -euo pipefail +git fetch origin --tags +SHA= +git merge-base --is-ancestor "$SHA" origin/main +test -z "$(git tag --points-at "$SHA")" +git tag vX.Y.Z "$SHA" +git push origin vX.Y.Z +``` + +The tag must start with `v`: `release.yml` runs its jobs only when the tag starts with `v`. +`0.7.0` had no `v`, so nothing ran (AI-3561). The commit must carry no other tag. The Python +version is taken from the nearest tag of any kind, and on `main` that is usually a router deploy +tag: between releases, `hatch version` prints a version like `0.6.372.dev14`, from +`accelerate-v0.6.371`. + +## 4. Check the version the packages will get + +```bash +git worktree add --detach vX.Y.Z +(cd /sdks/python && uvx -q --from 'hatch==1.18.2' hatch version) +git worktree remove +``` + +It must print `X.Y.Z` exactly. If it does not, stop: do not publish. + +## 5. Publish the GitHub release (ask first) + +```bash +awk -v h='# vX.Y.Z' '$0==h{p=1;next} p&&/^# v[0-9]/{exit} p' CHANGELOG.md > /notes.md +gh release create vX.Y.Z -R GetStream/Agents --verify-tag --title vX.Y.Z --notes-file /notes.md +``` + +## 6. Check what was published + +- `gh run list -R GetStream/Agents --workflow release.yml --limit 1` must show the new tag with + `success`. +- `curl -s https://pypi.org/pypi/vision-agents/json | jq -r .info.version` must print `X.Y.Z`. + +`release.yml` has not published a release since v0.6.5: its runs ended `failure`, +`startup_failure` or `skipped`, and 0.6.9 reached PyPI outside it (AI-3561). Until AI-3561 is +fixed, step 6 is unverified. If the run does not succeed, the packages are not on PyPI. Report it +on AI-3561, and do not upload by hand. diff --git a/AGENTS.md b/AGENTS.md index d7bacb531c..2982572a0b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -302,14 +302,13 @@ module-level `logger = logging.getLogger(__name__)`. Use `debug` for lifecycle, lines at the same place, any two open PRs conflicted there. One exception: a PR that breaks a published SDK's API (Go: a renamed or removed field or signature) adds one line under `# Unreleased` → **Breaking Changes**. -- It is written once per release, in the PR that prepares a Python packages release - (`.github/workflows/release.yml`). Router deploy tags (`accelerate-v*`) and SDK tags - get no section. -- That PR turns `# Unreleased` and the PRs merged since the previous Python release into one version - heading (`# v0.4.0`), with sections **Breaking Changes**, **New Features**, **Bug Fixes**. - The previous release is the newest Python one in `gh release list -R GetStream/Agents`. A Python - release's tag is the bare version (`vX.Y.Z` or `X.Y.Z`), with no `sdk-`, `sdks/go/` or - `accelerate-` prefix; `v0.6.9` and `0.7.0` both exist. +- It is written once per release, with the `release` skill (`.claude/skills/release/SKILL.md`). + A release is one version of the whole repo (router, SDKs, Python packages, apps): a `vX.Y.Z` + tag on `main`, whose GitHub release also publishes the Python packages. Router deploy tags + (`accelerate-v*`) and SDK tags get no section. +- The release PR turns `# Unreleased` and every user-facing PR merged since the previous release + into one version heading (`# v0.4.0`), with sections **Breaking Changes**, **New Features**, + **Bug Fixes**. - Only include user-facing changes (public API breaks, features, fixes). Skip docs-only and CI-only commits. - Reference PR numbers inline, e.g. `(#374)`. - To generate: `git log ..HEAD --oneline --no-merges`, then classify each commit. From 7bff277632875d30dc904e23100dc9aca0a1eb7c Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:44 +0100 Subject: [PATCH 02/14] AI-3562: R1.1 release skill Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 8681270198..4ba654a081 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -35,7 +35,21 @@ git log ..origin/main --first-parent --oneline In the root `CHANGELOG.md`: -- Rename `# Unreleased` to `# vX.Y.Z`, and add a new, empty `# Unreleased` above it. +- Sort the entries by the previous release tag. `# Unreleased` can hold work that is older than + that tag: `0.7.0` shipped without a section, so its work is still there. An entry whose PR + merged before the previous release tag goes under that release's own heading (`# 0.7.0`, as + the tag is written), which you create below `# vX.Y.Z` if it is missing. Only the rest goes + under `# vX.Y.Z`. For an entry with a PR number, find its merge commit. For one without, take + the commit that wrote its `###` line (`git blame -l -L , origin/main -- + CHANGELOG.md`). Then test it: + + ```bash + c=$(git log origin/main --first-parent --format=%H --grep='(#2047)' | head -1) + git merge-base --is-ancestor "$c" && echo before || echo after + ``` + + `before` means the previous release's heading, `after` means `# vX.Y.Z`. +- Rename the rest of `# Unreleased` to `# vX.Y.Z`, and add a new, empty `# Unreleased` above it. - Keep three sections, in this order: `## Breaking Changes`, `## New Features`, `## Bug Fixes`. Merge sections that appear twice or under another name (`## Features`). The `# Unreleased` written before AI-3557 has both problems. From b936c386b6d8756844dd21c0f73d44d1f13fede7 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:45 +0100 Subject: [PATCH 03/14] AI-3562: R1.2 release skill Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 4ba654a081..ab8865bbea 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -93,10 +93,15 @@ It must print `X.Y.Z` exactly. If it does not, stop: do not publish. ## 5. Publish the GitHub release (ask first) ```bash -awk -v h='# vX.Y.Z' '$0==h{p=1;next} p&&/^# v[0-9]/{exit} p' CHANGELOG.md > /notes.md -gh release create vX.Y.Z -R GetStream/Agents --verify-tag --title vX.Y.Z --notes-file /notes.md +gh release create vX.Y.Z -R GetStream/Agents --verify-tag --title vX.Y.Z \ + --generate-notes --notes-start-tag \ + --notes "Changelog: https://github.com/GetStream/Agents/blob/vX.Y.Z/CHANGELOG.md (section \`# vX.Y.Z\`)" ``` +The body is GitHub's generated list of merged PRs, with the `--notes` line before it +(`gh release create --help`: "Additional release notes can be prepended to automatically +generated notes by using the `--notes` flag"). The CHANGELOG section is not copied into the body. + ## 6. Check what was published - `gh run list -R GetStream/Agents --workflow release.yml --limit 1` must show the new tag with From eb689bd1927a854a9293c34eddf9a71eb9e5096d Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:45 +0100 Subject: [PATCH 04/14] AI-3562: R1.3 release skill Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index ab8865bbea..aae32a1dcd 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -53,8 +53,6 @@ In the root `CHANGELOG.md`: - Keep three sections, in this order: `## Breaking Changes`, `## New Features`, `## Bug Fixes`. Merge sections that appear twice or under another name (`## Features`). The `# Unreleased` written before AI-3557 has both problems. -- A line that starts with `# ` inside the section is a stray heading, such as a YAML comment - outside a code fence (`# agents/customer_support/agent.yaml`). Put it in a fence or remove it. - Add an entry for each user-facing PR that has none: a `###` title and one or two sentences, ending with the PR number, e.g. `(#2207)`. Since AI-3557, PRs add only breaking-change lines, so most of the entries are written here. Skip docs-only, CI-only, test-only and skill-only PRs. From 6cf919e2d912a22e1a068352d57eaa1b25138f90 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:45 +0100 Subject: [PATCH 05/14] AI-3562: R1.6 release skill Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index aae32a1dcd..4a535d1a6a 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -69,9 +69,10 @@ SHA= git merge-base --is-ancestor "$SHA" origin/main test -z "$(git tag --points-at "$SHA")" git tag vX.Y.Z "$SHA" -git push origin vX.Y.Z ``` +Do not push the tag yet: step 4 checks it first. + The tag must start with `v`: `release.yml` runs its jobs only when the tag starts with `v`. `0.7.0` had no `v`, so nothing ran (AI-3561). The commit must carry no other tag. The Python version is taken from the nearest tag of any kind, and on `main` that is usually a router deploy @@ -86,7 +87,8 @@ git worktree add --detach vX.Y.Z git worktree remove ``` -It must print `X.Y.Z` exactly. If it does not, stop: do not publish. +It must print `X.Y.Z` exactly. If it does not, stop: delete the local tag (`git tag -d vX.Y.Z`) +and do not publish. If it does, push the tag: `git push origin vX.Y.Z`. ## 5. Publish the GitHub release (ask first) From 404a1ecba75027da139cecca2df58dc83d27fbb1 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:46 +0100 Subject: [PATCH 06/14] AI-3562: R1.7 release skill Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 4a535d1a6a..396f360c65 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -108,7 +108,7 @@ generated notes by using the `--notes` flag"). The CHANGELOG section is not copi `success`. - `curl -s https://pypi.org/pypi/vision-agents/json | jq -r .info.version` must print `X.Y.Z`. -`release.yml` has not published a release since v0.6.5: its runs ended `failure`, -`startup_failure` or `skipped`, and 0.6.9 reached PyPI outside it (AI-3561). Until AI-3561 is -fixed, step 6 is unverified. If the run does not succeed, the packages are not on PyPI. Report it +`release.yml` has never succeeded: of its 41 runs, 34 ended `failure`, 3 `startup_failure`, 3 +`cancelled` and 1 `skipped`. The packages of 0.6.5 to 0.6.9 reached PyPI outside it, and 0.6.9 +has no Trusted Publishing provenance (AI-3561). Until AI-3561 is fixed, step 6 is unverified. If the run does not succeed, the packages are not on PyPI. Report it on AI-3561, and do not upload by hand. From 65d72cf6fb712f87b38fc19234a5bb96f570f0d2 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:47 +0100 Subject: [PATCH 07/14] AI-3562: R1.8 release skill Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 396f360c65..6ed95a9f98 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -8,8 +8,8 @@ description: Cut a release of the whole repo - write its section of the root CHA A release is one version of the whole repo: the router, the SDKs, the Python packages and the apps. It is a tag `vX.Y.Z` on a `main` commit and a GitHub release for that tag. The GitHub release starts `.github/workflows/release.yml`, which publishes the Python packages to PyPI. -Router deploy tags (`accelerate-v*`) and SDK tags (`sdk-js-v*`, `sdks/go/v*`) are not releases -here and get no CHANGELOG section. +Router deploy tags (`accelerate-v*`) and SDK tags (`sdk-js-v*`, `sdk-kotlin-v*`, `sdk-dotnet-v*`, +`sdk-dart-v*`, `sdks/go/v*`) are not releases here and get no CHANGELOG section. A version uploaded to PyPI can never be uploaded again. Ask the human before step 5. From dee78f23bf7b59966d7a66f4d2d8c72fb31f5db9 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:20:57 +0100 Subject: [PATCH 08/14] AI-3562: R1.4 one command for the PR list, the release skill's Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 2982572a0b..36bceec294 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -311,4 +311,5 @@ module-level `logger = logging.getLogger(__name__)`. Use `debug` for lifecycle, **Bug Fixes**. - Only include user-facing changes (public API breaks, features, fixes). Skip docs-only and CI-only commits. - Reference PR numbers inline, e.g. `(#374)`. -- To generate: `git log ..HEAD --oneline --no-merges`, then classify each commit. +- To generate: follow step 2 of the `release` skill, which lists the PRs merged since the previous + release tag; then classify each one. From 48502a94d837b34698cfa7e8fc54ee0692633730 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:21:06 +0100 Subject: [PATCH 09/14] AI-3562: R1.5 a release is the whole repo's, in workflow comments and SDK docs Comments and docs only; no value, step or condition changed. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish-sdk-kotlin.yml | 4 ++-- .github/workflows/release-sdk-go.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- sdks/js/release.config.mjs | 2 +- sdks/kotlin/README.md | 3 ++- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-sdk-kotlin.yml b/.github/workflows/publish-sdk-kotlin.yml index 4959a8762c..70f2970c15 100644 --- a/.github/workflows/publish-sdk-kotlin.yml +++ b/.github/workflows/publish-sdk-kotlin.yml @@ -14,8 +14,8 @@ name: Publish Kotlin SDK # If the run of a release merge says nothing is published, re-run all its jobs: the lookup of # its pull request can lag right after the merge. # -# There is no GitHub release: publishing one starts the Python release (release.yml), and the -# repository's releases are the Python packages'. +# There is no GitHub release: publishing one starts release.yml, and the repository's releases +# (vX.Y.Z) are of the whole repo, not of this SDK. on: push: branches: [ "main", "release-kotlin-*-SNAPSHOT" ] diff --git a/.github/workflows/release-sdk-go.yml b/.github/workflows/release-sdk-go.yml index f2be77844b..d0375ffe20 100644 --- a/.github/workflows/release-sdk-go.yml +++ b/.github/workflows/release-sdk-go.yml @@ -3,8 +3,8 @@ name: Release Go SDK (verify) # A Go module is released by its tag: pushing sdks/go/vX.Y.Z is the release, and the Go module # proxy fetches it the first time anybody asks for it. This checks the tagged copy, then asks # for it from an empty module outside this repository, as a consumer would. It publishes -# nothing and creates no GitHub Release: release.yml publishes the Python packages on any -# published release. +# nothing and creates no GitHub Release: release.yml publishes the Python packages when a +# release is published for a tag that starts with `v`. on: push: tags: [ 'sdks/go/v*' ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4dc452320..272477384c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,9 +6,9 @@ on: permissions: contents: read -# Only a release of the Python packages, tagged vX.Y.Z, publishes them. A release made for -# another tag, such as the Go SDK's sdks/go/vX.Y.Z, sdk-js-vX.Y.Z, accelerate-vX.Y.Z or -# sdk-dotnet-vX.Y.Z, runs nothing here. +# Only a release of the whole repo, tagged vX.Y.Z, publishes the Python packages. A release +# made for another tag, such as the Go SDK's sdks/go/vX.Y.Z, sdk-js-vX.Y.Z, accelerate-vX.Y.Z +# or sdk-dotnet-vX.Y.Z, runs nothing here. jobs: integration: if: startsWith(github.event.release.tag_name, 'v') diff --git a/sdks/js/release.config.mjs b/sdks/js/release.config.mjs index 1f7ef04a11..c8e9eddd17 100644 --- a/sdks/js/release.config.mjs +++ b/sdks/js/release.config.mjs @@ -40,7 +40,7 @@ export default { "@semantic-release/github", { // A draft, published by the workflow with `--latest=false`, so the repository's - // latest release stays the Python one. + // latest release stays the repository's vX.Y.Z release. draftRelease: true, releaseNameTemplate: "@stream-io/stream-agents v<%= nextRelease.version %>", // Every commit since the last tag is in context, router ones included, so a comment diff --git a/sdks/kotlin/README.md b/sdks/kotlin/README.md index def27f7029..4e9089c7f9 100644 --- a/sdks/kotlin/README.md +++ b/sdks/kotlin/README.md @@ -446,4 +446,5 @@ Other merges into `main` publish nothing, even one that sets a new `version`: on pull request from a `release-kotlin-X.Y.Z` branch publishes. If a release merge's run says nothing is published, re-run all its jobs: the lookup of its pull request can lag right after the merge. -There is no GitHub release: publishing one starts the Python release, `release.yml`. +There is no GitHub release: publishing one starts `release.yml`, and a release is of the whole +repository, not of this SDK. From 4cca52847af0263ea4e04e3b91a35300722a19bf Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:34:30 +0100 Subject: [PATCH 10/14] AI-3562: release skill sorts entries without --first-parent and never reads a git error as after Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 6ed95a9f98..67bf911769 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -30,22 +30,29 @@ tag (`sdks/python/pyproject.toml`, `[tool.hatch.version] source = "vcs"`). On a branch from `origin/main`, list what merged since the previous release: ```bash -git log ..origin/main --first-parent --oneline +git log ..origin/main --oneline | grep -E '\(#[0-9]+\)$' ``` +Do not add `--first-parent`: a PR that reached `main` inside a merge commit (the #2030 accelerate +merge) is not on the first-parent chain, and the list would miss it (#2053). + In the root `CHANGELOG.md`: - Sort the entries by the previous release tag. `# Unreleased` can hold work that is older than that tag: `0.7.0` shipped without a section, so its work is still there. An entry whose PR merged before the previous release tag goes under that release's own heading (`# 0.7.0`, as the tag is written), which you create below `# vX.Y.Z` if it is missing. Only the rest goes - under `# vX.Y.Z`. For an entry with a PR number, find its merge commit. For one without, take - the commit that wrote its `###` line (`git blame -l -L , origin/main -- - CHANGELOG.md`). Then test it: + under `# vX.Y.Z`. For an entry with a PR number, find the oldest commit whose subject ends + `(#N)`. Test it with the command below. It prints `before`, `after`, `none` or `error`. For `none`, and + for an entry with no PR number, take the commit that wrote its `###` line + (`git blame -l -L , origin/main -- CHANGELOG.md`) and test that commit. On `error`, + stop: a git error is never `after`. ```bash - c=$(git log origin/main --first-parent --format=%H --grep='(#2047)' | head -1) - git merge-base --is-ancestor "$c" && echo before || echo after + c=$(git log origin/main --format=%H --fixed-strings --grep='(#2047)' | tail -1) + if [ -z "$c" ]; then echo none + elif git merge-base --is-ancestor "$c" ; then echo before + else [ $? -eq 1 ] && echo after || echo error; fi ``` `before` means the previous release's heading, `after` means `# vX.Y.Z`. From 2d2e106ab48e2f3df52aaa3861f9abc12513d72b Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:34:30 +0100 Subject: [PATCH 11/14] AI-3562: release-sdk-js comment names the repo's release, not the Python packages' Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-sdk-js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-sdk-js.yml b/.github/workflows/release-sdk-js.yml index 19d5e1a1a7..a083d5383a 100644 --- a/.github/workflows/release-sdk-js.yml +++ b/.github/workflows/release-sdk-js.yml @@ -64,7 +64,7 @@ jobs: semantic-release $([ "$DRY_RUN" = "true" ] && echo --dry-run) # The release is created as a draft so that publishing it can leave the repository's - # latest release where it is: the Python packages' `v*`. + # latest release where it is: the repo's `vX.Y.Z` release. - name: Publish the GitHub release if: ${{ !inputs.dry_run }} env: From d398f2c0bf572831a14e0110a2ce0da2548f375c Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:34:30 +0100 Subject: [PATCH 12/14] AI-3562: Package.swift comment names the repo's release, not the Python packages' Co-Authored-By: Claude Opus 5.5 --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index bbf97c8414..eddf59574f 100644 --- a/Package.swift +++ b/Package.swift @@ -3,7 +3,7 @@ import PackageDescription // The Swift SDK, whose sources are in sdks/swift/core. The manifest is at the root of the // repository because that is the only place SwiftPM looks for it: an app adds this -// repository's URL, and each `v` tag, the Python packages' too, is a release of it. +// repository's URL, and each `vX.Y.Z` tag of the repo is a release of it. let package = Package( name: "stream-agents", // iOS 15 is the floor. The session state is an ObservableObject rather than @Observable, From cc9276738cd5e8ee00b568e0b4aa51ab7b88e53f Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:46:45 +0100 Subject: [PATCH 13/14] AI-3562: drop the before/after sort from the release skill, list merge-PR commits Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release/SKILL.md | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 67bf911769..2793da26f8 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -30,33 +30,19 @@ tag (`sdks/python/pyproject.toml`, `[tool.hatch.version] source = "vcs"`). On a branch from `origin/main`, list what merged since the previous release: ```bash -git log ..origin/main --oneline | grep -E '\(#[0-9]+\)$' +git log ..origin/main --oneline | grep -E '\(#[0-9]+\)$|Merge pull request #[0-9]+ ' ``` Do not add `--first-parent`: a PR that reached `main` inside a merge commit (the #2030 accelerate -merge) is not on the first-parent chain, and the list would miss it (#2053). +merge) is not on the first-parent chain, and the list would miss it (#2053). The second pattern +lists a PR merged by a `Merge pull request #N` commit (#2088). In the root `CHANGELOG.md`: -- Sort the entries by the previous release tag. `# Unreleased` can hold work that is older than - that tag: `0.7.0` shipped without a section, so its work is still there. An entry whose PR - merged before the previous release tag goes under that release's own heading (`# 0.7.0`, as - the tag is written), which you create below `# vX.Y.Z` if it is missing. Only the rest goes - under `# vX.Y.Z`. For an entry with a PR number, find the oldest commit whose subject ends - `(#N)`. Test it with the command below. It prints `before`, `after`, `none` or `error`. For `none`, and - for an entry with no PR number, take the commit that wrote its `###` line - (`git blame -l -L , origin/main -- CHANGELOG.md`) and test that commit. On `error`, - stop: a git error is never `after`. - - ```bash - c=$(git log origin/main --format=%H --fixed-strings --grep='(#2047)' | tail -1) - if [ -z "$c" ]; then echo none - elif git merge-base --is-ancestor "$c" ; then echo before - else [ $? -eq 1 ] && echo after || echo error; fi - ``` - - `before` means the previous release's heading, `after` means `# vX.Y.Z`. -- Rename the rest of `# Unreleased` to `# vX.Y.Z`, and add a new, empty `# Unreleased` above it. +- Rename `# Unreleased` to `# vX.Y.Z`, and add a new, empty `# Unreleased` above it. For the first + release after `0.7.0` only, add one line under the heading: the section also covers `0.7.0`, + which shipped without one. No later release needs the line: since AI-3557, `# Unreleased` + holds only breaking-change lines between releases. - Keep three sections, in this order: `## Breaking Changes`, `## New Features`, `## Bug Fixes`. Merge sections that appear twice or under another name (`## Features`). The `# Unreleased` written before AI-3557 has both problems. From f29f3c01e25b4d66844391052090eaff38e0ca34 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 15:50:31 +0100 Subject: [PATCH 14/14] AI-3562: first release after 0.7.0 lists from v0.6.9 Co-Authored-By: Claude Haiku 5.5 --- .claude/skills/release/SKILL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 2793da26f8..d290dc6f09 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -42,7 +42,9 @@ In the root `CHANGELOG.md`: - Rename `# Unreleased` to `# vX.Y.Z`, and add a new, empty `# Unreleased` above it. For the first release after `0.7.0` only, add one line under the heading: the section also covers `0.7.0`, which shipped without one. No later release needs the line: since AI-3557, `# Unreleased` - holds only breaking-change lines between releases. + holds only breaking-change lines between releases. For the first release after `0.7.0`, run the + listing above from `v0.6.9` (the release before `0.7.0`) instead of `0.7.0`, so 0.7.0's PRs are + listed too. - Keep three sections, in this order: `## Breaking Changes`, `## New Features`, `## Bug Fixes`. Merge sections that appear twice or under another name (`## Features`). The `# Unreleased` written before AI-3557 has both problems.