Get Started
Home
Topics
Search
Library
7 min read · Agents · Alignment · Added Sep 26 · Paper published Aug 29, 2026

AgentKernel: The Trust-Native Agentic Operating System

Source: research paper via Hugging Face Daily Papers
Today’s agent stacks put governance libraries in the same process as the agent, so a prompt-injected memory item can drive a deployment with no choke point. This position paper argues for an OS-style kernel mediating identity, input, memory, and tool calls, with permission composition as intersection rather than union.

TL;DR

AgentKernel proposes treating agent security as an operating system layer, not middleware: a mandatory, non-bypassable kernel that mediates identity, input, memory, and tool execution around the LLM, so the agent itself sits outside the trusted computing base.

Why It Matters

A typical LLM agent today stitches together untrusted inputs (web pages, tool outputs, PR comments) with privileged actions (writing files, deploying code, calling other agents). All of this runs inside one process. If a malicious PR comment slips a Prompt injection payload into the agent’s context, that text can end up in long-term memory, get retrieved later as “trusted context,” and drive a deployment action. There is no single choke point that can stop this.
The paper’s diagnosis: existing safety layers, whether orchestration frameworks like LangChain, agent runtimes like AIOS and Letta, or Microsoft’s Agent Governance Toolkit, all live in the same process as the agent. They are libraries the agent calls, not a kernel the agent must traverse. A compromised agent can skip them, and even well-behaved agents get no cryptographic guarantee about who they are talking to or where a memory item came from. This is a position and architecture paper. It does not ship a benchmarked system; it argues for a missing layer by analogy to classical OS design.

How It Works

The central move is to wrap the agent’s LLM, tools, and storage behind three narrow adapter interfaces. The agent cannot reach a model, a tool, or a memory store except through these adapters. That makes the kernel a Reference monitor for agent semantics, in the same way a Unix kernel is a reference monitor for syscalls.
Around this boundary sit four “pillars”:
•
Identity. Every agent gets an Agent Identity Card, an Ed25519-signed credential issued by a Global Agent Registry (GAR) that binds developer, code, operator, and deployment context. The private key lives inside the kernel, optionally in a TEE (Trusted Execution Environment), and the agent code never touches it. Delegating to a child agent is treated as a kernel operation: the child’s capability set must be a strict subset of the parent’s.
•
Perception. All inbound content passes through a four-stage pipeline: tag by source, cheap regex-based injection filter, a lightweight LLM classifier, and a multi-turn jailbreak detector. Each item carries a provenance tag downstream.
•
Cognition. Memory is not a plain vector store. Each item gets a security label on a product lattice (integrity × confidentiality) derived from the source segments that produced it. Instead of tainting an entire session with the worst label (which makes memory unusable), the kernel computes the minimal label per item.
•
Execution. Before a tool runs, the kernel computes an allowlist (which files, network endpoints, DNS names are permitted) and installs it as eBPF hooks on the tool’s process tree. So even a malicious tool implementation cannot escape the declared scope. A post-hoc plan-trace aligner compares what the LLM claimed it did against the signed execution log to catch Hallucinated actions.
A governing rule across all pillars: when policies from developer, operator, and runtime combine, the effective permission is their intersection, never their union. Composition can only narrow authority.
def invoke_tool(agent, tool, args): aic = kernel.identity.verify(agent) # Pillar 1 tagged = kernel.perception.filter(args) # Pillar 2 taint = kernel.cognition.labels_for(tagged) # Pillar 3 allow = kernel.execution.compute_allowlist( aic.S_max & tool.manifest & policy_for(taint) # intersection ) kernel.ebpf.install(allow, pid=spawn(tool)) # syscall backstop result = run(tool, tagged) kernel.execution.align(plan=agent.plan, trace=result.trace) return result

What They Found

There are no experiments, no benchmarks, and no measured numbers. The paper is explicit that empirical characterization (latency of eBPF install/teardown, lattice-search cost at scale, adversarial robustness on suites like OS-Harm) is deferred. What it offers instead:
•
A comparison table rating six representative systems (AIOS, OpenFang, SmythOS SRE, Letta, Microsoft AGT, nono) across 15 capability dimensions drawn from the four pillars. The claim: no existing system provides mandatory, cross-pillar mediation. Ratings are the authors’ qualitative reading of public docs and repos as of May 2026, not audited results.
•
A set of stated security invariants per pillar (AIC unforgeability, delegation monotonicity, provenance completeness, taint soundness, intersection least-privilege, eBPF non-bypassability, plan-trace alignment), each with an informal soundness argument. The paper is clear these are architectural claims, not machine-checked theorems; formal verification in Coq or TLA+ is listed as future work.
•
Two named structural properties: monotonic capability attenuation (a child agent’s authority is cryptographically bounded by its parent’s) and semantic-syscall closure (the syscalls a tool can issue are bounded by the pre-installed eBPF allowlist regardless of the tool’s implementation).
The authors’ proposed reading: because enforcement is non-bypassable, operators can safely grant broader tool access, memory sharing, and cross-org delegation. They call this “security as a capability multiplier.” This is a design argument, not a measured outcome.

What’s Useful

A few concrete things you can take from this paper even without a shipping implementation:
•
A checklist for auditing your own agent stack. The four-pillar decomposition (identity, perception, cognition, execution) plus the “is there a non-bypassable adapter?” question is a useful lens. If your governance library lives in the same Python process as the agent, a compromised agent bypasses it. That is a real gap, whether or not you adopt this specific architecture.
•
The intersection rule for permission composition. When you compose skills or delegate to sub-agents, defaulting to intersection rather than union is a cheap policy change that survives operator misconfiguration. You can apply this to something as simple as tool manifests today.
•
eBPF-scoped tool execution is worth testing if you run agents on Linux and give them shell or code-exec tools. The pattern (compute an allowlist per invocation, install it before spawning, monitor the whole process tree) is buildable on top of existing sandboxes. The paper does not release code, so you would be implementing the idea, not deploying their system. Non-Linux platforms need a different backend, which the authors flag as unsolved.
•
Item-level taint on memory is worth testing if you have a RAG store that ingests mixed-trust content. Coarse session-level taint destroys utility; per-item minimal labels preserve it. The paper does not evaluate how well the segmentation step holds up against adversarial content, so treat this as an idea to prototype, not a proven mechanism.
Don’t read this as a deployment recipe. There is no released artifact mentioned in the text, no reproducible benchmark, and the authors explicitly defer performance and adversarial evaluation.

Caveats

•
Position paper, not a system paper. No implementation is evaluated. The comparison table is a qualitative author assessment, not an independent audit. Treat every “AgentKernel does X” claim as “the proposed architecture would do X if built.”
•
The TCB is large and includes LLMs. The Semantic Firewall (P3) and LLM Validator (E2) are themselves LLM classifiers inside the trusted computing base. Their adversarial robustness is not characterized. The GAR is a single root of trust whose compromise collapses the identity pillar.
•
Non-bypass is a deployment assumption. The security argument only holds if the agent has no ambient credentials, no direct filesystem access, no side-channel to a model endpoint outside the three adapters. In real environments this is hard to guarantee and the paper acknowledges it.
•
eBPF is Linux-centric. The execution invariant leans on eBPF, which the paper notes has limited portability to macOS and Windows.
•
Formal guarantees are stated, not proven. The invariants in the security analysis are argued informally. Mechanized proofs are listed as future work.
Topics
Agents
Alignment
Agents
Alignment
Up next in Agents
Self-Evolving Coding Agents via Harness-Policy Optimization
Interlock: From Local Correctness to Task Completion in Long-Horizon Agents
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Agents310 episodes
Alignment20 episodes