# Design Notes

> Architectural decisions, trade-offs, and implementation boundaries behind Barn.

---

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

---

These essays explain Barn's state model, guest convergence, image trust, host networking, [CLI contracts](cli-contracts/), and [native Mac lifecycle](native-mac-lifecycle/). Design proposals also examine the Pigsty/Vagrant development loop, Windows hosting, and future guest architectures; each proposal states its implementation and validation status.

The native macOS Virtualization.framework subsystem (`barn mac`) was introduced in Barn `0.9.0`; its signed app has shipped in Apple Silicon archives since `0.9.2`. See [Native macOS VMs](/v1.5/docs/start/macos/), the [`barn mac` Reference](/v1.5/docs/reference/mac/), and the [Mac release handbook](/v1.5/docs/about/mac-release/).

---

Section pages:

- [Main and command reference review](/v1.5/blog/design/main-reference-review/): Git state, version boundaries, command coverage, and validation evidence from the 2026-11-11 Barn review.
- [Why Barn Has No Projects](/v1.5/blog/design/one-deployment-no-projects/): Why Barn replaced per-directory project state with one owner-scoped deployment driven by one Pigsty inventory.
- [Why Every Barn Node Has Two NICs](/v1.5/blog/design/fixed-ip-two-nics/): Why Barn separates management egress from the fixed-address network used by the host, peers, Ansible, and Pigsty.
- [Declarative Does Not Mean Destructive](/v1.5/blog/design/convergence-without-surprise/): How Barn uses per-node hashes and explicit operations so missing configuration can never authorize deletion.
- [A PID Is Not a Virtual Machine](/v1.5/blog/design/identity-before-pid/): Why Barn combines QMP identity, process evidence, typed invocations, and journals before it signals or deletes anything.
- [repo.yaml Is Intent; catalog.json Is Evidence](/v1.5/blog/design/repo-yaml-catalog-json/): Why Barn separates human-authored image policy from generated metadata that must match the actual qcow2 artifacts.
- [Self-hosted image repositories: one command to build, usable unsigned](/v1.5/blog/design/self-hosted-repository/): Let users host their own Barn images the way they host yum/apt repositories: infer the catalog from file names, declare the repository in the inventory, overlay it on the official catalog, and make signing optional.
- [Rebuilding and testing the Debian 12 and 13 cloud images](/v1.5/blog/design/image-refresh-20261203/): XFS tools, locales and accounts on all four Debian 20261130-2678 source disks, with native boot results for the Barn candidates.
- [Barn 1.5.0 release acceptance](/v1.5/blog/design/release-1-5-0-readiness/): Linux guest and upgrade tests, the documentation change log, signed packages and public installation checks.
- [Barn 1.4.0 pre-release review](/v1.5/blog/design/release-1-4-0-readiness/): What passed for the 1.4.0 candidate and which checks depend on promoting the public image catalog.
- [Debian 13.8 image acceptance](/v1.5/blog/design/image-refresh-20261126/): Build inputs, final image digests, and native boot results for both d13 architectures.
- [From Upstream Images to a Signed Catalog](/v1.5/blog/design/image-update-evidence/): How Barn separates upstream release metadata, catalog evidence, runtime support, and release acceptance.
- [November 2026 Image Refresh](/v1.5/blog/design/image-refresh-20261121/): Upstream comparison, offline normalization, native acceptance, and signed catalog promotion for twelve refreshed Barn images.
- [What Barn Can Learn from Vagrant](/v1.5/blog/design/vagrant-workflow-boundary/): A proposal for repeatable provisioning, environment records, file transfer, and recovery in Pigsty labs.
- [Replacing Vagrant with Barn in Pigsty: resources, names, and migration work](/v1.5/blog/design/pigsty-barn-migration/): An audit of Pigsty's Vagrant workflow, the vm_scale and local hosts contracts, and an ordered migration plan based on 54 inventory templates.
- [Pigsty host setup: fixed names and CA trust](/v1.5/blog/design/pigsty-host-setup/): A small, explicit macOS and Linux setup operation for stable Pigsty portal names and the lab's root CA.
- [VM specification parameters: commands, short flags, environment, and root disks](/v1.5/blog/design/vm-resource-overrides/): A unified CLI, environment, inventory precedence, command scope, and persistence contract for image, architecture, CPU, memory, scale, and root disk size.
- [Host DNS and domain resolution for Pigsty on Barn](/v1.5/blog/design/pigsty-host-dns/): An explicit hosts workflow, Pigsty-owned name semantics, source replacement safeguards, and an optional split-DNS upgrade path for macOS and Linux.
- [In-place root growth: recovery and native acceptance](/v1.5/blog/design/root-disk-growth/): The grow-only resize -D contract, offline and guest expansion, failure recovery, and ext4/XFS native acceptance.
- [Replacing Vagrant in Pigsty: what Barn still needs](/v1.5/blog/design/vagrant-replacement-gaps/): A source check of the Vagrant behavior Pigsty relies on, with priorities and acceptance criteria for readiness gates, forced power-off, VIP addresses, persistent disks, and fault injection.
- [Barn 1.2.0 release readiness and acceptance](/v1.5/blog/design/release-1-2-0-readiness/): Release gates, upgrade compatibility, packaging, and physical-host acceptance for Barn 1.2.0.
- [Running Barn from Windows](/v1.5/blog/design/windows-host-boundary/): Why a Linux host remains necessary, what WSL2 must prove, and what a native Windows backend would require.
- [Beyond amd64 and arm64](/v1.5/blog/design/multi-architecture-boundary/): How guest architecture selects an emulator, machine, firmware, devices, and acceptance tests in Barn.
- [Evolving the CLI Without Breaking Its Contracts](/v1.5/blog/design/cli-contracts/): What to preserve when separating Barn's command tree, application orchestration, and output handling.
- [The Lifetime of a Native Mac VM](/v1.5/blog/design/native-mac-lifecycle/): Why Barn uses named Mac machines, process-owned networks, narrow locks, and explicit recovery evidence.
- [Guest time synchronization validation](/v1.5/blog/design/guest-time-sync-validation/): Validation of host-relative clock correction, lifecycle integration, and user timers in the unreleased Barn implementation.
