Repository navigation
feat(release): ship 3.2 GA as 3.2.1 over the withdrawn 3.2.0 - #7732
Conversation
The 2026-06-30 accidental 3.2.0 cut (5dbe4ae, reverted in #5769) left immutable signed artifacts on the CDN, so exiting pre mode must not produce 3.2.0 again. - Add a reviewed .changeset/withdrawn-release.json marker and scripts/skip-withdrawn-release.mjs. Prerelease cuts verify and keep the marker; the pre-exit Version Packages cut proves 3.2.0 was never tagged/released (and 3.2.1 is free), lets Changesets consume the full pending + archived pool, retitles the changelog to 3.2.1, bumps the package, and deletes the marker. Every mismatch fails closed. - version-packages.mjs refuses to generate any withdrawn/unpublished version, so removing the marker cannot silently cut 3.2.0. - Align release status overrides across build-schemas, the server middleware, and the CDN worker (worker gains 3.2.0-rc.5), with a drift test. Derive prerelease superseded_by from the first selectable stable on the minor line, so RCs stop naming 3.2.0 and point at 3.2.1 after GA. - cut-major.md changeset audit now covers .changeset/pre/*.md. - Add .agents/shortcuts/cut-minor-ga.md (ordered 3.2.1 GA runbook) and link it from RELEASING.md and the playbook. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without required review approval.
This is a clean release-tooling PR shipping 3.2 GA as 3.2.1 over the permanently withdrawn 3.2.0. The reviewer found no Critical/High/Medium findings: the wire pin stays "3.2" (non-breaking), the changeset is a correct patch, no immutable dist/ artifacts are touched, and the withdrawn-skip logic plus version guard are fail-closed and well-tested. The one non-blocking follow-up (missing timeouts on git/gh shell-outs in the release verification path) does not rise to a blocking severity.
However, the PR modifies/adds files under .agents/** (playbook.md, cut-beta.md, cut-major.md, cut-minor-ga.md), which are under a deterministic hard approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2, the outcome must be escalate until a human/CODEOWNERS approval satisfies the gate.
Escalation reasons
- Gated files under
.agents/**(playbook.md, cut-beta.md, cut-major.md, cut-minor-ga.md) require human/CODEOWNERS review;review_decisionisREVIEW_REQUIRED.
No blocking code findings — the escalation is purely the unsatisfied approval gate. Once a required reviewer approves, this PR is otherwise mergeable.
Why human review
- Gated paths under
.agents/**(.agents/playbook.md, .agents/shortcuts/cut-beta.md, .agents/shortcuts/cut-major.md, .agents/shortcuts/cut-minor-ga.md) touched while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge. - This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .agents/shortcuts/cut-beta.md (modified) matches.agents/**; .agents/shortcuts/cut-major.md (modified) matches.agents/**; .agents/shortcuts/cut-minor-ga.md (added) matches.agents/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
Summary
This implements the maintainer decision that 3.2 GA ships as
3.2.1. The wire pin stays"3.2".On 2026-06-30 an accidental Version Packages cut committed
3.2.0(5dbe4ae). #5769 reverted it. The signed schema, compliance, and protocol artifacts from that cut are still live on the artifact CDN with immutable caching. They are never overwritten or retired. Runningchangeset pre exittoday computes3.2.0.release.ymlwould then collide with those bytes at R2 upload, after the tag and GitHub Release are already published. That is blocker B1 (Option B) in the release-mechanics audit.1. Guarded withdrawn-version skip
.changeset/withdrawn-release.json. It binds:withdrawn_version: 3.2.0andtarget_version: 3.2.1(the target must be the next patch);3.2.0;9fc36017…1e83(it matches the CDN);scripts/skip-withdrawn-release.mjs. It is called fromscripts/version-packages.mjs.3.2.0-*line, and the marker is kept.v3.2.0norv3.2.1has a tag or a GitHub Release. Changesets then consumes the whole pending and archived pool and computes3.2.0. The script requirespre.jsonand every.changeset/pre/*.mdto be gone. It then retitles## 3.2.0to## 3.2.1with a withdrawn-number note, runsnpm version 3.2.1, and deletes the marker.3.2.0artifact, a pre-existing3.2.1artifact, the generated version, a duplicate changelog block, and remote errors.version-packages.mjs(all paths). It refuses to generate any version that release discovery marks withdrawn or unpublished. Deleting the marker therefore cannot silently cut3.2.0.node scripts/skip-withdrawn-release.mjs check [--remote]andnode scripts/skip-withdrawn-release.mjs preview.2. Release discovery
3.2.0staysunpublishedeverywhere.3.2.0-rc.5unpublished, matchingbuild-schemas.cjsandschemas-middleware.ts. A new test asserts that the three maps are identical.superseded_byis now derived. It is the first selectable stable release on the same minor line that is newer than the prerelease. RC listings stop sayingsuperseded_by: "3.2.0"as soon as the worker is redeployed, and they point at3.2.1once it exists.3.1.0-rc.*still resolves to3.1.0. The regenerateddist/schemas/index.jsonhas no diff.3.2.1winslatest_stable,v3, andv3.2in the worker, the middleware, and build-schemas, while/schemas/3.2.0/…stays exactly addressable.3. Runbooks
cut-major.md§2: the audit loop now also scans.changeset/pre/*.md. It flags empty changesets too. Current counts are 159 minor, 149 patch, and 1 empty..agents/shortcuts/cut-minor-ga.md: the ordered 3.2.1 GA runbook, with human-approval steps marked. It is linked fromRELEASING.md(new section "Shipping a stable release over a withdrawn version number") and from the playbook. It covers:release.yml;npm run deploy:cdn-artifacts-worker;/schemas/index.jsonrefresh;14.0.0(npmlatestandadcp-3.2) and Python8.0.0;3.2.xand re-entering pre mode for 3.3.This PR does not run
changeset pre exit.Testing
dist/), afternpx changeset pre exit:main):changeset status --outputandchangeset versionboth give[email protected].previewprints "Changesets computes [email protected]; Version Packages will produce [email protected] (skip)".node scripts/version-packages.mjsthen leavespackage.jsonand the lockfile at3.2.1, withCHANGELOG.mdheaded## 3.2.1plus the note and no## 3.2.0. The marker,pre.json, and everypre/*.mdare deleted.version-packages.mjsfails with "Changesets generated 3.2.0, which release discovery marks withdrawn/unpublished".3.2.0-rc.8and the marker is kept.GITHUB_REPOSITORY=adcontextprotocol/adcp node scripts/skip-withdrawn-release.mjs check --remotepasses against real history, tags, and releases.npm run test:release-workflowpasses. This includes the newtests/skip-withdrawn-release.test.cjs(11 tests) andtests/artifact-cdn-worker.test.cjs(39 tests).npx vitest run tests/schema-release-status.test.ts server/tests/integration/schema-routing.test.ts: 36 passed.npx tsc --noEmit -p server/tsconfig.json: clean.node scripts/check-changeset-protocol-scope.cjs origin/mainpasses.changeset status --since=origin/mainshows a patch.scripts/build-schemas.cjsis protocol-scoped, so this PR carries a patch changeset.Follow-ups and human steps
npm run deploy:cdn-artifacts-worker. No workflow deploys it. Until then, the live/compliance/listing keeps sayingsuperseded_by: "3.2.0".backfill-cdn-artifacts.shhas no path that refreshes the root/schemas/index.json. The runbook step 17 offers two options: a reviewed tooling PR, or an explicitly authorized one-off upload of the two mutable files.update-release-docs-nav.mjsstable label, owned by another PR) and B4 (@adcp/[email protected]embedding the stale 3.2.0 cache, in adcp-client).3.2.0stays inpackage_only_versions, and GA registers3.2.1.🤖 Generated with Claude Code