Overview
The article "Trust in Depth: Giving agents more autonomy without losing control" published on the AWS Machine Learning Blog addresses two conflicting demands that business leaders have for agents. While agents are useful with autonomy and creativity, their unpredictable behavior makes it difficult to gain trust. In response, AWS proposes Trust in Depth, which extends the security concept of Defense in Depth into the realm of agent trust.
Concept of Trust in Depth
Trust in Depth is a method of building trust by stacking independent verification layers throughout the agent's lifecycle. Each layer poses specific questions and divides the answers into rules or judgments.
"Trust comes from independent layers that reinforce one another, the same layered discipline the industry has practiced for two decades as Defense in Depth, turned to a new purpose."
This quote illustrates that Trust in Depth applies the existing concept of Defense in Depth to agent governance.
| Scope | 3 |
| Know | 3 |
| Bound | 2 |
| Observe | 2 |
The chart above compares the number of questions to consider at each layer in the same unit (count). It indicates that Scope and Know each require 3 questions, while Bound and Observe require 2 questions.
Role of Automated Reasoning
Rules that can be precisely defined can be validated through automated reasoning. This technology verifies whether the rules hold across all possible paths using mathematical logic or finds counterexamples. AWS has already been operating automated reasoning in production environments for decades.
- Processing over 210 million requests per second in Identity and Access Management (IAM)
- AWS Nitro Hypervisor
- Amazon S3 Block Public Access
- VPC Reachability Analyzer
All four systems utilize automated reasoning to validate security policies.
Scope Stage: Defining Agent Boundaries
The first question that must be asked before an agent operates is, "What is this agent here to do?" In the Scope stage, the following matters are determined:
- The tasks the agent will handle
- The tools, data, and services it can access
- The rules it must follow
- The decision areas that must remain with humans
For example, "Resolve the customer’s issue" presents a goal, but the paths the agent may take must be restricted. At this point, an agentic coding system called Kiro derives structured requirements and detects contradictions, ambiguities, and omissions in advance using automated reasoning. Kiro generates attribute-based tests to validate implementations against a wide range of inputs.
Additionally, Strands is an open-source toolkit that defines and manages the agent's models, instructions, and tools, providing a managed runtime. Regardless of the framework used, the responsibility for defining the agent's tasks and boundaries remains the same.
Know Stage: Agent Identification and Permissions
"What you cannot see, you cannot govern." This statement emphasizes the importance of agent identification. Every agent must have a unique identifier and must be validated with each action. This allows for tracking which agent performed what action in the event of an error.
Using the Policies feature of Amazon Bedrock AgentCore, agents' accessible tools, APIs, and data can be described in plain language, and automated reasoning checks for gaps or contradictions in the policies in advance.
Bound Stage: Compliance with Limitations During Execution
While the agent is operating, it must continuously verify that its actions remain within the pre-defined limits. The Bound layer poses the following questions:
- Is the agent's behavior within the allowed range?
- Can it still perform its tasks?
Automated reasoning guarantees applicable rules through proofs, restricts the scope of inapplicable rules (e.g., "Maintain a friendly tone"), evaluates behavior, and defers ambiguous cases to human judgment.
Observe Stage: Post-Execution Review and Learning
After each execution, the agent must reconstruct what it did and analyze the reasons to improve future actions. The Observe layer addresses the following questions:
- Can the agent's behavior logs be reconstructed?
- Can lessons be learned from that?
This helps to supplement the understanding that passing tests does not guarantee future actions and allows for feedback obtained in real operational environments to be reflected in policies.
Real-World Applications and AWS Provided Tools
AWS is integrating Trust in Depth into actual services. The main offerings include:
- Kiro: Formalizing requirements at the build stage and pre-validating them with automated reasoning
- Strands: Agent definition toolkit + managed runtime
- Amazon Bedrock AgentCore: Policy-based governance + automated reasoning validation
These tools provide independent verification layers throughout the entire lifecycle of agents, reducing the burden of human intervention while ensuring safe autonomy.
So What? — Specific Implications for Developers, Businesses, and Industries
Developers can formalize the scope of agent behavior at the code level and reduce debugging time by eliminating contradictions before deployment using automated reasoning. Businesses can gain confidence that agents can operate without policy violations even in high-risk tasks like financial transactions, thereby reducing operational costs by automating manual approval processes. Across the industry, ensuring agent reliability through layered verification can create a scalable AI automation ecosystem that does not rely on human oversight.