Skip to content

Latest commit

 

History

History
214 lines (175 loc) · 9.68 KB

release.md

File metadata and controls

214 lines (175 loc) · 9.68 KB

Release guide

betteragentview is distributed as a prebuilt betteragentview executable. Users should not need Rust or Cargo. This guide is for maintainers preparing the artifacts consumed by install.sh.

Release status

Releases are automatic. Every push to main that changes src/, Cargo.*, the installers or the packaging scripts runs auto-release.yml. It checks that main compiles, tags the next patch version (v0.3.0, v0.3.1, …) and starts release.yml, which builds every target below on a native runner and publishes one GitHub release with all archives and checksums. Docs, site and test-only pushes do not release.

The minor version comes from Cargo.toml; the patch number counts up from the last tag. To start 0.4.x, change Cargo.toml to 0.4.0. The release build stamps the tag's version into the binary, so Cargo.toml does not need a commit per release. Pushing a vMAJOR.MINOR.PATCH tag by hand still works. The manual procedure below is the fallback when the workflows cannot run.

Release builds set AGENTVIEW_RELEASE_BUILD, which turns on the dashboard's once-a-day check for a newer release (Update v0.3.4 available · run bav update in the header). Local and source builds never check. AGENTVIEW_NO_UPDATE_CHECK=1 turns it off. Release archives are built, packaged, and checksum-verified on the exact tagged commit. The adjacent .sha256 release asset records the verified archive digest. Native hosted runners cover both Linux architectures, both macOS architectures, and Windows x64.

Publish the archive and checksum for every advertised target:

agentview-VERSION-x86_64-unknown-linux-gnu.tar.gz
agentview-VERSION-x86_64-unknown-linux-gnu.tar.gz.sha256
agentview-VERSION-aarch64-unknown-linux-gnu.tar.gz
agentview-VERSION-aarch64-unknown-linux-gnu.tar.gz.sha256
agentview-VERSION-x86_64-apple-darwin.tar.gz
agentview-VERSION-x86_64-apple-darwin.tar.gz.sha256
agentview-VERSION-aarch64-apple-darwin.tar.gz
agentview-VERSION-aarch64-apple-darwin.tar.gz.sha256
agentview-VERSION-x86_64-pc-windows-msvc.zip
agentview-VERSION-x86_64-pc-windows-msvc.zip.sha256

Manual native release procedure

After the full local gate below, create the same deterministic package shape as the native workflow:

target=x86_64-unknown-linux-gnu
cargo build --release --locked --target "$target"
scripts/package-release.sh "$target"

Run the same two commands on a native macOS builder with aarch64-apple-darwin. Add the x86_64-apple-darwin Rust target, build it on Apple silicon, and execute the packaged binary through Rosetta before publication. scripts/package-release.sh uses GNU tar's reproducibility flags on Linux and disables AppleDouble metadata when packaging with BSD tar.

Extract and smoke-test the archive, test install.sh or install.ps1 against a temporary local release root, create and push an annotated version tag, then publish exactly the verified archive and checksum with gh release create. Never upload an untested cross-compiled artifact merely to fill the matrix. Unix archives contain the canonical betteragentview executable and the installer creates relative bav and legacy av shorthand symlinks after version verification. Windows archives contain betteragentview.exe; the PowerShell installer copies the verified executable to bav.exe and legacy av.exe because ordinary Windows installations cannot rely on developer-mode symlinks.

Publication policy

GitHub Actions runs read-only quality, test, portability, and provider-setup gates on every push. Only a pushed version tag publishes a release, through release.yml, from the exact tagged commit.

The README deliberately uses repository-owned status badges. Its Tests badge links to the complete evidence record in docs/testing.md, and its static release badge must match the crate version. The GitHub Actions badge would describe hosted-runner availability rather than the documented manual release gate when jobs are rejected before startup. A regression test keeps that endpoint out of the README and prevents the release badge from drifting behind the package version.

The current manual Linux builder establishes the documented glibc 2.35 floor. Older GNU/Linux systems and Windows ARM64 are not release targets yet. Each installer fails clearly instead of downloading an incompatible binary.

Prepare a release

Before creating a tag, complete the cross-platform testing procedure on the exact reviewed commit. Its native-runner, artifact-provenance, and public-install checks are release requirements, not interchangeable simulations. The core local commands are:

cargo fmt --all -- --check
cargo clippy --all-targets --locked -- -D warnings
cargo test --locked
scripts/real-tui-tests.sh
scripts/test-installer.sh
# On a native Windows x64 runner:
.\scripts\test-installer.ps1

For a release containing the completed/model/lifecycle changes, retain evidence for these focused gates in addition to the aggregate commands:

  • the 70,000-session grouping and local-hide tests complete without rebuilding groups during navigation;
  • real-PTY exercise covers default-visible completed paging, /completed show|hide, draft-preserving Shift+Tab model selection, Ctrl+X two-press delete and local hide from list and Peek, exact composer cursor placement, and nonblocking post-launch refresh/selection;
  • isolated Pi proves selected --model propagation and refuses to replace an old daemon with active owned work;
  • isolated OpenCode proves the exact documented model object is present in the asynchronous prompt body;
  • Claude and Codex catalog tests consume their provider-native surfaces and reject malformed/pagination-overflow results; and
  • betteragentview sessions hide, hidden, and unhide are smoke-tested with an isolated HOME/XDG_STATE_HOME, including JSON output and private file modes.

Do not describe authenticated model availability as verified merely because a credential-free catalog or mock launch passed. Record any real provider model turn separately with provider version, selected identifier, isolated state, and cleanup result.

Then:

  1. complete the release gates above and record the evidence in docs/testing.md;
  2. update CHANGELOG.md;
  3. set the intended version in Cargo.toml and Cargo.lock;
  4. review the exact release commit; and
  5. obtain maintainer approval to publish.

From the approved commit, create and push the immutable annotated tag, then publish only the locally verified files:

git tag -a vMAJOR.MINOR.PATCH -m "betteragentview vMAJOR.MINOR.PATCH"
git push origin vMAJOR.MINOR.PATCH
gh release create vMAJOR.MINOR.PATCH \
  dist/agentview-MAJOR.MINOR.PATCH-x86_64-unknown-linux-gnu.tar.gz \
  dist/agentview-MAJOR.MINOR.PATCH-x86_64-unknown-linux-gnu.tar.gz.sha256 \
  --repo moritzWa/betteragentview \
  --generate-notes \
  --title "betteragentview vMAJOR.MINOR.PATCH"

The installed gh version may not support --verify-tag. Before creating the release, verify the annotated tag and its peeled commit explicitly with git ls-remote --tags origin refs/tags/vVERSION refs/tags/vVERSION^{}.

Publication never creates or moves a tag from an unreviewed branch build. Do not retry a failed release by moving an existing tag; fix the cause and choose a new version. Annotated tags are the current repository convention. Moving to signed tags requires a valid, non-expired maintainer signing key and a documented public-key verification path; do not claim a signature when those prerequisites are absent.

When a release changes the dashboard's look or hint bar, re-record the README demo from fixtures/demo-sessions.json. It needs vhs, ffmpeg, and uv:

cargo build --release
uv run --with pillow scripts/demo.py

This rewrites docs/assets/demo.gif with a badge for each shortcut pressed, and leaves a 2600×1520 MP4 at target/demo/demo.mp4. Edit the step list in scripts/demo.py to change what the demo shows.

The fixture's demo section stands in for what a live dashboard would ask a harness for: the harnesses and models the composer offers, the usage header, and the past sessions Ctrl+G searches. The script adds 500 generated past sessions, links the OpenCode sub-sessions to their parent, and seeds OpenCode's recent models in a throwaway state directory, so nothing from the recording machine shows up.

Verify a published release

Confirm the GitHub release contains the original verified archive and checksum, then exercise both authenticated and public installation paths as applicable:

AGENTVIEW_VERSION=MAJOR.MINOR.PATCH ./install.sh
betteragentview --version
bav --version
betteragentview --json --no-host-providers

For a public release, repeat the command from fresh Linux x86_64, Linux ARM64, macOS Intel, and macOS Apple silicon environments without repository credentials. For a private release, repeat it with a least-privilege GitHub account that can read the repository.

Distribution security

The installer downloads both release assets, validates that the checksum is a 64-character SHA-256 value, verifies the archive before extraction, stages the new executable, and atomically replaces betteragentview only after verification. It then creates guarded relative shorthand/compatibility symlinks; it never overwrites a command whose version output does not identify betteragentview. It does not edit shell startup files or fall back to compiling source.

SHA-256 detects corruption and release-asset mismatch, but it does not by itself prove who built an artifact. Build provenance/attestations and additional native targets remain follow-up release work.