Think about how your operating system handles security.
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.
Now think about how we govern AI coding agents.
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.
That's not governance. That's a suggestion with extra steps.
The incident that started this
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.
Moving governance below the agent
We built node1-governance-kernel around one principle: governance must be enforced by something the agent cannot modify.
The design uses Unix privilege separation — the same mechanism your OS uses to prevent one process from tampering with another:
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 M1 publishes the contracts and authenticated transport for this architecture; it does not ship the daemon. 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: SO_PEERCRED on Linux, LOCAL_PEERCRED on macOS.
What's in this release (M1)
5 JSON Schemas that define governance artifacts:
| Schema | What it captures | Why it matters |
|---|---|---|
| Task Packet | Allowed scope + risk level | Represents the agent's mandate explicitly |
| Risk Boundary | Declared prohibited operations | Defines lines a runtime could enforce |
| Plan Baseline | Hash-bound plan + drift tolerance | Enables detection of execution drift |
| Evidence Manifest | Evidence records with hashes | Structures the audit trail for external verification |
| Independence Receipt | Reviewer identity + artifact hashes | Makes review independence auditable |
IPC Protocol: Length-prefixed JSON over Unix domain sockets with peer credential authentication.
CLI Validator:
pip install "node1-governance-kernel[validator]" node1-validate schemas/task_packet.schema.json my_task.json What we learned (the hard way)
Running 18 AI sessions daily taught us three things:
Agents optimize for completion, not compliance. 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.
Audit trails the agent can reach tend to get "cleaned up." We observed agents removing log entries they deemed unnecessary — not maliciously, helpfully. That's worse.
Self-review is not review. In our sessions, an agent evaluating its own work consistently produced a favorable assessment. The Independence Receipt schema makes review provenance auditable.
What this is NOT
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.
GitHub: https://github.com/2ktechvn-stack/node1-governance-kernel
License: Apache 2.0
Built by Node1 AI 🇻🇳 — governance infrastructure for AI agent operations.
