diff --git a/Documentation/Reference/Release.md b/Documentation/Reference/Release.md index 5e9b71e..6258017 100644 --- a/Documentation/Reference/Release.md +++ b/Documentation/Reference/Release.md @@ -128,50 +128,11 @@ test "${checked_commit:-}" = "$release_commit" && `--verify-tag` checks existence, so the separate commit comparison is required. Verify the published version, commit, and notes. -## Validate the Tap Candidate +## Verify Homebrew distribution -After both CLI releases are available, create `Formula/agents.rb` for the first -release, or update it for later releases, in an `agents-tools/homebrew-tap` task -worktree. Set the stable archive URL to the `agents` release and compute SHA-256 -from the exact downloaded archive bytes. Keep HEAD as the development channel. -Do not infer the archive digest from Git objects. The formula is named `agents` -and installs only the `agents` executable. +After publishing a stable CLI release, check the [tap updater](https://github.com/agents-tools/homebrew-tap/actions/workflows/update-releases.yml). +It checks hourly and can be dispatched manually. It computes the SHA-256 of the published source archive and proposes the stable URL and checksum together. The HEAD channel continues to build from `master`. -Match the formula's macOS requirement to the released CLI's minimum (macOS 15). +Follow the update PR in the [Homebrew tap](https://github.com/agents-tools/homebrew-tap/pulls). The tap checks the formula, builds changed formulae from source, and tests the executable. After its checks pass, the updater merges the verified revision on a subsequent run. If a release changes build requirements or installation behavior, update the formula and its tests in the tap through a reviewed change. -Validate the edited formula in a disposable Homebrew environment where the -formula is not already installed. Set `test_tap` to an unused temporary tap -name, then copy the candidate formula from its worktree into that local tap: - -```sh -export HOMEBREW_NO_INSTALL_FROM_API=1 && - export HOMEBREW_NO_AUTO_UPDATE=1 && - tap_checkout=$PWD && - formula_name=agents && - brew tap "$test_tap" "$tap_checkout" && - test_tap_checkout=$(brew --repository "$test_tap") && - mkdir -p "$test_tap_checkout/Formula" && - cp "Formula/$formula_name.rb" "$test_tap_checkout/Formula/$formula_name.rb" && - cmp "Formula/$formula_name.rb" "$test_tap_checkout/Formula/$formula_name.rb" && - brew info --json=v2 "$test_tap/$formula_name" -``` - -Compare the displayed stable URL and SHA-256 with the intended release archive -and its independently computed digest. Keep this candidate unchanged throughout -validation: - -```sh -brew fetch --force --build-from-source "$test_tap/$formula_name" && - brew install --build-from-source "$test_tap/$formula_name" && - brew test "$test_tap/$formula_name" && - actual=$(agents --version) && - test "$actual" = "agents $version" -``` - -The chain ends by checking that the installed `agents --version` prints -`agents $version`. Publish the tap change only after its candidate passes; -remove the disposable environment afterward. Record the release commit, core -pin, archive digest, and formula validation in the release handoff. - -After publication, remove `.build/release-validation` and retire the release -worktree once the accepted commit, tag, and validation results are recorded. +Confirm that the published formula selects the intended release and its test reports the expected CLI version. Record the release commit, core pin, archive digest and tap merge with the release handoff.