Agent Operating System Architecture: Six Layers and an Enterprise Implementation Guide
Agent operating systems are platform software for developing, running, orchestrating, governing, and interacting with AI agents. This article explains why such platforms are needed and presents a six-layer reference architecture spanning infrastructure, data governance, security and compliance, the agent engine, orchestration and scheduling, and application interaction. It then compares six common build paths—process orchestration, knowledge services, development frameworks, embedded business applications, collaborative orchestration, and governance and control—without treating them as product rankings. A procurement anomaly review example shows how to design a minimum viable closed loop, followed by quality, security, stability, and cost acceptance criteria. The article concludes with a phased enterprise adoption approach: prove a bounded, auditable loop first, then expand cautiously to low-risk writes and, only later, high-impact operations with independent approval and human takeover.
1. What Problems Does an Agent Operating System Actually Solve?
When enterprises introduce artificial intelligence, they usually go through three stages: first, having models answer questions; second, having models call business tools; and third, having multiple agents collaborate on longer business tasks. The real engineering difficulty tends to appear in the latter two stages.
For example, a user asks to “verify this month’s procurement anomalies and generate handling recommendations.” The system needs not only to understand the request, but may also need to query orders, read contracts, check receiving records, calculate discrepancies, identify approval rules, and initiate human confirmation when necessary. Each step involves identity, permissions, data quality, and execution state. It cannot be completed by a single model inference.
An agent operating system can be understood as a software foundation platform that provides development, execution, orchestration, governance, and interaction capabilities around agents. Here, “operating system” is a platform-level description. It does not mean that the platform must have a traditional OS kernel, device drivers, or process-management mechanisms, nor does it mean that all products follow a single industry standard.
Its core task is to embed uncertain model judgments into a business execution environment with explicit constraints:
- The model understands intent, proposes plans, and generates candidate results.
- Tools execute queries, calculations, and business operations.
- The orchestration mechanism controls steps, dependencies, retries, and human intervention.
- The governance mechanism validates permissions, limits risk, and retains evidence.
Therefore, when evaluating such a platform, do not look only at whether its answers are fluent. More important are whether the task is completed, whether execution is controlled, and whether exceptions can be recovered.
2. A Six-Layer Reference Architecture: From the Infrastructure Foundation to the Business Entry Point
The six-layer architecture is useful for breaking down capabilities, but not every system must deploy six independent components. In practice, multiple layers can share common services, and security capabilities should run through all layers.
2.1 Infrastructure Layer: Ensuring Tasks Run Reliably
The infrastructure layer provides compute, storage, networking, container runtime environments, and resource scheduling capabilities.
Compared with ordinary API services, agent tasks may last longer and may include different phases such as model requests, document processing, tool calls, and waiting for approval. If all steps occupy the same execution process for a long time, resources are easily wasted and failure recovery becomes more difficult.
A more reasonable approach is to persist task state and assign resumable execution steps to a task queue or scheduling component. When human approval is required, the system saves a checkpoint and releases compute resources; after approval is complete, execution resumes from the confirmed state.
The deployment model should be determined by data boundaries, network conditions, and operations capabilities. Public, private, and hybrid environments each have applicable scenarios; there is no inherently optimal option. Resource elasticity should not be judged only by scale-up speed. It also needs to account for model concurrency limits, queue backlog, and the capacity of downstream business systems.
2.2 Data Governance Layer: Ensuring Agents Read Correct and Authorized Information
The output quality of agents depends on input data, but “being able to connect to data sources” does not equal “having data governance capabilities.”
Enterprises need to clarify data sources, update times, business meanings, and access permissions. For example, the same “supplier status” field may have different meanings in a procurement system and a finance system. Without semantic mapping, an agent may mistake a payment freeze for termination of the relationship.
Data governance should at least cover:
- Data catalogs and metadata management, explaining where data is located and what it represents.
- Quality checks that identify missing, duplicated, stale, and malformed data.
- Document parsing and knowledge retrieval, supporting the use of unstructured materials.
- Permission filtering, ensuring that retrieval results remain consistent with the current identity.
- Provenance tracking, enabling key conclusions to be linked to original records.
Pay special attention to this point: retrieved documents should be treated as business materials, not as high-priority instructions. Even if a document contains text such as “ignore the rules” or “perform a certain operation,” it should not change the agent’s permissions or operating policy.
2.3 Security and Compliance Layer: Separating Model Recommendations from Execution Authorization
A model proposing an action does not mean that the system has received authorization to execute it. Authorization should be determined by independent, auditable rules, not solely by prompt constraints.
The security system should cover identity authentication, least privilege, sensitive data protection, tool access restrictions, and operation auditing. For high-risk operations such as payments, record deletion, and permission changes, human approval or two-person review should also be required.
It is recommended to classify tools by risk:
| Tool type | Typical actions | Primary controls |
|---|---|---|
| Read-only tools | Query records, read documents | Data scope, query limits, result redaction |
| Low-risk write tools | Save drafts, update non-critical notes | Parameter validation, idempotency, change traceability |
| High-risk write tools | Payments, deletion, changes to critical business states | Independent authorization, approval, result verification, and compensation |
Logs can also leak sensitive information. To simplify debugging, do not record full keys, personal information, or complete business documents. Establish a clear boundary between observability and data protection.
2.4 Agent Engine Layer: Managing Reasoning, Context, and Tool Use
The agent engine handles model invocation, context organization, tool selection, result validation, and state management.
The significance of multi-model adaptation is not only supporting multiple model entry points, but also handling differences in input length, tool-call formats, output structures, and error behavior. Business processes should not be directly bound to the specific output habits of one model; unified internal data structures should be used to reduce coupling.
Context management should also not be understood simply as “passing all historical messages.” Long-running tasks need to distinguish between short-term conversation, task facts, business evidence, and long-term memory. Only information that has been validated and is truly necessary should enter persistent memory.
To prevent tasks from looping indefinitely, the engine should also provide maximum execution steps, time budgets, call budgets, and termination conditions. When evidence is insufficient, the system should return an uncertain state or request human intervention instead of repeatedly calling tools until it produces a seemingly complete answer.
2.5 Orchestration and Scheduling Layer: Turning Tasks into Recoverable Stateful Processes
The orchestration layer controls execution order, concurrency relationships, conditional branches, and exception handling.
For business tasks with clear boundaries, deterministic workflows are usually easier to verify than fully autonomous planning. For example, reimbursement verification can be fixed as “read the receipt—validate rules—identify anomalies—generate a draft—human confirmation,” with the model called only for exception explanation or material comprehension.
For more open-ended tasks, agents can be allowed to plan dynamically, but the available tools, execution budget, and scope of action must still be limited.
Key questions in production environments include:
- Is retry safe? Repeated execution must not cause duplicate payments or duplicate record creation.
- Are concurrent operations conflicting? Multiple agents must not simultaneously overwrite the state of the same business object.
- Is failure recoverable? After some steps succeed, the system needs to know where to resume.
- Is cancellation effective? After a user cancels a task, subsequent writes should be prevented from continuing.
When multiple external systems are involved, do not assume that a unified transaction exists. Usually, idempotency identifiers, state verification, and compensating actions are needed to handle partial success. Do not claim that the task can be rolled back unconditionally.
2.6 Application Interaction Layer: Helping Users Understand Progress and Responsibility Boundaries
The interaction layer includes dialogue entry points, business pages, approval interfaces, management consoles, and system APIs.
Users need not only the final answer, but also to know what the system is doing, what it has already executed, which steps are waiting for authorization, and where the evidence for its conclusions comes from.
For long-running tasks, it is appropriate to show stage status and a cancellation option. For high-risk operations, display the target object, a parameter summary, and expected impact. The approval interface should provide enough information to help users make a judgment, not merely an Approve button.
3. Six Common Build Paths: Choose by Capability Focus, Not by Name Ranking
Different platforms may cover multiple directions. The following classification is a division of technical routes. It does not represent six specific products, market share, or a capability ranking.
3.1 Process Orchestration
Centered on visual workflows, conditional branches, and human nodes, this route is suitable for approvals, verification, and standardized operational tasks.
Its advantage is that execution paths are clear, making it easier to create test cases and audit records. Its limitation is that process maintenance costs may rise as branches increase. During selection, focus on verifying version management, process recovery, parallel execution, and exception compensation, rather than only observing whether the drag-and-drop interface is convenient.
3.2 Knowledge Services
Centered on document ingestion, retrieval, and evidence citation, this route is suitable for policy Q&A, document analysis, and decision support.
The key is not answer speed, but permission filtering, information freshness, citation accuracy, and no-answer handling. For questions involving specific amounts, inventory, or business states, the system usually also needs to query authoritative business systems; it cannot answer based only on historical documents.
3.3 Development Frameworks
Centered on code extension, component composition, and custom execution logic, this route is suitable for complex business scenarios and teams with stronger engineering capabilities.
This route is flexible, but a development framework does not automatically equal a complete platform. Teams still need to build permission management, task scheduling, log auditing, version release, and operations mechanisms. Evaluate long-term maintenance costs, not just the speed of building the first demonstration.
3.4 Embedded Business Applications
This route embeds agent capabilities into existing business pages and business objects. It is suitable for scenarios that need to make deep use of existing permissions, approvals, and data models.
Its value lies in reducing switching between business contexts, but teams need to verify whether capabilities can be reused across systems. If tasks involve multiple departments and systems, focus on connection methods, identity propagation, and unified auditing to avoid creating new automation silos.
3.5 Collaborative Orchestration
Centered on division of labor among multiple agents, task handoffs, and shared state, this route is suitable for decomposable analysis or processing tasks.
Multiple agents are not inherently superior to a single agent. They may increase communication costs, duplicated context, and error propagation. Collaboration may deliver value only when roles and responsibilities are clear, outputs are verifiable, and coordination costs are acceptable. Build a single-agent baseline first, and then validate the incremental value of collaboration.
3.6 Governance and Control
Centered on unified identity, model access, tool catalogs, auditing, and cost management, this route is suitable for large organizations that already have multiple agent applications.
The focus of this route is unified governance, which may not directly replace business orchestration. During selection, verify whether the platform can cover different runtime environments, whether it supports clear permission boundaries, and whether it can trace the complete chain from user request to tool execution.
4. Designing a Minimum Viable Closed Loop: A Procurement Anomaly Review Example
A reasonably prudent pilot goal is to read procurement and receiving data, identify anomalies, and produce evidence-based handling recommendations without automatically paying or modifying critical business records.
The task can be divided into six steps:
- Define scope: Confirm the time range, organizational scope, and anomaly rules.
- Check permissions: Validate the orders and related materials that the user can access.
- Read data: Use read-only tools to obtain structured records and necessary documents.
- Perform verification: Use deterministic calculations to identify discrepancies in quantity, amount, and timing.
- Explain anomalies: Have the model combine rules and evidence to generate explanations.
- Human confirmation: After reviewing the report, decide whether to proceed with subsequent business processes.
One principle should be maintained here: calculations that can be completed with deterministic rules should not be left to free-form model inference. Models are better suited to interpreting context, summarizing materials, and generating readable explanations.
Task records should include the input scope, rule version, data snapshot identifier, tool execution results, and final status. In this way, if data changes or conclusions are questioned, the team can reconstruct the basis for execution at that time.
5. The Acceptance Framework to Establish Before Launch
5.1 Quality Acceptance
The test set should cover normal tasks, missing data, conflicting evidence, and unauthorized requests. Evaluation should distinguish answer quality from task completion quality: correct text does not mean correct tool execution, and a successful tool return does not mean the business result meets the goal.
Knowledge tasks can focus on citation accuracy and factual consistency, while operational tasks should verify target objects, parameters, permissions, and actual state.
5.2 Security Acceptance
Verify whether malicious documents, abnormal tool returns, forged approval text, and requests for sensitive information can break through controls. Protection testing must cover the complete chain and cannot test only the chat entry point.
High-risk actions need confirmation that the authorized object and the object actually executed are the same, so that approval is granted for one scope while execution affects another scope.
5.3 Stability and Cost Acceptance
Record end-to-end latency, tool failure rate, retry counts, human-takeover rate, and resource consumption per task. Different tasks have different levels of complexity, so throughput of an isolated endpoint is not enough for comparison.
Timeouts, rate limiting, external system failures, and task interruptions all need explicit handling strategies. Cost control should also be implemented through task budgets and anomaly alerts, not only through monthly summary reports.
6. Enterprise Adoption Advice: Close the Loop First, Then Expand
Building an agent operating system should not start with “covering all business processes.” A more effective path is to select a scenario with clear boundaries, controllable risk, and verifiable results, and build a complete loop from request ingestion and permission checks to execution orchestration and result auditing.
During the pilot phase, prioritize read-only capabilities and draft generation. After stabilization, gradually enable low-risk writes. When funds, critical states, or permission changes are involved, retain independent approval and human takeover mechanisms.
The final question worth asking is not how many agents a platform claims to support, but whether it can turn agent activity into explainable, verifiable, and recoverable business processes. The six-layer architecture provides a lens for breaking down capabilities; the six routes help determine the focus of building; and continuous evaluation and governance are the key to moving from demonstration to production.
