Blueprints · Architecture
Reference architecture
Nine layers make an agent-operated enterprise. The model is one layer. The harness, not the model, sets the autonomy ceiling.
The layered architecture
Click any component to see what it does, when to use it, its model family, its controls and its main failure mode. Pick a pattern to watch a request flow through it.
Model chooser
Pick the model family for the task
Use the simplest engine that works: rules before models, workflows before agents. Describe the task to see which families fit, which evals to run and which controls become mandatory.
Model families compared
| Model family | Good at | Weak at | Evals you need | Typical ceiling |
|---|---|---|---|---|
| Frontier large language models (GPT-class) | Language, drafting, explanation, flexible reasoning | Arithmetic, exact recall, hard limits | Task accuracy, groundedness, injection, refusal | L3 in a strong harness |
| Small and open models | Narrow classification and extraction at low cost | Broad or novel tasks | Accuracy per class, robustness to new inputs | L3 to L4 for narrow tasks |
| Reasoning models | Multi-step plans and root cause | Latency and cost | Plan correctness, step validity, loop rate | L2 to L3 |
| Multimodal and vision | Documents, images, inspection | Low-quality scans, rare layouts | Field accuracy, layout coverage | L3 with schema checks |
| Speech (speech-to-text, text-to-speech) | Voice in and out | Noise, accents, numbers | Word error rate, read-back accuracy | L3 with read-back |
| Embeddings and retrieval (RAG) | Grounded answers from documents | Stale or missing documents | Retrieval recall, citation accuracy, access leaks | L3 with citations |
| Knowledge graphs and graph machine learning | Entities, relationships, explainable links | Unstructured judgment | Entity match precision, link coverage | L3 for checks |
| Classical ML and forecasting | Numbers, time series, scores | Language, regime change | Error by segment, calibration, drift | L3 to L4 with drift monitoring |
| Optimization solvers | Best plan under constraints | Unclear goals | Constraint satisfaction, cost gap, scenario tests | L3 to L4 for plans |
| Reinforcement learning (incl. human feedback, bandits) | Sequential decisions with feedback | Safe exploration, reward design | Simulation return, unsafe-action rate, shadow agreement | L2 to L3 after simulation |
| Rules engines and RPA | Exact, explainable, repeatable logic | Ambiguity and change | Rule coverage, regression tests | L4 for deterministic steps |
| Simulation and digital twins | Safe testing of policies and plans | Gap to reality | Sim-to-real agreement | Gates promotion; does not act |
| Physical AI (robot foundation models, vision-language-action policies) | Perception and motion in mapped cells | Open, crowded spaces | Task success, safety stops, near misses | Inside a safety envelope |
Eight patterns
Architecture variations
- Assistant (L1). A person asks, a GPT-class model drafts, the person acts. Chat → Model gateway → Embeddings and retrieval (RAG) → Frontier large language models (GPT-class) → Decision trace → Accountable owner → Systems of record
- Single agent with tools (L2 to L3). One agent plans, calls governed tools and proposes; rules commit. Email → Context and memory → Finance agents → Frontier large language models (GPT-class) → Tool gateway → Policy and limits → Verification and approval → API gateway → Decision trace
- Supervisor and specialists (L3). A supervisor agent splits the goal; specialists work under cross-agent contracts. Web → Planner and supervisor agent → Cross-agent contracts → Supply chain agents → Finance agents → Verification and approval → Workflow engine → Approval inbox and decision cards → Decision trace store
- Event-driven IoT loop (L2 to L3). Sensor anomaly to work order, with a technician approving. IoT and edge sensors → IoT time series → Data quality gates → Classical ML and forecasting → Event bus → Maintenance agents → Policy and limits → Approval inbox and decision cards → API gateway
- Voice front door (L3). Speech in, identity check, agent, speech out, and a warm handoff. Voice agents → Speech (speech-to-text, text-to-speech) → Identity and delegation → Service agents → Embeddings and retrieval (RAG) → Policy and limits → Speech (speech-to-text, text-to-speech) → Escalation
- Physical AI cell (L3 in envelope). A robot policy trained with reinforcement learning in a digital twin, deployed inside a safety envelope. Simulation and digital twins → Reinforcement learning (incl. human feedback, bandits) → Offline evals → Evaluation and kill switch → Physical AI (robot foundation models, vision-language-action policies) → Machine control interfaces → Robots and machines → Kill switch
- Optimizer and LLM (L3). A solver decides the plan; a GPT-class model explains it and handles exceptions. Event streams → Classical ML and forecasting → Optimization solvers → Frontier large language models (GPT-class) → Policy and limits → Approval inbox and decision cards → API gateway
- Graph-grounded agent (L2 to L3). A knowledge graph resolves entities and links before the agent acts. Email → Finance agents → Knowledge graphs and graph machine learning → Knowledge graph → Reasoning models → Policy and limits → Escalation → Decision trace
In words
The layers and their components
Channels and signals
- Web. Forms and portals start requests. Use for: Structured requests with known fields. Not for: Free text that needs a conversation. PCS-01 PRV-04
- Chat. People ask in natural language. Use for: Questions, status and simple changes. Not for: Decisions that need a signature. PRV-04 PCS-01 PCS-05
- Email. Customers and suppliers send requests and documents. Use for: High-volume inbound requests. Not for: Instructions to the agent; email is data. PCS-01 PRV-01
- Voice agents. Callers speak with an agent that listens and answers. Use for: Common requests with clear policy. Not for: Distressed callers or disputes; hand off fast. PRV-04 IAM-05 HO-03
- Mobile. Field staff and customers use phone apps. Use for: Approvals on the move and field capture. Not for: Long reviews of complex evidence. HO-01 IAM-02
- IoT and edge sensors. Sensors stream readings from assets and sites. Use for: Condition monitoring and early warning. Not for: Direct control of machines. OT-01 OT-02 OT-04
- Robots and machines. Machines act in the physical world. Use for: Repetitive tasks in mapped spaces. Not for: Unmapped spaces shared with people. PHY-01 PHY-02 PHY-03
Human command
- Charter. Leaders state intent, limits and the do-not-automate list. Use for: Before any agent goes live. Not for: As a one-time document; review it. TAL-05 HO-02
- Approval inbox and decision cards. People decide on cards with evidence, rule and options. Use for: L2 steps and over-limit cases. Not for: Low-value, reversible items; let them run. HO-01 HO-05 SOD-01
- Escalation. Hard cases reach the right person with full context. Use for: Low confidence, disputes and outages. Not for: As the default path for all work. HO-03 TAL-02
- Kill switch. Owners stop an agent, a scope or the fleet. Use for: Always. Test it every quarter. Not for: Never skip the drill. RES-01 RES-04 PHY-03
- Accountable owner. Each agent has one named person who answers for it. Use for: Every agent, every version. Not for: Shared or committee ownership. HO-02 IAM-02
Orchestration
- Planner and supervisor agent. Splits a goal into tasks and assigns them. Use for: Multi-step goals across domains. Not for: Simple flows; a workflow engine is safer. RES-03 CST-01 TAL-03
- Workflow engine. Runs fixed steps in a fixed order. Use for: Known processes with clear rules. Not for: Open-ended work. TAL-02 TRC-01
- Event bus. Moves events between systems and agents in real time. Use for: Signals that need fast reaction. Not for: Batch data with no urgency. DQ-02 TRC-02
- Cross-agent contracts. Define who decides, what evidence returns and what happens on failure. Use for: Any agent-to-agent handoff. Not for: Implicit handoffs by shared memory. TAL-03 HO-02
- Queues. Hold work, set priority and absorb peaks. Use for: Volume spikes and retries. Not for: Hiding work that nobody owns. TAL-04 RES-03
Agents
- Finance agents. Disputes, invoice exceptions, reconciliations, close. Use for: High-volume, rule-rich work. Not for: Payment release and bank changes. TAL-01 TAL-05 DQ-04
- Supply chain agents. Planning, purchasing and supplier follow-up. Use for: Frequent, bounded decisions. Not for: Large commitments to third parties. TAL-01 CST-02
- Service agents. Answer customers and change orders. Use for: Common requests with clear policy. Not for: Complaints that need empathy and judgment. HO-03 PCS-05
- HR agents. Onboarding tasks, policy answers, scheduling. Use for: Admin work around people. Not for: Decisions about hiring, pay or dismissal. TAL-05 PRV-01 HO-01
- Maintenance agents. Turn signals into work orders and plans. Use for: Condition-based maintenance. Not for: Direct machine control. OT-03 HO-01 DQ-03
Intelligence: model portfolio
- Frontier large language models (GPT-class). Read, write and reason over language. Use for: Unstructured text, drafting, explanation. Not for: Arithmetic, postings and hard limits. PCS-01 PCS-02 MR-04
- Small and open models. Cheaper, faster language models for narrow tasks. Use for: Classification, extraction, routing, edge. Not for: Broad open-ended reasoning. MR-01 TPS-01
- Reasoning models. Plan and check multi-step problems. Use for: Planning, root cause, complex exceptions. Not for: Low-latency or low-cost paths. RES-03 CST-01 MR-04
- Multimodal and vision. Read documents, images and video. Use for: Invoices, forms, inspections. Not for: Safety decisions without other checks. PCS-02 DQ-01
- Speech (speech-to-text, text-to-speech). Turn voice into text and text into voice. Use for: Voice channels and hands-free work. Not for: Noisy settings without confirmation. PRV-04 PRV-02
- Embeddings and retrieval (RAG). Find the right documents and ground answers in them. Use for: Policy answers and evidence packs. Not for: Facts that live in systems of record; query them. PCS-04 MR-04 DQ-02
- Knowledge graphs and graph machine learning. Resolve entities and relationships. Use for: Suppliers, fraud rings, asset hierarchies. Not for: Simple lookups. DQ-03 MR-04
- Classical ML and forecasting. Predict numbers, classes and time series. Use for: Demand, risk scores, anomalies. Not for: Language tasks. MR-01 MON-02
- Optimization solvers. Find the best plan under constraints. Use for: Scheduling, routing, supply plans. Not for: Fuzzy goals that nobody can state. MR-01 TAL-01
- Reinforcement learning (incl. human feedback, bandits). Learn actions from rewards over many trials. Use for: Sequential decisions with fast feedback. Not for: Live trials where errors are costly. MR-05 PHY-04 MON-03
- Rules engines and RPA. Apply fixed logic and repeat screen tasks. Use for: Postings, limits, stable legacy screens. Not for: Judgment or changing screens. TAL-02 SOD-02
- Simulation and digital twins. Model a plant, warehouse or network in software. Use for: Training and testing policies safely. Not for: As proof without field validation. MR-05
- Physical AI (robot foundation models, vision-language-action policies). Perceive and act with robots. Use for: Picking, inspection, handling in mapped cells. Not for: Open spaces with people and no safety envelope. PHY-01 PHY-04 OT-03
Harness: control plane
- Identity and delegation. One identity per agent, acting for an accountable person. Use for: Every agent call. Not for: Shared service accounts. IAM-01 IAM-02 IAM-05 OT-01
- Registry and lifecycle. Only registered, active agent versions run. Use for: Every release. Not for: Shadow agents outside the registry. IAM-04 MR-03 HO-02 TRC-04
- Policy and limits. Thresholds, segregation of duties and blackout windows, outside the model. Use for: Every action with value at risk. Not for: Limits in prompts. SOD-01 TAL-01 TAL-05 TAL-07
- Tool gateway. Scopes, rate limits, read and write separation. Use for: Every tool call. Not for: Direct database writes by agents. IAM-03 TAL-03 TAL-04 TAL-06
- Model gateway. Routing, fallback, masking and quotas. Use for: Every model call. Not for: Direct calls to providers. PRV-02 PCS-03 PCS-05 RES-02
- Context and memory. What may enter context and what memory may keep. Use for: Every prompt and memory write. Not for: Unfiltered documents in context. DQ-02 DQ-03 PRV-01 PCS-01
- Verification and approval. Schema checks, a checker and approval cards. Use for: Before every commit. Not for: Self-checking by the same agent. SOD-03 DQ-01 PRV-04 MR-04
- Operating envelope and cost. Deadlines, call budgets, retries and loop guards. Use for: Every run. Not for: Unlimited retries. RES-03 CST-01 CST-02
- Decision trace. What was seen, decided and done. Use for: Every decision. Not for: Logs that miss the evidence. DQ-04 PRV-03 MON-04 TRC-01
- Evaluation and kill switch. Test sets before release; stop an agent, a scope or the fleet. Use for: Every release and every quarter. Not for: Release without evals. SOD-02 MR-01 MR-02 MR-05
Tools and integration
- API gateway. Exposes released interfaces of core systems. Use for: Every write to a system of record. Not for: Screen scraping where an interface exists. IAM-03 TAL-06
- Tool contracts (MCP-style). Typed, scoped descriptions of what a tool does. Use for: Every tool an agent may call. Not for: Generic tools with broad scopes. TAL-03 IAM-03
- RPA bots. Repeat screen steps on legacy systems. Use for: Stable screens with no interface. Not for: Changing screens or judgment. SOD-02 TAL-06
- Machine control interfaces. Request setpoints and tasks behind safety controllers and interlocks. Use for: Plant and robot tasks. Not for: Bypassing the control system. OT-02 OT-03 PHY-01
Data and context
- Systems of record. Ledgers, orders, assets, people. Use for: The source of truth for facts. Not for: As a scratchpad for agents. DQ-02 TAL-06
- Data products. Curated, owned datasets with contracts. Use for: Planning, analytics and features. Not for: Ownerless copies. DQ-01 DQ-02
- Vector store. Stores embeddings for retrieval. Use for: Policy and document search. Not for: Facts that change daily. PCS-04
- Knowledge graph. Stores entities and relationships. Use for: Master data and fraud checks. Not for: Transaction data. DQ-03
- Feature store. Serves consistent features to models. Use for: Classical ML in production. Not for: One-off analysis. MON-02 DQ-02
- Event streams. Ordered streams of business events. Use for: Real-time agents. Not for: Data that needs heavy cleaning first. DQ-01
- IoT time series. Sensor readings over time. Use for: Condition monitoring and twins. Not for: Without plausibility checks. OT-04
- Data quality gates. Check freshness, completeness and validity. Use for: Before any agent reads. Not for: After the decision. DQ-01
Assurance
- Offline evals. Test sets run before release. Use for: Every release and model change. Not for: Only once at launch. MR-01 TPS-03
- Online evals. Score live outputs and samples. Use for: Every production step. Not for: Instead of offline evals. MON-01 HO-04
- Red-teaming. Attack the system on purpose. Use for: Before release and after big changes. Not for: As a one-time event. PCS-01 PCS-03
- Drift and quality monitoring. Detect shifts in data and outputs. Use for: All models in production. Not for: Without an owner to act. MON-02 MON-03
- Decision trace store. Keeps traces append-only. Use for: Every decision. Not for: Editable logs. TRC-02 PRV-03
- Audit. Independent review of controls and outcomes. Use for: Every promotion to L3 and above. Not for: Only after an incident. TRC-03 HO-04
Ceiling hints, levels and figures on this page are illustrative. Each company sets its own with internal audit.