<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Safety on Barn</title><link>https://barn.pgsty.com/v1.5/tags/safety/</link><description>Recent content in Safety on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 09 Nov 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/tags/safety/index.xml" rel="self" type="application/rss+xml"/><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></channel></rss>