# Barn 1.4.0 pre-release review

> What passed for the 1.4.0 candidate and which checks depend on promoting the public image catalog.

---

LLMS index: [llms.txt](/llms.txt)

---

On November 27, 2026, the 1.4.0 candidate passed local source checks, package verification and guest lifecycle tests. The reviewed source was `22f6a28` plus the fixes below, identified by Git tree `5ab76a8a5325dcd899d4909abec56c1890e6f4fb`. The published release was still 1.3.0. The public catalog check remained open pending the coordinated switch of both mirrors. [Barn 1.3.0 release](https://github.com/pgsty/barn/releases/tag/v1.3.0)

## Fixes verified in the candidate {#fixes}

- **Linux packages.** Building under a symlinked checkout on macOS could omit the hosts helper's SHA-256 from the CLI. The Go overlay in `packaging/goreleaser-companion.sh` now names its virtual source relative to the module. The same checkout path produced matching CLI/helper pairs on all four targets.
- **Concurrent image updates.** An update that finished downloading after another update activated a newer catalog could prune an image from the newer revision. Prune now protects both catalogs and holds a shared manifest lock through deletion. The race regression is `TestImageUpdatePruneProtectsConcurrentRefresh` in `internal/image/update_test.go`.
- **Backing files.** Prune now protects each deployed node's backing filename as well as its recorded digest. A valid qcow2 with unexpected bytes at a referenced path survived both preview and `--yes`. Both commands reported an integrity error. The regression is in `internal/image/prune_test.go`.
- **Read-only previews.** A read-only file with the expected length but the wrong SHA-256 now shows a planned download. Running `image update --dry-run --prune` against an empty `0750` home preserved its mode and created no files. [Image update command](/docs/reference/commands/image/#barn-image-update)

## Packages and guests {#acceptance}

`make check`, `make mac-native-test` and `make release-snapshot` passed. The snapshot covered macOS and Linux on amd64 and arm64, including Linux DEB and RPM packages and the Apple Silicon native app. Release assembly verified all 19 files in `checksums.txt`, including the SPDX documents and installers. GoReleaser named this snapshot `1.3.1-next` from the preceding tag. It used ad-hoc Mac signing. [Release assembly script](https://github.com/pgsty/barn/blob/v1.3.0/packaging/assemble-release.sh)

On Apple Silicon HVF, a fresh Debian 13.8 guest ran the arm64 CLI extracted from the snapshot DEB. Its XFS marker survived stop, start and reload, then immediate purge removed the VM. A second test created an Ubuntu 24.04 deployment with 1.3.0 and reopened it with the candidate. Its VM UUID, applied spec hashes and XFS data survived. For both running guests, the filename protected by prune matched the backing file reported by QEMU. The November 26 image acceptance also covered Debian amd64 on Linux KVM. [Debian 13.8 image acceptance](../image-refresh-20261126/#acceptance)

The packaged native runner booted macOS 27.2.1 (`26B131`) headless from an isolated base. The CLI reached SSH, wrote a guest marker and ran `mac recreate`. The replacement had a new instance ID, reported the same macOS build and started with the old marker absent. A new marker survived `mac stop` and `mac start`. After `mac destroy`, the isolated machine list was empty and the shared base was still available.

## Catalog evidence {#catalog}

Candidate revision `2026112601` verified with Minisign key `B848292042883667`. Its `catalog.json` matched the embedded bytes, with SHA-256 `d307542707e1d91a80589570a0accf0c7325b21ffd78563a2925703ec7dbb1f9`. Its `repo.yaml` also matched the source. The default remained `u24:stable` on the native architecture with UEFI. A fresh home activated the candidate, and `barn repo verify` checked all 31 image files against their recorded digests.

In a rehearsal, the release checker read the candidate catalog and signature locally for each official URL, then contacted the real mirror for all 17 stable files. Both runs passed signature, activation, embedded-byte and file-size checks. Downloading the changed Debian 13.8 files from each mirror confirmed all four SHA-256 results. [Catalog verification program](https://github.com/pgsty/barn/tree/v1.3.0/tools/catalogcheck)

Both mirrors still served **catalog revision `2026112101`** under key `4686B39A40F9B562`. Barn 1.3.0 accepted that catalog. The candidate rejected it with `catalog_signature` and exit code 7. Conversely, 1.3.0 rejected the new signature and retained its previously active catalog.

## Release-day checks {#release-day}

1. Include the reviewed fixes in the release commit, date the changelog and update the README release links. Run source CI and the packaging snapshot on that commit before tagging.
2. Promote the verified `catalog.json` and `catalog.json.minisig` to both official mirrors. Run `make catalog-check` from the candidate. With `BARN_REPO` unset and a fresh `BARN_HOME` for each command, run `barn update` and `barn update --mirror`. Both must activate revision `2026112601` with the digest above.
3. After the catalog gate passes, build the tagged release with Developer ID signing, notarize and staple the native Mac app, then verify the assembled assets. The local signing identity and notary profile were available during review. Verify downloads and the installer before publishing the matching documentation. [Mac release procedure](/docs/about/mac-release/#local-release)
{.steps}

On release day both official catalogs passed signature verification, fresh activation and byte comparison. The tagged build was notarized, and all 20 GitHub attachments matched the local files on public download. The public installers and Homebrew upgrade passed. [Final release evidence](/docs/about/history/#release-1-4-0)
