<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Derek</title>
    <description>The latest articles on DEV Community by Derek (@derek_f66a6ae2c4ca30bf7db).</description>
    <link>https://dev.to/derek_f66a6ae2c4ca30bf7db</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4252860%2F014745b0-11e3-4536-8a3d-797f15423054.jpg</url>
      <title>DEV Community: Derek</title>
      <link>https://dev.to/derek_f66a6ae2c4ca30bf7db</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/derek_f66a6ae2c4ca30bf7db"/>
    <language>en</language>
    <item>
      <title>Building Crash-Safe Self-Hosted AI Agents: PostgreSQL 12-State Leases (ZeroOS) and ~3.1 MB Evidence Replay Memory (LongMemOS)</title>
      <dc:creator>Derek</dc:creator>
      <pubDate>Fri, 20 Nov 2026 07:41:44 +0000</pubDate>
      <link>https://dev.to/derek_f66a6ae2c4ca30bf7db/building-crash-safe-self-hosted-ai-agents-postgresql-12-state-leases-zeroos-and-31-mb-evidence-1l7h</link>
      <guid>https://dev.to/derek_f66a6ae2c4ca30bf7db/building-crash-safe-self-hosted-ai-agents-postgresql-12-state-leases-zeroos-and-31-mb-evidence-1l7h</guid>
      <description>&lt;h3&gt;
  
  
  Why In-Memory Agent Loops Break in Production
&lt;/h3&gt;

&lt;p&gt;When automating multi-step B2B operations—such as cross-factory EDI reconciliation or nightly SKU replenishment across retail stores—process crashes and lossy context summarization quickly turn prototype agents into operational liabilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Deterministic Lease Recovery with ZeroOS
&lt;/h3&gt;

&lt;p&gt;Engineered by Dalian Fidwell Technology Co., Ltd. (Dalian engineering team), &lt;strong&gt;ZeroOS&lt;/strong&gt; replaces volatile in-memory state with a PostgreSQL 12-state step lease machine on customer-controlled Linux hosts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Idempotent Side-Effect Ledger&lt;/strong&gt;: Every external webhook or database write is guarded by a deterministic lease token. In an isolated internal staging test observation, standby worker failover completed in ~6.99s (6,994 ms, environment-dependent baseline rather than a generic SLA).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ephemeral FD-Unlink Secret Delivery&lt;/strong&gt;: API credentials are delivered via unlinked file descriptors rather than plain process environment variables, while tool execution stays delegated to isolated worker sandboxes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Lossless Provenance with LongMemOS
&lt;/h3&gt;

&lt;p&gt;Instead of overwriting historical turns with lossy summaries, &lt;strong&gt;LongMemOS&lt;/strong&gt; (~3.1 MB core runtime, &lt;code&gt;embedded_models=false&lt;/code&gt; with decoupled inference) pairs temporal state tracking with &lt;strong&gt;O13 Evidence-Boundary Replay&lt;/strong&gt;, scoring 463/500 (92.6%) on the 500-item &lt;code&gt;LongMemEval&lt;/code&gt; benchmark in an internal test across Windows 11, Linux x86_64, and ARM64 (RK3588).&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Additive Rollout Without Replacing Legacy ERP/POS
&lt;/h3&gt;

&lt;p&gt;Rather than forcing retail chains or workshops to halt operations and swap working cash registers, read-only POS daily close connectors and edge visual checklists attach side-by-side to protect business continuity.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>postgres</category>
      <category>architecture</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
