Why Enterprise AI Adoption Needs a Layered Architecture
Enterprises often find that adding an agent runtime with tool-calling capabilities is not enough to move AI projects beyond the demo stage. The real issue is not duplicated capabilities but mixed responsibilities. This article explains the division between the execution kernel, which serves developers, and the application and governance layer, which serves business and delivery teams. It covers the bottlenecks of relying on only one layer, four baseline requirements for enterprise readiness, and a practical layered approach based on change frequency, visual orchestration, observability, and access control. A checklist is also included to help teams decide whether they need the upper layer.
1. The Starting Problem: Why an Execution Kernel Alone Does Not Ship
A common frustration in enterprise AI adoption is this: the team has already introduced an agent execution runtime with tool-calling capabilities, yet business teams still cannot use it, and the project stalls at the demo stage. The root cause is not overlapping capabilities. It is that responsibilities at different levels have been mixed together.
An execution runtime solves how a model can act safely: model invocation, tool execution, sandbox isolation, and execution trace recording and replay. It targets developers and emphasizes control and reproducibility. Enterprise delivery requires a different layer: low-code orchestration, knowledge bases and retrieval augmentation, multi-model integration and switching, application publishing, permission and version management, and log auditing. It targets business and delivery teams and emphasizes operability and governance.
The conclusion comes first: these are not either-or choices. They are layers stacked on top of each other. The execution kernel makes agents capable of doing work; the application and governance layer makes enterprises confident enough to hand agents to business users.
2. Responsibility Breakdown: What Each Layer Solves
2.1 Execution Kernel Layer: A Runtime for Developers
The core goal of this layer is to turn model capabilities into executable actions. Typical capabilities include:
- Model invocation and parameter control (temperature, context window, structured output constraints);
- Tool execution (file read/write, command line, sandbox environments, external API calls);
- Collection and replay of execution traces to help locate failed steps;
- Resource and concurrency control to prevent long-running tasks from overwhelming the system.
It answers: how does AI run, how does it call things, and how do you reproduce failures?
2.2 Application and Governance Layer: An Orchestration Surface for Delivery
The core goal of this layer is to let non-engineering roles participate in building and iterating. Typical capabilities include:
- Visual workflow orchestration that packages models and tools into business nodes;
- Knowledge bases and retrieval-augmented generation, where uploading documents creates searchable corpora;
- Multi-model integration and one-click switching for balancing cost and quality;
- Application publishing in various forms (conversational apps, API services);
- Logs, permissions, versioning, and canary releases to support auditing and rollback.
It answers: how do business users use it, change it, and audit it?
In one sentence: the lower layer handles what can be done; the upper layer handles whether it is safe to use.
3. The Shared Bottleneck of Single-Layer Approaches
3.1 Relying Only on the Execution Kernel: Over-Engineering
Common symptoms: prompts are scattered across terminal commands and scripts, so business teams cannot participate; knowledge updates depend on engineers changing code; finance, operations, and internal control roles are kept out. The system can run, but that does not mean it can be delivered, let alone operated continuously.
3.2 Building a Full Stack from Scratch: Long Delivery Cycles and Knowledge Loss
Building from zero requires covering vector storage, document chunking, retrieval strategies, frontend interaction, authentication, logging, and monitoring. The timeline is measured in months, and post-mortems depend on individual memory, so staff turnover creates knowledge gaps. More importantly, in-house development often consumes effort on generic capabilities rather than the business differentiators that actually matter to the enterprise.
3.3 Four Baseline Requirements Enterprises Actually Need
- Business teams can change knowledge base sources on their own;
- Adjusting a prompt does not require a release process;
- When something fails, you can trace which document was referenced, which tool was called, and how long it took;
- Data and model invocation boundaries are clear, and sensitive data stays within the internal network.
4. How to Implement the Layered Stack
4.1 Define Boundaries First, Then Choose Components
Draw the line by change frequency and responsible role: frequently changing, business-led items go in the application and governance layer; low-frequency, engineering-led items sink into the execution kernel layer. Once boundaries are clear, component selection has a basis.
4.2 Replace Glue Code with Orchestration
Package the model and tool capabilities exposed by the execution kernel into standard nodes, then combine them into business workflows by dragging and dropping. Scenarios such as policy Q&A, document assistants, and policy retrieval can produce a usable prototype in a short time, then gradually connect to real data sources.
An illustrative node orchestration structure (pseudocode, only expressing the layering idea):
workflow:- node: knowledge_retrieval # Governance layer: knowledge base retrievalparams: { top_k: 5, score_threshold: 0.35 }- node: prompt_template # Governance layer: hot-updatable promptparams: { version: "v3" }- node: agent_runtime # Execution layer: tool calling and sandboxtools: [file_reader, sql_query]- node: audit_log # Governance layer: trace and reference loggingparams: { trace: true, retention_days: 180 }
4.3 Design Observability Up Front
Record at least three types of information: the retrieved document fragments and their scores, the inputs and summarized outputs of tool calls, and end-to-end latency and failure reasons. Without these three, later quality tuning is guesswork.
4.4 Land Permissions and Compliance at the Same Time
Define knowledge base visibility and application publishing permissions by role; mask sensitive fields before they enter the retrieval pipeline; route model invocations through an internal gateway for unified auditing and rate limiting.
5. Evaluation Checklist: Do You Really Need the Upper Layer?
- Do business teams request knowledge or script changes every week?
- Do two or more departments share the same retrieval corpus?
- Do you need to explain to auditors the source behind a given answer?
- Do you need to switch between multiple models based on cost or quality?
If any answer is yes, what is missing is not stronger execution capability, but the application and governance layer.
6. Conclusion
The difficulty of enterprise AI adoption is rarely insufficient model capability. It is the missing middle layer that turns capability into an operable product. Separate the execution kernel from application governance, draw boundaries by change frequency, and design observability and permissions up front. Only then can you move from demo-ready to ready for long-term use. In related practices at Baidu AI Cloud, it is also commonly recommended to carry a layered architecture with general capability categories (such as container platforms, object storage, logging services, and monitoring and alerting) to avoid strong coupling with a single component.
