Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 5 additions & 44 deletions Documentation/Reference/Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading