#AWS#AI Agents#Security#Authorization#Cedar

AWS Greenlight and the Case for Agent Rules That Can't Be Talked Around

webhani·

At re:Invent 2026, AWS previewed Greenlight, a service that uses automated reasoning to check that AI agents stay within rules you define. Coverage of the keynote describes it as proof-based rather than prompt-based. Details are still sparse: it is in preview, and we have only read keynote coverage, not documentation. So this post is less a review of Greenlight and more about the design problem it points at, which you can address today with tools that already exist.

The problem: rules written in prompts are suggestions

Most teams constrain agents with a system prompt: "never delete production data", "only refund up to $100". That works until it doesn't. A model can be persuaded, confused by long context, or manipulated through a tool result containing injected instructions. A rule that lives in natural language is enforced by the same component you are trying to constrain.

The alternative is to enforce rules outside the model, in code that evaluates every proposed action before it runs:

  • The agent proposes a tool call.
  • A policy engine evaluates it against explicit rules.
  • Only allowed calls reach the real system.

Automated reasoning adds a second layer on top: instead of only testing a policy against sample requests, you can ask a solver questions about the policy itself. "Is there any request that lets an agent in the support role read billing data?" is a question a solver can answer exhaustively for a bounded policy language. AWS has applied this approach to IAM for years, and it already uses Cedar, a policy language designed to be analyzable, in Amazon Bedrock AgentCore's policy feature. Greenlight appears to extend that direction, though we cannot say how from the coverage alone.

What you can do now: deterministic checks at the tool boundary

You do not need a new AWS service to start. Put a policy check between the agent and its tools. Here is a minimal sketch in TypeScript using a plain rule table. The point is the placement, not the engine:

type ToolCall = {
  tool: string;
  args: Record<string, unknown>;
  actor: { role: "support" | "admin" };
};
 
type Decision = { allow: true } | { allow: false; reason: string };
 
const rules: Array<(c: ToolCall) => Decision | null> = [
  // Deny by default for destructive tools unless admin
  (c) =>
    c.tool.startsWith("delete_") && c.actor.role !== "admin"
      ? { allow: false, reason: "destructive tool requires admin" }
      : null,
  // Hard cap on refunds regardless of what the model argues
  (c) =>
    c.tool === "issue_refund" && Number(c.args.amount) > 100
      ? { allow: false, reason: "refund exceeds 100 limit" }
      : null,
];
 
export function authorize(call: ToolCall): Decision {
  for (const rule of rules) {
    const result = rule(call);
    if (result) return result;
  }
  return { allow: true };
}

Two properties matter. The check is deterministic, so the same call always gets the same answer. And the denial reason is returned to the agent as a tool error, which lets it replan instead of retrying blindly.

Moving to a real policy language

A rule table gets hard to audit once you have dozens of tools and several roles. A policy language such as Cedar separates the rules from application code and can be analyzed. A generic Cedar-style rule looks like this (illustrative, not tied to a specific AgentCore schema):

forbid (
  principal in Role::"support",
  action == Action::"IssueRefund",
  resource
)
when { context.amount > 100 };

Cedar's semantics are deliberately limited: it has no loops and forbid always overrides permit. That restriction is what makes analysis tractable. If you adopt it, the useful habit is to write the questions you care about as tests: "support can never issue a refund over 100", "no agent role can read the secrets resource", and run them whenever a policy changes.

Where automated reasoning does and does not help

It helps with the policy itself: finding contradictions, over-broad grants, or paths you did not intend. It does not tell you whether the policy is the right one. A perfectly verified policy that permits reading customer email and calling an external webhook still allows exfiltration. Treat the following as separate concerns:

  • Authorization: which tools and resources may this identity touch?
  • Data flow: can data read from one tool be sent through another?
  • Approval: which actions need a human regardless of policy?
  • Observability: is every decision, allow or deny, logged with the agent session?

Greenlight, per the coverage, addresses the first of these. The others remain your responsibility.

Our recommendations

  1. Inventory your agent tools by blast radius. Read-only, reversible write, irreversible write, external send. Policy effort should follow that order.
  2. Enforce outside the model. If a rule matters, it should not depend on the model choosing to obey it.
  3. Give agents their own identities. Shared human credentials make auditing and revocation harder. Short-lived credentials scoped per agent task are the safer default.
  4. Log denials. A spike in denied calls is an early signal of prompt injection or a misbehaving agent.
  5. Wait on Greenlight. It is in preview. Evaluate it when documentation, pricing, and region availability are published, and compare it against what Cedar-based policies already give you.

The broader point from this keynote is that the industry is converging on treating agents as principals that need authorization, rather than as trusted code. Building that boundary now costs little and will transfer to whichever managed service you eventually adopt.