Design Notes
Barn’s source repository once carried the redesign brief, implementation ADRs, and native evidence beside the code. That material was useful while the product was changing quickly, but many early decisions were later superseded. This section keeps the durable reasoning, rewritten against the current source instead of republishing stale plans.
Start with the product model, then follow the boundaries outward:
- Why Barn has no projects — one Inventory, one owner-scoped deployment, and no second source of truth.
- Why every node has two NICs — fixed identity for the lab, separate from management egress.
- Declarative does not mean destructive — per-node drift with explicit recreate and removal.
- A PID is not a virtual machine — QMP identity, process evidence, journals, and bounded recovery.
repo.yamlis intent;catalog.jsonis evidence — a static image repository whose generated metadata is checked against the actual qcow2 bytes.
Use the documentation for current behavior and the status page for dated verification. These design records explain why those contracts exist; they do not turn a design, build, or local test into release evidence.
These articles retain their original publication dates and were last reviewed against source on 2026-09-26, with names updated for the Barn 0.9.0 candidate on 2026-09-29. Changes specific to an unreleased candidate are marked separately; historical verification keeps its original date and scope.
repo.yaml Is Intent; catalog.json Is Evidence
Why Barn separates human-authored image policy from generated metadata that must match the actual qcow2 artifacts.
A PID Is Not a Virtual Machine
Why Barn combines QMP identity, process evidence, typed invocations, and journals before it signals or deletes anything.
Declarative Does Not Mean Destructive
How Barn uses per-node hashes and explicit operations so missing configuration can never authorize deletion.
Why Every Barn Node Has Two NICs
Why Barn separates management egress from the fixed-address network used by the host, peers, Ansible, and Pigsty.
Why Barn Has No Projects
Why Barn replaced per-directory project state with one owner-scoped deployment driven by one Pigsty Inventory.
-
repo.yaml Is Intent; catalog.json Is Evidence
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
-
A PID Is Not a Virtual Machine
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
-
Declarative Does Not Mean Destructive
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
-
Why Every Barn Node Has Two NICs
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
-
Why Barn Has No Projects
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …
Note Renamed 2026-09-29: names now follow the unreleased Barn 0.9.0 candidate. The prior source review was on 2026-09-26: the original publication date is retained; the text below reflects the implementation reviewed on this date. See Status for …