On-premises AI
Latest Design Principles for Enterprise AI Systems
Design principles that keep enterprise AI systems governable in production: a clear boundary, access checks at retrieval, explicit versions and bounded failure.
In short
An enterprise AI system is more than a model. It needs a defined boundary covering identity, permission-aware retrieval, generation, policy checks in code, human escalation and observability. Six principles keep it governable: separate policy from generation, enforce access during retrieval, keep versions explicit, bound failure, preserve human intervention and minimise data exposure.
Key takeaways
- Define the service contract first: what the system may do, what it must never do and what still needs a human decision.
- Keep permissions and approvals in application code, not in prompts. OWASP recommends handling privileged functions in code and giving models the least privilege they need.
- Enforce the user's current access rights at retrieval time, so that a revoked permission takes effect immediately, including in caches.
- Version models, prompts, retrieval settings and routing together, and test failure paths as carefully as answers.
- Log what you need to reproduce and audit a decision, and no more personal data than that.
What is the system boundary of an enterprise AI service?
A production AI service includes much more than a model. It needs identity, authorised data access, workflow rules, evaluation and a way to stop or recover when a dependency fails. The boundary is everything between a user’s request and the answer or action that results.
Start every design by writing the service contract: what the system may do, what it must never do, and which decisions remain with a person. That contract, not the model’s instructions, is what the architecture enforces. This guide uses an illustrative internal policy assistant to make those responsibilities concrete.
How do the principles apply to an internal policy assistant?
An employee asks which approval is required for a purchase. The assistant retrieves the current policy, cites the relevant section and explains the next step. It cannot approve a purchase or change the policy. Those restrictions are part of the service contract, not instructions left to the model.
The request passes through six boundaries:
- Identity: authenticate the employee and retrieve their current permissions.
- Retrieval: query only policy sources the employee may access, and keep document version and ownership metadata. Our explainer on retrieval-augmented generation covers how retrieval grounds answers.
- Generation: give the model the question and the permitted evidence, with a defined answer format.
- Policy checks: validate citations and enforce which tools may run. Approval rules stay outside the prompt.
- Human escalation: ask for clarification, or route to the policy owner, when evidence is missing or contradictory.
- Observability: record model and prompt versions, retrieval identifiers, latency, validation results and escalation outcomes, without logging sensitive content unnecessarily.
Which design principles keep an AI system governable?
Six principles, each with a control you can test.
| Principle | Control in the example | How to validate it |
|---|---|---|
| Separate policy from generation | Application code controls tool permissions and approval limits | Ask the model to approve a purchase; no write operation should be possible |
| Enforce access during retrieval | Apply source permissions before passages reach the model | A user without access cannot retrieve or infer a restricted policy |
| Keep versions explicit | Version prompts, retrieval configuration and model selection together | Reproduce a recorded evaluation after a change |
| Bound failure | Set timeouts, retry limits and a fallback response | A retrieval outage produces an “unavailable” response, not an invented policy |
| Preserve intervention | Route conflicting evidence to an accountable policy owner | Conflicting documents trigger escalation |
| Minimise data exposure | Define log fields, retention and access separately from prompts | Logs omit secrets and follow the agreed retention policy |
Separate policy from generation. A model can be steered by what it reads. OWASP’s guidance on prompt injection recommends restricting the model’s privileges to the minimum necessary and handling extended functions in code rather than through the model. Its guidance on excessive agency names three root causes of damaging actions, excessive functionality, excessive permissions and excessive autonomy, and recommends narrow tools, actions executed in the user’s own security context and human approval for high-impact actions.
Enforce access during retrieval. Zero trust, as NIST SP 800-207 describes it, grants no implicit trust based on network location and focuses protection on users, assets and resources. Applied to retrieval, every request is checked against the user’s current entitlements, and the user’s identity travels from the application through the gateway to the retrieval service. Our enterprise RAG work builds this into the index.
Keep versions explicit. Prompts, retrieval settings and routing rules change behaviour as much as code does. Research on technical debt in machine learning systems states the CACE principle, changing anything changes everything, and recommends that configuration is reviewed and checked into a repository like code.
Bound failure. Every dependency can fail. Timeouts, retry limits and an explicit fallback answer keep a failure visible instead of letting the model fill the gap with an invented answer.
Preserve intervention. For systems that are high-risk under the EU AI Act, Article 14 requires a design that lets people oversee the system effectively, including deciding not to use the system in a given situation, disregarding, overriding or reversing its output, and interrupting it through a stop button or similar procedure. For other systems, decide on oversight in proportion to the consequences of an error. Our explainer on human-in-the-loop AI covers the options.
Minimise data exposure. GDPR principles require organisations to process only the personal data necessary for the purpose and to keep it no longer than necessary. Decide which log fields you need for audit and debugging, and set their access and retention separately from the prompts.
What happens when a permission is revoked?
Suppose a manager loses access to a confidential policy, but an embedding index still contains its text. Filtering only at login is not enough. Retrieval must enforce current entitlements, and cached responses must not bypass that boundary.
Test revocation with two accounts and the same question. Revoke access, invalidate the relevant cached results and repeat the request. The restricted text must not reach the prompt, the response or logs readable by unauthorised people. If the system cannot confirm access, it should stop retrieval and offer a safe next step, such as contacting the policy owner.
Two details are easy to miss. First, index permissions are only as current as their synchronisation with the source system, so measure that delay and agree an acceptable maximum. Second, any response or semantic cache must be scoped to the permissions under which an answer was produced, or it will serve one user’s answer to another.
How do you test the design before expanding beyond a pilot?
Test the controls together against the intended workflow and the consequences of failure. No single benchmark establishes production readiness.
- Build an evaluation set containing ordinary, ambiguous, unauthorised and adversarial requests. OWASP recommends adversarial testing that treats the model as an untrusted user.
- Agree acceptable answer quality and response time with the service owner.
- Track correction effort and escalation outcomes alongside model output quality.
- Test unavailable dependencies, retry exhaustion and rollback to the previous configuration.
- Assign ownership for source updates, security incidents and model changes.
- Document what the assistant may do and what still requires a human decision.
- Check whether the use case could be high-risk; the EU AI Act risk checker gives a first indication.
Where do these principles sit in the platform architecture?
Each principle maps to a layer, so that applications do not reimplement it. The AI gateway handles identity, quotas and input and output checks; our post on building an enterprise AI gateway covers that layer. The retrieval service enforces document permissions. The application or agent layer holds business rules, tool permissions and escalation. The observability stack records versions and outcomes for every request.
The on-premises AI reference architecture shows how these layers connect, and our AI implementation service applies them to your first use cases.
Frequently asked questions
What makes AI system design different from general software design?
The model's output is probabilistic, and its behaviour changes when the model, the prompts or the retrieved data change, even if the code does not. Content the model reads can also try to steer it, which OWASP calls prompt injection. Controls therefore cannot depend on the model following instructions: permissions, approvals and limits belong in deterministic code around it.
Which design principle is most commonly ignored?
Separating policy from generation. Teams often put approval rules, permissions and business policy into the prompt and trust the model to follow them. A prompt is guidance, not enforcement. Keep tool permissions, approval limits and data access in application code, so that even a manipulated or mistaken model output cannot trigger an action the user is not allowed to take.
Why enforce permissions at retrieval rather than only at login?
Because access rights change while indexes and caches keep old content. If a user loses access to a document whose text is still in the index, a login check alone will not stop retrieval from passing it to the model. Check the user's current entitlements for every retrieval request, invalidate affected caches and stop retrieval when access cannot be confirmed.
Do all enterprise AI systems need human oversight?
Systems classified as high-risk under the EU AI Act must be designed so that people can oversee them effectively, including deciding not to use the system, disregarding, overriding or reversing its output, and interrupting it. For other systems, oversight is a design choice proportionate to the consequences of errors. Either way, document what the system may decide alone and what a person decides.
What should an enterprise AI system log?
Enough to reproduce and audit a decision: model and prompt versions, retrieval identifiers and document versions, timings, validation results and escalation outcomes. Avoid logging secrets and more personal data than necessary, because GDPR principles require processing only the data needed for the purpose and keeping it no longer than necessary. Set access rules and retention for logs separately from prompts.
Sources
- OWASP GenAI Security Project: LLM01:2025 Prompt Injection · checked 27 October 2026
- OWASP GenAI Security Project: LLM06:2025 Excessive Agency · checked 27 October 2026
- NIST SP 800-207: Zero Trust Architecture · checked 27 October 2026
- Sculley et al.: Hidden Technical Debt in Machine Learning Systems (NeurIPS 2015) · checked 27 October 2026
- AI Act Service Desk: Article 14, human oversight · checked 27 October 2026
- European Commission: principles of the GDPR · checked 27 October 2026