# Bootstrap + tools mise can't cleanly provide. Run: brew bundle --file=Brewfile
#
# Everything else (just, gh, jq, yq, docker-cli, docker-compose) is pinned in
# .mise.toml and installed by `mise install`.
#
# TWO PLATFORMS, ONE FILE, NO CONDITIONALS (bh-q160.1). Every formula below installs on macOS
# and Linux alike, so there is nothing to branch on. A second Brewfile.linux would let the pins
# drift the way .mise.toml and docker-bake.hcl already have; a platform conditional is the same
# drift in one file. Linux support exists so a second host can be stood up from a git clone
# (bh-q160); it is not speculative portability. KEEP IT CONDITIONAL-FREE — a formula that needs
# `if OS.mac?` is usually a formula that does not belong here at all (see DOCKER RUNTIME below).
#
# RETIREMENT CONDITION for this whole file: when bh-0gpn.5 lands mise as the
# native plane's pin source, these are DELETED, not ported to it
# (docs/design/deployment-isolation-direction-adr.md, Decision 1 — brew is a distribution
# mechanism, not a pinning mechanism). Check that bead before extending this file.
#
# RUNTIME vs DEV, settled rather than left ambiguous: `osv-scanner` is dev-only (it serves
# `just license-check` / `just cve-report`, never `bh` at runtime) and mise's toolchain is a
# development toolchain. Homebrew Bundle has no groups, and the design above rules out a second
# file, so this installs the SUPERSET on both platforms and says so here. A runtime-only host
# gets one extra Go binary; that is cheaper than a manifest that can drift.
#
# Linux bottle availability verified 2026-08-04 against the formulae.brew.sh API — mise, dolt
# and osv-scanner all publish x86_64_linux AND arm64_linux bottles, so none of them fall back to
# a source build there. `beads` publishes both Linux bottles too (checked 2026-11-28).

brew "mise"      # tool-version manager — provides everything in .mise.toml
# DOCKER RUNTIME IS A PREREQUISITE, NOT A DEPENDENCY — nothing here installs one. On Linux the
# daemon is native and comes from the distro (docker-ce / docker.io), outside brew. On macOS it
# is the operator's choice of Docker Desktop, colima or OrbStack, and a bootstrap has no
# business picking one for them. Docker mode's own docs state the runtime as a prerequisite;
# this file just stops contradicting them.
#
# `brew "colima"` used to sit here unguarded. MEASURED on a bare Debian 13 host, 2026-08-05:
# colima has a linux bottle, so `brew bundle` installs it happily — and its dependency closure
# alone took the prefix from 1.1G / 12 kegs to 5.7G / 98 kegs BEFORE colima's own keg landed
# (llvm 2.6G, mesa 397M, the X11 stack, QEMU's deps — on a headless server, for a VM that would
# never run). `if OS.mac?` would fix Linux and leave macOS installing a runtime it may already
# have; deleting the line fixes both and costs the file its last conditional.
# Dolt CLI — backups, diagnostics, SQL shell (not in mise registry). This line PINS NOTHING:
# compare `dolt version` with docs/DOLT.md#supported-dolt-version.
brew "dolt"
# the `bd` issue tracker (homebrew-core; not in mise registry).
#
# Homebrew's stable RELEASE, never a HEAD build (bh-zl3br). A HEAD build follows upstream's main
# branch, so nothing fixes which Dolt it needs or which schema it writes. HEAD was used while no
# tagged release carried the `bd dolt pull` hang fix (beads#4770); the 1.3.x releases carry it.
#
# THIS LINE PINS NOTHING. bh needs a bd 1.3.x release (1.3.0 or newer). Homebrew's stable was
# 1.3.4 and the formula had no versioned variant on 2026-11-28, but stable will move and
# `brew bundle` may upgrade it, so check `bd version` afterwards. The formula also depends on
# the unpinned `dolt` formula. The pinned bd and Dolt come from the flake (INSTALL.md).
#
# A host that already has the HEAD build: read the bh-zl3br note in docs/UPGRADING.md before
# changing it. A store it migrated may not open on a release.
brew "beads"

# supply-chain scanner (license gate + CVE signal — `just license-check` / `just cve-report`).
# Not in mise's registry; homebrew-core carries it.
brew "osv-scanner"
