

This service is in preview release and is subject to change.

# Limitations of AWS Greenlight for Agents

**Topics**
+ [Policy analysis](#limitations-policy-analysis)
+ [Permissions check](#limitations-permissions-check)
+ [Network check](#limitations-network-check)

## Policy analysis
<a name="limitations-policy-analysis"></a>

AWS Greenlight checks your policies with the Dogwood analyzer. The analyzer reads the policy set, the schema that AWS Greenlight built for your agent’s tools, and its assumptions about how the platform records calls. It answers questions such as the following:
+ Can a call ever be allowed under a condition that you give?
+ Can a policy ever apply?
+ Would removing a policy change any decision?
+ Can a tool be called at all?
+ Is every call of a tool allowed, whatever its inputs?

Each answer is one of the following:
+  **Verified** – The property holds for every sequence of calls that the policies allow.
+  **Verified, assuming** – The property holds as long as a call that returned did what it was supposed to. AWS Greenlight can’t see what that call returned. The answer names the call.
+  **Verified, not replayed** – For a check that something can still happen, the policies allow a way for the agent to make the call, but a replay couldn’t confirm it. The call might still be denied when the policies are enforced.
+  **Holds only for these spellings** – The property holds only for the spellings that a policy tests, such as an exact string or a `like` pattern. The same value written another way isn’t covered. AWS Greenlight doesn’t report this as verified.
+  **Not verified** – The property doesn’t hold. AWS Greenlight shows a trace, a sequence of calls that ends in the call that the property rules out.
+  **Inconclusive** – The check couldn’t be settled either way.

This analysis has the following limitations:
+ Some questions come back **Inconclusive**. The analyzer runs under a time limit, and some policies are beyond what it can reason about. An **Inconclusive** answer is neither a pass nor a failure.
+ A trace might not be possible in practice. The analyzer sees only the policies, the schema, and how the platform records calls. It doesn’t know the following:
  +  **What your agent would send.** The analyzer treats each input as any value of its type. For example, it treats `amount` as any number, even if your agent only ever sends amounts under 100.
  +  **Who your users are.** The analyzer knows only the users, groups, and resources that the schema declares. It doesn’t read your directory or IAM. So it can’t know that a user is a manager unless a policy or a tool call says so.
  +  **What a tool really returns.** A trace can show `verify_identity` returning `verified: true` for a user that it would never verify. The analyzer assumes that any return value of the right type is possible.
  +  **Controls outside the policies.** These include the gateway’s authorizer, IAM permissions on the tool’s resources, and checks inside the tool itself. Any of them can deny a call that a trace shows as allowed.

    So a trace shows that your policies don’t stop a sequence, not that the sequence will happen.
+ The analyzer assumes that each session starts with no history under these policies. It doesn’t consider calls recorded before you deployed them, under an earlier version, or outside the platform.
+ A Strands Box saves its call history in batches, about once a second. If the box crashes or is stopped, it loses the latest calls and decides later calls without them. Then a policy that depends on earlier calls, such as a limit on how many times a tool runs, can let a call through. AWS Greenlight lists this in the policy’s assumptions.
+ The answers rely on assumptions about how the platform records calls. On Amazon Bedrock AgentCore and Strands Box, the analyzer assumes that each tool call has up to three kinds of event: a request, a response, and an error. It links the events of one call by a key. On Strands Box, the key is the request ID. On AgentCore, it’s the request ID and the session ID together. The analyzer assumes the following:
  +  **A response follows an allowed request** – A response exists only for an earlier request with the same key that the policies allowed. The response has the same input values as its request. For example, if the request has an amount of 500, its response also shows 500.
  +  **An error can follow any request** – An error can follow any earlier request with the same key, whether the policies allowed it or denied it.
  +  **One outcome** – A request has at most one outcome: a response or an error.
  +  **Unique key** – Each request has its own key.
  +  **Unique time** – No two events happen at exactly the same time, to the nanosecond.
+  AWS checked these assumptions against both platforms at a point in time. AWS Greenlight doesn’t detect a later platform change that breaks one.
+ If you choose No Target and use your own schema, the analyzer reads the schema’s event declarations to decide which assumptions apply. For example, if your events have no request ID, it doesn’t apply the first four. It always applies the unique time assumption.
+ Numbers follow Cedar’s data type limits. For example, a decimal has at most 4 decimal places and a limited range. For details, see [decimal](https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype-decimal) and [Data types](https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype) in the Cedar documentation.
+ On an AgentCore gateway, the amounts in the call being decided are rounded to 4 decimal places before they’re compared. So a limit written as more than 500.0 allows 500.00004. AWS Greenlight’s checks account for this rounding. If you ask whether such a call can be allowed, the answer is not verified, with the limit that closes the gap. To deny it, write the limit as 500.0 or more, or use a whole-number field in cents, such as `amount_cents`. When rounding is the only gap, Approve asks whether to keep the limit as written.
+ Earlier calls and tool outputs in a session aren’t rounded. A policy that reads them compares every digit. A number written in exponent form there, such as `1e-6`, makes the call fail closed.
+ A Strands Box reads amounts as 64-bit floating-point numbers and doesn’t round them.
+ A very large limit can’t be checked exactly, so AWS Greenlight doesn’t report it as verified. On a Strands Box, or for a tool’s output that a later policy reads, that applies from 92,233.7204. For a tool’s response on a gateway, it applies from 274,877,906,944.
+ Simulation can leave a call **not decided**, instead of **allowed** or **denied**. This happens when a policy depends on earlier calls, and the call or an earlier call has an amount that the gateway reads differently from how it’s written, such as one with more than 4 decimal places or one in exponent form. AWS Greenlight names each call that it couldn’t decide and why.
+ Each check takes a limited number of policies, and your target’s own policies count toward it. Simulation replays calls against at most 40 policies at once. The duplicate check and property checks take up to 200, and fewer on a target with many tools. Each policy can be at most 10,000 characters. AWS Greenlight refuses a larger set before it sends anything, and tells you what to leave out.
+ AWS Greenlight builds the schema from your gateway’s tools each time it proposes policies. If your tools change, run AWS Greenlight again and update your policies.

## Permissions check
<a name="limitations-permissions-check"></a>

After AWS Greenlight puts your policies on an AgentCore gateway, it can check your agent’s permissions. It uses IAM Access Analyzer’s [CheckNoNewAccess](https://docs.aws.amazon.com/access-analyzer/latest/APIReference/API_CheckNoNewAccess.html) to compare the execution roles of your AgentCore Runtime and gateway with the [permissions that AgentCore recommends](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-get-started-box.html#runtime-get-started-box-resources). If a role allows more, AWS Greenlight lists the statements that add access. Statements with the same role, actions, and policy share a line. It shows the first 10 lines. If you ask to see the rest, it shows up to 20 and saves the full list in the project’s `.greenlight/access-analysis/last.json` file. Extra access isn’t always a problem. You decide whether a finding needs a fix.

This check has the following limitations:
+ Findings might not reflect permission changes that are still deploying.
+ It doesn’t report access that AgentCore’s recommended permissions already grant. For example, `bedrock:InvokeModel` and `bedrock:InvokeModelWithResponseStream` on any model in your account, and `xray:PutSpans` and `xray:PutTraceSegments` for a Strands Box runtime. A Strands Box gateway may call Amazon Bedrock models, and the check can’t tell a box gateway from another gateway, so it doesn’t report these Amazon Bedrock actions on any gateway’s role.
+ It checks only the Runtime and gateway that you give it. It doesn’t confirm that your agent can’t reach other gateways.
+ It reads only the execution roles. It doesn’t consider other controls that grant or restrict access:
  + Resource-based policies, such as S3 bucket policies, can allow access that the role alone wouldn’t. For more information, see [Identity-based policies and resource-based policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html).
  + Permission boundaries, and AWS Organizations [resource control policies (RCPs)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_rcps.html) and [service control policies (SCPs)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html), can block access that the role allows, so some findings might not be possible in practice.
  + It doesn’t report access to resources in other accounts.

## Network check
<a name="limitations-network-check"></a>

AWS Greenlight uses [Network Access Analyzer](https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/what-is-network-access-analyzer.html) to find where your AgentCore Runtime can send and receive traffic. It compares the Runtime’s network with AgentCore’s [recommended private VPC setup](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-get-started-box.html#runtime-get-started-box-resources). In that setup, traffic leaves only through VPC endpoints for the gateway (`bedrock-agentcore.gateway`), the AgentCore data plane that AgentCore Memory uses (`bedrock-agentcore`), Amazon ECR, Amazon CloudWatch Logs, Amazon CloudWatch metrics, Amazon S3, and AWS X-Ray. If it finds a path in or out that the default AgentCore network configuration wouldn’t have, it counts the ingress and egress paths and lists the first 10. If you ask to see the rest, it shows up to 20 and saves the full list in the project’s `.greenlight/access-analysis/last.json` file. If your Runtime uses public network mode, no VPC limits where it connects, so the check warns you and doesn’t pass. As with the permissions check, an unexpected path isn’t always a problem.

This check has the following limitations:
+ Findings show your network as it is when the check runs. They might not reflect changes that are still deploying or, in rare cases, reachability changes caused by autoscaling.
+ It checks paths up to VPC endpoints, including the gateway’s. It can’t confirm that the gateway your agent reaches through that endpoint is the one that you meant.
+ It doesn’t read VPC endpoint policies. A pass doesn’t mean that data can’t reach other accounts through the allowed endpoints.
+ Network Access Analyzer checks only TCP and UDP over IPv4. It doesn’t report IPv6 or other protocols.
+ Network Access Analyzer doesn’t support every network component, and it reports at most 10,000 findings. For details, see [How Network Access Analyzer works](https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/how-network-access-analyzer-works.html#analyzer-limitations).