Operating Systems for AI Agents: Kernel Boundaries and a Practical Implementation Path
AI agents turn model outputs into real-world actions, creating new requirements for identity, authorization, resource budgets, and execution control. This article explains which responsibilities belong in the kernel and which belong in runtimes, orchestration layers, and business services. It examines delegation, side effects, auditability, and the engineering costs of a new kernel, then outlines a phased approach to building and validating a controlled agent execution environment.
1. Why AI Agent Execution Reaches the Operating System
When AI primarily answers questions or generates content, the operating system still handles an ordinary application: the application receives input, calls a model, and displays the output. Even when the model produces an incorrect answer, the consequences usually remain at the information level.
AI agents change this relationship. They do more than offer suggestions: they read files, access networks, call business APIs, create tasks, and sometimes modify their execution environment. Model output becomes the starting point for real operations, and errors can propagate through the execution chain.
An agent organizing documents, for example, may need to read files and write to a designated directory, but it should not access financial credentials. An order-processing agent may be allowed to check inventory, but not independently change payment rules. Prompts alone cannot enforce these distinctions because prompts are not a security boundary.
The central question for an agent-oriented operating system is therefore not “How can we make it easier for a model to control a computer?” It is:
How can a decision-making system that is not fully trusted operate a computer under explicit authorization, bounded resources, and traceable execution?
From this perspective, redesigning lower-level systems has genuine technical value. But a need for new capabilities does not automatically justify rewriting the entire kernel. Architecture decisions should begin with verifiable requirements, not the ambition of the proposed technology.
2. Separate Four Core Requirements Before Assigning Them to the Kernel
An agent execution environment needs at least four foundational capabilities: identity, permissions, budgets, and memory. They are related, but they should not all be implemented at the same system layer.
Identity: Establish Who Is Acting and on Whose Behalf
Traditional operating systems identify users, processes, and services. Agent identities in business workflows are often more dynamic.
A single user may delegate different tasks to several agents at once. An agent may also create subtasks and assign them to other execution units. The system therefore needs to record:
- Who delegated the work.
- The current task’s purpose and validity period.
- Which capabilities the execution unit has been granted.
- Whether subtasks may delegate work further.
- Who bears business responsibility for the resulting operations.
Identity and policy services should generally maintain this information, then map it to security principals, credentials, and isolation rules in the execution environment. The kernel can help isolate execution principals, but it does not need to understand business concepts such as procurement approval or customer follow-up.
Permissions: Make Authorization an Enforceable Constraint
Permission control is the requirement most closely aligned with kernel responsibilities.
If an agent may write only to a particular directory, lower-level access checks should reject other paths even if the model requests them. If external network access is prohibited, isolation and network policies should block those connections rather than rely on the model to exercise restraint.
However, enforcement does not require every rule to reside in the kernel. A complete control chain may span the kernel, runtime, API proxies, and business services:
- Lower-level mechanisms restrict access to files, processes, and local resources.
- Business services validate identity and authorization for API operations.
- Business policies and human approval constrain high-risk transactions.
The essential requirement is that every path to a protected resource must pass through a trusted enforcement checkpoint.
Budgets: Account for Both Machine Resources and Business Costs
An agent’s budget may include more than CPU time and memory. It can also cover model calls, external service fees, task duration, and financial spending.
Two layers need to be distinguished.
System resource budgets can be enforced through lower-level resource controls, such as limits on memory usage, concurrent processes, and CPU consumption.
Business budgets require metering services, call proxies, or business ledgers. Examples include limits on a task’s cumulative cost or the maximum amount of a transaction.
An operating system kernel generally cannot interpret the billing semantics of an external service. A practical design therefore measures consumption at the appropriate layers, consolidates accounting, and enforces limits at the relevant execution boundaries.
For highly concurrent workloads, recording costs only after operations finish is insufficient. Budget can be reserved before execution, reconciled against actual consumption afterward, and released when unused after a failure. This prevents multiple tasks from passing individual checks while collectively exceeding the total budget.
Memory: Manage Knowledge State Without Expanding Kernel State
Agent memory may include task context, previous operations, user preferences, and long-term knowledge. These data require updates, retrieval, deletion, access control, and version management—responsibilities better handled by user-space storage and retrieval systems.
Putting memory management in the kernel expands the impact of failures and tightly couples frequently changing business logic to the underlying system.
A safer division is for the kernel to protect storage resources while application layers interpret and organize memory. Sensitive information should be governed through explicit data-access policies, retention periods, and deletion mechanisms.
3. An Agent-Oriented Kernel Should Prioritize Determinism, Not Intelligence
“Designing a kernel for agents” can be mistaken for “giving the kernel model inference capabilities.” From a reliability and security perspective, these are different goals.
The kernel handles resource scheduling, isolation, and critical access control. Its behavior should be as deterministic, testable, and auditable as possible. Model inference can vary with context, input content, and the generation process, making it unsuitable as the sole basis for critical security checks.
A more appropriate division of responsibility is:
The model proposes actions, the policy layer interprets rules, and the trusted execution layer enforces constraints.
For example, a model may propose deleting expired files. The policy layer determines the permitted targets and approval requirements, while the execution layer allows deletion only within the approved file set. If the model subsequently attempts to access other locations, the established boundary still blocks it.
This design should also follow a default-deny principle. High-risk operations should not proceed when authorization is unclear, credentials have expired, budgets are insufficient, or the policy service is unavailable. Low-risk tasks may use a predefined restricted fallback mode, but failures should not trigger improvised permission increases.
The kernel’s value lies in keeping mandatory enforcement boundaries small, not in expanding the complex logic that must be trusted.
4. Permission Delegation Is a Major Risk in Multi-Agent Systems
Permissions for a single agent can be configured statically. Multi-agent collaboration, however, creates delegation chains.
Suppose a parent task may read documents and generate a report, while a subtask only extracts tables. If the subtask inherits all the parent’s permissions, it gains capabilities it does not need, expanding the risk.
Permission delegation should satisfy at least three conditions.
Child Tasks Must Receive Narrower Permissions
A child task’s permissions must be a subset of its parent’s permissions. It must not expand its own authority, and further delegation must follow the same rule.
These restrictions should apply to resource objects, operation types, validity periods, and available budgets—not merely broad role names.
Authorization Should Be Bound to a Specific Task
Long-lived, general-purpose credentials are easy to reuse. For sensitive operations, authorization should be bound as closely as possible to a task identifier, target resources, and validity period.
When a task ends, a user withdraws delegation, or the risk state changes, the system must invalidate the relevant authorization. Short-lived credentials reduce the exposure window, but they do not fully replace active revocation.
Execution Components Must Not Become Confused Deputies
An execution service may have greater system privileges than the agent calling it. If it acts solely on a path or resource identifier supplied by the model, it can become a confused deputy that performs unauthorized operations.
Execution components must therefore revalidate the caller’s identity, target resource, and task authorization. A request originating from an internal service is not sufficient proof of authority. Resource validation must also account for time-of-check-to-time-of-use risks caused by concurrent changes.
5. At Scale, the Challenge Is Organizing Agents
When hundreds or thousands of agents run together, the bottleneck may be task organization rather than the kernel.
Move from Open-Ended Conversation to Explicit Task Graphs
Tasks should have defined inputs, outputs, dependencies, states, and termination conditions. Without them, agents may repeatedly restate requirements, duplicate service calls, or enter collaboration loops that never converge.
The scheduling layer needs explicit signals for completion, failure, and pending approval. It should not have to infer progress solely from natural-language conversations.
Control Concurrency and Feedback Loops
An agent may automatically retry after a failure, while another creates a compensating task in response to the same failure event. Together, these behaviors can produce a continuously expanding feedback chain.
Systems should enforce task-level retry limits, global concurrency limits, queue capacity, and timeout rules. Once a limit is reached, the task should enter a defined failure state rather than continue spawning new work.
Treat External Side Effects as a Separate Concern
Repeated reads usually increase costs. Repeated payments, messages, or order submissions can cause real losses.
Operations with side effects should use idempotency identifiers and recorded execution states. Cross-system workflows that cannot be covered by a single transaction need defined compensating actions and paths for human intervention. “Run it again” is not a general recovery strategy.
Give Memory Boundaries and Versions
Agents sharing memory may overwrite one another’s conclusions or treat unverified intermediate judgments as established facts.
Memory entries should identify their source, timestamp, applicable task, and verification status. Changes to critical facts should retain version history, and temporary inferences should not automatically become long-term knowledge. Permission to read shared memory should not imply permission to modify it.
6. Evaluate a New Kernel Alongside Its Engineering Costs
A new kernel can redefine isolation and resource-management abstractions, but it also carries compatibility and ecosystem costs.
Hardware support covers storage, networking, graphics, peripherals, and power management. A bootable prototype is a long way from stable support for complex hardware.
Application compatibility is equally demanding. Existing software depends on system-call behavior, file semantics, process models, and numerous edge cases. If mature applications cannot be reused, they must be ported, rewritten, or supported through a compatibility layer. That layer may offset some of the benefits of simplification.
Long-term maintenance also requires security updates, fault diagnosis, upgrade rollback, and operational tooling. For enterprises, recoverability is often as important as peak performance.
New low-level architectures are therefore better introduced first in environments with limited hardware diversity, clearly defined application scope, and controlled deployment—for example, dedicated execution nodes or constrained computing devices. Targeting general-purpose personal computing immediately usually requires much more extensive validation.
7. A Phased Implementation Path: Prove the Gap Before Replacing the Kernel
A practical implementation can proceed in four stages.
Stage 1: Define the Threat Model and Task Boundaries
Identify the risks the system must address: accidental operations, malicious input, credential leakage, resource exhaustion, or compromised execution components.
Document which components are trusted, which data are untrusted, and which operations require human confirmation. Without these definitions, “more secure” has no testable meaning.
Stage 2: Build Restricted Execution Environments on Existing Systems
Start with mature process isolation, virtualization, resource quotas, and network controls to run agents in constrained environments.
Route business operations through auditable execution entry points rather than giving agents overly broad, long-lived credentials. This stage primarily validates the governance model, not low-level innovation.
Stage 3: Add Identity, Budgeting, and Orchestration
Implement task-level authorization, delegation-chain tracking, budget reservations, idempotent execution, approval, and revocation.
These capabilities can initially run in user space. If an isolation gap remains, identify its root cause: a missing low-level primitive, a configuration issue, an interface-design flaw, or a business-process problem.
Stage 4: Modify Lower-Level Systems Only Where Evidence Justifies It
Consider a new kernel only when existing mechanisms cannot meet the requirements and a narrower change cannot solve the problem.
At that point, specify which mechanisms the new design replaces, which risks it reduces, which costs it introduces, and whether it preserves a compatibility path. A new kernel should be the conclusion of an architecture assessment, not a predetermined answer.
8. Validation Must Go Beyond Task Completion Rates
An operating system or runtime for agents needs validation across security, reliability, efficiency, and governance.
| Validation area | Key questions |
|---|---|
| Permission isolation | Are unauthorized operations blocked? Can child tasks expand their permissions? |
| Budget control | Can concurrent tasks exceed the total budget? Does in-flight spending continue after a stop request? |
| Failure recovery | Can interrupted tasks recover without duplicate side effects? |
| Task orchestration | Can tasks spawn indefinitely, trigger retry storms, or overwhelm queues? |
| Auditability | Can authorization, decisions, approvals, and execution be reconstructed? |
| System overhead | How much latency and resource consumption do checks, logging, and isolation add? |
| Maintainability | Does the system support upgrades, rollback, policy changes, and fault diagnosis? |
Tests should cover both normal workflows and exceptional conditions. Examples include an unavailable policy service, authorization revoked during execution, stale data returned by memory storage, or a task becoming unresponsive after submitting an operation.
A cancellation request does not mean all external operations have stopped. The system should distinguish among blocking new operations, terminating local tasks, and confirming the status of external side effects. Otherwise, users may receive a misleading impression of safety.
Auditing must not rely solely on model-generated explanations. A model can describe its intended reasoning, but evidence must come from execution-layer records: the caller, authorization scope, target resource, actual result, and timing information.
9. Governance Principles Should Constrain the Architecture
Agent governance is not a usage policy added after deployment. It should shape the initial system design.
At the technical ecosystem level, priorities should include clear capability boundaries, portable task descriptions, and verifiable execution interfaces. These reduce business dependence on a single implementation.
At the organizational governance level, user authorization, approval responsibility, data retention, and revocation should become enforceable rules. For operations involving money, sensitive data, or irreversible changes, human confirmation should precede execution rather than appear only as an after-the-fact notification.
From an ethics and usability perspective, nontechnical users should be able to understand authorization scope, spending limits, and how to stop a task. Security controls need more than complex configuration options: they also require clear risk notices and accessible routes to human takeover.
Conclusion: Low-Level Innovation Should Make Autonomous Action Controllable
AI agents introduce new requirements for computing systems. Identity must propagate with tasks, permissions must narrow through delegation, budgets must remain consistent under concurrency, and side effects must be traceable and recoverable.
These requirements span multiple layers. They cannot be reduced to a single prescription to rewrite the entire operating system.
A more appropriate architecture assigns isolation and mandatory enforcement boundaries to lower-level systems, execution and metering to runtimes, task organization and collaboration to orchestration layers, and authorization and accountability to business services. Whether a new kernel is necessary should ultimately be determined through transparent designs, reproducible tests, and clear engineering benefits.
The essential foundation for the agent era is not unlimited computer control for models. It is ensuring that every autonomous action remains subject to reliable, explicit, and revocable constraints.
