Data, AI & Integration · Architecture
Agentic AI Platform Architecture and Tool Governance
Defines secure agent runtimes, model and tool mediation, memory, approvals, isolation, observability, evaluation, and emergency controls.
Document class: Data, AI & Integration architecture reference model Normative terms: MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are requirements levels. Applicability: AI systems that plan, maintain state, call tools, or take actions on behalf of users or workloads. Exception process: Deviations require a documented risk assessment, compensating controls, named risk owner, and expiry date.
| Control field | Value |
|---|---|
| Document ID | DAI-16 |
| Owner | Cloud Center of Excellence |
| Review cycle | At least annually and after material platform, provider, data, security, or operating-model changes |
| Evidence | Threat model, tool registry, authorization tests, evaluation results, and operational readiness evidence |
Decision in brief: Keep agent reasoning inside a deterministic control envelope. Authorize tools from authenticated context and policy, not from model text.
Purpose
This standard governs AI systems that plan, maintain state, call tools, or take actions. An agent is an untrusted decision component operating inside a deterministic security envelope; model output never constitutes authorization.
Reference architecture
Trust boundaries
Treat prompts, retrieved content, tool descriptions, model responses, memory, and external API data as untrusted. Separate the model identity from user and tool identities. The tool broker MUST derive authorization from authenticated user/workload context, approved policy, and requested action—not from text produced by the model.
Action classes
| Class | Example | Minimum control |
|---|---|---|
| Read-only | Search approved knowledge | Entitlement filtering, audit |
| Reversible | Create draft ticket | Scoped identity, validation, rate limit |
| Consequential | Send message, alter resource | Explicit confirmation or policy approval |
| High impact | Financial, identity, production, deletion | Human approval, separation of duties, transaction limits |
| Prohibited | Disable controls, reveal secrets | Hard deny outside model context |
Mandatory controls
- Register each agent, owner, purpose, models, tools, data classes, autonomy level, and risk tier.
- Allowlist tools and validate typed inputs and outputs against schemas.
- Use short-lived, per-tool identities with minimal scope and transaction limits.
- Require human approval for irreversible, privileged, financial, safety, or externally binding actions.
- Isolate memory by user, tenant, purpose, environment, and retention policy.
- Defend against prompt injection with content provenance, instruction/data separation, tool policy, and output validation.
- Record decisions, model and prompt version, retrieved sources, tool request, approval, result, and correlation ID without leaking secrets.
- Provide kill switch, queue pause, credential revocation, and safe degraded modes.
Multi-cloud mapping
| Capability | Azure | AWS | GCP | OCI |
|---|---|---|---|---|
| Agent/model platform | Microsoft Foundry/Azure OpenAI | Amazon Bedrock Agents | Vertex AI Agent Builder | OCI Generative AI Agents |
| API mediation | API Management/Functions | API Gateway/Lambda | Apigee/Cloud Run | API Gateway/Functions |
| Identity | Entra/workload identity | IAM roles | IAM/service accounts | IAM/resource principals |
| Secrets | Key Vault | Secrets Manager | Secret Manager | Vault |
| Observability | Azure Monitor/Application Insights | CloudWatch/X-Ray | Cloud Logging/Trace | Logging/APM |
Evaluation and release
Test task success, refusal, tool selection, argument correctness, authorization, injection resistance, data leakage, unsafe action, loops, latency, and cost. Use fixed regression suites plus adversarial and human evaluation. Production promotion requires approved model/prompt/tool versions, threat model, runbook, rollback, limits, and observable canary behavior.
Validation
Attempt cross-user memory access, unauthorized tool calls, malicious retrieved instructions, forged approval, excessive iterations, unavailable model/tool, and replayed actions. Confirm idempotency and compensation. Track unsafe-action blocks, approval rates, tool failure, loop termination, evaluation regression, token/tool cost, and incidents by agent version.
Operational considerations
Platform teams own gateway, tool broker, identities, policy, traces, and evaluation frameworks. Product owners own intended behavior and outcomes. Security owns risk tiers and incident controls. Tool owners retain authority over APIs and may revoke an agent independently.
Tool Registration Contract
Every tool exposed to an agent MUST have a versioned registration record.
tool_id: service-desk.create-draft
owner: service-management
action_class: reversible
input_schema: v2
identity: agent-service-desk-draft
allowed_resources:
- incident-drafts
approval: not-required
limits:
calls_per_run: 3
timeout_seconds: 10
compensation: delete-draft
The record SHOULD define purpose, permitted callers, data classes, network destinations, identity, scopes, schemas, transaction limits, timeout, retry behavior, idempotency, approval, logging, compensation, and kill-switch owner.
Generic shell, SQL, browser, or cloud-administrator tools SHOULD NOT be registered for production agents when a narrow domain API can be provided.
Approval, Idempotency, and Compensation
Approval interfaces MUST display the proposed action, target, material arguments, expected effect, data disclosure, cost or transaction limit, and agent reasoning summary. The approver decision must be bound to the exact action payload; the agent may not change arguments after approval.
Consequential actions SHOULD use an idempotency key derived from the run and action. Where a reversible action is possible, define and test a compensation operation. Compensation is not equivalent to rollback when external parties, notifications, financial settlement, or irreversible deletion are involved.
Memory Governance
Classify memory as session, task, user preference, business record, or learned summary. Each class requires a source, owner, tenant scope, purpose, retention, correction, deletion, and conflict rule.
Agents MUST NOT silently convert transient prompts into durable memory. Users or system policy SHOULD control whether durable memory is created. Sensitive memory should use encrypted stores, fine-grained access, and content minimization.
Test cross-user and cross-tenant isolation, stale-memory effects, contradictory records, prompt injection stored in memory, deletion propagation, and recovery from corrupt memory.
Agent Run Envelope
Each run SHOULD enforce maximum elapsed time, planning iterations, model calls, tool calls, tokens, external cost, and number of consequential actions. Exceeding a limit must terminate safely, preserve evidence, and avoid partially repeated side effects.
Operational boundaries and acceptance criteria
Before adopting this guidance, record the accountable service owner, supported environments, critical dependencies, data classification, and the operational tier. State which decisions belong to the platform team and which remain with the workload team; document any exception with a risk owner and expiry date. This prevents a reference pattern from being treated as a universal fit.
Define observable acceptance checks before rollout. Include a positive path, a denied or invalid request, a dependency failure, and recovery after the failure clears. Capture the configuration or command output that proves each check, along with the software and policy versions used. Make checks repeatable in a representative non-production environment, and ensure they fail closed when required evidence is missing.
For production changes, identify the safe rollback or forward-recovery action, the person authorized to invoke it, and the condition that triggers it. Confirm that monitoring, support ownership, capacity limits, and escalation contacts are in place before declaring the change complete. Review these assumptions after a material platform, provider, or regulatory change.
Data contracts, replay, and privacy boundaries
Make the schema, ownership, classification, retention period, and deletion behavior part of the interface contract. For asynchronous ingestion, define an idempotency key, duplicate handling, late-arriving data policy, and a bounded replay window. A replay must preserve the original event time and source identity while remaining distinguishable from first-pass processing; otherwise metrics, billing, or downstream actions can be counted twice.
Test contract evolution with old and new producers and consumers running concurrently. Validate that lineage and quality signals survive transformations, and that restricted fields do not leak into logs, prompts, embeddings, caches, or test fixtures. Measure freshness and completeness at the point of consumption, not only at ingestion. Keep recovery copies and derived indexes within the same residency and retention rules as the source data.
Related topics
- AI Security, Identity, and Responsible AI
- Production Operations for AI Applications
- Azure OpenAI Platform Architecture
References
- Azure AI workload architecture pattern
- AWS governance of agentic AI
- Google Cloud agentic AI architecture
- OCI Generative AI Agents
Related repos
- andyxuan2010/enterprise-ai-chatbot — provides a secured enterprise AI application foundation that can be extended with governed agent capabilities.
- andyxuan2010/enterprise-ai-doc — demonstrates controlled AI-assisted document processing and downstream tool orchestration.