Solution Architect Reference
Enterprise AI Reference Patterns
Detailed multi-zone architectural blueprints for production AI systems — complete with explicit trust boundaries, control planes, trade-offs, and non-negotiable guardrails.
Governed Multi-Agent Execution Plane
A secure and observable architecture for orchestrating autonomous AI agents, emphasizing identity, policy enforcement, and resilient execution within explicit trust boundaries.
Architecture Walkthrough
- 01An authenticated user or system client sends a request to the API Gateway, which performs initial authentication/authorization and schema validation, then forwards the request with agent identity and context to the Policy & Risk Engine.
- 02The Policy & Risk Engine evaluates the request against defined policies, agent permissions, and risk profiles. If approved, it passes the request to the Agent Orchestrator; otherwise, it denies the request and logs the event.
- 03The Agent Orchestrator initiates the multi-step agent workflow, consulting the Reference Monitor (e.g., a Tri-LLM architecture) for policy-checked actions before interacting with external tools or models.
- 04The Reference Monitor, acting as a deterministic control, ensures that agent actions (e.g., tool calls, data access) adhere to predefined policies, preventing prompt injection or unauthorized operations.
- 05Approved actions are executed within a secure Agent Sandbox (e.g., gVisor-based, Zero Operator Access), which retrieves necessary credentials from the Secrets Manager and interacts with external Tool/API Services or Model Inference endpoints.
- 06Agent results and workflow state updates are returned to the Agent Orchestrator, which then sends the final response back through the API Gateway to the client, while all critical interactions and decisions are logged for audit and transparency.
- 07All interactions, policy decisions, and agent activities are continuously streamed to the Audit & Telemetry service and the Transparency Service for immutable logging, attestation, and real-time monitoring.
When to Use
This pattern is ideal for deploying enterprise-scale AI agents that perform multi-step, goal-oriented work, interact with real systems and sensitive data, and require strong governance, observability, and security. It's particularly suited for regulated industries or critical infrastructure where agent trustworthiness and verifiable outcomes are paramount.
When to Avoid
Avoid this pattern for simple, single-turn AI applications or chatbots that do not interact with external systems or sensitive data, as the overhead of robust governance and sandboxing would be unnecessary. Also, if the performance requirements for agent execution are extremely low-latency and cannot tolerate the overhead of policy checks and sandboxing, simpler architectures might be considered (though with increased risk).
Trade-offs
- Latency:
- High: Policy checks, orchestration, sandboxing, and reference monitoring introduce measurable latency compared to direct model calls.
- Cost:
- High: Requires dedicated infrastructure for orchestration, sandboxing, policy engines, and robust observability, increasing operational costs.
- Complexity:
- High: Involves multiple integrated components, sophisticated policy enforcement, and secure execution environments, demanding significant architectural and operational expertise.
Essential Guardrails & Controls
Open Full Register →Implement robust access controls, network segmentation, and identity-based authentication with the principle of least privilege for all AI agents and their execution environments. Define strict scope management and approval workflows for agent permissions.
Ensure data integrity and confidentiality for all sensitive agent artifacts, session transcripts, recorded execution states, and interaction logs stored in durable storage. Implement robust persistence mechanisms to prevent data loss.
Establish clear resource quotas and continuous monitoring for AI agent execution environments to prevent resource exhaustion, manage costs effectively, and identify performance bottlenecks.
Validate the integrity and security of all third-party AI coding tools, WASM-based plugins, and self-hostable orchestration platforms integrated into development or production environments.
Centralize API key management using secret managers, enforce spend caps, and implement continuous monitoring and scanning for exposed credentials to prevent AI agent compromise.
Foundational building-block patterns (PAT-01–PAT-06) that monthly composite blueprints draw upon.
MCP Tool Gateway Pattern
Centralize authentication, RBAC, tool allowlisting, and audit logging in front of Model Context Protocol (MCP) servers instead of giving AI hosts direct credentials to enterprise systems.
When to Use
Connecting coding agents, copilots, or internal assistants to multiple enterprise APIs, databases, or SaaS tools via MCP.
When to Avoid
Single-user local prototypes with read-only sample data where a gateway adds unnecessary ops overhead.
Trade-offs
- Latency:
- +10–25ms per tool call
- Cost:
- Low (lightweight proxy)
- Complexity:
- Medium
Essential Guardrails & Controls
Open Full Register →- 01Prevent confused-deputy attacks: propagate per-user scoped delegation tokens rather than letting downstream MCP servers hold broad shared service-account credentials.
- 02Pin MCP server versions and enforce an explicit allowlist of approved tools and parameter schemas.
- 03Default all tool scopes to read-only; require step-up auth or human approval for state-changing writes.
Implement robust access controls, network segmentation, and identity-based authentication with the principle of least privilege for all AI agents and their execution environments. Define strict scope management and approval workflows for agent permissions.
Permission-Aware Enterprise RAG
Decide who can see each document or chunk (access control) at retrieval time, and mask sensitive fields (DLP) at ingestion — so nothing unauthorized ever enters the LLM context window.
When to Use
Internal knowledge assistants indexing Confluence, SharePoint, Jira, or customer records with mixed access permissions.
When to Avoid
Public documentation bots where every indexed document is already public.
Trade-offs
- Latency:
- +30–80ms (ACL filter)
- Cost:
- Low–Medium (vector index)
- Complexity:
- Medium–High (ACL sync)
Essential Guardrails & Controls
Open Full Register →- 01Access control: filter by the caller's identity inside the search query itself — never rely on prompt instructions to hide chunks the user shouldn't see.
- 02Data loss prevention: classify and mask sensitive fields (PII, secrets) at ingestion, so even authorized chunks carry only what the use case needs. Post-generation redaction is a backstop, not the control.
- 03Mitigate ACL sync lag with frequent permission refreshes or live authorization checks on top-K hits before prompt assembly.
- 04Validate that every generated claim maps to an authorized retrieved source span and valid citation URL.
Ensure data integrity and confidentiality for all sensitive agent artifacts, session transcripts, recorded execution states, and interaction logs stored in durable storage. Implement robust persistence mechanisms to prevent data loss.
Utilize configurable content safety and sensitive-information controls for user prompts and AI-generated outputs to mitigate data leakage and misuse.
Leverage deterministic steps in multi-agent workflows to ensure consistent and verifiable execution, enhancing auditability and reliability.
Implement a zero operator access architecture for AI systems, leveraging hardware-based security features and attestation to gate decryption keys.
Sandboxed Agent with Reference Monitor
Isolate untrusted external data (including mid-loop tool outputs) from privileged tool execution using a deterministic Reference Monitor and an ephemeral sandbox.
When to Use
Autonomous coding, browsing, or research agents that read untrusted web pages, emails, or external repositories.
When to Avoid
Pure text-only chatbots with zero tool-calling or code-execution capabilities.
Trade-offs
- Latency:
- +200–600ms (sandbox cold start)
- Cost:
- Medium (ephemeral compute)
- Complexity:
- High
Essential Guardrails & Controls
Open Full Register →- 01Treat both initial external content AND mid-loop tool outputs returned to the Planner LLM as untrusted data — never assume input sanitization alone stops indirect prompt injection.
- 02Use a deterministic (non-LLM) Reference Monitor to enforce hard policy rules on every proposed tool call before execution.
- 03Run tool execution in an ephemeral sandbox with zero ambient host secrets and strict egress allowlists.
Establish clear resource quotas and continuous monitoring for AI agent execution environments to prevent resource exhaustion, manage costs effectively, and identify performance bottlenecks.
Centralize API key management using secret managers, enforce spend caps, and implement continuous monitoring and scanning for exposed credentials to prevent AI agent compromise.
Implement a Tri-LLM architecture with a deterministic reference monitor, establish standardized patching and regression checking workflows, and utilize prompt optimization to mitigate reward hacking.
AI Gateway & Multi-Model Routing
Centralize PII tokenization, residency-aware routing, caching, and FinOps inside an internal AI Gateway before payloads ever cross external model egress.
When to Use
Organizations running multiple AI features in production that need centralized cost governance, data residency enforcement, and vendor failover.
When to Avoid
Early experiments with a single low-volume endpoint.
Trade-offs
- Latency:
- +5–15ms (or -80% on cache hit)
- Cost:
- High savings (60–80% reduction)
- Complexity:
- Medium
Essential Guardrails & Controls
Open Full Register →- 01Evaluate data residency and model routing INSIDE the gateway before egress so restricted payloads never leave approved regions or VPC endpoints.
- 02Prefer reversible PII tokenization / pseudonymization (detokenizing on return) over destructive scrubbing when entity resolution matters.
- 03Enforce per-tenant token budgets, rate limits, and centralized telemetry for FinOps and audit.
Utilize configurable content safety and sensitive-information controls for user prompts and AI-generated outputs to mitigate data leakage and misuse.
Implement strict access controls and data encryption for confidential inference workloads, leveraging specialized hardware for enhanced privacy.
Implement a multi-model verification architecture to improve accuracy and reduce erroneous outputs from smaller on-device AI models.
Durable Human-in-the-Loop Workflow
Wrap long-running agentic loops inside a durable workflow engine with explicit risk classification and structured human approval gates for high-impact actions.
When to Use
Multi-step enterprise workflows (incident remediation, infrastructure changes, procurement, publishing) that take minutes or hours and have real side effects.
When to Avoid
Sub-second interactive chat replies where workflow checkpointing adds unnecessary latency.
Trade-offs
- Latency:
- Async / event-driven
- Cost:
- Low (pay only for active steps)
- Complexity:
- Medium
Essential Guardrails & Controls
Open Full Register →- 01Present exact structured action parameters and diffs to the human reviewer — never rely solely on an LLM's narrative summary of what it intends to do.
- 02Attach idempotency keys to every external write so workflow retries never double-execute side effects.
- 03Cap maximum loop iterations and total token spend per workflow instance.
Establish clear human-in-the-loop review processes for agent-generated architectural components or critical code, focusing on adherence to established principles and practices.
Implement robust access controls, network segmentation, and identity-based authentication with the principle of least privilege for all AI agents and their execution environments. Define strict scope management and approval workflows for agent permissions.
Validate the integrity and security of all third-party AI coding tools, WASM-based plugins, and self-hostable orchestration platforms integrated into development or production environments.
Implement human expert review and amendment processes for all LLM-generated content, such as glossaries, to ensure accuracy, contextual relevance, and maintain currency.
Writer + Auditor (Hybrid Verification) Pipeline
Pair a fast generator model with deterministic schema/citation validators and an independent adversarial auditor that verifies outputs against raw source evidence before publication.
When to Use
Automated content synthesis, compliance reporting, customer-facing summaries, or any pipeline where hallucinations carry reputational or regulatory risk.
When to Avoid
Creative brainstorming where strict factual grounding is not required.
Trade-offs
- Latency:
- +3–8s (verification pass)
- Cost:
- +15–30% (bounded thinking)
- Complexity:
- Low–Medium
Essential Guardrails & Controls
Open Full Register →- 01Combine deterministic checks (strict JSON schema, verified URL/citation matching, score bounds) with adversarial LLM rubric auditing — never rely on pure LLM vibes alone.
- 02Enforce separation of duties: the Auditor judges against raw ground-truth sources and never silently publishes its own rewrites.
- 03Cap automated revision retries to 1 pass and route still-flagged drafts to a human review queue.
Establish clear governance policies for AI agent autonomy, ensuring human review processes for critical decisions and architectural changes. Implement mechanisms for AI system liability to hold developers accountable for societal effects.
Mandate preregistered replication studies for critical AI model deployments, implement robust version control for code and data, and establish clear performance baselines with comprehensive documentation.
Implement a multi-model verification architecture to improve accuracy and reduce erroneous outputs from smaller on-device AI models.
Implement robust AI model integrity verification mechanisms that account for hardware-specific execution environments and secure the model supply chain.