At AVAP, we build AI Systems for organizations that handle regulated data. This post explains what goes wrong when that data reaches a hosted AI platform, and the architecture that works instead.
The real question is:
Where is my data, who can process it, where does inference run, and can I prove what happened to every piece of data?
An AI platform may offer certifications, data processing agreements, and security controls. But that does not automatically mean that every data flow in a specific application meets an organization's regulatory requirements.
For teams operating in regulated environments, the challenge is not simply protecting data. It is being able to control and demonstrate where data is, how it is processed, and what happens to it while an AI System is running.
The First Problem: Data Residency Is Not Model Residency
One of the most easily misunderstood concepts in AI architecture is the difference between data residency and model residency.
Data being stored in a particular country or region does not mean inference is running there.
A system may store data in one region and then send it to an AI inference service operating in another jurisdiction. For example:
Data → Regional storage → AI API → Model hosted in another region
Knowing where data is stored is therefore not enough. A compliance team needs to know:
- Where does inference run?
- What data is sent to the model?
- Where is that data processed?
- Which providers are involved?
- What happens to the data after inference?
Data residency and model residency are different problems. A regulated AI architecture needs to control both.
Under the GDPR, transfers of personal data to third countries are subject to specific requirements under Chapter V, including Article 44.
GDPR Article 44 — General principle for transfers
The Second Problem: Logs Can Become Another Copy of Sensitive Data
Organizations need logging to monitor systems, detect errors, and maintain traceability.
But in AI systems, logs can contain much more than technical metadata. Depending on the architecture and configuration, they may include:
- Prompts
- Model responses
- Documents used as context
- Identifiers
- Financial or medical information
- Personal data
- Content used during a tool call
This creates another question: what happens to sensitive data after inference is complete?
If a prompt contains personal or other regulated information and that prompt is retained in an external platform, the retained log becomes another location where that information is processed and potentially accessed. Its retention, access, security, and deletion therefore need to be considered as part of the organization's data-governance requirements.
The problem does not disappear because the model itself is secure. The data may simply be exposed in another layer of the system.
The Third Problem: Every Subprocessor Adds Another Relationship to Govern
A hosted AI platform rarely consists of a single provider. The chain may look something like:
Company → AI platform → Model provider → Cloud infrastructure → Logging → Storage → Other subprocessors
Every component introduces new questions:
- Where is it located?
- What data does it process?
- Can it access the content?
- What controls does it apply?
- What does it retain, and for how long?
- Can it introduce additional subprocessors?
- How is the relationship documented and audited?
Under GDPR Article 28, a processor generally cannot engage another processor without the controller's prior specific or general written authorization, and the same data-protection obligations must be imposed on the subsequent processor.
This does not mean cloud is incompatible with regulated environments. It means that the governance surface grows with every external dependency involved in processing the data.
For compliance teams, understanding the complete architecture can matter just as much as understanding the primary provider.
The Fourth Problem: Knowing What Happened Is Not the Same as Being Able to Prove It
Traceability becomes especially important when an organization needs to explain how a particular inference was produced. For example:
- What data did the system use?
- Which model performed the inference?
- Where did it run?
- Which version was active?
- What context did it receive?
- Which tools did the agent use?
- What result did it produce?
- What happened to the data afterward?
In distributed architectures, answering these questions may require reconstructing information from multiple services.
For a regulated environment, traceability should not be something reconstructed after the fact. It should be part of the system's architecture.
The Solution: Put Intelligence Where the Data and Knowledge Are
When regulated data cannot leave an organization's controlled environment, the answer does not have to be giving up on AI.
The answer can be to change where the AI System runs and where the intelligence and knowledge it needs are located.
This is where AVAP takes a different approach.
AVAP provides the runtime on which AI Systems are built and executed. Brunix provides the intelligence needed to work with those systems, together with an architecture for distributed knowledge.
Instead of assuming that intelligence must always reside in a remote service to which data must be sent, this architecture allows intelligence, context, and knowledge to be distributed across the environments where they need to operate.
That can include:
- A managed cloud service
- A dedicated customer node in the cloud
- A node deployed directly inside the organization's environment
The result is more than another on-prem deployment model.
It is an architecture for distributed intelligence.
Brunix: Intelligence to Operate and Evolve the System
An AI System needs more than a runtime. It needs intelligence capable of understanding the system itself: its logic, processes, context, tools, data, and operational environment.
Brunix provides that intelligence layer.
Its architecture combines AI models, agents, and distributed knowledge to work with both AVAP capabilities and the specific context and knowledge of each AI System and organization.
This allows Brunix to participate throughout the system lifecycle, from design and development to deployment, observability, operations, governance, and evolution.
One of its core capabilities is turning functional specifications into executable systems.
Based on business requirements, Brunix can use AVAP capabilities to generate the elements required by an AI System, including business logic, APIs, MCP tools, and AI agents, and bring them into execution.
AI is no longer limited to generating code or answering questions. It becomes part of the system lifecycle itself.
And in regulated environments, that intelligence does not have to be centralized.
Distributed Knowledge: Intelligence Can Go Where the Knowledge Is
Enterprise knowledge is distributed.
It lives in technology platforms, business systems, processes, private information, operational data, and organization-specific expertise.
For reasons of security, privacy, regulation, and data sovereignty, that knowledge cannot, and does not necessarily need to, be concentrated in a single environment.
So the question is no longer only: Where does the model run?
It is also: Where should intelligence operate, and where should the knowledge it needs remain?
Brunix is built around a simple principle: context and knowledge can remain close to the systems and data they belong to, while intelligence accesses them according to the permissions, policies, and governance mechanisms defined by the organization.
The goal is not to move all of an organization's knowledge into AI. It is to bring the right intelligence to the right knowledge, under the required level of control.
Three Ways to Distribute Intelligence
AVAP offers three deployment options within the same architecture. Brunix, the AI Software Operator inside AVAP, works across all three.
Intelligence goes where it needs to operate; regulated data stays where it is governed.
Brunix Cloud
A managed intelligence service for organizations that can operate their AI Systems and knowledge in a managed cloud environment.
Brunix Logic
A dedicated customer node deployed in the cloud. The organization maintains its own identity, context, and knowledge within a dedicated environment while taking advantage of cloud infrastructure and connectivity.
Brunix Edge
A node deployed directly inside the customer's environment. Data, knowledge, context, and inference can remain under the organization's control, including cases where sensitive or regulated information cannot be sent to external AI services.
These are not separate products for separate problems.
They are three ways of distributing intelligence within the same architecture.
It's Not About Choosing Between Cloud and On-Prem
Not every workload has the same requirements.
Some data can be processed in the cloud. Certain knowledge may need to remain in a dedicated customer environment. Other workloads may require inference to run directly where data is generated or stored.
An AI System may therefore need more than one execution environment.
With AVAP and Brunix, the architecture can follow the data:
- Cloud: for workloads and knowledge that can be processed in a managed cloud environment.
- Customer Node: for organizations that need dedicated identity, context, and knowledge while maintaining cloud infrastructure.
- Edge / On-Prem: for regulated or sensitive workloads where data, knowledge, and inference need to remain within the organization's infrastructure.
The architectural question is no longer simply cloud vs. on-prem. It becomes:
Where should each part of the AI System run, and where should the intelligence supporting it operate?
How This Architecture Addresses Key Compliance Gaps
The difference becomes clearer when we follow the data through the system.
Data Residency and Model Execution
Consider the flow from the first problem.
Traditional hosted model:
Data → Regional Storage → AI API → Model hosted in another region
The data may be stored in the required region, while inference happens somewhere else.
With an AVAP node deployed inside the organization's environment:
Data → AVAP Node → Inference in the same environment
The AI System, its logic, and the intelligence supporting it can operate where the data is governed. The data does not need to leave the organization's controlled environment simply to execute the AI workload.
This allows architecture to be designed around the organization's residency, sovereignty, and regulatory requirements rather than relying solely on the location declared by a third-party AI service.
Prompts and Inference
When intelligence and inference operate within an environment controlled by the organization, prompts, context, outputs, and inference data can be handled according to the policies governing that environment.
Logging, retention, access, and storage can follow the same security and governance controls applied to the rest of the organization's data.
Subprocessors and External Dependencies
A distributed architecture can reduce the number of external services that require direct access to sensitive data.
Components that require external connectivity can be separated from those that need to remain isolated. This does not eliminate the need to govern third parties, but it provides greater control over which components can access which data, and from where.
Data Lineage and Traceability
Traceability can be designed into the AI System rather than reconstructed across multiple external services after an inference has occurred.
The goal is to establish a clear relationship between:
Data → Context → Knowledge → Model → Inference → Tool call → Result
This allows an organization to understand not only what the system produced, but also which data and knowledge contributed to that result, which model performed the inference, and which tools were involved.
Governance
Not every workload has the same requirements.
One AI System may be able to operate entirely in the cloud. Another may require a dedicated customer node. A third may require inference to run directly inside the organization's infrastructure.
With AVAP and Brunix, the execution environment can follow the sensitivity and location of the data instead of imposing one execution model across the organization.
The result is not simply another way to deploy an AI application. It is an architecture in which data, intelligence, knowledge, and execution can be placed where they need to be governed.
Questions Compliance Leaders Should Ask Before Buying an AI Platform
Before deciding that an AI platform is appropriate for a regulated environment, it is not enough to ask which certifications the provider has. You need to understand how the system actually works.
- Where is my data stored? In which regions, countries, and systems?
- Where does inference run? Does the model execute in the same jurisdiction as the data?
- What information appears in prompts, outputs, and logs? Can they contain personal, medical, financial, or confidential information?
- Who can access that information? The provider? Its employees? Its subprocessors?
- How many subprocessors are involved? Can I identify them, understand their role, and govern their access?
- Where can the runtime execute? Can it run in a dedicated environment, on-prem, or at the edge?
- Where does the AI's knowledge reside? Can sensitive knowledge remain within the environment where it is generated and governed?
- Can I control where inference runs? Can different workloads use different execution environments based on their data and requirements?
- Can I prove the complete journey of a piece of data? Can I determine which data, context, knowledge, model, and tools participated in a specific inference?
- What happens when the system uses agents and tools? Is the same level of control and traceability maintained when an AI System takes actions across other systems?
- What happens when certain data can never leave my infrastructure? Can the AI System continue to operate without sending that data to external AI services?
- Do I have real control over where and how the AI System runs? Can I choose the infrastructure, location, execution environment, and level of isolation, and maintain that control without depending on provider decisions or changes?
Compliance Starts with Architecture
Certifications, contracts, data processing agreements, and security policies remain important. But they do not replace an architecture that allows an organization to control its data during execution.
For organizations working with regulated information, the question is not simply whether they can use AI. It is how they can use AI while maintaining control over their data, infrastructure, knowledge, and the traceability of every operation.
- AVAP provides the runtime on which AI Systems are built and executed.
- Brunix provides the intelligence needed to operate and evolve them, with distributed knowledge according to each organization's requirements.
That intelligence can operate in the cloud, on a customer node, or directly at the edge, while knowledge remains where it needs to be governed.
Because when data is regulated, compliance should not depend solely on trusting a provider's statement about where the data is. You should be able to demonstrate where it is, where it is processed, which intelligence accessed it, what knowledge was used, and what happened to it.
The future of enterprise AI is not centralized intelligence. It is distributed intelligence, with knowledge remaining where it needs to be governed.
FAQ
How can an organization keep sovereignty and data control when adopting AI infrastructure?
Decide where the runtime, intelligence, knowledge, and models execute, instead of relying on the location a third-party AI service declares. With AVAP, an AI System can run in a managed cloud, on a dedicated customer node, or inside the organization's own environment, so each workload runs where its data requirements allow.
What is the difference between data residency and model residency?
Data residency is where data is stored or processed. Model residency is where inference runs. A system can store data in one region and send it to an AI inference service in another jurisdiction, so a regulated AI architecture needs to control both.
Can an AI System work if regulated data can never leave my infrastructure?
Yes, if the architecture allows it. When intelligence, knowledge, and inference run inside an environment the organization controls, regulated data does not need to go to external AI services. AVAP supports this with a node deployed inside the customer's environment.
Why are logs a compliance concern in AI Systems?
AI logs can contain prompts, model responses, context documents, identifiers, or information passed through tools. If that information is retained by an external service, the log becomes another location where sensitive data is processed and potentially accessed. Organizations therefore need to understand what is logged, where it is stored, who can access it, and how long it is retained.
Why do subprocessors matter when using a hosted AI platform?
A hosted AI platform may involve a model provider, cloud infrastructure, logging, storage, and other subprocessors. Each additional service can introduce another relationship to govern and another place where data may be processed. The important question is not only who provides the AI platform, but who can access the data throughout the complete processing chain.
How can an organization prove what happened during an AI inference?
Traceability should be part of the architecture. The system should be able to establish the relationship between data, context, knowledge, model, inference, tool calls, and results. With that information, an organization can understand not only what the AI System produced, but what contributed to the result and where the processing occurred.
About Raúl
Raúl is the Founder and CEO of AVAP. He is a serial entrepreneur with 30+ years of experience building technology companies across Silicon Valley, Europe, the US, Africa, and Latin America. He previously founded Pademobile and HalCash, and is the driving force behind AVAP, a new technology for building and operating AI Systems.

