This essay is an attempt to provide a reference “blueprint” for most AI systems that you will encounter. It is not an architecture diagram in the usual sense: my goal here is not to show data flows or process logic, but more to provide a conceptual overview of the important pieces that matter in a robust AI system.
How did this come about?
Back in 2025 I had the chance to work as an independent consultant for an investment firm, helping them develop their AI strategy and architecture. Finance being highly regulated, I had to ensure that the solution I was building was architected in a way that ensured compliance with the regulators’ existing guidelines, as well as make it future-proof given the direction of the industry.
Singapore was already quite advanced in its thinking about AI governance. In May 2024, the Monetary Authority of Singapore (MAS) and a consortium of financial institutions and technology companies published a risk management framework and a technical reference architecture for Generative AI as part of Project MindForge.
I used their guidelines to build the first solution for my client. Most of the principles laid out in that guideline are still relevant today: proper data engineering and lineage, security and access controls, explainability, continuous monitoring and evaluations, and human oversight.
In July 2026, they published an updated guide on Safeguards for Agentic Finance at Runtime (SAFR), which goes further into how AI agents’ actions should be controlled, authorized and recorded at runtime.
The architecture I will present here is consistent with these principles, which are not specific to finance.
It is based on engineering first principles and should be applicable to most industries, with adaptations to your own business and regulatory environment.
By nature, this essay has to be technical and has a fair amount of jargon, which is mostly explained in details in the Field Guide to AI for Non-Tech CEOs. If you are a non-tech executive, I recommend reading that first.
With all these disclaimers out of the way, let’s get started.
Overview of the architecture
I divide the architecture into two groups.
- The first is the execution architecture, named E1 to E5 for convenience. It governs how data enters the system, how AI-powered work is performed and how the results are consumed.
- The second is the governance and assurance architecture, named G1 to G5. It determines what the system can do, what is traced / logged and allows further audit / verification after AI has done its job.
Most of the logic for a particular use case will sit in E3. However, E3 without everything else is not something to be deployed in prod, for it will be unsafe, unauditable and will probably break once hitting real world data / environment.
Here is the overall picture.
The governance layers are cutting across the Execution layers and not executed in a linear fashion. This will become clearer as you read the following sections. For now, all you need to know is that there are 5 major Governance parts in the Governance layers:
A couple of clarifications. I present the architecture as a series of layers, but workflows are actually not linear. Some E3 workflows may make their way back into E2 to fetch additional context / data for example, while some others may run in parallel.
As for the governance layers (Gx), they mostly happen in parallel of all the Execution layer (Ex). See G as a control plane, kind of monitoring E while the AI work is happening.
Now let’s talk about each part.
E1: Identity, policies and permissions
This layer is essentially controlling
- Identity: Are the AI agents doing the work the ones you have approved (i.e., can their identities be verified)?
- Permissions: Are they authorized to perform the intended actions (e.g., reading specific data, updating specific records)?
- Policies: Under what conditions are those actions allowed (e.g., transaction limits, mandatory human approval, restrictions on sharing confidential data, etc.)?
So you basically end up with AI agents you can identify (think of them having an “account”, like an employee), who are only allowed to do certain things, under certain conditions.
This sounds like splitting hair, but it is actually standard enterprise software engineering.
Why all the fuss, you ask? Here are the main reasons
- If something goes wrong, you’d better be able to know what happened and which agents were involved to fix things. One can’t really say “We are not sure what happened, and we don’t know which AI agent caused this problem”
- If policies and permissions are not thought of in advance in a rather strict sense, AI agents have shown that they can find ways to achieve the end goal by taking unauthorized actions. Therefore, establish “rules” ahead of time
- To the extent that AI systems can be hacked / manipulated in ways that ordinary, programmatic software couldn’t (i.e., prompt injection for example), you want to reduce the blast radius by having the strict minimum permissions needed for AI to do its job
The best practice when it comes to E1 is basically as follows.
As for agent identity, major cloud providers have their own solution (Google Cloud Agent Identity, Microsoft Entra Agent ID, and Amazon Bedrock AgentCore Identity).
One thing you definitely NOT want to do is to allow an AI agent to use a human employee account for sake of simplicity (i.e., thinking naively that “they do the same job so just share the account”).
The key idea at this layer is that someone must intentionally define what the AI agents can and can’t do. Do not leave that to engineers, since they may not have the full context of the organization and its security boundaries.
Once that’s defined, engineers can then make sure such policies and permissions are enforced at the right layers of execution. Indeed, E1 is just the beginning.
Enforcing E1 programmatically and throughout all execution layers
So once you have defined the policies and permissions, how do you enforce them?
The answer is that the code must check that agents have the sufficient permissions and meet the said conditions BEFORE they are authorized to perform their intended work. This will mostly be enforced in the next layer: E2.
For example, the code may check that Agent 123456 has the explicit permission to read your customer’s invoice from your CRM but only when it is resolving a complaint for example.
Such checks should never be left to the agent by including them in the prompt (e.g., “before doing XYZ, check that you have permission to access the customer CRM and that you are resolving a complaint”). They must be written in code, outside of the agent.
Policies have to follow the data
It is common to have to transform data before it’s handed to AI agents. For example, a long document may be parsed and stored very differently for agents than what we humans normally use.
The access policies that go with such documents must be preserved despite the transformation, so that you don’t end up with a situation where the original file is rightfully protected from AI agent access, but not its transformed version.
In fact, as we discussed here, a large part of implementing an AI solution will be data engineering, which includes solving the problem above.
Which leads us to E2.
E2: The data engineering layer
Forget about RAG for a moment. That is just one data retrieval technique among many others, contrary to what AI consultants make it to be.
When it comes to preparing data for AI, the key questions are:
- What data will the AI agents need, at which frequency (not everything needs to be in real time), where are they today, and what is their quality (see below for grading quality)
- How will we have a full lineage of the data made available to AI in the event of an audit
- How do we integrate access policies and permissions from layer E1 to layer E2
- Beyond raw data, what is the context AI agents will need to operate effectively?
- Do you need full replayability of certain AI workflows, using the same prompt and inputs that what was historically used? If so, it is your E2 and E3 layers that will make this possible
- Who should be responsible for data freshness and reliability when made available to AI?
Needless to say, a lot of data engineering and plumbing needs to be done before you even get started with the AI execution layer (E3). In a lot of orgs, step #1 is already a challenge.
Here is an overview of what must happen under the hood even before an AI agent receives any data from your systems.
The data pipeline of E2
Here is a stylized overview of what the pipeline looks like:
First, a word on Bronze, Silver and Gold data
This comes from the Medallion Architecture, popularized by Databricks. As the data quality and usefulness progress, it gets a higher “tier”.
Conceptually, you want AI agents to interact with the gold layer. In rare cases, you might choose otherwise, but the whole point of the E2 data pipeline is to abstract the original data and make it available in a usable format to AI, while enforcing policies upstream (such as data cleansing, availability of the data, etc.).
If you’ve read our piece on AI context, you should now be asking yourself if building the actual memory and AI context is part of E2?
The answer is that it is in E3, because it is part of the logic more than being a data store / access issue.
Step 1: Ingestion and extraction
The first step is to extract data from the various source systems and bring it into the data platform. How this happens depends on your business:
- Batch ingestion: Data is extracted at regular intervals (e.g., every night).
- CDC (Change Data Capture): Changes in a source database (new, updated or deleted records) are captured and propagated without having to extract the entire dataset every time.
- Event-driven ingestion: Data is ingested when specific events are triggered (e.g., a new invoice is received or a purchase order is created).
Raw / landing data (Bronze layer)
We will talk about Bronze, Silver and Gold data later in this post, so bear with me.
Here, the main idea is to keep the original data along with relevant metadata (source system, record identifier, ingestion timestamp, source version, etc.) BEFORE it goes through any kind of transformation (normalization, cleansing, etc.).
Here is why: you may need to reconstruct historical datasets, investigate data quality issues or reprocess the same data when your transformation logic changes. As you iterate on your AI solution, you will also figure out that some data processing upstream of AI agents needs changing.
Without this raw landing zone, this will be extremely hard.
Cleansing, harmonization and canonical data (Silver layer)
This is where we clean, validate and standardize data from different sources.
For example: dates and currencies, deduplication of similar data, normalizing of customer codes from different systems, missing values, discarding invalid records, etc.
Another important process is entity resolution: determining whether different records across different systems refer to the same real-world entity. Two suppliers with very similar names may be different legal entities, while two very different names may refer to the same company. Only your internal team will know which one is which.
As for confidential data (PII1, MNPI2, etc.), this is where you will need to decide what to do with it.
Do you need to remove it altogether? Mask it? Keep it there but anonymize it?
The answer will depend on your business, and what AI agents need to know to perform their job well.
Bear in mind that the decisions on what needs to be done on confidential data must be documented separately from your system.
Business data products and access services (Gold layer)
Now that your data is normalized, standardized, clean etc. it is time to make it available in a format that is actually useful for AI. AI agents will use your gold layer data via specific interfaces, including API calls, RAG search, etc. The details don’t matter for now, all you need to know is that data must be made available to AI in a useful way.
ETL or ELT?
You may hear vendors talk about ETL (Extract Transform and Load data) vs ELT (Extract Load and Transform data).
For AI, ELT is often preferable to ETL because it preserves raw data before transformation. That is useful for lineage, audits and future reprocessing.
E3: AI workflow orchestration and agentic execution
E2 has prepared the data and made it accessible under the policies and permissions defined in E1. E3 is where the actual logic of your AI systems resides.
E3 essentially determines:
- How work is broken down into individual tasks, which ones require AI and how they are orchestrated.
- Which models, tools and context are made available to each agent.
- How AI access and permissions are enforced in code
- How the system manages the execution of a workflow from beginning to end, including failures, exceptions and all the traceability that goes with it
Workflow orchestration patterns
I have already covered the distinction between AI and deterministic automation in Do you need AI or merely automation?, and how agents operate through a harness in Part 1 of the Field Guide.
Let’s build upon these concepts.
There are several common orchestration patterns:
- Sequential: Tasks are executed one after another, with the output of one task becoming the input of the next.
- Conditional routing: Depending on an input or intermediate result, the workflow takes a different execution path.
- Parallel execution: Independent tasks are executed simultaneously, and their results are subsequently consolidated.
- Supervisor-worker: A supervisor coordinates specialized agents, delegates tasks and consolidates their outputs. The supervisor itself can be deterministic software or an AI agent.
- Evaluator-optimizer: An agent produces an output, an evaluator assesses it against specific criteria, and the output is revised if necessary, within predefined limits.
In a business context, a large part of the workflow will actually be deterministic (you decide beforehand what happens) and only some will be truly agentic (you let AI determine what happens next within certain boundaries). There is no real reason to let agents decide on what to do from A to Z, for that would be too brittle, dangerous and very costly.
Of course, some parts will need humans to stay in the loop. For more on how to break down work between software, AI agents and humans, see Should your AI org design be a replica of your org chart?.
Context engineering and memory management
I have explained the concept of context engineering here. From an architectural standpoint, however, there are a few additional things to consider.
First, distinguish between the data made available to an agent (E2) and the context actually sent to the model for a particular inference call (E3).
Every time the orchestration layer calls a model, it needs to decide what goes into its context:
- System instructions and the task at hand.
- Relevant company data retrieved from E2.
- Available tools and their definitions.
- Previous interactions and relevant intermediate results.
- Information retrieved from the agent’s memory.
Sending everything every time is neither economical nor necessarily effective. The orchestration layer needs to manage the context window, prioritize relevant information and, for long-running tasks, summarize or compact parts of the execution history.
Which brings us to the concept of memory.
| Memory type | Purpose |
|---|---|
| Context | Information available to the model during the current inference call. |
| Agent memory | Information retained from previous interactions or executions for future use. |
| Execution state | The actual progress of a workflow (completed tasks, pending approvals, executed transactions, etc.). |
Context is assembled dynamically. Agent memory needs to be stored, retrieved, updated and sometimes forgotten. Execute state needs to be maintained reliably by the orchestration software.
For example, an agent may summarize its previous interactions to save space in its context window. But whether a payment was actually processed should never depend on what the agent remembers or how it summarized the conversation. That information belongs in the execution state and the relevant system of record.
Also, if you allow agents to maintain persistent memory, think about what they are allowed to remember, for how long, who can access that memory and what happens when the underlying information is no longer accurate.
Agent memory should not become another source of company data that may suddenly disagree with your golden data layer in E2.
Model gateway and routing
If you are building several AI workflows across your company, you will probably want a centralized mechanism through which they access different AI models. This is commonly called a model gateway.
Among other things, it can handle:
- Authentication and API credentials for different model providers.
- Routing tasks to different models depending on the intelligence required, cost, latency or confidentiality of the data.
- Rate limits, usage quotas and fallback mechanisms.
- Centralized tracking of model usage and configuration.
Most of this is standard software engineering.
Model substitutions can be evaluated systematically (see G3 below), which is important as you swap a model for another for example.
I have covered the considerations behind model selection, open-weight models and inference infrastructure in Part 2 of the Field Guide.
Agent gating and runtime controls
In E1, we defined who the agents are, what they are allowed to do and under what conditions. E3 is one of the places where those policies are enforced during execution.
If you are unfamiliar with how AI models interact with tools, see The anatomy of an AI API call and What’s MCP, and what’s the difference with an API?.
One of the most important things to understand here is the difference between an AI agent requesting an action and the system executing that action.
Between the two, we can introduce what is commonly referred to as a gate.
For example, an agent responsible for processing customer refunds may propose a $500 refund. The orchestration layer should programmatically check:
- Is the agent even authorized to process refunds for this particular customer?
- Is the refund tool available to this agent?
- Does the proposed refund comply with company policies?
- Does the amount require human approval?
Only then should the request be passed to the integration layer (E5), which should also enforce the applicable authorization and transaction controls.
There should also be technical restrictions on what agents can access outside their declared tools, particularly if they can execute code, browse the Internet or interact with a filesystem. This is where sandboxing, network restrictions and credential isolation come into play.
For more on the security implications, see Cybersecurity and AI.
Execution state and lifecycle management
Imagine an AI workflow that takes 30 minutes to complete, performs several operations across your systems and eventually needs to wait for human approval.
What happens if the server crashes halfway through?
You will need the orchestration layer to maintain a persistent execution state so that the workflow can be paused, resumed or recovered without necessarily starting from scratch.
You also need to establish execution boundaries:
- Maximum execution time and number of agent iterations.
- Maximum resource consumption or cost per execution.
- Retry policies, fallback mechanisms and error handling.
- Conditions under which the workflow is considered completed, failed or in need of human intervention.
Again, most of this is standard software engineering. What is somewhat different with AI is that you don’t necessarily know in advance which execution path an agent will take or how many iterations it will need.
Particular care should be taken when resuming workflows that have already performed actions in external systems. We will discuss this further in E5.
Execution history, versioning and replayability
In E2, we discussed the importance of being able to reconstruct historical data. If you need to reconstruct a historical AI workflow, however, that is only part of the equation.
E3 must also preserve the relevant execution history, including:
- The workflow definition, prompts, model identifiers and configuration used at the time.
- The actual inputs and context provided to the model, or immutable references to them.
- Model outputs, tool calls and their results.
- Execution decisions, state transitions and human approvals.
There are three different things you may want to achieve with these records:
- Audit reconstruction: Establish what happened during a historical execution.
- Controlled replay: Re-execute the orchestration logic using recorded model responses and tool results, without repeating real-world actions.
- Live re-execution: Run the workflow again with the original inputs and configuration, calling the models and tools again.
The third one is particularly tricky with AI. Even if you use the same model, prompt and context, you are not guaranteed to obtain the same result. External systems the AI agent may have used to perform its job (say, a third-party API) may also have changed in the meantime.
Therefore, if replayability is important to your business, you need to be clear about which of these three capabilities you actually require.
You should also distinguish the canonical execution history from monitoring logs (G2). The former is designed to preserve the records necessary for reconstruction and recovery, whereas the latter may be sampled, aggregated or retained for shorter periods.
The execution history, combined with the data lineage and versioning capabilities of E2, will provide much of the foundation for auditability (G1), observability (G2) and evaluations (G3).
But before we get into Governance layers, we still need to assemble the final AI outputs. That’s E4.
E4: AI output assembly and validation
AI must produce outputs that are re-assembled in a useful way, based on your business case. E4 will do all the assembly jobs and make it safe for your downstream apps (or users) to use.
Structural validity versus semantic validity
The first step in output assembly is basically to check that the structure and format of the outputs is as intended in the first place. This may help detect results that may have been exfiltrated via prompt injection or other means.
There are 3 broad levels of validation.
- Structural validation checks schemas, types, formats and required fields.
- Deterministic business validation checks invariants and rules that can be expressed programmatically: currency compatibility, arithmetic, valid supplier relationships, allowed transaction states and approval thresholds, for example
- Semantic validation addresses the more ambiguous parts: interpretation of contractual language, consistency between evidence and conclusions, or whether the system has enough information to make a recommendation.
The first two can often be implemented using plain vanilla code. The third may require another AI model / agent or a human reviewer.
Key metadata to preserve for AI outputs
Besides the actual content of the outputs, you need to pass on a few key metadata for audit purposes:
- Source data: What information was used and which AI agent did it come from? This is why AI Agent identity matters
- Calculations: What figures were calculated, how, and which was inferred?
- AI interpretations: For important recommendations, why did an AI agent make such a recommendation?
- Uncertainties: What information was missing, contradictory or could not be verified? You could use labels or numbers (say, 0.7 certainty, 0.9 certainty, etc.)
Whether or not you need to make this metadata easily understandable by humans is up to you (and your audit process). While E3 produces the outputs and its metadata, E4 should flag missing metadata and help double check that all is in order before passing it on.
Assembling the deliverable
In what actual format the final deliverable should be delivered is totally up to your business case. It may be an entire markdown file, or a bunch of data objects to be stored in data stores you determine in advance, a powerpoint file, etc.
The technical assembly is handled by E4 and is mostly standard engineering. In cases where the actual consumer of the data is not a human, you will need a further step: integration of the delivered outputs back into your systems.
E5: Downstream integrations and systems of record
Deciding what makes its way back into which system is codified in E5. How you do this (does E5 push data into your systems, or do you let your systems pull what they need, or do you use batch update, etc.) is entirely up to the business.
However, as with any data syncs, there are a few important things to keep in mind.
Data idempotency
Idempotency basically means that performing the same operation multiple times has the same effect on the system as performing it once.
Without idempotency, you may run into issues like:
- A data update succeeds, but the confirmation is lost due to a network issue. The operation is retried, resulting in duplicated records or amounts being counted twice.
- An AI workflow in E3 failed halfway through and restarted, repeating some operations that were already completed and sent to E4 and E5. Thus, E5 must not blindly trust what it receives, but must also check for idempotency
Regardless of why an operation is repeated (and there may be many), E5 should be designed to prevent unintended duplicate effects.
One common mechanism is the use of idempotency keys, which allow the receiving system to recognize repeated requests for the same logical operation.
Software engineers have been dealing with idempotency since forever, so this should not come as a surprise or as anything new to them.
Should AI records become your new system of records?
I have a hard time imagining a situation where this would be the case.
Your company most probably already uses other systems or records (a CRM, an ERP, etc.) which acts as a provider of source data (to E2) and a consumer of new data (from E5).
Using AI outputs from E4 as your new systems of records would create a “parallel world” from your existing ones, without the benefit of actually having any interface for your employees to use.
Unless you are planning to go fully agentic (e.g., employees don’t actually use the data, but only AI agents do), this would be problematic (anyone who had to manage a CRM used only by a handful of employees, while others put their data in Excel understand this problem).
Even then, you will have to define what is the true, canonical source of truth in such a new data store, which will generally end up looking like the industry best practice (e.g., you may end up re-creating a database which looks like a standard CRM database, for example).
What about a greenfield situation where you don’t have any systems of records in place?
Chances are you actually do have systems of records, they’re just called Excel, Word, some files on some servers etc. So you will end up with exactly the same issues of “parallel worlds”, making your life a nightmare.
We have covered lots of ground at the execution level. In parallel to these, there needs to be an entire governance plane that runs, to help you with the compliance and audit part of AI systems.
Let’s get into the Gx layers.
G1 to G5: Governing evidence, grounding and everything in between
While E1 to E5 are concerned with getting the work done, G1 to G5 are about establishing whether the work can be traced, explained, evaluated and eventually trusted by humans.
Each layer of governance has a specific role:
- G1: Explainability and provenance. This layer must essentially show explicitly what data was used, where it came from and what reasoning did a certain AI agent use to reach a conclusion.
- G2: Observability and monitoring. During E3 execution, this shows which agents and tools were used, what issues happened (if any), how long execution took and importantly, how much each step cost in terms of tokens (see an introduction on token cost here). See this as a log more than an explanation trail (that’s G1)
- G3 : Evaluations. As the name implies, this is about evaluating the quality of AI outputs against known criteria or benchmarks. (see how evals work here).
- G4: Output controls. Independently from E4 which is about AI producing the outputs, G4 controls how such outputs are versioned, how long they are retained and who should have access to them.
- G5: Human oversight. This is mostly controlling what type of human involvement is required between HITL, HOTL and HOOTL.
Let’s break them down one at a time.
G1: Explainability and provenance
When we (humans) are presented with an AI-generated output, the immediate reaction is always “How did it come up with that answer?” and “What inputs did it use to reach such a conclusion?”
G1 should answer both, provided the following happens in that layer:
- Source provenance: which original records or documents supplied the facts to the AI in the first place? This should point back upstream to the execution layers
- Transformation lineage: can you trace back how that information was cleansed, joined, enriched or otherwise transformed before AI usage? This is essentially coming from E2 all the way down to
- AI output provenance: can you link back a certain AI output back to its execution, back to its upstream input data?
- AI explanation trail: is the reasoning explicitly disclosed by each AI agent after it performs its work, and chained properly so that you can derive the entire reasoning as well as the step-by-step reasoning?
- Grounding: using adversarial techniques, do different AIs verify each others’ outputs and check the veracity and accuracy of their claims?
This generally takes quite a lot of engineering to get right and is non trivial. After all, this will define whether or not other employees will trust and use the system or not (without full and transparent explanations, we tend to distrust automated reasoning systems).
G2: Observability, monitoring and traceability
While G1 is concerned with trust, G2 is concerned with the technical aspect of monitoring. It helps you answer the question “What’s going on” and “What went wrong and where?” but not “Why this is going on” (that’s G1).
Existing frameworks such as OpenTelemetry’s GenAI provide a foundation for implementing AI monitoring. They differ from conventional software monitoring, but borrow from the same principle, so this should not be that much of a new territory for competent engineers.
At the operational level, what will generally be traced includes:
- Workflow execution IDs, agent identities and execution trails.
- Execution duration for individual steps.
- Failures, errors and retries.
- Prompt versions, identifiers and hashes.
- Model providers, identifiers and versions (e.g., “Open AI, GPT, gpt-6.2-sol”, for example)
- Token usage and its inferred costs (note that that token cost doesn’t come automatically, at least not as of Nov 2026. It must be calculated)
- Tool requests, authorization decisions and execution outcomes.
- Data retrieval operations.
- Other resource usage (external API calls, computing resources, etc.).
You may ask “Who actually looks at all this?”. To the extent that G2 enables monitoring, debugging and operational analysis, it is a rather technical team who should be in charge of this.
Some companies have a dedicated team responsible for the smooth operation of the AI systems (but not necessarily of building them, that’s the AI engineers’ job). Business teams generally don’t need to look at this.
Your CFO should be VERY interested in the token cost that comes out of this, since s/he will be the one to help figure out AI ROI relative to the business outcomes. For more details on AI ROI, see here.
G3: Evaluations of AI outputs
We already discussed the topic of AI evals at length so we won’t repeat it here.
The only addition I’d like to make is that besides evaluating the AI outputs themselves, it is also important to continuously evaluate the entire system to tweak it and make it more efficient in the long run.
For example, engineers need to periodically evaluate the following:
- Data and context: Are we providing agents with just the right amount of information and context? How does performance vary with a little more (or less) context?
- Model selection: Could some tasks be performed by cheaper or faster models without compromising output quality?
- Workflow design: Are all the agents and processing steps actually necessary? Could some AI-powered tasks be replaced by deterministic code?
- Tool usage: Are agents using the appropriate tools? Are they making unnecessary or repetitive calls?
- Human intervention: Are we escalating too many or too few cases to humans? Can we safely increase the level of autonomy?
- End-to-end outcomes: Is the workflow actually achieving the intended business outcome, regardless of what the AI claims to have accomplished?
By combining the operational metrics from G2 with the quality assessments from G3, engineers can experiment with different configurations and progressively optimize the system without compromising the quality of its work.
Having a strong eval harness is key to this optimization, since any change in any AI system will invariably influence the output, which must be “graded” in a systematic manner. Do not hesitate to revisit our piece on AI evals for more insights on this.
G4: Output controls
While E4 is concerned with assembling and validating AI outputs, G4 is concerned with what happens to these outputs once they have been produced.
A few things need to be decided ahead of time:
- Access and distribution: Who should have access to which AI outputs? Are there restrictions on sharing them internally or externally?
- Versioning: If an AI output is regenerated using new data or following a human correction, do we need to preserve the previous version?
- Retention: How long do we need to keep the outputs and their supporting evidence for business, compliance or audit purposes?
- Output sensitivity: Even if the AI agents were authorized to access all the individual pieces of data, could the resulting output contain confidential information that its intended recipients should not have access to?
As with E1, these are primarily business and compliance decisions that engineers will need to enforce programmatically.
G5: Human oversight
We already covered the topic of Human-In-The-Loop (HITL), HOTL and HOOTL here.
From an architectural standpoint, however, there are a few additional things to consider:
- Approval interfaces: Decide ahead of time what information, evidence and explanations (from G1) should be presented to humans so they can make informed decisions. Conversely, decide what confidential or sensitive information should never make it to humans (this may have been scrubbed and cleansed in E2, but it is important to still make this intentional decision)
- Approval authority: Who is authorized to approve what? This should be documented by the policies you’ve defined in E1.
- Approval validity: If the underlying data or proposed action changes between the time it was approved and the time it is executed, should a new approval be required?
- Exception handling: What happens if nobody responds to an escalation within a certain period of time? Does the workflow remain suspended, expire or get escalated to someone else?
- Intervention mechanisms: How can humans pause or terminate an ongoing workflow, override a decision or restrict an agent’s autonomy? This is especially relevant for HOOTL
- Auditability: Who approved, rejected or modified an AI output, when and for what reasons?
As you can see, G5 is less about engineering and more about policies and procedures. It is where humans will collaborate with AI, enabled by all the layers we talked about previously.
One last thing worth emphasizing is that human oversight itself should be evaluated periodically. You don’t want to end up with humans rubber-stamping AI outputs just because “it’s the process”.
Putting the architecture together
Many of the mechanisms we discussed (identity management, canonical data modeling, transactions trails, retries, audit and observability, etc.) have been around for decades. In that sense, AI didn’t really bring anything new.
The most AI-specific parts of this whole architecture is E3 and the governance layers that go with AI execution. However, implementing E3 alone is not sufficient to create a system that is robust, usable, useful, auditable, etc.
In fact, that explains why many of the so-called AI pilots never make it to production. A good AI coding agent can build a prototype for E3 in a matter of hours (if not minutes), but to produce the whole apparatus surrounding E3 takes serious engineering chops (which most so-called AI consultants do not have).
What I presented here is a reference architecture, in the sense that it is not a “law”. You don’t have to build your system exactly like described.
However, I hope it helped you understand why each part of the architecture exists, how they interact together and what final outcome they produce when orchestrated well.
At the executive level, the important take aways from having the right AI architecture are as follows:
- Expect a breach in your system at some point. When that happens, your architecture layers should have minimized the blast radius, especially at the upstream layers of E1 to E3.
- Think “AI auditability and trustability” and go backwards. One of the objectives of this architecture is to have a system that produces explainable, auditable and trustable AI outputs. The best AI agent execution won’t matter if no one can inspect and trust what it produced, and how it produced its outputs
- Stick to business outcomes and AI ROI, but keep a technical-enough understanding of how things work. AI systems are not black-magic like some consultants make it to be. Moreover, do challenge your engineering teams if you sense that they are totally missing some part of the architecture
- AI models don’t matter that much. Most of the questions about your AI systems should be about data, evals and business outcomes. Spending executive time debating on the merit of gpt-6.2-sol versus claude opus 5.5 is a waste of your time
- AI governance is half engineering, half business decisions. Don’t give vague policies to AI engineers expecting them to build real-world AI governance. Expect a lot of cross-functional back and forth between engineering and compliance, security, business units and whoever decides on different aspect of the Governance layers
- Engineering real-world AI systems is complicated. A demo shows you nothing about what needs to be done for your company. At most, it is a small slice of E3. Therefore, be intentional about what you want to build in-house and what you should rely on external vendors for. See our discussion of Buy vs Build for more insights.
- The right architecture will make you agnostic to AI model providers. It is possible to swap a model (say, GPT 6.2 Sol) for any other (say, Opus 5.5) for any particular workflow and keep most of the other layers the same. Tweaking will be required for sure (especially when you look at the evals results based on different models). But this is only possible if your architecture is built properly in the first place, hence having this reference as a sort of guideline
Other technical references to complement your understand of AI architecture
They cover different aspects of the architecture and complement each other well:
- Anthropic — Building Effective Agents (December 2024). Workflow and agent distinctions, orchestration patterns and complexity trade-offs.
- Anthropic — Effective Harnesses for Long-Running Agents (November 2025). Context management and continuity across execution sessions.
- Anthropic — Demystifying Evals for AI Agents (January 2026). Evaluation environments, trajectories, graders and outcome verification.
- OWASP — Agent Control Standard (September 2026). Runtime controls and inspectability for agentic systems.
- Model Context Protocol — July 2026 Specification. Tool interoperability and protocol-level interfaces.
- OpenTelemetry — Generative AI Semantic Conventions. Instrumentation of AI operations, traces and telemetry.
- OpenLineage — Documentation. Dataset, job and run lineage metadata.
- Apache Iceberg — Documentation. Versioned table snapshots, time travel and data management.
- Databricks — Medallion Lakehouse Architecture. Raw, validated and business-ready data layers.
- Temporal — Workflow Execution. Durable state, workflow history and replay semantics.