AWS Trust in Depth: Balancing Agent Autonomy and Control

AWS introduced the Trust in Depth framework, which gives agents more autonomy while maintaining control. This framework consists of four layers: Scope, Know, Bound, and Observe, and validates rules using automated reasoning. It strengthens agent governance based on production experience of over 2.1 billion requests per second in IAM.

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.

Scope3
Know3
Bound2
Observe2

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.

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:

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:

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:

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:

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.

Verified figures

Our take

AWS's attempt to achieve both agent autonomy and control is significant in that it extends existing security paradigms into AI governance. However, subjective requirements such as maintaining a friendly tone still require human judgment, and how to scale this remains a future challenge. Overall, Trust in Depth is evaluated as a practical framework for hierarchically enhancing the reliability of agent operations.

Open questions

Source

Back to catalog