<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Design on Barn</title><link>https://barn.pgsty.com/v1.5/categories/design/</link><description>Recent content in Design on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 03 Dec 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/categories/design/index.xml" rel="self" type="application/rss+xml"/><item><title>Barn 1.5.0 release acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/release-1-5-0-readiness/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/release-1-5-0-readiness/</guid><description>&lt;p&gt;On December 3, 2026, the local acceptance run used source commit &lt;code&gt;258b7e5&lt;/code&gt; plus the pending catalog, image-recipe and dependency changes. The CLI used for the Linux lifecycle test reported &lt;code&gt;1.5.0-rc.1&lt;/code&gt;. The published GitHub release and tag were still &lt;code&gt;v1.4.0&lt;/code&gt;. &lt;a href="https://barn.pgsty.com/v1.5/release/1.5.0/"&gt;Candidate changes&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="checks"&gt;Software, catalogs and guests&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Check&lt;/th&gt;&#10; &lt;th scope="col"&gt;Result&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Source&lt;/td&gt;&#10; &lt;td&gt;The pinned Go 1.27.4 toolchain passed &lt;code&gt;make check&lt;/code&gt;, including race tests, four-target builds, installer and image-pipeline tests. &lt;code&gt;govulncheck&lt;/code&gt; reported no findings. The image and catalog-check packages also passed with the Go test cache disabled.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Global and China repositories&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;make catalog-check&lt;/code&gt; verified ML-DSA-87 and the 1.4.0 Minisign sidecar, matched the embedded bytes and checked the sizes of all 17 stable artifacts on each mirror. The candidate and installed 1.4.0 each activated revision &lt;code&gt;2026120302&lt;/code&gt; on both mirrors using fresh data directories.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Local lab repository&lt;/td&gt;&#10; &lt;td&gt;A directory containing only &lt;code&gt;images/lab-1-arm64.qcow2&lt;/code&gt; passed scan, build and verify. A second build preserved the catalog bytes. The CLI read the local catalog before an explicit refresh, then updated just that repository and pulled its image.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;New Linux deployment&lt;/td&gt;&#10; &lt;td&gt;On Apple Silicon HVF, &lt;code&gt;barn init&lt;/code&gt; selected Debian 13. The candidate booted Debian 13.8 arm64 and reached SSH as UID 88. Both locales returned UTF-8. The XFS marker and machine ID survived stop/start, the boot ID changed, and purge removed the test node. The guest also executed the CLI extracted from the Linux arm64 snapshot DEB.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Upgrade from 1.4.0&lt;/td&gt;&#10; &lt;td&gt;The published CLI created an Ubuntu 24.04 guest from an inventory with no &lt;code&gt;vm_image&lt;/code&gt;. The candidate reopened the running guest with its existing QEMU PID, backing image, machine ID and XFS marker. Both &lt;code&gt;validate&lt;/code&gt; and &lt;code&gt;plan&lt;/code&gt; selected &lt;code&gt;u24&lt;/code&gt; for a new peer in the same lab.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Packaging&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;make release-snapshot&lt;/code&gt; verified four platform archives, Linux amd64/arm64 DEBs and RPMs, the embedded helper digests, SPDX files and the ad-hoc native payload. GoReleaser derived the internal snapshot name &lt;code&gt;1.4.1-next&lt;/code&gt; from the preceding tag. A clean, isolated rehearsal commit also passed snapshot assembly and all 19 draft manifest digests.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Native macOS&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;make mac-native-test&lt;/code&gt; passed the bridge, image, runtime and menu component checks. The live test stopped at network preflight because host routes covered all three RFC 1918 ranges. The release owner excluded further macOS guest boot and SSH testing from this acceptance run.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;The catalog SHA-256 was &lt;code&gt;43c01556d2f7939bb1c4e80e864057561aad42ce5430a381395fc08bc2c1f8c4&lt;/code&gt;, with default &lt;code&gt;d13:stable/native&lt;/code&gt;. The earlier December 3 image run recorded full SHA-256 reads on both mirrors and native Debian amd64/KVM and arm64/HVF boot tests. &lt;a href="../image-refresh-20261203/"&gt;Image acceptance&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Rebuilding and testing the Debian 12 and 13 cloud images</title><link>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261203/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261203/</guid><description>&lt;p&gt;On December 3, 2026, Barn rebuilt the amd64 and arm64 images for &lt;code&gt;d12&lt;/code&gt; and &lt;code&gt;d13&lt;/code&gt; from Debian&amp;rsquo;s official build &lt;code&gt;20261130-2678&lt;/code&gt;. After acceptance, the local repository and m0 marked all four artifacts as &lt;code&gt;supported&lt;/code&gt; in signed catalog &lt;code&gt;2026120302&lt;/code&gt;. Both &lt;code&gt;d12:stable&lt;/code&gt; and the default &lt;code&gt;d13:stable&lt;/code&gt; resolve to &lt;code&gt;20261130.2678.1&lt;/code&gt;. Both public Barn mirrors promoted the same catalog later that day. &lt;a href="https://cdimage.debian.org/cdimage/cloud/bookworm/20261130-2678/"&gt;Debian 12 build&lt;/a&gt; · &lt;a href="https://cdimage.debian.org/cdimage/cloud/trixie/20261130-2678/"&gt;Debian 13 build&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="upstream"&gt;What the source disks contain&#10;&lt;/h2&gt;&#10;&lt;p&gt;Each &lt;code&gt;generic&lt;/code&gt; qcow2 passed Debian&amp;rsquo;s &lt;code&gt;SHA512SUMS&lt;/code&gt; check before read-only inspection. Debian 12.15 and 13.8 gave the same results on both architectures.&lt;/p&gt;</description></item><item><title>Barn 1.4.0 pre-release review</title><link>https://barn.pgsty.com/v1.5/blog/design/release-1-4-0-readiness/</link><pubDate>Fri, 27 Nov 2026 16:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/release-1-4-0-readiness/</guid><description>&lt;p&gt;On November 27, 2026, the 1.4.0 candidate passed local source checks, package verification and guest lifecycle tests. The reviewed source was &lt;code&gt;22f6a28&lt;/code&gt; plus the fixes below, identified by Git tree &lt;code&gt;5ab76a8a5325dcd899d4909abec56c1890e6f4fb&lt;/code&gt;. The published release was still 1.3.0. The public catalog check remained open pending the coordinated switch of both mirrors. &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.3.0"&gt;Barn 1.3.0 release&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="fixes"&gt;Fixes verified in the candidate&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Linux packages.&lt;/strong&gt; Building under a symlinked checkout on macOS could omit the hosts helper&amp;rsquo;s SHA-256 from the CLI. The Go overlay in &lt;code&gt;packaging/goreleaser-companion.sh&lt;/code&gt; now names its virtual source relative to the module. The same checkout path produced matching CLI/helper pairs on all four targets.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Concurrent image updates.&lt;/strong&gt; 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 &lt;code&gt;TestImageUpdatePruneProtectsConcurrentRefresh&lt;/code&gt; in &lt;code&gt;internal/image/update_test.go&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Backing files.&lt;/strong&gt; Prune now protects each deployed node&amp;rsquo;s backing filename as well as its recorded digest. A valid qcow2 with unexpected bytes at a referenced path survived both preview and &lt;code&gt;--yes&lt;/code&gt;. Both commands reported an integrity error. The regression is in &lt;code&gt;internal/image/prune_test.go&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Read-only previews.&lt;/strong&gt; A read-only file with the expected length but the wrong SHA-256 now shows a planned download. Running &lt;code&gt;image update --dry-run --prune&lt;/code&gt; against an empty &lt;code&gt;0750&lt;/code&gt; home preserved its mode and created no files. &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/image/#barn-image-update"&gt;Image update command&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="acceptance"&gt;Packages and guests&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;make check&lt;/code&gt;, &lt;code&gt;make mac-native-test&lt;/code&gt; and &lt;code&gt;make release-snapshot&lt;/code&gt; 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 &lt;code&gt;checksums.txt&lt;/code&gt;, including the SPDX documents and installers. GoReleaser named this snapshot &lt;code&gt;1.3.1-next&lt;/code&gt; from the preceding tag. It used ad-hoc Mac signing. &lt;a href="https://github.com/pgsty/barn/blob/v1.3.0/packaging/assemble-release.sh"&gt;Release assembly script&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Replacing Vagrant in Pigsty: what Barn still needs</title><link>https://barn.pgsty.com/v1.5/blog/design/vagrant-replacement-gaps/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/vagrant-replacement-gaps/</guid><description>&lt;p&gt;Pigsty&amp;rsquo;s &lt;code&gt;vagrant/&lt;/code&gt; directory, Makefile, and public tutorials define the behavior Barn has to take over. The &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-barn-migration/"&gt;sandbox migration plan&lt;/a&gt; already covers resource scaling, local host names, and the entry-point switch, and &lt;a href="https://barn.pgsty.com/v1.5/blog/design/vagrant-workflow-boundary/"&gt;Vagrant and the development loop&lt;/a&gt; lists candidates such as provisioning steps, file transfer, and snapshots. This page adds the remaining layer: it checks the Vagrant behavior Pigsty actually relies on, sets out what Barn must add before Vagrant can be retired, and then lists capabilities Vagrant never offered but that Pigsty&amp;rsquo;s high-availability tutorials need.&lt;/p&gt;</description></item><item><title>Self-hosted image repositories: one command to build, usable unsigned</title><link>https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/</guid><description>&lt;p&gt;Self-hosted image repositories are one of Barn&amp;rsquo;s core workflows: a user puts customized &lt;code&gt;qcow2&lt;/code&gt; images into a static directory, and teammates or other hosts reference them directly. This design reduces building a repository to one command, reduces using one to a single inventory field, and lets any repository the user explicitly selects work without a signature, like &lt;code&gt;gpgcheck=0&lt;/code&gt; in yum or &lt;code&gt;[trusted=yes]&lt;/code&gt; in apt.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status (2026-11-27)&lt;/strong&gt;: implemented in commit &lt;code&gt;57a46ed&lt;/code&gt; on branch &lt;code&gt;claude/user-repo-design-review-1ae7c1&lt;/code&gt;, passing &lt;code&gt;make check&lt;/code&gt; and the end-to-end acceptance below; not yet merged into &lt;code&gt;main&lt;/code&gt; and not released. &lt;a href="https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/#current-state"&gt;Current state before the change&lt;/a&gt; is based on Barn &lt;code&gt;1.3.0&lt;/code&gt; and the &lt;code&gt;main&lt;/code&gt; of that time (&lt;code&gt;39befbe&lt;/code&gt;); &lt;a href="https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/#future-work"&gt;future work&lt;/a&gt; lists what this change leaves out.&lt;/p&gt;</description></item><item><title>Debian 13.8 image acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261126/</link><pubDate>Thu, 26 Nov 2026 22:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261126/</guid><description>&lt;p&gt;On November 26, 2026, Barn built and tested &lt;code&gt;d13@20261123.2671.1&lt;/code&gt; on both guest architectures for 1.4.0. Candidate catalog &lt;code&gt;2026112601&lt;/code&gt; passed &lt;code&gt;barn repo build&lt;/code&gt; and &lt;code&gt;barn repo verify&lt;/code&gt;. Its Minisign signature verifies with the new active public key &lt;code&gt;B848292042883667&lt;/code&gt;. Both official stores returned the SHA-256 digests listed below for the versioned images. At the time of testing, both public catalogs still served revision &lt;code&gt;2026112101&lt;/code&gt; for Barn 1.3.0.&lt;/p&gt;&#10;&lt;h2 id="build"&gt;Builds and digests&#10;&lt;/h2&gt;&#10;&lt;p&gt;Both builds use the Debian 13.8 &lt;code&gt;generic&lt;/code&gt; cloud image, build &lt;code&gt;20261123-2671&lt;/code&gt;. Each source file was checked against Debian&amp;rsquo;s SHA-512 list and pinned by SHA-256. The Barn &lt;code&gt;d13&lt;/code&gt; recipe installs &lt;code&gt;xfsprogs 6.13.0-2+deb13u1&lt;/code&gt; and its locked dependencies offline, assigns UID and GID 88 to &lt;code&gt;dba:admin&lt;/code&gt;, disables password and root SSH login, and removes source credentials and instance identity. It sets the default locale to &lt;code&gt;C.UTF-8&lt;/code&gt; and generates &lt;code&gt;en_US.UTF-8&lt;/code&gt;. &lt;a href="https://cloud.debian.org/images/cloud/trixie/20261123-2671/"&gt;Debian upstream build&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/image-pipeline/"&gt;Barn image pipeline&lt;/a&gt;&lt;/p&gt;</description></item><item><title>November 2026 Image Refresh</title><link>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261121/</link><pubDate>Sat, 21 Nov 2026 22:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261121/</guid><description>&lt;p&gt;This record follows the 2026-11-21 refresh of Barn&amp;rsquo;s Linux image repository. Published catalog &lt;code&gt;2026112101&lt;/code&gt; updates six families on both &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt;; all twelve artifacts passed native acceptance. The embedded catalog on &lt;code&gt;main&lt;/code&gt; is synchronized. Barn 1.2.0 still embeds &lt;code&gt;2026110502&lt;/code&gt;; run &lt;code&gt;barn update&lt;/code&gt; to activate the new catalog.&lt;/p&gt;&#10;&lt;h2 id="upstream-comparison"&gt;Upstream comparison&#10;&lt;/h2&gt;&#10;&lt;p&gt;The comparison uses the same cloud image class and architecture as the existing catalog. The upstream directories and checksum files were checked on 2026-11-21; source downloads were verified before customization.&lt;/p&gt;</description></item><item><title>Barn 1.2.0 release readiness and acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/release-1-2-0-readiness/</link><pubDate>Thu, 12 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/release-1-2-0-readiness/</guid><description>&lt;p&gt;&lt;strong&gt;Status, 2026-11-12:&lt;/strong&gt; &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.2.0"&gt;Barn 1.2.0&lt;/a&gt; is published as stable/latest. Its final acceptance is recorded below; the candidate sections preserve the earlier review and its original scope.&lt;/p&gt;&#10;&lt;h2 id="final-release"&gt;Final release&#10;&lt;/h2&gt;&#10;&lt;p&gt;Tag &lt;code&gt;v1.2.0&lt;/code&gt; points to &lt;code&gt;90f615804b823b4eb491101e642073dcd37a9700&lt;/code&gt;. &lt;a href="https://github.com/pgsty/barn/actions/runs/43121333312"&gt;Source/Mac CI&lt;/a&gt; and &lt;a href="https://github.com/pgsty/barn/actions/runs/43121333418"&gt;complete packaging CI&lt;/a&gt; passed that exact commit before tagging. All 437 reviewed build inputs match the candidate manifest. The signed catalog gate passed again before formal packaging.&lt;/p&gt;&#10;&lt;p&gt;The release used the documented local signing path because GitHub signing secrets remain unconfigured. Apple accepted notarization &lt;code&gt;165b486b-5055-4eca-a595-54bed6bdd6c1&lt;/code&gt;. &lt;code&gt;make release-local&lt;/code&gt; passed archive, DEB/RPM, SPDX, helper-pairing, timestamp, and package/archive checks. Downloaded CLI/helper/app bytes passed Developer ID, staple, and Gatekeeper checks. All 20 draft attachments and all 20 anonymous public downloads match the verified sizes and SHA-256 digests.&lt;/p&gt;</description></item><item><title>In-place root growth: recovery and native acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/root-disk-growth/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/root-disk-growth/</guid><description>&lt;p&gt;&lt;strong&gt;Status (2026-11-11):&lt;/strong&gt; The unreleased development build implements &lt;code&gt;barn resize -D&lt;/code&gt;, with ext4 and XFS acceptance on macOS/arm64 using QEMU/HVF guests. Released 1.1.0 still limits resize to CPU/memory. See &lt;a href="../vm-resource-overrides/"&gt;VM specification design&lt;/a&gt; for input precedence and &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/#root-disk-growth"&gt;root growth&lt;/a&gt; for the command contract.&lt;/p&gt;&#10;&lt;h2 id="scope"&gt;Supported scope&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-9bf3f4b0-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="2"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-9bf3f4b0-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn resize -D 128GiB meta&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;BARN_DISK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;128GiB barn resize meta&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The target is an absolute root capacity. Growth is supported; shrinking is rejected. Repeating a completed target neither changes the image nor restarts the VM. CPU/memory changes may accompany growth; scale does not multiply disk size. Changes to images, architecture, data disks, networking, and shares still require explicit recreation.&lt;/p&gt;</description></item><item><title>VM specification parameters: commands, short flags, environment, and root disks</title><link>https://barn.pgsty.com/v1.5/blog/design/vm-resource-overrides/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/vm-resource-overrides/</guid><description>&lt;p&gt;Image, architecture, CPU, memory, scale, and root disk size form one set of &lt;strong&gt;VM specification inputs&lt;/strong&gt;, with consistent names, value rules, and source tracking. Each command declares which fields it accepts and which changes it can apply; the resolution process has one implementation.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status (2026-11-11):&lt;/strong&gt; This approved design is implemented: six CLI/environment inputs, command integration, inventory generation, source tracking, &lt;code&gt;SPEC&lt;/code&gt; display, and in-place root growth. These changes remain unreleased. Working-tree inventories default to 1 vCPU / 2 GiB; released Barn 1.1.0 still defaults to 2 vCPU / 4 GiB.&lt;/p&gt;</description></item><item><title>Pigsty host setup: fixed names and CA trust</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/</guid><description>&lt;p&gt;&lt;strong&gt;Recommend one optional host setup operation: install a fixed set of Pigsty names and trust the lab&amp;rsquo;s public root CA certificate.&lt;/strong&gt; Keep one entry address, defaulting to &lt;code&gt;10.10.10.10&lt;/code&gt;, and reuse the same CA across ordinary lab rebuilds. With unchanged names, address and CA trust, setup is a no-op and needs no elevation. This gives the common lab a mostly one-time host integration step.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status — 2026-11-11: proposal, not implemented.&lt;/strong&gt; This narrows the first delivery from the earlier &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/"&gt;full host-DNS design&lt;/a&gt;. General inventory extraction, dynamic node/PG/VIP publication, split DNS and a resident DNS service remain optional future work. Their implementation is not a prerequisite for this fixed profile. This review changed documentation only; it did not read a CA private key, install trust, modify system hosts or operate VMs.&lt;/p&gt;</description></item><item><title>Main and command reference review</title><link>https://barn.pgsty.com/v1.5/blog/design/main-reference-review/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/main-reference-review/</guid><description>&lt;p&gt;&lt;strong&gt;Reviewed on 2026-11-11.&lt;/strong&gt; Both repositories were on &lt;code&gt;main&lt;/code&gt;, but neither had a clean working tree or matched its fetched remote head. The source checks passed on the reviewed working tree. The documentation now has a &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/"&gt;complete command reference&lt;/a&gt; with explicit stable, local-main, and uncommitted-feature labels.&lt;/p&gt;&#10;&lt;h2 id="git-state"&gt;Git and release state&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Repository&lt;/th&gt;&#10; &lt;th scope="col"&gt;Local main&lt;/th&gt;&#10; &lt;th scope="col"&gt;Fetched origin/main&lt;/th&gt;&#10; &lt;th scope="col"&gt;State at review entry&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;pgsty/barn&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;6ab0cd5&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;b2cc8da&lt;/code&gt; (&lt;code&gt;v1.1.0&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;Ahead 3; 11 tracked paths changed, plus &lt;code&gt;.idea/&lt;/code&gt;, &lt;code&gt;barn.yml&lt;/code&gt;, and &lt;code&gt;cmd/barn/hosts_inventory_test.go&lt;/code&gt; untracked&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;pgsty/barn.pgsty.com&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;bc7968a&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;d392cd5&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Ahead 3; four reference files modified and six design-article files untracked&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;GitHub&amp;rsquo;s latest regular release was &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.1.0"&gt;v1.1.0&lt;/a&gt;, published on 2026-11-09. No v1.2.0 tag was present on the remote. The local 1.2.0 notes were marked as a draft.&lt;/p&gt;</description></item><item><title>Host DNS and domain resolution for Pigsty on Barn</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;&lt;strong&gt;Scope narrowed on 2026-11-11:&lt;/strong&gt; the first delivery is now &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/"&gt;fixed core names and Pigsty CA trust&lt;/a&gt;. This page retains the broader exporter and resolver research; its general inventory and split-DNS work is optional expansion, not a prerequisite for the fixed profile.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Recommend explicit, opt-in managed hosts publication first.&lt;/strong&gt; Pigsty computes the names and service targets; Barn previews and installs one neutral address/name snapshot through its existing helper. This is worthwhile for opening portals, addressing nodes and connecting to database or VIP names in a static Linux lab. Fixed addresses make repeated synchronization cheap: unchanged records need no privileged operation. &lt;strong&gt;Root is still required for every actual system hosts change, including removal.&lt;/strong&gt; Setup does not grant perpetual update permission, and a cached or passwordless sudo authorization eliminates a password prompt, not privilege. Keep per-command authorization; consider suffix forwarding when a stable guest DNS endpoint and a complete namespace exist. A host daemon needs demonstrated demand beyond these two options.&lt;/p&gt;</description></item><item><title>Replacing Vagrant with Barn in Pigsty: resources, names, and migration work</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-barn-migration/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-barn-migration/</guid><description>&lt;p&gt;Pigsty can use one inventory for Barn and Ansible. The migration needs to preserve topology selection, image matrices, resource scaling, fixed addresses, and SSH workflows while replacing the old scripts&amp;rsquo; implicit addressing, naming, and destruction behavior.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status (2026-11-10):&lt;/strong&gt; &lt;code&gt;vm_scale&lt;/code&gt;, the 1-vCPU / 2-GiB defaults, &lt;code&gt;vm_hosts&lt;/code&gt;, &lt;code&gt;barn hosts install -f&lt;/code&gt;, and Pigsty&amp;rsquo;s &lt;code&gt;bin/sandbox-dns&lt;/code&gt; are implemented in the local working trees and have passed the offline checks below. They are unreleased. Pigsty&amp;rsquo;s Makefile still uses Vagrant; the second half of this article describes the remaining work. Released Barn 1.1.0 actually defaults to 2 vCPU / 4 GiB when parsing an inventory and does not support these additions.&lt;/p&gt;</description></item><item><title>Beyond amd64 and arm64</title><link>https://barn.pgsty.com/v1.5/blog/design/multi-architecture-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/multi-architecture-boundary/</guid><description>&lt;p&gt;Barn currently supports &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; Linux guests. QEMU can emulate more architectures, but each additional Barn target needs an image and a complete boot-and-operation contract. This design assessment, reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;, separates the existing runtime policy from possible future targets.&lt;/p&gt;&#10;&lt;h2 id="acceleration"&gt;Hardware acceleration follows the host ISA&#10;&lt;/h2&gt;&#10;&lt;p&gt;For Barn&amp;rsquo;s current 64-bit guest targets, native virtualization uses the host&amp;rsquo;s instruction set: HVF on macOS and KVM on Linux. QEMU TCG translates instructions for a foreign guest architecture. Rosetta can translate Intel Linux applications inside an Arm Linux VM; it does not provide an Intel Linux VM on Apple Silicon. See &lt;a href="https://www.qemu.org/docs/master/about/emulation.html"&gt;QEMU&amp;rsquo;s emulation overview&lt;/a&gt; and &lt;a href="https://developer.apple.com/documentation/virtualization/running-intel-binaries-in-linux-vms"&gt;Apple&amp;rsquo;s Linux binary translation guide&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Running Barn from Windows</title><link>https://barn.pgsty.com/v1.5/blog/design/windows-host-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/windows-host-boundary/</guid><description>&lt;p&gt;Barn&amp;rsquo;s current host profiles and release binaries cover macOS and Linux on &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt;. There is no native Windows Barn release. A Windows user can operate Barn through a Linux host; WSL2 and a nested Linux VM are candidates for bringing that host onto the Windows machine.&lt;/p&gt;&#10;&lt;p&gt;This assessment was reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;. The WSL2 and Hyper-V paths below still require a complete Barn lifecycle test before they can become supported installation guides. The current platform contract is in &lt;a href="https://barn.pgsty.com/v1.5/docs/about/status/"&gt;platforms and limits&lt;/a&gt; and &lt;a href="https://github.com/pgsty/barn/blob/main/internal/platform/platform.go"&gt;&lt;code&gt;internal/platform&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>What Barn Can Learn from Vagrant</title><link>https://barn.pgsty.com/v1.5/blog/design/vagrant-workflow-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/vagrant-workflow-boundary/</guid><description>&lt;p&gt;Barn already creates multi-node Linux labs from Pigsty-compatible inventories, manages their lifecycle, and exposes SSH and structured output. The useful lessons from Vagrant concern what happens between creating a VM and repeating an experiment: run setup steps, move source and build artifacts, record the environment, and return to a known state.&lt;/p&gt;&#10;&lt;p&gt;This is a design proposal based on the Barn source reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;. The priorities below are candidates for implementation, with no assigned release or delivery date. Current commands are documented in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/"&gt;CLI reference&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>From Upstream Images to a Signed Catalog</title><link>https://barn.pgsty.com/v1.5/blog/design/image-update-evidence/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-update-evidence/</guid><description>&lt;p&gt;An image audit answers a narrower question than an image release. It can find a newer upstream file, but Barn may add that file to its signed catalog only after the artifact, runtime profile, and boot path have all been verified. The &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/images/"&gt;image reference&lt;/a&gt; describes the user-facing catalog; this essay records the reasoning that keeps catalog updates reproducible.&lt;/p&gt;&#10;&lt;h2 id="four-meanings"&gt;Four meanings of “new”&#10;&lt;/h2&gt;&#10;&lt;p&gt;Image work becomes error-prone when four independent version values are treated as one:&lt;/p&gt;</description></item><item><title>Evolving the CLI Without Breaking Its Contracts</title><link>https://barn.pgsty.com/v1.5/blog/design/cli-contracts/</link><pubDate>Wed, 04 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/cli-contracts/</guid><description>&lt;p&gt;Barn already uses Cobra. The useful part of the 2026-11-04 CLI proposal is its separation of command syntax, application orchestration, and observable behavior. This essay retains that design, checked against &lt;code&gt;v1.1.0&lt;/code&gt; on 2026-11-09. The package split and broader command reorganization remain proposals; current usage belongs in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/"&gt;CLI reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="existing-boundaries"&gt;Keep the existing boundaries&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;cmd/barn/command_*.go&lt;/code&gt; defines the command families. Each execution constructs a fresh Cobra tree, avoiding flag values leaking between calls. Command handlers collect a &lt;code&gt;commandOutcome&lt;/code&gt;; a shared renderer handles text or structured results, while typed failures retain their exit code, reason, recovery hint, and any partial result. Linux lifecycle, image verification, and native Mac behavior remain in their domain packages.&lt;/p&gt;</description></item><item><title>The Lifetime of a Native Mac VM</title><link>https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/</link><pubDate>Tue, 29 Sep 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/</guid><description>&lt;p&gt;&lt;code&gt;barn mac&lt;/code&gt; manages named macOS VMs through Apple&amp;rsquo;s &lt;code&gt;Virtualization.framework&lt;/code&gt;, independently of the Linux inventory. Introduced in &lt;code&gt;0.9.0&lt;/code&gt;, it uses the native host app &lt;code&gt;Barn.app&lt;/code&gt;, included in Apple Silicon release archives since &lt;code&gt;0.9.2&lt;/code&gt;. This essay distills the named-machine implementation record and earlier Mac reviews, with the current implementation checked on 2026-11-08. Dated evidence is summarized in the &lt;a href="https://barn.pgsty.com/v1.5/docs/about/history/#mac-native-record"&gt;validation history&lt;/a&gt;; commands and defaults are in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/mac/"&gt;Mac reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="network-ownership"&gt;A machine owns its network&#10;&lt;/h2&gt;&#10;&lt;p&gt;The early design had two fixed slots and a privileged network helper. The 2026-09-29 redesign replaced that model with named machines and a private &lt;code&gt;/24&lt;/code&gt; NAT network created inside each runner process. The guest receives &lt;code&gt;.10&lt;/code&gt; on its own subnet. Two is the simultaneous-running limit, shared with other macOS virtualization tools and restore installation; stored machines are not restricted to two fixed names.&lt;/p&gt;</description></item><item><title>repo.yaml Is Intent; catalog.json Is Evidence</title><link>https://barn.pgsty.com/v1.5/blog/design/repo-yaml-catalog-json/</link><pubDate>Sat, 29 Aug 2026 19:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/repo-yaml-catalog-json/</guid><description>&lt;p&gt;This essay explains the Linux image repository contract in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; manage Apple &lt;code&gt;.ipsw&lt;/code&gt; restore images and APFS base images separately via &lt;code&gt;barn mac&lt;/code&gt;).&lt;/p&gt;&#10;&lt;p&gt;A static VM image repository needs two kinds of metadata: human policy decisions (which version is &lt;code&gt;:stable&lt;/code&gt;, which old releases are &lt;code&gt;deprecated&lt;/code&gt;, what aliases map to each family) and physical file facts (exact byte size, SHA-256 digest, &lt;code&gt;qcow2&lt;/code&gt; virtual disk size). Maintaining both in a single hand-edited JSON file invites copy-paste checksum errors and buries policy changes inside noisy diffs.&lt;/p&gt;</description></item><item><title>A PID Is Not a Virtual Machine</title><link>https://barn.pgsty.com/v1.5/blog/design/identity-before-pid/</link><pubDate>Fri, 28 Aug 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/identity-before-pid/</guid><description>&lt;p&gt;This essay explains Linux runtime process identity and crash recovery in Barn &lt;code&gt;1.1.0&lt;/code&gt;. The separate &lt;a href="https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/"&gt;native Mac lifecycle&lt;/a&gt; uses per-machine operation locks and runner protocol &lt;code&gt;2&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;A &lt;code&gt;pidfile&lt;/code&gt; records a process ID at the moment it was written. Minutes or days later—especially after a crash or host reboot—that integer alone cannot tell you whether the original QEMU process is still running, whether the OS kernel recycled the PID for an unrelated user process, or which VM node that process belongs to.&lt;/p&gt;</description></item><item><title>Declarative Does Not Mean Destructive</title><link>https://barn.pgsty.com/v1.5/blog/design/convergence-without-surprise/</link><pubDate>Thu, 27 Aug 2026 21:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/convergence-without-surprise/</guid><description>&lt;p&gt;This essay explains the Linux VM convergence model in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; are managed independently).&lt;/p&gt;&#10;&lt;p&gt;A declarative tool compares live state against a configuration file—but in daily development, that file might be temporarily edited for debugging, checked out on another git branch, or missing a YAML group after a merge. If a local VM manager treats an omitted YAML block as permission to destroy a virtual machine, a single typo can wipe out a database node.&lt;/p&gt;</description></item><item><title>Why Every Barn Node Has Two NICs</title><link>https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/</link><pubDate>Thu, 27 Aug 2026 20:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/</guid><description>&lt;p&gt;This essay explains the Linux lab network architecture in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; use independent per-VM &lt;code&gt;vmnet&lt;/code&gt; NAT subnets).&lt;/p&gt;&#10;&lt;p&gt;A Pigsty inventory identifies every database node by a stable IPv4 address: PostgreSQL streaming replication, Patroni/etcd consensus, HAProxy backends, keepalived VIPs, Prometheus targets, and Ansible playbooks all expect &lt;code&gt;10.10.10.11&lt;/code&gt; to name the same host across boots. Forwarding a loopback port on the host can expose SSH or port &lt;code&gt;5432&lt;/code&gt; to your laptop, but peer VMs cannot form a cluster over host loopback forwards.&lt;/p&gt;</description></item><item><title>Why Barn Has No Projects</title><link>https://barn.pgsty.com/v1.5/blog/design/one-deployment-no-projects/</link><pubDate>Thu, 27 Aug 2026 19:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/one-deployment-no-projects/</guid><description>&lt;p&gt;This essay explains the Linux lab deployment model in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; are managed as independent named VMs).&lt;/p&gt;&#10;&lt;p&gt;Early prototypes of Barn treated every working directory as a separate project: a hidden directory marker identified the project, a central registry tracked active project paths, and a host-wide lease table arbitrated private subnet collisions. While that model made sense for a generic multi-project VM runner, it fought against Barn&amp;rsquo;s actual job: running a local Pigsty database lab with fixed IP addresses.&lt;/p&gt;</description></item></channel></rss>