Skip to content

feat(release): ship 3.2 GA as 3.2.1 over the withdrawn 3.2.0 - #7732

Merged
bokelley merged 1 commit into
mainfrom
bokelley/ship-3-2-1-ga
Sep 29, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/ship-3-2-1-ga

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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. Running changeset pre exit today computes 3.2.0. release.yml would 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

  • Marker: .changeset/withdrawn-release.json. It binds:
    • withdrawn_version: 3.2.0 and target_version: 3.2.1 (the target must be the next patch);
    • the exact accidental release commit, which must commit 3.2.0;
    • the revert commit, whose first parent must be that release commit;
    • the SHA-256 of the exposed tarball, 9fc36017…1e83 (it matches the CDN);
    • a reason, which is copied into the changelog.
  • Script: scripts/skip-withdrawn-release.mjs. It is called from scripts/version-packages.mjs.
    • Ordinary rc cuts: it verifies the marker and passes through. The generated version must stay on the 3.2.0-* line, and the marker is kept.
    • Pre-exit cut: it also proves that neither v3.2.0 nor v3.2.1 has a tag or a GitHub Release. Changesets then consumes the whole pending and archived pool and computes 3.2.0. The script requires pre.json and every .changeset/pre/*.md to be gone. It then retitles ## 3.2.0 to ## 3.2.1 with a withdrawn-number note, runs npm version 3.2.1, and deletes the marker.
    • Any mismatch fails closed. That covers the shape, the history, the digest, a re-committed 3.2.0 artifact, a pre-existing 3.2.1 artifact, the generated version, a duplicate changelog block, and remote errors.
  • New guard in version-packages.mjs (all paths). It refuses to generate any version that release discovery marks withdrawn or unpublished. Deleting the marker therefore cannot silently cut 3.2.0.
  • Previews: node scripts/skip-withdrawn-release.mjs check [--remote] and node scripts/skip-withdrawn-release.mjs preview.

2. Release discovery

  • 3.2.0 stays unpublished everywhere.
  • Worker drift fixed. The CDN worker now also marks 3.2.0-rc.5 unpublished, matching build-schemas.cjs and schemas-middleware.ts. A new test asserts that the three maps are identical.
  • superseded_by is now derived. It is the first selectable stable release on the same minor line that is newer than the prerelease. RC listings stop saying superseded_by: "3.2.0" as soon as the worker is redeployed, and they point at 3.2.1 once it exists. 3.1.0-rc.* still resolves to 3.1.0. The regenerated dist/schemas/index.json has no diff.
  • Tests show 3.2.1 wins latest_stable, v3, and v3.2 in 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.
  • New .agents/shortcuts/cut-minor-ga.md: the ordered 3.2.1 GA runbook, with human-approval steps marked. It is linked from RELEASING.md (new section "Shipping a stable release over a withdrawn version number") and from the playbook. It covers:

This PR does not run changeset pre exit.

Testing

  • Dry run in a throwaway clone of this branch (sparse, no dist/), after npx changeset pre exit:
    • Without the mechanism (base main): changeset status --output and changeset version both give [email protected].
    • With the mechanism: preview prints "Changesets computes [email protected]; Version Packages will produce [email protected] (skip)". node scripts/version-packages.mjs then leaves package.json and the lockfile at 3.2.1, with CHANGELOG.md headed ## 3.2.1 plus the note and no ## 3.2.0. The marker, pre.json, and every pre/*.md are deleted.
    • New code, marker removed: version-packages.mjs fails with "Changesets generated 3.2.0, which release discovery marks withdrawn/unpublished".
    • With the marker, still in rc pre mode: the cut gives 3.2.0-rc.8 and the marker is kept.
  • GITHUB_REPOSITORY=adcontextprotocol/adcp node scripts/skip-withdrawn-release.mjs check --remote passes against real history, tags, and releases.
  • npm run test:release-workflow passes. This includes the new tests/skip-withdrawn-release.test.cjs (11 tests) and tests/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/main passes. changeset status --since=origin/main shows a patch. scripts/build-schemas.cjs is protocol-scoped, so this PR carries a patch changeset.

Follow-ups and human steps

  • After merge, deploy the worker by hand with npm run deploy:cdn-artifacts-worker. No workflow deploys it. Until then, the live /compliance/ listing keeps saying superseded_by: "3.2.0".
  • backfill-cdn-artifacts.sh has 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.
  • This PR does not cover the other audit blockers: B3 (update-release-docs-nav.mjs stable label, owned by another PR) and B4 (@adcp/[email protected] embedding the stale 3.2.0 cache, in adcp-client). 3.2.0 stays in package_only_versions, and GA registers 3.2.1.

🤖 Generated with Claude Code

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]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_decision is REVIEW_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant