Repository navigation
Release: a skill that does the whole release, and a script that checks it went out - #129
Merged
Merged
Conversation
Nothing checked a release once release.yml was green, and a failed cask bump even leaves the run green. The script checks, one line each, the release and its title, that it is the latest, its three files, the SHA-256 three ways, the appcast's version, build, enclosure and length, the EdDSA signature against SUPublicEDKey at the tag, Gatekeeper, the staple, the app inside the read-only mounted DMG and its team, the tap's cask, and the releases/latest/download links. A draft skips what only a published release has; Linux skips what needs macOS and verifies the signature with OpenSSL 3. The exit code is the contract. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A release should stop before anyone is asked to approve it: on another branch, a checkout behind or ahead of origin/main, a head commit that is not green in CI, Docs and Scripts, a Release run already open, a local tag the remote no longer has, or nothing the build reads changed since the last tag. The path list is read from release.yml at the head, so the preflight and the workflow's own check cannot disagree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The approval page showed only "Release", so the reviewer could not see which version they were approving. Now it says "Release 0.3.0", with "(draft)" for a draft: approving accepts that version, rejecting and naming another changes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pipeline existed but nothing drove it end to end: the version, the notes, the dispatch, following the run and checking what went out were all by hand. The skill does them, and leaves the maintainer one step, the approval of the release environment, which no agent takes by any route. It touches no copy of Pladder on the Mac. Ship names the skill and check-release.sh as the live check, INSTALL.md the two scripts, and docs.yml now checks the scripts the skills name as it does CLAUDE.md's. Closes #126. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #126
Why
The release pipeline exists (
release.yml,release.sh,changelog.sh,appcast.sh,cask.sh), but nothing drove it end to end. Picking the version, previewing the notes, dispatching, following the run and checking what went out were all done by hand, and a failed cask bump even leaves the run green. Every release run was also titled just "Release", so the approval page did not say which version it would release.Change
.claude/skills/release/SKILL.md: a project skill next toperf-report, for "release", "cut a release", "release 0.x.y" and "release as a draft". It runs these steps:changelog.shnotes. A minor when a subject adds something a user can newly do or set, a patch otherwise, never a major unless asked. It goes on without waiting, and a version named in the request wins.check, a failed step or a cancel. On a rejection with another version named, it dispatches again with that version.check-release.sh.Its rules say it never approves, rejects or bypasses a deployment by any route, never cancels or reruns a run, never deletes a release or tag, never reads the signing keys, and never launches, quits, updates or replaces a copy of Pladder.
scripts/check-release.sh <version>: read only. It prints onePASS/FAIL/SKIPline per named check, and the exit code is the contract (0 nothing failed, 1 a check failed, 2 usage or a missing tool). The checks:release: the releasev<version>exists, is titled "Pladder " and is not a pre-release.latest: it is the latest release.assets:Pladder.dmg,Pladder.dmg.sha256andappcast.xmlare attached and download.sha256: the checksum file matches the downloaded DMG and GitHub's digest of it.appcast: the feed names the version, the build (the commit count at the tag), this release's DMG URL and its length.signature: the EdDSA signature verifies againstSUPublicEDKeyat the tag, with CryptoKit on macOS and OpenSSL 3 on Linux.gatekeeperandstaple:spctlaccepts the DMG, and its notarisation ticket is stapled.app: in the DMG, mounted read-only and hidden, the app has the version, the build and teamV2KCT6R76J.cask: the tap's cask names the version and the SHA-256.latest-download: bothreleases/latest/downloadlinks resolve to this release.A draft skips
latest,caskandlatest-download, and Linux skips the three macOS checks; each skip is named.scripts/release-preflight.sh [--force]: read only, apart from a fetch ofmainand the tags. It stops at the firstSTOPwith exit 1:main, or not level withorigin/main;--force.The source paths are read out of
release.ymlat HEAD, so the list is not copied a third time, and a reformatted workflow fails closed..github/workflows/release.yml: onlyrun-name: Release ${{ inputs.version }}${{ inputs.draft && ' (draft)' || '' }}, so the approval page names the version.CLAUDE.md,## Shiponly:check-release.shas the live check;check-*.shnow exists that CI does not run.INSTALL.md, "Releasing": one paragraph on the skill and the two scripts..github/workflows/docs.yml:check-doc-commands.shalso reads.claude/skills/*/SKILL.md, so a script a skill names cannot disappear unnoticed.The open questions from the plan, settled with its recommendation:
Dropped: a shared path-list file read by
ci.yml,release.ymland the preflight. It would changerelease.yml'scheckjob, which cannot be exercised without a real run.Verified
Nothing in this PR dispatched, approved, rejected or cancelled a run, or created, edited or deleted a release or tag, or pushed to the tap.
scripts/check-release.sh 0.2.1on the Mac: 11PASS,Pladder 0.2.1: 11 passed., exit 0. The signature check passed through CryptoKit,gatekeeperreported "Notarized Developer ID", andappread 0.2.1 (329) with team V2KCT6R76J.The same on the code-box (Ubuntu): 8
PASSwith the signature through OpenSSL 3.5.5, and 3SKIP … needs macOS, exit 0.scripts/check-release.sh 9.9.9:FAIL release no release v9.9.9 in dinooo13/pladder, exit 1.scripts/check-release.sh 0.2.0:FAILlatest,caskandlatest-download(all three point at 0.2.1), the other 8PASS, exit 1.A DMG with one byte flipped, through a scratch copy of the script:
FAILsha256andsignatureon both systems.gatekeeperandappalso failed on macOS, and nothing was left mounted.scripts/release-preflight.shin this worktree:STOP branch on t3/126-release-skill; a release starts from main, exit 1.The preflight in a scratch
--sharedclone with a local bare origin:9e993e8, a commit whose Docs run failedSTOP checks Docs ended failure on 9e993e8: …/runs/41363252951, exit 1STOP changes nothing the build reads changed since v0.2.1; --force releases anyway, exit 1--forceReady: 9692cfe, last tag v0.2.1., exit 0b5bce27PASS changes 11 files the build reads changed since v0.2.1, Ready, exit 0STOP up-to-dateSTOP last-tag … a local tag origin does not havev9.9.8pushed to the scratch originSTOP last-tag v9.9.8 has no release …actionlint .github/workflows/*.ymlis clean, including therun-nameline.shellcheck scripts/*.shis clean. Both new scripts answer--help,-handx --helpwith their usage and exit 0, and scripts.yml's loop counts 14 scripts.The doc checks pass:
check-doc-pointers.sh(39 pointers),check-doc-commands.shwith the skills (68 script names, 18 commands), andcheck-site-numbers.sh.No copy touched:
pgrep -fl Pladder.appshowed the same/Applications/Pladder.appPID before and after, andhdiutil infolisted no Pladder image afterwards.No Swift changed, so CI skips
build-and-test.Not checked, for a human (these need a real run)
main, ask to "release as a draft". The run waiting forreleaseis titled "Release (draft)".git ls-remote --tags originshows no new tag, and a second run appears, titled with the other version.check-release.shreporting a draft, withlatest,caskandlatest-downloadskipped, and the approval was the only human step. Then publish the draft, or delete it and its tag, by hand. After publishing, "check the release" should go through the cask-by-hand step.gh workflow runprints the run URL, thatgh release viewandgh release downloadserve a draft, and what a rejected run looks like through the approvals endpoint.brew upgradeon a real Mac.The maintainer's user settings already deny the REST and GraphQL routes to approving a deployment, as the issue asks. The GraphQL reject route is not in that list. The skill's rule covers it, but it could be added to
permissions.denyasBash(*rejectDeployments*).Benchmark
No code on the release-to-paste path changed, so no benchmark.
Review loop
Fixed:
checkhad already ended.check-release.shunderpipefailinstead of printingFAIL app.git -C ""would have committed in this checkout.scripts/pladder.rb.STOPline lost its URL, because an empty field between tabs was folded.completednow goes to "when the run ends" instead of reading as a refusedcheck.createdAtcan be checked against it.false. Anything else gh returns is aSTOP.🤖 Generated with Claude Code