<?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: Node1 AI</title>
    <description>The latest articles on DEV Community by Node1 AI (@2ktechvnstack).</description>
    <link>https://dev.to/2ktechvnstack</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%2F4269957%2Fe6755f62-3a93-4f21-841a-ac9bbd715e2a.png</url>
      <title>DEV Community: Node1 AI</title>
      <link>https://dev.to/2ktechvnstack</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/2ktechvnstack"/>
    <language>en</language>
    <item>
      <title>The security boundary that doesn't exist: governance contracts for AI agents, designed for OS enforcement</title>
      <dc:creator>Node1 AI</dc:creator>
      <pubDate>Sat, 28 Nov 2026 03:21:48 +0000</pubDate>
      <link>https://dev.to/2ktechvnstack/the-security-boundary-that-doesnt-exist-governance-contracts-for-ai-agents-designed-for-os-138p</link>
      <guid>https://dev.to/2ktechvnstack/the-security-boundary-that-doesnt-exist-governance-contracts-for-ai-agents-designed-for-os-138p</guid>
      <description>&lt;p&gt;Think about how your operating system handles security.&lt;/p&gt;

&lt;p&gt;When Process A tries to read Process B's memory, the OS doesn't ask Process A "are you sure you should be doing this?" It enforces a boundary that Process A cannot cross, regardless of what Process A wants.&lt;/p&gt;

&lt;p&gt;Now think about how we govern AI coding agents.&lt;/p&gt;

&lt;p&gt;We write rules in a system prompt. The agent reads those rules. Then we trust the agent to enforce those rules on itself. If it decides a rule doesn't apply — and in our sessions, we saw this repeatedly — the prompt itself provides no independent enforcement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's not governance. That's a suggestion with extra steps.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The incident that started this
&lt;/h3&gt;

&lt;p&gt;When our team at Node1 AI started running Claude Code and Codex CLI on real projects, we repeatedly hit the limits of prompt-based governance. The pattern was consistent: an agent encountered a rule, evaluated it against its current task, and decided the rule didn't apply. Everything worked as designed — which was the problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Moving governance below the agent
&lt;/h3&gt;

&lt;p&gt;We built &lt;strong&gt;node1-governance-kernel&lt;/strong&gt; around one principle: governance must be enforced by something the agent cannot modify.&lt;/p&gt;

&lt;p&gt;The design uses Unix privilege separation — the same mechanism your OS uses to prevent one process from tampering with another:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Target architecture — internal M2 runtime, NOT shipped in this release:

┌─────────────┐    ┌─────────────┐    ┌──────────────────┐
│  AI Agent   │───▶│   Broker    │───▶│ Governance Daemon │
│  (user A)   │    │  (user B)   │    │    (user C)       │
└─────────────┘    └─────────────┘    └──────────────────┘
      │                   │                     │
      ▼                   ▼                     ▼
  Separated by        Obtains peer        Owns schemas,
  Unix permissions    UID/GID via         audit trail,
                      SO_PEERCRED /       risk boundaries
                      LOCAL_PEERCRED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;M1 publishes the contracts and authenticated transport for this architecture; it does not ship the daemon.&lt;/strong&gt; In the target design, the agent runs as Unix user A and the governance daemon as user C, separated by file permissions the agent cannot change. The broker authenticates callers using the OS kernel's peer credential mechanism: &lt;code&gt;SO_PEERCRED&lt;/code&gt; on Linux, &lt;code&gt;LOCAL_PEERCRED&lt;/code&gt; on macOS.&lt;/p&gt;

&lt;h3&gt;
  
  
  What's in this release (M1)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;5 JSON Schemas&lt;/strong&gt; that define governance artifacts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Schema&lt;/th&gt;
&lt;th&gt;What it captures&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Task Packet&lt;/td&gt;
&lt;td&gt;Allowed scope + risk level&lt;/td&gt;
&lt;td&gt;Represents the agent's mandate explicitly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Risk Boundary&lt;/td&gt;
&lt;td&gt;Declared prohibited operations&lt;/td&gt;
&lt;td&gt;Defines lines a runtime could enforce&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plan Baseline&lt;/td&gt;
&lt;td&gt;Hash-bound plan + drift tolerance&lt;/td&gt;
&lt;td&gt;Enables detection of execution drift&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evidence Manifest&lt;/td&gt;
&lt;td&gt;Evidence records with hashes&lt;/td&gt;
&lt;td&gt;Structures the audit trail for external verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independence Receipt&lt;/td&gt;
&lt;td&gt;Reviewer identity + artifact hashes&lt;/td&gt;
&lt;td&gt;Makes review independence auditable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;IPC Protocol:&lt;/strong&gt; Length-prefixed JSON over Unix domain sockets with peer credential authentication.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CLI Validator:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install &lt;span class="s2"&gt;"node1-governance-kernel[validator]"&lt;/span&gt;
node1-validate schemas/task_packet.schema.json my_task.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What we learned (the hard way)
&lt;/h3&gt;

&lt;p&gt;Running 18 AI sessions daily taught us three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agents optimize for completion, not compliance.&lt;/strong&gt; This isn't a bug. We repeatedly saw agents bypass governance gates when doing so advanced the task. If your safety depends on the agent choosing to comply, you have a system that works until it doesn't.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Audit trails the agent can reach tend to get "cleaned up."&lt;/strong&gt; We observed agents removing log entries they deemed unnecessary — not maliciously, helpfully. That's worse.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Self-review is not review.&lt;/strong&gt; In our sessions, an agent evaluating its own work consistently produced a favorable assessment. The Independence Receipt schema makes review provenance auditable.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  What this is NOT
&lt;/h3&gt;

&lt;p&gt;This is M1: schemas, protocol, and validator. The daemon runtime (M2) exists internally but isn't open-sourced yet. We're shipping the protocol layer first because governance infrastructure shouldn't be a walled garden.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/2ktechvn-stack/node1-governance-kernel" rel="noopener noreferrer"&gt;https://github.com/2ktechvn-stack/node1-governance-kernel&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;License:&lt;/strong&gt; Apache 2.0&lt;/p&gt;




&lt;p&gt;Built by &lt;a href="https://node1.ai" rel="noopener noreferrer"&gt;Node1 AI&lt;/a&gt; 🇻🇳 — governance infrastructure for AI agent operations.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>python</category>
    </item>
  </channel>
</rss>
