Solution Architect Reference · Canonical Controls
Guardrails & Policy Register
A deduplicated cheat sheet of architectural controls, security guardrails, and governance practices distilled from published reports on The Compute Ledger. Filter by domain or standard, or export a Markdown checklist for your architecture reviews and ADRs.
Least Privilege Access for AI Agents
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.
- Configure IAM roles and service accounts for AI agents with only the minimum necessary permissions to perform their designated tasks.
- Isolate AI agent execution environments using network segmentation and sandboxing technologies (e.g., gVisor) to limit blast radius.
- Enforce strict approval workflows and scope management for OAuth device flows and other authentication mechanisms used by AI agents.
Human Oversight and Accountability for AI
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.
- Define clear decision-making boundaries and logging requirements for AI agents, mandating human review for high-impact actions.
- Establish a human-in-the-loop auditing process for AI-generated outputs, focusing expert attention on flagged areas.
- Develop a framework for assigning liability for AI system outputs and impacts, holding developers accountable.
AI Agent Data Integrity and Confidentiality
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.
- Encrypt sensitive AI agent data at rest and in transit using strong cryptographic algorithms.
- Implement access controls and audit logging for all durable storage containing AI agent data.
- Design recovery logic to handle partial state corruption and ensure idempotent retries of external interactions.
Resource Quotas and Monitoring for AI Agents
Establish clear resource quotas and continuous monitoring for AI agent execution environments to prevent resource exhaustion, manage costs effectively, and identify performance bottlenecks.
- Define and enforce CPU, memory, and network quotas for AI agent containers or virtual machines.
- Implement real-time monitoring and alerting for resource utilization (e.g., GPU memory, processing throughput) within agent environments.
- Regularly review resource consumption metrics to optimize configurations and identify potential inefficiencies.
Code Quality Gates for AI Agent Review
Implement automated code quality gates to enforce minimum CodeHealth scores before AI agent review, prioritizing remediation of identified code smells to optimize agent performance.
- Integrate static analysis tools into CI/CD pipelines to automatically assess code quality and enforce minimum CodeHealth scores.
- Establish clear guidelines for code complexity and maintainability, focusing on metrics like cyclomatic complexity.
- Prioritize and track the remediation of identified code smells and technical debt to improve overall code health.
Multi-Agent System Architectural Review
Implement rigorous architectural review processes for multi-agent system designs, focusing on performance, security, operational trade-offs, and clear inter-agent communication protocols.
- Conduct formal architectural reviews for all multi-agent system designs, involving security, operations, and performance experts.
- Establish clear communication protocols and context management standards (e.g., Model Context Protocol) for inter-agent interactions.
- Integrate robust prompt injection detection and prevention mechanisms within the agent orchestration layer.
Rigor in AI Model Evaluation
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.
- Require preregistration of AI model evaluation plans, including hypotheses, metrics, and statistical thresholds.
- Implement strict version control for AI model code, training data, and evaluation results, making them publicly available where appropriate.
- Document all training methodologies, hyperparameter tuning, and checkpoint selection processes comprehensively.
Third-Party AI Tool and Plugin Validation
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.
- Conduct security assessments and vulnerability scans on all third-party AI tools and plugins before integration.
- Maintain an inventory of all third-party components, ensuring they are regularly patched and configured securely.
- Establish a policy for vetting and approving third-party AI services and platforms, including their security posture and data handling practices.
AI Agent Credential Management
Centralize API key management using secret managers, enforce spend caps, and implement continuous monitoring and scanning for exposed credentials to prevent AI agent compromise.
- Store all API keys and secrets in a centralized secret management solution (e.g., HashiCorp Vault, AWS Secrets Manager).
- Implement automated rotation of AI agent credentials and enforce least privilege for access to secrets.
- Continuously scan code repositories and public sources for exposed credentials and implement alerts for suspicious activity.
Network Segmentation for AI Systems
Segment networks with physical or logical boundaries to contain the impact of potential compromises and enhance detection capabilities for automated intrusion patterns.
- Isolate AI agent execution environments and data stores into dedicated network segments.
- Implement strict firewall rules between segments to control traffic flow.
- Monitor inter-segment traffic for anomalous patterns indicative of automated intrusions.
Cryptographic Agility and PQC Readiness
Prioritize cryptographic agility in system designs to facilitate future algorithm updates and transitions, and maintain current post-quantum cryptography migration roadmaps.
- Design systems to support multiple cryptographic algorithms and allow for easy swapping.
- Develop and maintain a roadmap for migrating to post-quantum cryptography (PQC) standards.
- Monitor advancements in quantum computing and AI cryptanalysis for shifts in practical feasibility.
Data Contracts for AI Agent Reliability
Enforce schema validation against defined data contracts at ingestion and consumption points, implement version control for contracts, and establish automated monitoring for deviations.
- Implement data contract definitions using schema languages (e.g., Avro, Protobuf) and integrate them into data pipelines.
- Utilize version control systems for data contracts to manage changes and ensure backward compatibility.
- Deploy automated monitoring tools to detect and alert on any deviations from data contract guarantees.
Human-in-Loop for LLM-Generated Content
Implement human expert review and amendment processes for all LLM-generated content, such as glossaries, to ensure accuracy, contextual relevance, and maintain currency.
- Design workflows that route LLM-generated drafts to human experts for review, editing, and approval.
- Establish a version control system for LLM-generated content to track changes and facilitate rollbacks.
- Define a schedule for regular review and refresh of LLM-generated content by both agents and human experts.
Customer Tests as Immutable Contracts
Establish 'customer tests' as immutable contracts, stored as data separate from AI-generated code, with dedicated tooling to interpret test data and human review focused on clarity.
- Define customer tests in a declarative format (e.g., YAML, JSON) and store them in a version-controlled data repository.
- Develop custom test runners or DSL parsers to interpret these test data files independently of the AI-generated code.
- Implement human review processes specifically for the clarity, completeness, and correctness of the customer test data.
Content Safety and Sensitive Information Controls
Utilize configurable content safety and sensitive-information controls for user prompts and AI-generated outputs to mitigate data leakage and misuse.
- Integrate content moderation APIs or services to filter user prompts for sensitive information.
- Configure AI models to redact or flag personally identifiable information (PII) in their responses.
- Establish policies for handling and logging flagged content for review and incident response.
Deterministic Steps in AI Workflows
Leverage deterministic steps in multi-agent workflows to ensure consistent and verifiable execution, enhancing auditability and reliability.
- Design agent workflows with explicit, ordered steps and clear input/output contracts.
- Utilize version control for agent code, configurations, and data contracts to ensure reproducibility.
- Implement logging and tracing for each step to provide a verifiable execution path.
Zero Operator Access Architecture
Implement a zero operator access architecture for AI systems, leveraging hardware-based security features and attestation to gate decryption keys.
- Utilize hardware-based security features (e.g., trusted execution environments) for foundational protection.
- Implement instance attestation to ensure data is only processed by verified software and hardware.
- Establish a transparency service to audit and log all approved software images, containers, and models.
Fault Injection for AI Agent Resilience
Implement dedicated fault injection mechanisms within AI agent architectures to simulate tool failures and data corruption, ensuring agents handle errors gracefully.
- Design agents to retry, fall back, or explicitly acknowledge task incompletion upon tool failure.
- Integrate fault injection libraries or services to simulate various failure modes (e.g., network latency, API errors).
- Establish robust observability to distinguish between safe agent failures and silent operational impairments.
Governed Observable Loop Architecture
Implement a Governed, Observable Loop (GOL) architecture for enterprise AI agents, integrating a trust and control framework across all layers.
- Design the agent runtime with explicit phases (e.g., Understand, Plan, Act, Observe) for granular control.
- Integrate an API gateway for identity and policy enforcement at the entry point of agent interactions.
- Ensure the knowledge and state tier provides secure, governed memory for multi-step operations.
Confidential Inference Workloads
Implement strict access controls and data encryption for confidential inference workloads, leveraging specialized hardware for enhanced privacy.
- Utilize confidential computing environments or hardware enclaves for processing sensitive data with AI models.
- Enforce strong access controls and encryption for data at rest and in transit within the confidential inference pipeline.
- Implement attestation mechanisms to verify the integrity of the confidential computing environment.
Distributed ML Pipeline Optimization
Architect distributed ML pipelines using elastic training and suspend-resume capabilities to optimize resource utilization and cost.
- Design ML pipelines to leverage distributed computing frameworks with elastic scaling.
- Implement suspend-resume capabilities for long-running training jobs to optimize resource usage.
- Utilize dynamic resource slicing to ensure efficient allocation and rapid recovery for large-scale AI workloads.
Multi-Model Verification for On-Device AI
Implement a multi-model verification architecture to improve accuracy and reduce erroneous outputs from smaller on-device AI models.
- Deploy multiple smaller models or a combination of local and cloud models for critical tasks.
- Implement a decision-making layer that aggregates and verifies outputs from different models.
- Establish clear thresholds for confidence scores and discrepancy handling between models.
User Controls for On-Device AI
Provide clear user controls for managing model downloads, processing times, and the option to disable features that impact performance or data handling.
- Offer explicit user consent mechanisms for model downloads and updates.
- Provide settings for users to control local processing intensity and data sharing options.
- Clearly communicate the impact of features on performance, battery life, and data privacy.
Human-in-Loop for Agent-Generated Code
Establish clear human-in-the-loop review processes for agent-generated architectural components or critical code, focusing on adherence to established principles and practices.
- Mandate human review and approval for all agent-generated code destined for production.
- Define clear coding standards and architectural principles that agents must adhere to.
- Provide tools for human reviewers to easily inspect, amend, and validate agent outputs.
Sound Identity Foundations for AI Agents
Establish fundamentally sound identity and access management (IAM) capabilities prior to implementing AI agents at scale, integrating NIST's 'Design Tenets' for agentic identity.
- Implement a centralized identity provider for all AI agents and associated services.
- Define granular roles and permissions for AI agents based on the principle of least privilege.
- Integrate NIST's identity design tenets into the architectural planning for agentic AI deployments.
Prioritize Security Over Feature Development
Prioritize security considerations over immediate feature development in agentic AI deployments to mitigate future vulnerabilities and technical debt.
- Integrate security requirements into the initial design phase of all AI projects.
- Conduct threat modeling and security reviews before feature implementation.
- Allocate dedicated resources for security testing and vulnerability remediation throughout the development cycle.
Proactive Vulnerability Management for AI
Prioritize investment in cyber resilience and implement proactive vulnerability management programs to identify and remediate longstanding security weaknesses before AI-powered attacks can exploit them.
- Conduct regular vulnerability assessments and penetration tests on AI systems and their underlying infrastructure.
- Establish a robust patch management process for all software components, libraries, and frameworks used in AI development and deployment.
- Invest in security tools and expertise to continuously monitor for and respond to emerging threats relevant to AI systems.
Secure Dynamic AI Agent Architectures
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.
- Design AI agent systems using a Tri-LLM architecture (Planner, Data, Policy) with a deterministic policy enforcement layer.
- Implement automated regression testing and independent verification plugins for AI-generated code and policy changes.
- Apply prompt engineering techniques to clearly define desired behaviors and analyze prompts for potential reward hacking vectors.
Internet Exposure Reduction for AI
Minimize the attack surface of AI systems by limiting internet-facing assets and implementing compensating controls where exposure is unavoidable.
- Identify and inventory all internet-facing components of AI systems and their dependencies.
- Implement network segmentation and firewalls to restrict inbound and outbound traffic to only essential services.
- Utilize API gateways and reverse proxies to control and monitor external access to AI services.
Phishing-Resistant MFA for AI Systems
Adopt phishing-resistant multifactor authentication (MFA) across all systems interacting with or managing AI agents and eliminate legacy authentication methods.
- Deploy FIDO2-compliant security keys or certificate-based authentication for all AI-related accounts.
- Enforce MFA policies across all administrative interfaces and critical AI service endpoints.
- Audit and remove all legacy authentication protocols and weak MFA implementations.
AI Model Integrity Verification
Implement robust AI model integrity verification mechanisms that account for hardware-specific execution environments and secure the model supply chain.
- Establish a secure supply chain for AI models, including attestation of model weights and training/deployment hardware.
- Develop and deploy runtime monitoring solutions to detect anomalous AI model behavior across diverse hardware platforms.
- Mandate strict configuration management and baseline integrity checks for AI model artifacts and target hardware.